Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »Flash Forum

Notices

Flash Forum Flash Design and Actionscript Forum


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-03-2008, 01:34 PM
gospastic's Avatar
Pitfall II - Lost Caverns
 
Join Date: May 2007
Posts: 231
Default quick and silly question

Hello everyone -

I have an event listener (mouseDown) on a movieclip which captures the y co-ordinates of the mouse and passes to a variable.

I need to pass over the variable to the actionscript within the same movieclip for it to act on.

I have tried .this _root _parent etc - how do I do this?

Thanks for any suggestions!
__________________
salt mustard vinegar pepper
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 11-03-2008, 01:52 PM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,381
Default

An easy way is to define the variable on the root:
_root.foo = this.mouseY; // or _root.mouseY (getting the mouse coordinates is different depending on what's calling it)

Then just call the variable from anywhere by calling it from the root.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:04 PM
gospastic's Avatar
Pitfall II - Lost Caverns
 
Join Date: May 2007
Posts: 231
Default

I see what you are saying - thanks for the pointer!
__________________
salt mustard vinegar pepper
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

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
Quick Question... blueocto Graphic Design and Web Design Help 4 15-11-2007 02:32 PM
Quick question [newb question] snowy Graphic Design and Web Design Help 6 27-07-2007 11:08 AM
Need a quick Question answered..! mattfaucher CSS Forum 2 20-07-2007 10:07 PM
Really quick flash question gospastic Flash Forum 7 05-07-2007 06:50 PM
Silly question but need help Willim-the-GREAT Graphic Design and Web Design Help 7 10-01-2007 05:51 PM


All times are GMT. The time now is 03:36 AM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5