I'm using Flash Pro 8, and the compiler isn't recognizing _accProps for a
button instance. I'm not having any trouble setting _accProps properties for
a movie clip, but the following code returns an error when attempt to
publish. Any idea what would cause this? Code and error message are pasted
below. 

//Here's the code: 

if(btn._accProps == undefined) btn._accProps = new Object();
btn._accProps.name = continent;
btn._accProps.description = accDesc;
btn._accProps.shortcut = "Ctrl+N";
btn.tabIndex = i+1;

//============= 

//Here is the error I get: 

There is no property with the name '_accProps'.
                if(btn._accProps == undefined) btn._accProps = new Object();

**Error** Scene=Scene 1, layer=script, frame=2:Line 79: There is no property
with the name '_accProps'.
                btn._accProps.name = continent;

**Error** Scene=Scene 1, layer=script, frame=2:Line 80: There is no property
with the name '_accProps'.
                btn._accProps.description = accDesc;

**Error** Scene=Scene 1, layer=script, frame=2:Line 81: There is no property
with the name '_accProps'.
                btn._accProps.shortcut = "Ctrl+N";

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to