Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash 6 to 8 problems

New Here ,
May 04, 2006 May 04, 2006
Howdy.

For school, we've been set the task of making a folio website made entirely in flash. I recently just added an mp3 player to it, after finding an obscure example somewhere. Using Flash 8, I ended up converting the Flash 6 file to Flash 8, and after the convert, a small bit of script doesn't seem to work anymore.

A timer starts at the beginning of a song, letting one know how long the song has currently elapsed. Not having an advanced knowledge in Actionscript, or the difference between Actionscript 1.0 and 2.0, i'm in a bit of a pickle. I'd simply convert back to Flash 6, but I'm using enhanced stroke and text functions.

The code is on frame 1, as is 2 dynamic text boxes, with the instance name and variable name of minutes, and seconds

If you can fix it, only change/neaten the timer functions, 'cause I don't know if anything else would change with alterations.

Any help would be greatly appreciated.

Here's the script here:

TOPICS
ActionScript
393
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2006 May 04, 2006
try changing changing totalTime to something else like totalTimeVar. totalTime is a property of the media class in flash 8. i'm not sure that will remedy your problem, but it seems like a good place to start.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2006 May 04, 2006
Hmm... I gave that a try, but no dice unfortunately.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 04, 2006 May 04, 2006
ensure all your variables are initialised BEFORE they are used. I don't
have time to thoroughly look at your code .. but ensure you define things
like 'pauseLength' before it is used .. leaving things undefined will not
work in SWF7 or later (but does in SWF6)
--
Jeckyl


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2006 May 04, 2006
what's the textfield (that should display elapsed time) displaying
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2006 May 04, 2006
kglad - All it displays the "0" and the "00" that the variables set in their respective fields

Jeckyl - All the variables are defined, cause tried renaming, and rearranging stuff, but the timer still doesn't work, it just sits on 0:00
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 04, 2006 May 04, 2006
post a link to your fla.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2006 May 05, 2006
LATEST
Okey dokie, here it is: Link
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines