Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
ShellyA webforumsuser@macromedia.com #1
Flash MX 2004 Prof - Form application function call question
I have a flashmx 2004 professional application using forms. I am able to call methods on my application form from child forms with no problem. However, when I try to call a method on a child form from the application or any other form I have no luck. Any ideas? Thanks.
ShellyA webforumsuser@macromedia.com Guest
-
AutoCad LT 2004 & Acrobat Prof. 6.0
When we try and create a PDF document from an autocad file with a .dwg extention, we get a error "Unable to find the application which created this... -
XML/DataSet problems - Flash MX 2004 Prof
Once you have the feeding the data into the XMLConnector Component as the dataprovider for the Dataset Component and it set up as the data provider... -
MX Prof 2004 - Unable to stop movie from looping
Hello, My Flash document is a product demo and many subsequent scenes include AVI movie clips. My problem is that the AVIs keep looping and I... -
Call function from <form>
Hi, Can anyone tell me if it is possible to call a function from a html form, where the function is included in the same file as the form. ... -
Shared library / Mach-O: Application crashs if I call a function
Hi, me again Meanwhile, I can load the shared library in my Mach-O Application and I found my function (BeepTwice) in it. But if I try to call... -
Ed Skwarecki #2
Re: Flash MX 2004 Prof - Form application function call question
How are you trying to refer to the child forms from the parent? Can you give a little
example?
If you are trying to refer to the child in an on(load) event handler of the parent, that
won't work because the parent loads before the children load. You can't in general refer
to children until the object is fully created, either in the first frame of the parent's
timeline, or perhaps in an on(reveal) handler.
--
Ed Skwarecki
Principal Architect
eLearning
Macromedia
Ed Skwarecki Guest
-
ShellyA webforumsuser@macromedia.com #3
Re: Flash MX 2004 Prof - Form application function call question
Ed,
Thanks for the reply. After working with it for a while, I figured out that I was using the wrong path to get to the form. The path you take to get to a form sometimes seems to vary. I have found that by going to the root form and them putting in the complete path to the form I wish to use I have the most success. For instance:
Application
--- Form1
-------- Form1_child
--- Form2
When calling form1_child from Form2 I would use this.rootForm.Form1.Form1_child.method() and it works fine.
Thanks again for your help.
ShellyA webforumsuser@macromedia.com Guest



Reply With Quote

