-
Go to X frame via actionscript
Here's what I'm trying to do. I have a a flash movie with dimensions 250 X 200. In first frame I've put a movie clip with this action script, which should take the movie to the second frame:
var x_mouse = _root._xmouse;
var y_mouse = _root._ymouse;
if ( ( y_mouse >= 0 ) and ( y_mouse <= 200 ) ) {
if ( ( x_mouse >= 100 ) and ( x_mouse <= 250 ) ) {
_root.gotoAndStop ( 2 );
}
}
But it doesn't. Can anyone tell me what am I doing wrong? THX
-
This code needs to loop to continously check for your condition.
Hope this helps,
D.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|