Resize dynamically loaded image

This is a discussion on "Resize dynamically loaded image" within the Flash & Multimedia Forum section. This forum, and the thread "Resize dynamically loaded image are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 31st, 2007, 04:22
SuperMember

SuperMember
Join Date: Apr 2007
Location: Sydney
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Resize dynamically loaded image

Hi,

I am bringing an image name into flash using flashvars. How do I resize the image in flash to match the size of the movie clip??

Thanks,

Nathan.
Reply With Quote

  #2 (permalink)  
Old Aug 31st, 2007, 14:40
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Resize dynamically loaded image

You would want to set the image to an object (aka a graphic or movieclip on import(so put it inside one)

If the movieclip has an instance name of img_holder, then you can resize the movieclip like so:

img_holder._width = value;
img_holder._height = value;
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Aug 31st, 2007, 22:36
SuperMember

SuperMember
Join Date: Apr 2007
Location: Sydney
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Resize dynamically loaded image

I don't want to resize the actual movie clip, it has to be 240 x 180. Problem was that the images users upload can be in any resolution... say 800 x 600. When I dynamically loaded this into the MC it only displayed the top left 240x180px.

I've since changed tack, and am now resizing the images when they are uploaded using php,

Thanks for the reply though!!

Cheers,

Nathan.
Reply With Quote
Reply

Tags
resize dynamic image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting "image loaded successfully" SlimShady JavaScript Forum 5 Dec 22nd, 2006 16:08
Resize image-how to get lenght of image nicetomeetu PHP Forum 9 Sep 19th, 2006 22:39
Resize image-how to get lenght of image nicetomeetu Introduce Yourself 5 Sep 18th, 2006 14:08
new to css- how to strech the whole layout when a very wide image is loaded. sanchopansa Web Page Design 8 Jul 22nd, 2006 09:11
PHP Image Resize problem jono PHP Forum 6 Jun 7th, 2005 11:34


All times are GMT. The time now is 07:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43