Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 11

Thread: tween display above loaded swf

  1. #1
    Member Settled In jimbo is on a distinguished road
    Join Date
    Jul 2007
    Posts
    34
    Rep Power
    0

    tween display above loaded swf

    amazing Flash templates
    While I am loading a swf into a container (main.swf), I have a nice graphic page tween that I would like to cover the screen while the external swf is being loaded. I can run this tween that is in main.swf when the call is made to unload the current swf and load the new swf. BUT, the new swf loads on top of the animation. Can I set the layer of the animation so that it is on top, so that the animation hides the transition from the current swf to the new swf? ( it is an oil painter site, and he likes an animation I did that 'paints' the screen to hide the current page, and when the painted screen goes away, the new page is underneath.)

  2. #2
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: tween display above loaded swf

    You should ' play ' with swapChildren or swapChildrenAt

  3. #3
    Member Settled In jimbo is on a distinguished road
    Join Date
    Jul 2007
    Posts
    34
    Rep Power
    0

    Re: tween display above loaded swf

    hmmm, I'm having trouble with this . . . am I close to the answer? The 'id' is an int, and I'm having trouble swapping display object pageTween with an int.

    pageTween.play();

    id=m.target.parent.id+1;
    loader.unload();
    removeChild(loader);
    rimuoviListeners(loader.contentLoaderInfo);
    loadPage(m.target.parent.id+1);

    setChildIndex(pageTween, 0);
    //setChildIndex ((m.target.parent.id+1), 1)
    trace("tween level is " + getChildIndex(pageTween));
    //trace("tween level is " + getChildIndex((m.target.parent.id+1)));
    swapChildrenAt(1,0);

  4. #4
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: tween display above loaded swf

    Did you try with swapChildren() ?

  5. #5
    Member Settled In jimbo is on a distinguished road
    Join Date
    Jul 2007
    Posts
    34
    Rep Power
    0

    Re: tween display above loaded swf

    If I do this:
    swapChildren(pageTween, m.target.parent):

    - I get the error of "The Supplied DisplayObject must be a child of the caller" - does that mean that the page tween should be inside each child swf instead of one copy in the main.swf?

    Same error if I do:
    setChildIndex(m.target.parent, 0)
    setChildIndex (pageTween, 1)
    swapChildrenAt(0, 1);

  6. #6
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: tween display above loaded swf

    cos they must be in the same father.
    You should swap the loader with the tween, i think...

  7. #7
    Member Settled In jimbo is on a distinguished road
    Join Date
    Jul 2007
    Posts
    34
    Rep Power
    0

    Re: tween display above loaded swf

    Nope. Even moved the tween and the swap to the loadPage function, and got either the coertion (wanted object, got int), or the 'child of caller' error when swapping with any of the statement objects.

    Could it be that I should load the target swf and the tween into an empty mc in main.swf, so that they are children of the same object, then swap them?

  8. #8
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: tween display above loaded swf

    before to swap the loader, did you say:
    var m:MovieClip=loader.content as MovieClip;
    swapChildren(m,tween);

  9. #9
    Member Settled In jimbo is on a distinguished road
    Join Date
    Jul 2007
    Posts
    34
    Rep Power
    0

    Re: tween display above loaded swf

    I get ' a conflict with definition m in namespace internal

  10. #10
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: tween display above loaded swf

    change its name

    var nn:Mov....

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. How to display an SWF at 100%
    By Flep in forum Tutorials
    Replies: 29
    Last Post: 08-09-09, 12:22
  2. import flash.display.Array???
    By nocciola in forum Actionscript 3.0 avanzato
    Replies: 2
    Last Post: 12-04-09, 06:41
  3. Replies: 7
    Last Post: 24-10-08, 21:53
  4. image display flex
    By nitish dhar in forum FLEX builder 3
    Replies: 0
    Last Post: 07-07-08, 14:37
  5. access loaded object
    By jimbo in forum Actionscript 3.0 newbies
    Replies: 6
    Last Post: 18-10-07, 13:20

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Optimization by vBSEO