Skip to main content
Inspiring
June 7, 2006
Question

How can i create a button with a dynamic picture?

  • June 7, 2006
  • 3 replies
  • 169 views
How can i create a button with a dynamic picture using mcLoader.loadClip
();?



I did create one with it doesnt seem to be working. It loses all its
functions (eg onPress onRelease)

Thanks



This topic has been closed for replies.

3 replies

June 8, 2006
good solution
Inspiring
June 8, 2006
I solved thep roblem anyway creating a mc.. then creating another MC withing
the first MC and i change the picture on the second MC. And i apply the
propierities to the first MC , and works

If i have troubles with mu sistem on the future I will use yours!

Thanks!

"the fleece" <webforumsuser@macromedia.com> escribi� en el mensaje
news:e67i88$jlf$1@forums.macromedia.com...
> the image loading will remove any properties or functions the mc had.
>
> you need to apply them in the onLoadInit function
>
> mclListener.onLoadInit = function(target_mc:MovieClip) {
> target_mc.onRollOver=blah blah
> };
> var image_mcl:MovieClipLoader = new MovieClipLoader();
> image_mcl.addListener(mclListener);
> image_mcl.loadClip(blah, blahblah);
>
>


June 7, 2006
the image loading will remove any properties or functions the mc had.

you need to apply them in the onLoadInit function

mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRollOver=blah blah
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip(blah, blahblah);