A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Accessing main timeline from an external .swf

  1. #1
    bidibidibidi clicky2's Avatar
    Join Date
    Mar 2004
    Location
    Indianapolis, Indiana
    Posts
    470

    Accessing main timeline from an external .swf

    OK ... I'm definitely more designer than flash developer (as most of you might know. At least those that hang in the lounge or Arena). I need to know how to allow a loaded .swf file to control the main timeline in AS3.

    I have a container .swf that includes global controls (jump menu/volume control) and branding. Loading a swf for the dialogue boxes (timeline animated ... although I realize there may be better ways to handle it). Another swf for a simcity-ish illustration that has animated elements with various states. I need all to be able to communicate with each other.

    I was able to load the movies no problem. Even communicate with the loaded ones from the main timeline. Just need to be able to go the other way.

    I've looked and looked to no avail (or at least little success).

    Signed ... dazed and confused.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You need to use classes for this, then you can use the event model I developed. This is written for communication of movieclips with each other or the timeline. However, working with child movies works the same way.

    http://flashscript.biz/flblogger/?p=10

    Sorry, it involves a bit heavier AS, but you cannot bypass that in any case.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    2

    Wink taking a simple stab

    Ya Events is a critical way to think, still.
    One could put something like a
    var creator:Object = null;
    and test for null on it for testing of the external components.
    if(creator != null) {
    creator.sendMessage("do it");
    }
    you might need to make it believe it can do that but not so much if Flash as I recall.
    Of course when you use the AS3 Loader you set the creator of the content to this or the object you want to send a message to.

    Well should help someone who does'nt want the overhead of events.

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