Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-11-2012, 09:57 AM   #11
mindzfreak
Registered User
 
Join Date: Aug 2012
Posts: 24
Default

Quote:
Originally Posted by FusionFactor View Post
Judging by the error code, BackImage, PlayerImage, EnemyImage, and Pop are all nonexistent classes.

If you have created those classes, then they're not linked.
Alright, i've linked them. now im left with the "Pop". The pop is a sound so i dont think im able to solve this now.. how do i insert a "pop" sound inside actionscript in the first place?
mindzfreak is offline   Reply With Quote
Old 08-11-2012, 04:13 PM   #12
thawfeek_yahya
Senior Member
 
thawfeek_yahya's Avatar
 
Join Date: Oct 2009
Location: India
Posts: 124
Send a message via Yahoo to thawfeek_yahya Send a message via Skype™ to thawfeek_yahya
Default

Do the same as with movieClips, open the properties of the pop sound in the library and give the Class name as Pop.
thawfeek_yahya is offline   Reply With Quote
Old 08-11-2012, 05:12 PM   #13
mindzfreak
Registered User
 
Join Date: Aug 2012
Posts: 24
Default

Quote:
Originally Posted by thawfeek_yahya View Post
Do the same as with movieClips, open the properties of the pop sound in the library and give the Class name as Pop.
Erm i dont quite understand what u meant.. what do u mean?
mindzfreak is offline   Reply With Quote
Old 08-11-2012, 05:32 PM   #14
thawfeek_yahya
Senior Member
 
thawfeek_yahya's Avatar
 
Join Date: Oct 2009
Location: India
Posts: 124
Send a message via Yahoo to thawfeek_yahya Send a message via Skype™ to thawfeek_yahya
Default

Quote:
now im left with the "Pop".
Quote:
Desktop\Balloon Saw\Game.as, Line 43 1180: Call to a possibly undefined method BackImage.

Desktop\Balloon Saw\Game.as, Line 112 1180: Call to a possibly undefined method PlayerImage.

Desktop\Balloon Saw\Game.as, Line 136 1180: Call to a possibly undefined method EnemyImage.
Have you solved this errors ? if yes , do the same for the sound . do you get it ?
thawfeek_yahya is offline   Reply With Quote
Old 08-11-2012, 05:35 PM   #15
thawfeek_yahya
Senior Member
 
thawfeek_yahya's Avatar
 
Join Date: Oct 2009
Location: India
Posts: 124
Send a message via Yahoo to thawfeek_yahya Send a message via Skype™ to thawfeek_yahya
Default

if you don't have any sound Object ( sound files) in your (.fla)library import one. and give the linkage name ( class name ) as "Pop"
thawfeek_yahya is offline   Reply With Quote
Old 08-11-2012, 07:59 PM   #16
[afz]snickelfitz
Senior Member
 
[afz]snickelfitz's Avatar
 
Join Date: Dec 2011
Location: Tucson, AZ
Posts: 1,888
Default

Read the following tutorials. You can't write functional OOP code if you don't have a firm grasp of the basics. Seriously.
http://active.tutsplus.com/sessions/as3-101/

BTW, don't use capital letters in directory names, variables, functions or instance names. It's a really bad habit to get into, and it violates established AS3 naming conventions. (basically, makes your code and error reports difficult to interpret)
[afz]snickelfitz is offline   Reply With Quote
Old 08-12-2012, 10:25 AM   #17
mindzfreak
Registered User
 
Join Date: Aug 2012
Posts: 24
Default

Quote:
Originally Posted by thawfeek_yahya View Post
if you don't have any sound Object ( sound files) in your (.fla)library import one. and give the linkage name ( class name ) as "Pop"

Where to get sound file?
mindzfreak is offline   Reply With Quote
Old 08-12-2012, 12:08 PM   #18
thawfeek_yahya
Senior Member
 
thawfeek_yahya's Avatar
 
Join Date: Oct 2009
Location: India
Posts: 124
Send a message via Yahoo to thawfeek_yahya Send a message via Skype™ to thawfeek_yahya
Default

Choose File --> Import --> Import to Library to open the Import dialog box.

Select the sound file and click Open.

I suggest you to do a basic search on google for how to import sound to fla files.
thawfeek_yahya 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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:52 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, 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.