header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Rogerio Jacinto
Points:0
Posts:0

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...!



1
Glenn
Points: 0
Posts:0
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.

2
Rogerio Jacinto
Points: 0
Posts:0
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.

3
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
}


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions