Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 15:01
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash 8 (Moderators: Jorge Solis, ..:: Mazhar Hasan ::.., Andresss)
| | |-+  Referencing button press inside loaded movie trouble
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Referencing button press inside loaded movie trouble  (Read 1170 times)
Jaylada
Seasoned Programmer
***
Posts: 142



View Profile WWW Email
« on: 02/28/10, 14:03 »

I have in my root movie some transfer code being called out with a button push, which works when I reference a Button push in the Main movie......

But when I reference the button (submit1), which is in the (Finish) movie, which was loaded into the (Continue) container using loadMovie, it doesn't work
////////////////////////////////
Continue.Finish.submit1.onPress = function(){
//////////////////////////////

I call out variables using the similar method from my root movie without any issues (ex.   container1.var1.r1)

Any help would be greatly appreciated.

Thanks
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14593


View Profile
« Reply #1 on: 03/02/10, 12:39 »

The submit1 button instance should be there to be referenced, easy to test, just add:

trace(Continue.Finish.submit1.onPress)

You should get the complete path to your button, if you get undefined, then the object is out of scope

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything