8/5/2011 9:51:44 PM
Title:
Can you do something at the start, that will effect a scene later?
I'm currently working on a project, where I want to change something like a house at the start of the project. Then, later (let's say 10 scenes later), I want whatever house they had chosen to be the house that is shown later.
If that is possible, how do you do that? I don't know where I can ask, so I hope this place will be able to help me out...!
8/8/2011 9:21:54 PM
the basic logic can be :
you can store the movieclip name of your house selected initially and then later show it by getting the movieclip name from that variable.
8/10/2011 8:35:14 PM
Thanks, though I don't think it quite answers my question. But, it could be possible...
It has to do with scenes, and not later in the scene in which I want to change the information for.
Rohit
Points: 160
Posts:0
10/24/2011 5:30:15 AM
you can register ENTER_FRAME event for stage or for particular movieclip and you can determine which frmae currently being played
Ex: if you want to show house after 100 frames in this events handler function
stage.addEventListener(Event.ENTER_FRAME, hnadleEnterFrame);
public function hnadleEnterFrame(event:Event):void
{
if(event.currentFrame == 100)
{
showHouse();
}
}
public function showHouse():
{
//show house code
}