|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
copied this code (typewriter effect) which works but the swf file isn't moving
from the scene onto the next. i've only got 2 scenes at the moment but it's not progressing. please can someone ? thanks FRAME1 stop(); start_btn.onRelease = function() { gotoAndStop(5); }; FRAME3 var q:Number = 1; var typeSpeed:Number = 100; // time between letters in milliseconds; smaller numbers dictate faster typing var copy:String = "Welcome to the CV of :\n Michael Homer"; function type():Void { textbox = copy.substring(0, q); q++; if (q == copy.length) { textbox = copy; clearInterval(typeInterval); } } typeInterval = setInterval(this, "type", typeSpeed); |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
why would it go to the next scene? you're telling it to stop on frame 1, then go to and stop on frame 5...
|
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
It looks as though you are saying gotoAndStop(5) when you mean gotoAndStop(3)...or else your frame3 code should really be in frame 5, if that's where you've put a textbox.
|
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
thaks for that interesting reply. i don't know anything about actionscript
hence me asking about something that is so simple to yourself. i just copied it into flash and voila it worked but the scene didn't move on...... |
|
![]() |
| Outils de la discussion | |
|
|