dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: function for multiple 'loadmovie' buttons?

Hybrid View

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    336

    function for multiple 'loadmovie' buttons?

    hi

    i have a bunch of buttons that load SWFs into my my main movie. All of the buttons have the same 'loadmovie' code except for the SWF filenames each loads. can i place a function in the timeline that does the loadmovie action for each but inserts the correct filename corresponding to the button pressed? this way i won't have to copy and paste the code over and over for each button. thanks!

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Sure you could. But you'd have to set the file to be loaded on each button still, and still call that same loading function from every button, so is it really worth it just to save copying & pasting I guess one more line in each button script! How long is your actual loadMovie action code... Shouldn't really be more than one line?

  3. #3
    Senior Member
    Join Date
    Dec 2000
    Posts
    336
    thanks oldnewbie! actually my loadmovie action code is huge, that's why i'm asking. there's a lot of IF conditions and other crap in the code so i don't want to keep pasting it over and over. any ideas on how to make the funtion? thanks!

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