Your Ad Here Your Ad Here
Results 1 to 4 of 4

Thread: flash help needed!

  1. #1
    cpt_azad's Avatar Colonel
    Join Date
    Aug 2003
    Location
    Surrey, BC
    Posts
    6,741

    Question Mark

    Ok anyone know how to link 2 flash files together (no, not scenes)?

    For the project I'm working on its a little game that I've made, but I kept 3 things seperate, as in the first flash file is my main game, the 2nd flash file has mini-game (sub-game), and the 3rd one is also a mini game.

    How do I go about linking them? And also, I tried linking scenes, as in actionscript for the buttong would be:

    Code:
    on(release)
    {
           gotoAndStop("Scene 2", 1);
    }
    but that doesnt seem to work whatsoever, you click the button but it doesn't take you to Scene 2 frame 1 (or w/e scene for that matter). So I just worked around it for now.

    Suggestions?

    Jeff Loomis: He's so good, he doesn't need to be dead to have a tribute.

  2. Software & Hardware   -   #2
    byneco's Avatar F-S-T BT Rep: +22BT Rep +22BT Rep +22BT Rep +22BT Rep +22
    Join Date
    Feb 2007
    Location
    System32
    Posts
    581
    agaın setup another hdd

  3. Software & Hardware   -   #3
    SnnY's Avatar Error Syntax
    Join Date
    Feb 2007
    Posts
    1,001
    Try updating your drivers.

  4. Software & Hardware   -   #4
    cpt_azad's Avatar Colonel
    Join Date
    Aug 2003
    Location
    Surrey, BC
    Posts
    6,741
    Quote Originally Posted by SnnY View Post
    Try updating your drivers.
    Sarcasm? anyways i'm too tired to tell if it is


    I worked around it, in the end I just ended up making seperate fla's for diff scenes, so code for it was something like this:

    Code:
    on(release)
    {
       loadMovie("nameofmovie.swf",0)
    }
    Also figured out the coding to lock certain things (password lock) so if for the projecct I was working on, say you have to watch a video or something to progress in the game, but the video is password locked and you have to type in a password to unlock it, here's the code that works for me (not sure if it is supposed to be different, but it worked for me I just basically used what I learned from Python, I suck at actionscripting):

    Code:
    on (release) 
    {
            if(password eq "what ever the answer is")
            {           
                 loadMovie("location of movie",0)       
            } 
            else
            {
                    gotoAndStop (which ever frame you want);
            }
    }
    which ever frame you want: would typically be what ever frame came before the password frame or to a frame where it says "invalid pass"

    and also in the if statement, it says password, make sure the input text field box's instance name is also password.

    you can set up a bunch more else if statements so that different inputs can be excepted.

    Hope this helps anyone that ever needs it.

    Jeff Loomis: He's so good, he doesn't need to be dead to have a tribute.

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
  •