PDA

View Full Version : flash help needed!



cpt_azad
03-18-2007, 06:38 AM
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:



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?

byneco
03-18-2007, 01:43 PM
agaın setup another hdd

SnnY
03-18-2007, 02:29 PM
Try updating your drivers.

cpt_azad
03-21-2007, 02:50 AM
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:



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):



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.