Action Scripting problem (creating a preloader in flash)

  • abstractdesign
  • Newbie
  • Newbie
  • abstractdesign
  • Posts: 5

Post 3+ Months Ago

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!
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

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);
  • abstractdesign
  • Newbie
  • Newbie
  • abstractdesign
  • Posts: 5

Post 3+ Months Ago

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
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

does anything show in the textbox?
  • abstractdesign
  • Newbie
  • Newbie
  • abstractdesign
  • Posts: 5

Post 3+ Months Ago

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
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

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.
  • abstractdesign
  • Newbie
  • Newbie
  • abstractdesign
  • Posts: 5

Post 3+ Months Ago

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
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

Can you post an fla for us to look at?
  • emedia
  • Novice
  • Novice
  • User avatar
  • Posts: 23
  • Loc: India

Post 3+ Months Ago

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 3 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.