dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: loading a movie without playing

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    4

    loading a movie without playing

    hi!
    i searched through forums but no luck!
    hoping that you great gurus of flashkit can help me, here's my enquire:

    i would like to load an external swf in my main movie but i don't want it to play right away

    i.e. : main movie is 500by500pxl and loads a button that button loads external swf that plays

    i would like to load that external movie before the button is pressed so that it preloads in the meantime while the button appears

    something like:
    main movie frame 5: loadmovie("film1.swf) with alpha set to 0 so it can't be viewed and that the main movie tells it to stop at the first frame

    that way once u press the button that in the meantime is loading when u go and press it the movie alph will return to 100 and the movie will reload and play. hope i was clear...

    all of my admiration to those that figure this out

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    i guess you can't just put a stop in the external movie, right? In any case you need to preload it.
    So have it gotoAndStop(1) in the preloading loop.

    gparis

  3. #3
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    that means that when i click on the button that will re-load that movie when the external swf starts it will stop at frame one again!

  4. #4
    Senior Member
    Join Date
    Nov 2005
    Location
    Milan
    Posts
    119
    Why do you need to reload the movie? You could just have the button make it visible and start it playing...

  5. #5
    Not Real since 1985
    Join Date
    Feb 2002
    Location
    Netherlands
    Posts
    229
    U might use MovieClipLoader and a listener, something like:
    mclistener.onLoadComplete = function(target_mc:MovieClip) {
    target_mc.gotoAndStop(1);
    // and show your button to play the movieclip
    };
    Never accept the first 'impossible' unless it comes from a lady.

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