A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: using a function to play a MC in an external swf loaded

  1. #1
    Senior Member freshly's Avatar
    Join Date
    Dec 2003
    Location
    Toronto, Canada
    Posts
    439

    using a function to play a MC in an external swf loaded

    Hello,

    This is kinda hard to explain but I will do my best.

    I have a main movie called "all"

    inside that I have to external swf's loaded.

    1 called "content"

    2 called "scrolledContent"

    I am trying to communicate between "content" and "scrolledContent".

    The problem is that when I publish "scrolledContent" it gives me an error.

    1120: Access of undefined property animation. animation.play();

    This is happening because the mc called animation is in the swf called "content", so it is not there until its loaded into my main stage with "content".

    How can I get this to work?

    Hope this makes sense, here are my source files to help.

    Any help is greatly appreciated :-)

    ClickME
    Last edited by freshly; 01-26-2010 at 10:27 PM.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Have both children dispatch events when they want something - then have the parent catch those events and move the data between them when appropriate. http://www.calypso88.com/?p=301
    Please use [php] or [code] tags, and mark your threads resolved 8)

  3. #3
    Senior Member freshly's Avatar
    Join Date
    Dec 2003
    Location
    Toronto, Canada
    Posts
    439
    Thanks I wil take a look in the morning :-)

  4. #4
    Senior Member freshly's Avatar
    Join Date
    Dec 2003
    Location
    Toronto, Canada
    Posts
    439
    Well I think this is way over my head, I have been trying to work this with no luck.

    Can you maybe help a little more. I understand that the function needs to be called after the childs are loaded and this information needs to happen at that point but I can't write the code to make it happen. Looking at the link you provided I still can't write the code to make this work. Attached is my new working versions, not sure how far off I am.

    Click ME

    Any help is much appreciated!!

  5. #5
    Senior Member freshly's Avatar
    Join Date
    Dec 2003
    Location
    Toronto, Canada
    Posts
    439
    Hmm looks like I am getting no more help on this one, anyone help anyone :-)

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center