Skip to main content
Participant
March 21, 2012
Question

fill in color with action script 2 and want to check the correct of each column(mc)

  • March 21, 2012
  • 1 reply
  • 363 views

first user can fill in the color to column of cable.

user have to check the correct answer when it press the check button.

but it only show the correct word in the text field

see my action please help me fix

the action is in green button

on(release)

{

if(Cable11.color == 0xFF9900)

{anwser = "Correct"}

else

{anwser = "Wrong"}

}

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 21, 2012

use the trace() function to debug.

p.s.  unless Cable11's color is assigned using actionscript, you can't determine its color property using actionscript unless you use the bitmapdata class.