Flash MX 2004 Prof - Form application function call question

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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. ...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139