header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
princess
Points:0
Posts:0

2/19/2011 4:21:56 PM

Title: scoring problem


how would i continue my scoring to the next level?

i had this syntax(succesfull):

at the frame:
score=0;

then to the object(symbol):
if (this.hitTest(_root.char)) {
// if this hits the char (_root.char)
_root.score.text++;
// _root.score goes up 1
unloadMovie(this);
// this movie clip is unloaded
}

my syntax at the next level(scene)

at theframe:
score2=_root.score

then to the object(symbol):
if (this.hitTest(_root.char)) {
// if this hits the char (_root.char)
_root.score2.text++;
// _root.score goes up 1
unloadMovie(this);
// this movie clip is unloaded

(the score diplays "NaN" when i hit the object)



1
longjasp
Points: 10
Posts:0
2/19/2011 4:24:31 PM



code uses flash as2


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions