A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Linking Movies like Scenes?

  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    49

    Linking Movies like Scenes?

    I guess I should have posted this here before.

    Basically I'm trying to load a movie as though as if it were a scene.

    What do I mean, well lets say a movie has 4 scenes, well ... i have two buttons one that goes back and one that goes forward... the forward button would call upon a movie in a certain order and load it.... as though as if it were a scene or even a frame...


    (I actually just need the buttons to cycle through a bunch of external 'movie clips' in .swf format.. can it be done?

    Does anyone know how to do this?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    If the movies' names are stored in an array, then your next and previous buttons would simply load the next or previous indexed movie.

  3. #3
    Member
    Join Date
    Dec 2004
    Posts
    49
    would you mind explaining this more?


    heh a very detailed example would be nice (including the action script I would need"

    Thanks..

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    ...a very detailed example would be nice...

    Want an apple turnover with that sir?

  5. #5
    Member
    Join Date
    Dec 2004
    Posts
    49
    Sorry, I guess I should have said please...

    I dont even have the back and forth with a scene done... all I have is a frame version of it..


    if you could provide me with a list of the name examples for the movies and the action script that would be needed.. i would greatly appriciate it.

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    First frame...
    Code:
    movies = ["movie1.swf", "movie2.swf", "movie3.swf", "movie4.swf"];
    current_index = 0;
    // loads the first movie to start with...
    container.loadMovie(movies[current_index]);
    Next button...
    Code:
    on (release) {
    	current_index +=1;
    	if(current_index > movies.length-1){
    		current_index = 0;
    	}
    	container.loadMovie(movies[current_index]);
    }
    Previous button...
    Code:
    on (release) {
    	current_index -=1;
    	if(current_index < 0){
    		current_index = movies.length-1;
    	}
    	container.loadMovie(movies[current_index]);
    }

  7. #7
    Member
    Join Date
    Dec 2004
    Posts
    49
    sorry but its not exactly working..

    I createa movie called

    Main

    Then anothe rcalled

    movie1
    movie2

    .... are they all supposed to hold the bakc and forth button.. if so.. then this is not working.. could you help me out with it?

  8. #8
    Member
    Join Date
    Dec 2004
    Posts
    49
    I still can't figure it out ...

    could someone please upload a sample of the proper way of doing this because I really dont seem capable of figuring this out.

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

    You're the one asking for help...

    Well you're the one that should be attaching your .fla, zipped up and in a MX only format, not MX2004.

    You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.

    You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.

  10. #10
    Member
    Join Date
    Dec 2004
    Posts
    49
    I created a sample of how I think it's supposed to go but its not working (Mx, not 04).. I cant attach the "real" file because its just too big..

    hope someone can help, thanks


    btw: to open the file you may need to rename it to a .RAR file since I had to change the name to attach it.
    Attached Files Attached Files

  11. #11
    Member
    Join Date
    Dec 2004
    Posts
    49
    anyone?

  12. #12
    Member
    Join Date
    Dec 2004
    Posts
    49
    anyone/

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