LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 572 users online 211558 members 1553 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
bluerosedangel
Interests: Music and writing are my life.
Mood: Lonely
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 31 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

I need actionscript help!
Not exactly programming... but yeah.
Replies: 4Last Post Mar. 31, 2005 9:19pm by Sol
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( PiXiE )


24.24.1.1358

Patron
Tech Support Leader
Reply
I'm having trouble with a loop. I have 17 buttons, instance names are button1, button2, button 3, etc.
Each button needs to go to a different frame, those are labeled as part1, part2, part3, etc.

This code only works for buttons 10-17:
Code:
for (i=1; i<=17; i++) {
_root["button"+i].onPress = function() {
myVar = getProperty(this, _name);
getCharacter = myVar.charAt(6);
getCharacter2 = myVar.charAt(7);
if (getCharacter2>=1) {
gotoAndStop("part"+getCharacter+getCharacter2);
} else {
gotoAndStop("part"+getCharacter);
}
};
}

I believe it is a problem with my if and else statements. Can anyone help?


4:01 pm on Mar. 13, 2005 | Joined: July 2002 | Days Active: 1,662
Join to learn more about PiXiE Alberta, Canada | Straight Female | Posts: 4,837 | Points: 34,848
( PiXiE )


24.24.1.1358

Patron
Tech Support Leader
Reply
Nevermind! I figured it out. I had changed the names of the labels while playing around and forget to switch them back.

I hate flash.


4:08 pm on Mar. 13, 2005 | Joined: July 2002 | Days Active: 1,662
Join to learn more about PiXiE Alberta, Canada | Straight Female | Posts: 4,837 | Points: 34,848
lauriebebe91


Quality Control Engineer

Patron
Reply
Flash can be a pain.  This is the first time I've seen anyone make a topic in here, I was waiting for people to respond and go "I DONT KNOW WHAT YOURE TALKING ABOUT", because people on here seem to find it neccessary to let everyone know when they don't understand a topic.

-------
I done forgot more than you ever learned...

If you wanna talk, my AIM screen name is lauriebebe91 and my MSN screen name is lauriebebe91@hotmail.com

4:09 pm on Mar. 13, 2005 | Joined: Mar. 2005 | Days Active: 18
Join to learn more about lauriebebe91 Massachusetts, United States | Metrosexual Female | Posts: 336 | Points: 856
( PiXiE )


24.24.1.1358

Patron
Tech Support Leader
Reply
Haha, so true. They are just in it for the points. DAMN THEM!

4:12 pm on Mar. 13, 2005 | Joined: July 2002 | Days Active: 1,662
Join to learn more about PiXiE Alberta, Canada | Straight Female | Posts: 4,837 | Points: 34,848
Sol


Dairy Product Addict

Patron
Reply
You mean I'm not the only one who struggles with actionscript?

Hmm, since you have it figured out I dont have to screw my gray matter trying to figure out whats wrong here.

I wonder how many people on lw are familar with actionscript.

I'd like to have someone who can share my misery and kiss my boo boos when Flash kicks my butt.


9:19 pm on Mar. 31, 2005 | Joined: Feb. 2004 | Days Active: 314
Join to learn more about Sol Virginia, United States | Label Free Female | Posts: 4,451 | Points: 7,788
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic