PDA

View Full Version : Javascript to Flash delima!!


Redline01
08-10-2001, 02:51 AM
Hello All,

I'm having a problem with a variable I passed into flash using Javascript. I passed a number and it shows up in a text field as the correct number. Now what I want to do is to jump a frame, which is specified by the number I passed. In other words if I pass 31, I want my movie to jump to frame 31 and play it.

This is the code I have to jump to that frame.

gotoAndPlay (Number ( skipIntro ));

Thank you.

Jesse
08-10-2001, 05:03 AM
That code looks good but you have to make sure you're using it AFTER the variable is loaded in.. how are you checking the load? have you got a frame-based loop waiting to recieve the data, then running the command?

Redline01
08-10-2001, 05:42 AM
Thank you soooooo much!!!

I figured out that I didn't need to load a certain frame sence I only have 2 variable. I just ran a check to see if the variable was NULL or not. If it was NULL, then I ran the intro, if it wasn't I skip to the content. I really really really apreciate the help! :)

I'm going to post my script in a new post now. I hope it will help everyone out.

Jesse
08-10-2001, 05:47 AM
if you have a script aht you think will be useful please post it in the Library (link atop this page).

Redline01
08-10-2001, 05:55 AM
Ok, I'll do that.

Thanks again.

Redline01
08-10-2001, 06:01 AM
Actually, the script isn't actionscript. Well most of itsn't. There is 3 lines of code for actionscripting. The rest is in the php file. So, I'll post the php file.