Useful thread on AS3 dynamic class instantiation

Here’s a useful thread on AS3 dynamic class instantiation. It’s particularly useful in the way the discussion and code snippets/solutions evolve over the thread. Simple stuff but very useful.

http://www.kirupa.com/forum/showthread.php?t=292617

Advertisements

2 comments so far

  1. subhash on

    Hi
    pls help out of this

    I have one Movie Clip name it as a mc
    in the first frame i had write this action script
    _root.onLoad();
    mc.loadMovie(_root.imageFilename);

    so i am just changing the image externally bu using parameters so that i can change the images by sending new parameters

    Now the Problem is if i upload a big images in that one it show up a big image i dont wanna like this i wanna show it in 150 x150 px can u pls tell me aboout how to fix this one the whole images in a 150 x150 px

  2. sambrick on

    @subhash

    Hello, I am not sure if I understand your comment. Is it related to the blog post you are commenting on or is it about dynamically loading and resizing images in AS2? Either way, here is a different blogpost that seems to deal with your problem in both AS2 and AS3. Hope it helps:-

    http://sara-intop.blogspot.com/2007/08/resize-image-dynamicallyproportionally.html


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: