Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-09-2009, 09:51 PM   #1
Ljusdahl
Registered User
 
Join Date: Oct 2009
Posts: 11
Default TypeError: Error #1010: A term is undefined and has no properties

Hi there!
I'm new to flash and even programming in general, so I'd appreciate any help i can get.

I followed a video tutorial on how to make loading bars. Despite me following the tutorial to the letter, I receive this error:

TypeError: Error #1010: A term is undefined and has no properties
at LearningFlash2_fla::MainTimeline/loaderF()


The code is as follows:
Code:
stop();

addEventListener(Event.ENTER_FRAME, loaderF);
function loaderF(e:Event):void{
	var toLoad:Number = loaderInfo.bytesTotal;
	var loaded:Number = loaderInfo.bytesLoaded;
	var total:Number = loaded/toLoad;
	if (loaded == toLoad){
		removeEventListener(Event.ENTER_FRAME, loaderF);
		gotoAndStop(6);
	}else {
		preloader_mc.preloaderFill_mc.scaleX = total;
		preloader_mc.percent_txt.text = Math.floor(total*100)+ "%";
		preloader_mc.ofBytes_txt.text = loaded + "bytes";
		preloader_mc.totalBytes_txt.text = toLoad + "bytes";
	}
}
Any ideas?

Thanks in advance
Ljusdahl
Ljusdahl is offline   Reply With Quote
Old 10-10-2009, 12:27 AM   #2
elytexeira
Member
 
Join Date: Jul 2009
Posts: 89
Default

there is enough information, with the code you posted. I think that you hasn't put the preloaded_mc to the stage.


----------------------
Currently working on http://www.probooks.com.mx
elytexeira is offline   Reply With Quote
Old 10-10-2009, 08:45 AM   #3
Ljusdahl
Registered User
 
Join Date: Oct 2009
Posts: 11
Default

Sheesh, it works now. Apparenty I simply spelled some things wrong ^^
Thanks for your time.

Last edited by Ljusdahl; 10-10-2009 at 09:06 AM.
Ljusdahl is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:07 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.