Join Login


 CheckBox Component Actionscript
 by AA1995 - Jul 13, 2010

Hello.
-I am using Flash Macromedia 8
-The Actionscript is i believe Actionscript 2.0

-My Scripting In the Actions On Frame 1 (only one frame & layer) Are as Follows:

mytxt.text = "You go on..";

facebookcb.addEventListener(MouseEvent.CLICK, changelist);
googlecb.addEventListener(MouseEvent.CLICK, changelist);
smackjeevescb.addEventListener(MouseEvent.CLICK, changelist);
facebookcb.addEventListener(MouseEvent.CLICK, changelist);

function changelist (event:MouseEvent):void{
mytxt.text = "You go on..\n";
if(facebookcb.selected ==true) mytxt.appendText(facebookcb.label + "\n");
if(googlecb.selected ==true) mytxt.appendText(googlecb.label + "\n");
if(smackjeevescb.selected ==true) mytxt.appendText(smackjeevescb.label + "\n");
if(youtubecb.selected ==true) mytxt.appendText(youtubecb.label + "\n");
}

[The question is what site you go on, so i have facebook, google etc. lol :P)

Where ever MouseEvent is, its not ligthing up and whan i export it says:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 8: The class or interface 'MouseEvent' could not be loaded.
function changelist (event:MouseEvent):void{

Total ActionScript Errors: 1 Reported Errors: 1

If you need any other info on this situation just ask! Thank you!


AA1995
United States
Posts:7
Joined:Jul 13, 2010
 RE: CheckBox Component Actionscript
 by RiverCityGraphix - Jul 13, 2010

Well, the fact that you are using AS2 instead of AS3 is the problem. Event Listeners were not added until AS3 so that makes sense why it could not be loaded. If you do a quick search on Google you can find quite a few resources on using the checkbox with AS2.


Be sure to subscribe on YouTube.

Do you take great photos? Consider selling them on Dreamstime.
RiverCityGraphix
United States
Posts:327
Joined:Nov 21, 2009
 RE: CheckBox Component Actionscript
 by AA1995 - Jul 13, 2010

Hmm..ok then! That's fine but ill probably get AS3 someday..i dunno. But at least theres nothing wrong with my computer, lol.

Thanks!


AA1995
United States
Posts:7
Joined:Jul 13, 2010
  
Home About Contact Forum Youtube Privacy Policy
Copyright © 2009-2011 RiverCityGraphix.All Rights Reserved.