Posting my material for my session at FlashintheCan, Flash MX 2004 Component Development Using the Version 2 Architecture. The session went really well, thanks to everyone who attended. From the feedback I received after the presentation, everyone seemed to have found it informative.
The presentation material includes the PowerPoint presentation file, and the simple sample component (StatusIcon) built during the session.
It was shweeet
Good stuff. U missed out lastnight dude
Hi,
One thing that I cant seem to find a tutorial for:
How do i program my component so after its ready when i drag it and drop it on any mc in the stage it will automatically set its parameter ‘Target’ to the instance name of the mc under it.
Karl: You would be interested in looking to implement the _targetInstanceName property. There isn’t much documentation on the subject, a quick google search turned up http://www.flashcomponents.net/tutorials/triangle/triangle.html
It’s also probably good to note that although this property is supported by Flash, it seems to not work with SWCs. If you are building a component that you want to distribute as a SWC this will not be an option.
Here you can find a discussion on the use of _targetInstanceName with the v2 component architecture:
http://www.martijndevisser.com/archives/000010.php
Thx alot, i’ve figured out the solution:
[Inspectable]
public function set _targetInstanceName(t:String):Void{
__target=eval(t); //__target is private member of Object type
}
public function get _targetInstanceName():Object{
return __target;
}
Karl: That worked for when you convert your component to a SWC too?
Pingback: thebadtiming.com
Not really, i’ve tested it in many ways and it just wont work as a compiled clip. But i’m sure there is a workaround till MM comes up with the fix.
Hello there,
Iwas browsing the web and found this blog. Some interesting quotes. Keep them coming!
Alice
Low cost loans
Nice siteGod knows
Bye!
Jill Jones
Welcome Home Everyone Home
Cya
Max
Hi Guys
Thanks for taking the time posting. MSN have finally launch blogs, what was with the delay?
Call Centers Agent
Cya
Bruce