LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-27-2005, 03:27 PM
MKratt MKratt is offline
Registered User
 
Join Date: Dec 2005
Posts: 2
Rep Power: 0
MKratt is on a distinguished road
Script problems (if statements...)

Hi there!

Been trying to search the site, but haven't really found what I was looking for.
I'm building a homepage using entirely Flash and want to use if statements, but I can't really figure out how to write the statements.

Don't know if this is possible, but I want to write a statement for a button using an if-statement and the timeline.
Here's what I've been trying to do, but I constantly get an error message of some kind:

if (nextFrame >260) {

on (release) {

gotoAndPlay(239);

} else {

on (release) {

gotoAndPlay(281);

}


So if I press this particular button and the frame number is lower than 260, then I want the movie to jump to frame 239 and play that sequence. Directly after that (when the movie reaches its next stop action), it want to automatically jump to frame 281. (Didn't quite know how to interact that into the code!!)
If the frame number is higher than 260, then I want the movie to jump to 281 and start from there...

Hope you guys can help me out!

Thanks!
/M
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Action Script Problems buzz me Actionscript 2.0 3 01-02-2007 02:59 PM
"get url" script problems! pope Flash MX 2004 5 10-02-2005 05:00 PM
Problems with "if" statements & loops from reference book code. PUP100 Flash MX ActionScript 6 01-25-2005 12:04 PM
problems with movie alpha/transition script omenworker Actionscript 2.0 0 07-24-2004 04:11 AM
Problems with the script sirschuster Newbies 4 06-03-2004 11:31 PM




All times are GMT. The time now is 04:19 AM.