Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 28th, 2003, 06:45 AM
orange.man orange.man is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 18 orange.man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Loading image into Flash

Hi all,

I'm loading a high quality image from a xml file using:
PHP Code:
 loadMovie(imagePathtargetClip); 



The only problem is that when they get loaded and shown in flash, their quality has been drastically reduced, making the images look like rubbish.

I'm exporting the movie with the following options:
Version: Flash Player 6
Load order: bottom up [what does this actually mean?]
JPEG quality: 100

What is making the image quality so bad? Do I have to do some transformation to the loaded movie to get the origional image quality shown in Flash?

Thanks in advance....

Reply With Quote
  #2  
Old November 28th, 2003, 06:57 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,566 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 2 h 24 m 15 sec
Reputation Power: 518
Facebook MySpace
Hi, got some links for you:

Improving bitmap image quality in Flash

JPEG Quality publish setting does not affect image quality

Their both off the macromedia site. I was going to ask if you had any form of scaling applied but the first link says that as well.

Hope they help

-Tann

Reply With Quote
  #3  
Old November 28th, 2003, 08:10 AM
orange.man orange.man is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 18 orange.man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi there,

Thanks for the links, very intresting.
Both articales seem to be refering to images imbeded into the flash movie, rather than images imported into flash at run-time, even though the 2nd link talks about imported images, although I'm not sure if they mean imported into the Movie during playback, or imported prior to the movie being exported into swf.

Quote:
http://www.macromedia.com/support/f...jpg_quality.htm
Solution
Follow the steps below to change the default compression settings for bitmaps included in a Flash movie.

1 Open your movie's Library window by choosing Window > Library.

2 Right-click (Windows) or control-click (Macintosh) on a bitmap image in the Library window and choose Properties.

Note: If you've converted the original bitmap to a graphic symbol, make sure you're selecting the bitmap itself and not the symbol.

3 For imported JPEG files, deselect the Use imported JPEG data option and specify a Quality setting between 0-100.


One thing I have noticed is that when I play the stand-alone swf file, and compare it to the movie played in the HTML file generated by flash, the stand-alone has perfect image quality, while the HTML file shows reduced image quality & is larger in x&y, almost as if the swf has been scaled larger.

Don't quite understand this, as in my example the swf file is 600 x 316, with the same setting in the HTML code?

Not quite sure where to go from here, image quality is very important for this movie, and it's not possible to have all the images imbeded into the movie as the data is being pulled from a database.

Reply With Quote
  #4  
Old November 28th, 2003, 08:21 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,566 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 2 h 24 m 15 sec
Reputation Power: 518
Facebook MySpace
Hi, ok well maybe its the shockwave file it self. Make sure that automatic scaling is off (last page of publish settings). For a quick test stick this in the first frame of your movie:

Stage.scaleMode = "noScale";
Stage.align = "tl";

That will turn off scaling and set the alignment to the top left.

-Tann

Reply With Quote
  #5  
Old November 28th, 2003, 08:33 AM
orange.man orange.man is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 18 orange.man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I can't thank you enough.....

Turned off the scaling which added the tiny bit of code into the HTML: <param name=scale value=noscale />
and now it works perfectly...

Thanks...

Reply With Quote
  #6  
Old January 4th, 2004, 05:22 PM
ceill44 ceill44 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 ceill44 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
a side note

the image you can import cannot be a ".gif' format. Won't work.

Reply With Quote
  #7  
Old February 21st, 2004, 02:53 PM
bigmat bigmat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 bigmat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Not too late I hope...

Hi all,
I actually have the exact same problem, i.e. the quality of dynamicly imported jpeg (with loadMovie) is really bad. I tried to turn off the scaling but no effect...
I have an additionnal problem (which might be linked, for all I know) : I am quite sure I am doing something wrong, but the pixel size seem to vary in different part of the animation. For instance, a dynamicly loaded image is 70-pixel large but I need a 82-pixel large mask over it to let it show entirely... My fault I am sure, but where...
I welcome any suggestion !
Thanks,
Matt

Reply With Quote
  #8  
Old February 21st, 2004, 02:58 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,566 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 2 h 24 m 15 sec
Reputation Power: 518
Facebook MySpace
Hi, if you have the image loaded into a blank movie that you made in the library then select that blank movie on the stage. If the movie has some content to start with such as a box then open the movie and set the box size to 70x?. Align it to 0,0. Now go back to the movie which contains this movie. If you select the movie the image is to be loaded into it's size (in the properties window) should be 70x?. If it's not then now is the time to set it to that, again via the properties window.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #9  
Old February 21st, 2004, 03:22 PM
bigmat bigmat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 bigmat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks a lot for this tip, should help a great deal !
Regarding the dynamicly imported jpeg quality, I noticed something funny: the quality is great (after I turned off the scaling) in Flash Player 6 but really poor in Flash Player 7. Can someone explain this ?
Thanks a lot again !!!
Matt

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Loading image into Flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway