constraining objects to image area in flash

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 24th, 2007, 20:11
New Member
Join Date: Aug 2007
Location: Bartlett
Age: 33
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old Sep 26th, 2007, 06:44
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
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)
Reply With Quote
  #3 (permalink)  
Old Sep 26th, 2007, 15:54
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43