This content has been marked as final. Show 6 replies
BUMP - I was really hoping someone could respond to this post, as I'm interested in hearing possible solutions.
Using your code except for the Embed, and a SWF of mine, this works fine:
Can you attach your code along please. I converted the file to swf8 but it does not help. Can somebody please have a look at the sample project I've posted too maybe? Here's the link again http://akube.com/TestProject.zip
...well, ah... :(
I do not use Flash but rather SWiSHmax, a "poor mans flash."
So I have no .fla, instead a .swi. Would that help?
There is literally no code in the swi for Flex strips it out anyway. Instead I add any needed code at runtime from the Flex .swf.
Basically, off the _root I have a MC called wrapper. In wrapper I make the "preloader" resource as another MC containing the progress bar, text filed, background, etc.. I name the "asset" wrapper MC as "Preloader" and export as SWF8.
So in your code, candleAsset (MC) IS the wrapper MC. So in dot.dot language, we have:
Hope this helps.
Thanks for your replies. I was able to make it work by typecasting the object to sprite instead of movieclip.
var candleClip:MovieClip = new candleAsset() as MovieClip;
now looks like
var candleClip:Sprite = new candleAsset() as Sprite;
Don't know what's going on but this worked :-) I'm still curious why this worked so if you know, please feel free to comment.