This is a discussion on "constraining objects to image area in flash" within the Flash & Multimedia Forum section. This forum, and the thread "constraining objects to image area in flash are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
constraining objects to image area in flash
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
constraining objects to image area in flash
if anyone can help i would appreciate it.
i have an swf where there is an image and a magnifying loupe and you can move the loupe. the problem is you can move the loupe off the image. what i want to do is make it so you can only move the loupe within the image below it. i assume the script i need would have to be in the magnifying loupe, correct? |
|
|
|
||||
|
Re: constraining objects to image area in flash
you'd probably have to do something like check if the cursors x, y position are greater than the images.
I may be wrong
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: constraining objects to image area in flash
Yep, just set the boundries for yoru x,y cursor positions within that movieclip or "section" and using Collision detection could be one way to do this.
Check this out: http://www.kirupa.com/developer/acti..._collision.htm Basic Idea.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving Objects (Not sure if this goes here) | Stormraven | JavaScript Forum | 9 | May 11th, 2008 21:59 |
| Flash Sliding Image Bar | SheenaJ | Flash & Multimedia Forum | 7 | Apr 20th, 2007 18:01 |
| Flash txt area bg color | dazzelworks | Flash & Multimedia Forum | 0 | Apr 15th, 2007 20:36 |
| button hit area problem flash | flipmodea | Flash & Multimedia Forum | 4 | Mar 19th, 2007 12:22 |
| revolving objects | benji | Flash & Multimedia Forum | 5 | Sep 9th, 2003 11:56 |