Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-22-2008, 08:33 PM   #1
bcedergren
Registered User
 
Join Date: Apr 2008
Posts: 23
Default Changing states in parent application

I have a component that needs to change states upon clicking a button. The state that it needs to change to is the parent application that the previously mentioned component is imported into. How can this be done? I have tried using

ActionScript Code:
currentState="parentApplication.firstState"

this doesn't seem to be working as I get an error that it cannot find the parentApplication.
bcedergren is offline   Reply With Quote
Old 06-26-2008, 01:41 PM   #2
chaitanya
Registered User
 
Join Date: May 2008
Posts: 35
Default

just put currentState="", then on click the button u will go to the base state, from the state where ur.
chaitanya is offline   Reply With Quote
Old 07-02-2008, 02:45 PM   #3
Zunskigraphics
www.ZusnkiGraphics.com
 
Zunskigraphics's Avatar
 
Join Date: Aug 2005
Posts: 152
Default

THANKS!!!! I've been at a dead end for a few days on this... used

Code:
currentState=""
and it works like a champ!!!!
Zunskigraphics is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing a movieclip's parent? pimguilherme ActionScript 2.0 0 12-03-2007 02:23 AM
Clean transitions on application startup Jim Freer Flex 2, 3 & 4 7 11-07-2007 10:40 PM
Passing control back to parent application clueless ActionScript 1.0 (and below) 1 01-24-2004 10:00 PM
Changing parent of a movie clip madgeometer ActionScript 1.0 (and below) 5 12-27-2001 11:51 PM
attaching movieclips and changing parent tolo ActionScript 1.0 (and below) 1 11-14-2001 09:47 AM


All times are GMT. The time now is 07:21 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.