Action Scripting problem (creating a preloader in flash)

  • abstractdesign
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 14, 2008
  • Posts: 5
  • Status: Offline

Post July 14th, 2008, 11:09 pm

I purchased a preloader on Flash den and it's perfect for what I need but it doesn't have a percent loaded half of the preloader just an animation.....so I attempted to create the percent loaded half. I added a layer (called text) and then added a dynamic text filed with a var to referance to in the AS that I added but when I simulated it,it doesn't work!?! Can anyone please help me?? I would be more then willing to send the FLA file for someone to look at and let me know where I am going wrong. I am pretty new to flash and am more on the design side of things so i'm going nuts trying to figure this out. If no one is willing to do it free as a learning experience for me to see how it was done, I will be willing to paypal someone money.

thanks ahead of time to anyone willing to help me!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 14th, 2008, 11:09 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 15th, 2008, 7:22 am

give your text field an instance name and make sure you embed your fonts.

Next look in the actionscript for "getBytesLoaded". It will probably have something about the bar in that area.

then add
Code: [ Select ]
textfieldinstancename.text = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100);
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • abstractdesign
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 14, 2008
  • Posts: 5
  • Status: Offline

Post July 15th, 2008, 10:03 am

hmmmm I tried that and it's still not working....here is what my actionscript was looking like:

_root.myPercentLoaded = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100);

TextBox.text = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100);
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 15th, 2008, 11:01 am

does anything show in the textbox?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • abstractdesign
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 14, 2008
  • Posts: 5
  • Status: Offline

Post July 15th, 2008, 11:15 am

no, not at all....I even checked to make sure it was a easily readable color just for test purposes :(
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 15th, 2008, 11:17 am

did you embed the fonts? If so Make sure the path is correct to the textfield (use the little target at the top of the script window) and remove the variable name from the textfield.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • abstractdesign
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 14, 2008
  • Posts: 5
  • Status: Offline

Post July 15th, 2008, 5:16 pm

yeah and I removed the variable name since I added the instance name

lol i'm pretty surprised that it's stil not working!
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 16th, 2008, 5:42 am

Can you post an fla for us to look at?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • emedia
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 27, 2008
  • Posts: 23
  • Loc: India
  • Status: Offline

Post July 16th, 2008, 6:07 am

Could you post the fla file or send via pm So i can look for it.

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 28 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.