Build a component - Assistance Please.

  • Jaw
  • Graduate
  • Graduate
  • User avatar
  • Posts: 132
  • Loc: Minneapolis, MN

Post 3+ Months Ago

Hello all I'm having a little trouble building my own component in Flash 8.
The only tutorial I have found that seems to cover it fairly well is here...

http://www.video-animation.com/flash8_003.shtml

The problem is that it doesn't work. It throws errors stating
Code: [ Select ]
There is no property with the name 'boundingBox_mc'.boundingBox_mc._height = 0;


It seems to be throwing back a string... If that's what the single quotes are all about and then a movieclip with a property. That is impossible so I must be reading the debug info wrong.

The tutorial listed seems to be half-arsed and still more complete than most. Can anyone help to shed some light on this.

-Jake
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

that's because there's a typo in the class.
private var boundingBox_mx:MovieClip; -> replace this with:
private var boundingBox_mc:MovieClip;
here is another link on how to create components .... and i think it's easier and doesn't need to import anything else.
create triangle component
  • Jaw
  • Graduate
  • Graduate
  • User avatar
  • Posts: 132
  • Loc: Minneapolis, MN

Post 3+ Months Ago

Well, doesn't a typo make all the difference?!....

It worked perfectly. Thanks a million.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 17 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.