View Full Version : how to distribute an information to other scenes?
Abus
April 24th, 2005, 06:58 PM
I have got a movie which consists of 12 scenes and in the first scene i let users to choose a mouse cursor.There are 8 Movie Clips on the scene each represents a different mouse icon.And when user chooses one of them I use this code to change the default mouse cursor
Mouse.hide()
startDrag("hand",true);
My question is How can i pass this info to other scenes?
nathan99
April 24th, 2005, 08:25 PM
variables, and IF's
senocular
April 24th, 2005, 09:19 PM
that is, set variables that specify the cursor settings and then use if statements in the first frame of each scene to reset the cursor to be those settings for the duration of that scene.
Note that if you attach your hand movie clip to or use swapdepths to set it to a depth above 0, it will carry over into other scenes without getting automatically removed as it would otherwise (which depending on what you're doing may prevent the need for the if conditions in the first frame of each of your scenes).
Abus
April 25th, 2005, 04:10 AM
Note that if you attach your hand movie clip to or use swapdepths to set it to a depth above 0, it will carry over into other scenes without getting automatically removed as it would otherwise (which depending on what you're doing may prevent the need for the if conditions in the first frame of each of your scenes).
Can you open that idea a little bit? How am i gonna do it?
senocular
April 25th, 2005, 05:13 AM
well... for example, lets say you have a cursor movie clip on the stage; it's named "cursor_mc". It contains 8 frames for each different variations of your cursors. The user selects the "hand" cursor. As a result, you execute something to the effect of:
cursor_mc.gotoAndStop("hand");
cursor_mc.swapDepths(10000);
cursor_mc.startDrag();
And thats it. Since swapDepths was used to put the cursor_mc at a depth above 0, it will continue to exist throughout scenes without needing to be on the timeline for each scene (only place it in the first scene - or, rather, the scene where that code is used).
Abus
April 25th, 2005, 07:28 AM
well... for example, lets say you have a cursor movie clip on the stage; it's named "cursor_mc". It contains 8 frames for each different variations of your cursors. The user selects the "hand" cursor. As a result, you execute something to the effect of:
cursor_mc.gotoAndStop("hand");
cursor_mc.swapDepths(10000);
cursor_mc.startDrag();
And thats it. Since swapDepths was used to put the cursor_mc at a depth above 0, it will continue to exist throughout scenes without needing to be on the timeline for each scene (only place it in the first scene - or, rather, the scene where that code is used).
thanks mate i will try it and return to you.
Abus
April 25th, 2005, 04:49 PM
I couldn't achieved what i am trying to do.And now i am facing 2 problems.First one i couldn't done the custom mouse cursor thing.And since i couldn't done it i couldn't try the swepdepths method.
Can someone check my fla?
thanks a lot
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.