Skip to main content
Inspiring
April 21, 2006
Answered

AS2 strict type components problems

  • April 21, 2006
  • 5 replies
  • 622 views
Hi Flasher:

I try to work with the macr. components using AS2 strict type, but allways i get a error message and the final swf dosen´t work. Any idea ?????

This is the code & the error message

Flash 8
Mac OS 10.4.6

Tks ;-D
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Retroboy_mx
Hi & thks for the reply.

The code works fine in a G4 with Mac OS X 10.4.4 without modification...??? very freaky behavior.
And if I use the absolute or relative path timeline it work´s fine.

_root.color_cb.addItem({data:0x000000, label:'Black'});

;-D - - - - - { flash turns very very strict }

Thks again and Happy Flash
be Fearless.

5 replies

Inspiring
April 21, 2006
Would have to see the complete class to see what you are doing but with the code you posted: it doesn't work that way. There is no relation between the prop in the class and the cb on the stage. Have a look ate the attached code.

Retroboy_mxAuthorCorrect answer
Inspiring
April 21, 2006
Hi & thks for the reply.

The code works fine in a G4 with Mac OS X 10.4.4 without modification...??? very freaky behavior.
And if I use the absolute or relative path timeline it work´s fine.

_root.color_cb.addItem({data:0x000000, label:'Black'});

;-D - - - - - { flash turns very very strict }

Thks again and Happy Flash
be Fearless.

Inspiring
April 21, 2006
>>_root.color_cb.addItem({data:0x000000, label:'Black'});
That's obvious because the cb IS on the _root. And I'm doing the same but I pass the _root as the target_mc. Which makes it more OOP because you can pass any mc as the target.