View Full Version : Dynamic Text PLZ HELP
smurf123
01-26-2004, 03:11 PM
Please help me. I'm using flash MX and i have a dynamic text named "Number". I have the "5" written in it. I am using the "If" condition but i'm not getting it to work right. So i was wondering if there was any way to make it so each time you push a button, the text changes.
This is what i tried to use with the "If" condition.
on (release) {
if (Number=="5") {
}
Number = "8";
if (Number=="8") {
}
Number = "50ded";
}
For some reason this wont work. Please write down a script i can use that will work.
smurf123
01-26-2004, 03:13 PM
and when I put the text changes, I didnt mean just a random text, i meant what i wanted it to change to.
blake
01-28-2004, 04:48 AM
ahh ok easy done
on (release) {
if (Number=="5") { Number = "8"
}
else if (Number=="8") { Number = "50ded";
}}
any trouble just ask :wink:
cheers, Blake[/code]
smurf123
01-28-2004, 08:16 PM
THANK YOU SO MUCH!!! Peace.
smurf123
01-28-2004, 09:42 PM
Um. I have one question.What script will i use so when the text gets to 1, and an action happens???? Also wut item will i put this script on?
blake
01-30-2004, 10:52 PM
this script goes on a button with a dynamic text box labled number.
im not sure what you meant when you said when the script gets to 1, because the script i gave you only goes to 50ded ?????
but this is one if it equals 50ded it will do an action (gotoAndPlay)
on (release) {
if (Number=="5") { Number = "8"
}
else if (Number=="8") { Number = "50ded";
}
else if (Number=="50ded") { gotoAndPlay (2)
}}
im not sure if this is what you meant but i tried my best
cheers, Blake
p.s. i didnt test it so im not sure if it will work
smurf123
01-31-2004, 03:37 AM
wut i mean is i have the root for the number going down each second.
its
for a MC and it has 2 frames
second frame has
_root.number-=1
and i want to make it so on frame 1 in movie when the number becomes 1, an action will happen.
blake
01-31-2004, 04:00 AM
ok put this in your second frame on your movie clip, once again i didnt test it.
if (_root.Number=="1") { "action" }
else {_root.number-=1 }
cheers,Blake
smurf123
01-31-2004, 10:12 PM
Umm. I wrote this script and it didnt work. Tell me what will make it work please.I WROTE IT IN THE FRAME JUST SO YOU KNOW!!
if (_root.sec == "1") {
gotoAndStop(2);
}
blake
01-31-2004, 10:18 PM
ehh...
the only thing i can think of is the variable in the dynamic text box, make sure it is called sec , also make sure that the text box is on the stage and not in any other movie clips or else it would look summin like this
if (_root.movieclipvariable.sec == "1") {
gotoAndStop(2);
}
if none of this helps add an attachment with the fla. on your next post so we can play around with what you have
cheers, Blake
smurf123
02-01-2004, 01:11 PM
heres the link to get it. www.geocities.com/smurf_jon2/ssamp.fla
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.