Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 10th, 2003, 12:08 PM
black_jack21 black_jack21 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 black_jack21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing Internal Variable

Hi,
I am still fairly new to actionscripting, so this question may seem a little basic. I have a series of nav buttons within a movie clip on the main timeline. The buttons all have instance names and each has a value of n between 1 and 4, depending on which is pressed. I am trying to pass the variable to an action on a frame on the main timeline that says, if n=1 (or whatever), gotoAndPlay("bioSection"), for example. For some reason, I'm doing something wrong in the syntax I guess and it's not working. Any ideas??

thanks,
Dave

Reply With Quote
  #2  
Old July 10th, 2003, 09:44 PM
CyanBlue CyanBlue is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Chantilly, VA
Posts: 31 CyanBlue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Howdy...

I am not quite sure since you didn't provide the code, but I have a feeling that you are using '=' within the if condition where '==' should be used... For example,
Code:
if (n == 1)
{
   // right condition
}
else
{
   // wrong condition
}

Reply With Quote
  #3  
Old July 10th, 2003, 10:56 PM
black_jack21 black_jack21 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 black_jack21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah...a buddy of mine sorted me out. First, when I was assigning the variable, I was saying n=1 instead of n="1". Then, when it's called it's == as you said, with the 1 in quotes.

Thanks!
Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Passing Internal Variable


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway