ubi.com    Forums  Hop To Forum Categories  Ghost Recon  Hop To Forums  Ghost Recon Off-Topic Chat    Help needed from any other Flash Deveolpers

Moderators: MiNeRvA.
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Spud
Posted
If any of you guys on the forum know somthing about action script, I coudld use some help.

I am tryin to use a variable to show the players score when he clicks on a target.

I can get the score to move up in points and all, but I cant make it so when it reaches a certain number to make it do somthing.

What I did :

The button named "target" has the script:

on (release) {
_root.myScore += 1;
}

Now i have a dynamic text field with the var. name myScore

everything from here works fine the targets clicked add 1 point to the score.

Here is my problem though...I added this script to frame 1 on the main timeline:

if (myScore >= 10) {
gotoAndStop(2);
}

I thought that would work, but I am new to action script so if any of you guys know how to make this work, please reply.
 
Posts: 511 | Registered: Mon July 21 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

ubi.com    Forums  Hop To Forum Categories  Ghost Recon  Hop To Forums  Ghost Recon Off-Topic Chat    Help needed from any other Flash Deveolpers