Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Re: Tell Target not working properly!?! Need help! |
From: | Bob Shuster |
Date: | Mon, 10 Jul 2000 22:40:30 +0100 |
I must be missing something obvious, but I've spent two days trying
to get this working and it's driving me nuts. I just know it has
something to do with how I'm addressing the variables!
Here's what I'm trying to do - I have a movie clip in my swf called
"progressMC". progressMC is a progress bar with 100 frames where the
bar itself is tweened from left to right over that 100 frames. On
another layer in that MC, I have a stop action on each frame.
Then on the main level I have the following actionscript:
Frame 01: (set percentage to preload at 75%)
Label: stop
Set Variable: "targetFrame" = _totalframes * 0.75
Frame 03: (calculate how much of desired preload has loaded and tell
progressMC to go to that frame)
Label: check2
Set Variable: "percent" = int ( _framesloaded / targetFrame ) * 100
Begin Tell Target ("/progressMC")
Go to and Stop (percent)
End Tell Target
End If
Frame 05: (loop back to Frame 03 unless desired preload amount has
been reached)
Label: <none>
If (percent >= 99)
Go to and Play ("start")
Else
Go to and Play ("check2")
End If
Frame 07: (actual start of content)
Label: start
I think my programming is good, but for some reason it's just not
working. It preloads 75% then jumps to "start" but the progress bar
never moves. As I said, I suspect there is something wrong with my
variables in the
Set Variable: "percent" = int ( _framesloaded / targetFrame ) * 100
line in Frame 03. I've tried lots of permutations on this but nothing works!
I also tried:
Frame 03:
Label: check2
Set Variable: "percent" = int ( _framesloaded / targetFrame ) * 100
If (percent > oldpercent)
Begin Tell Target ("/progressMC")
Go to Next Frame
End Tell Target
Set Variable: "oldpercent" = percent
End If
which also didn't work. Help! :) - Bob Shuster
--
-=< protonMEDIA - the future of web design! >=-
-=< email: BobprotonMEDIA [dot] com phone: 215-721-8798 >=-
-=< website: http://www.protonMEDIA.com FAX: 215-721-8643 >=-
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Tutorial critique, Michael Dunn
Re: FLASH: Tutorial critique, L. Olander
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]