Ok so I would post my code but I cant cause its a mess because this is my first Flash experience.
Here's a link to my document.
It gets an error in the output when I test it(control + enter). Click on easy guess a number and wait till you win. I cant click play again.
http://rapidshare.co...umbers.fla.html
Flash AS3 Error that I dontI need help in Flash. I am using AS3!
Page 1 of 1
7 Replies - 782 Views - Last Post: 12 December 2009 - 12:38 PM
Replies To: Flash AS3 Error that I dont
#3
Re: Flash AS3 Error that I dont
Posted 07 December 2009 - 03:26 PM
I would help but I really don't want to download that file, can you not post the code you seem to be having problems with?
#4
Re: Flash AS3 Error that I dont
Posted 07 December 2009 - 05:22 PM
#5
Re: Flash AS3 Error that I dont
Posted 08 December 2009 - 02:09 AM
Well how about you post the error?
#6
Re: Flash AS3 Error that I dont
Posted 10 December 2009 - 08:11 PM
Here is the start of your problem
you have this guessandcheck method with no parameters, you need to establish what it does in your code so that you can use its method call properly
and you really need to work on your CamelCase or your just going to get lost in your code, try to keep it a little more orginized and you have your code spread through out far to many frames, you should learn how to creat a AS3.0 class so that all your code is in one nice neat separate document
guessandcheck.addEventListener(MouseEvent.CLICK, function()
{
guessnumber = Number(input.text);
if (level==1)
{
you have this guessandcheck method with no parameters, you need to establish what it does in your code so that you can use its method call properly
and you really need to work on your CamelCase or your just going to get lost in your code, try to keep it a little more orginized and you have your code spread through out far to many frames, you should learn how to creat a AS3.0 class so that all your code is in one nice neat separate document
#7
Re: Flash AS3 Error that I dont
Posted 11 December 2009 - 05:30 PM
Shalzaon, on 10 Dec, 2009 - 07:11 PM, said:
Here is the start of your problem
you have this guessandcheck method with no parameters, you need to establish what it does in your code so that you can use its method call properly
and you really need to work on your CamelCase or your just going to get lost in your code, try to keep it a little more orginized and you have your code spread through out far to many frames, you should learn how to creat a AS3.0 class so that all your code is in one nice neat separate document
guessandcheck.addEventListener(MouseEvent.CLICK, function()
{
guessnumber = Number(input.text);
if (level==1)
{
you have this guessandcheck method with no parameters, you need to establish what it does in your code so that you can use its method call properly
and you really need to work on your CamelCase or your just going to get lost in your code, try to keep it a little more orginized and you have your code spread through out far to many frames, you should learn how to creat a AS3.0 class so that all your code is in one nice neat separate document
so how do i add parameters
rather what would i use
and thanks for the tip about classes
#8
Re: Flash AS3 Error that I dont
Posted 12 December 2009 - 12:38 PM
you would need to add something along these lines
that way you can call your guessAndCheck(); method any time you need too
var guessAndCheck:uint or int
function guessAndCheck():void
{
guessAndCheck = "value"
}
that way you can call your guessAndCheck(); method any time you need too
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|