A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: load external movie clip on stage not button

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    33

    load external movie clip on stage not button

    Hello,

    I know there is tons about this everywhere
    but I've looked at a lot of it
    and I'm still confused!

    I am trying to load an external .jpeg.
    I created a movie clip
    and I want it to load automatically
    when the user arrives at the frame
    (not in response to a button event)

    This is the code I have on the button instance
    based on the behavior code Flash provided
    (I removed the event)

    [AS]this.loadMovie("still01.jpg");[AS/]

    but it's not working.
    Please help!

    Thanks so much!

  2. #2
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    try this
    code:

    yourmovieclipinstance.loadMovie("still01.jpg");


    you can't load movies into buttons Unless of course you did something like this
    code:

    Button.prototype.loadMovie = MovieClip.prototype.loadMovie;

    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    code:

    my_clip.onEnterFrame = function(){
    this.loadMovie("still01.jpg");
    delete this.onEnterFrame;
    }


  4. #4
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    why do you need the onEnterFrame?
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  5. #5
    Senior Member green_eye's Avatar
    Join Date
    Apr 2004
    Location
    Sarasota, Florida
    Posts
    1,496
    put you loadMovie action on a frame instead of on a button!

  6. #6
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    Ya sorry thought I implied that Thanks!
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

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