Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

action script on a button and dynamic textbox???

Status
Not open for further replies.

Jennyucf

Instructor
Jun 22, 2001
215
US
Hi, there

I have difficulty in achieving the following effect:

Press button 1, the numbers in dynamic text box adds continuously; Release button 1, the numbers stopped.

I put the dynamic textbox in the mc "figure".I tried it in two frames, with
stop() in the first frame
gotoAndPlay(1) in the second frame

And for button, I put the following action:
on (press) {
n = 3;
n = Number(n)+1;
}
on (release) {
tellTarget (_root.figure) {
stop ();
}
}

But, it DIDN'T WORK AT ALL. What is the problem?? Please take an "expert" look at it. Thank you!!
 
Hi, there

Did I make sense in my question?? Why isn't there any response on my question? Sigh...:-(
 
I'm sorry, here, I'll try to help...look for 'continuous feedback button' on flashkit.com It should get you started on what your trying to do...

As soon as you make that button, you can put the actionscript in it to make it advance...it should be pretty similar to the code you have there, unless dynamic text boxes can't be called like that...in that case, you might just add to a variable and then have the text box assigned to that variable.
Regards,
AnthLOLny
----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Hey, she said Press and Release...she NEEDS a continuous feedback button!...Grrr...LOLLOLLOL

But she can also incorporate your code...;)
Regards,
AnthLOLny
----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top