ActionScript 2.0 :: Set The Quality Of A Flash File When Releasing A Button?
Apr 2, 2006can someone tell me th as to set the quality of a flash file when releasing a button
Code:
on (release) {
. . . . . . . .
}
can someone tell me th as to set the quality of a flash file when releasing a button
Code:
on (release) {
. . . . . . . .
}
Ok, so I'm trying to accomplish a seemingly simple task. I have a gallery set up for a website, where if a thumbnail is clicked, a larger version appears on a display. I can't use external swf files because it doesnt add itself to th get BytesTotal, so the loading bar wouldnt include it loading those external swfs. There is a pause before the picture actually loads (I want it preloaded).
Now I have the movie clips i want to exchange in my library, but dont know hwo to get them to become the on-screen movieclip. I have an on(release) function with _root.screen = 'mc_clip1'; is that not the right syntax? is there a better way to load mc's from the library?
I would like to incorporate Flash animations into video editing applications but when I save the Flash files as movies the quality is not there (Flash affects fall off, trails and such). My swf files look great there is no lag and the motion is clean. How can I get swf file quality to video? What is create a Projector?
View 1 RepliesI have created a FLV file using Adobe Media Encoder CS5. I have played it back on Several Media players and it sound fine. I import it into a Scene in Flash CS5 aand when I preview the Scene the audio has degraded and sounds terrible.
The audio is mono at 48 kbps. I cannot find any controls or options to edit the audio of the video. I have rendered it out several times using different settings but it alway plays back the same highly compressed tinny sound.
I asked this earlier but maybe I didn't give enough information. I am working on a website where video quality is very important and the client is delivering me the video already compressed. I then want to import it to flash CS3 and export it as .flv for progressive download with the media playback component. I have done all of this successfully in a sense that it all works but the video quality is not good enough, it's good but the client says it;s a bit grainy. I used the highest setting in Flash, on2 vp6 at 700kbs.
My question is what is the best file format (.mov etc) and what settings should the client use, so I can create the highest quality .flv export from their .mov file? Second question, I used an 8 second buffer but now the client is saying they don't want it to buffer at all. What are the other options besides progressive download, I have never delved into this before?
I have been working on this vrTour viewer as my learning project for flash and pretty much have the thing complete... However, one thing I'm interested in doing is making it continue the onMouseDown command until the user releases the mouse button regardless of if the pointer is over the swf or is outside of it. The way it works now im simply doing a this.onMouseDown/MouseUp on the first frame of layer 1 to capture the mouse clicks.
View 3 RepliesI have been working on this vrTour viewer as my learning project for flash and pretty much have the thing complete... However, one thing I'm interested in doing is making it continue the onMouseDown command until the user releases the mouse button regardless of if the pointer is over the swf or is outside of it.
The way it works now im simply doing a this.onMouseDown/MouseUp on the first frame of layer 1 to capture the mouse clicks.
I'm developing a FLEX application using FLEX Builder with version 3.5 SDK. The problem that I have is that the Browser consumes more and more memory until it slows down or errors. When I run the application using the Flex Builder profiler the Memory usage never gets above 15MB. As I open and close display objects the Memory is released as expected. However, looking at Windows Task Manager the browser consumes more memory every time that I open anything and doesn't release the memory when it is closed. I have tries Google Chrome, Firefox, and IE, they all do the same.
View 1 RepliesOnce I drag and drop the movie clip symbol it will not release the symbol in sum cases I am sending the code. See code below:
f(subject2);
function f(mc:MovieClip):Void{
mc.onPress =function(){
if(!this.index){
this.index=1;
[Code] .....
When I click the quality button, the listener responds (I get the "quality altered" trace), but the quality doesn't change. I don't see a problem in the code, the quality is bound to change because it has to be set as one of the four. What am I doing wrong?
Code:
gameStats.qualityButton.addEventListener(MouseEvent.CLICK, alterQuality)
function alterQuality(event:MouseEvent)
{[code].........
I put this code into my button:
ActionScript Code:
on (release) {
if (_quality="High") {
_quality = "Medium";
[Code].....
When I click it, it will only change it into Medium Quality.
I'm trying to convert my video file to flash flv but the image becomes pixilated and my subtitles become hard to read. what sort of conversion should i use to decrease this pixillation?
View 3 RepliesJust now I've have to add a button to toggle quality in a game I'm working on. I've never had to do it before, but I lolled when I saw this.
Code:
this.stage.quality = StageQuality.LOW;
trace( this.stage.quality ); // traces "LOW"
trace( StageQuality.LOW ); // traces "low"
[Code].....
can someone write a script for a button that sets the quality for Low, medium high. (as in scripts for 3 buttons. each buttons sets a different quality) the experiences that i have made with people in these forums have only been good ones.
View 3 Repliesway to set the quality of a loaded jpeg the way we're able to set the quality on library item? It's pretty neat to be able to set the smoothing, is there a similar way to set quality?? Is there an approach anyone would recommend for dynamically setting the quality on a loaded image?
var loader:Loader = new Loader();
loader.load(new URLRequest("myImage.jpg"));
addChild(loader);
[Code].....
I am trying to make a quality button, a single button that changes the quality to the next setting.
Right now I am using this code:
function changeQuality(event:MouseEvent):void {
if(stage.quality==StageQuality.BEST){
stage.quality=StageQuality.HIGH
}else if(stage.quality==StageQuality.HIGH){
stage.quality=StageQuality.MEDIUM
}else if(stage.quality==StageQuality.MEDIUM){
stage.quality=StageQuality.LOW
}else if(stage.quality==StageQuality.LOW){
stage.quality=StageQuality.BEST
}}
No errors come up, but it doesn't change the quality either.
How do I change the quality of my movie when I press a certian button? I know you could just right click and change it, but some mac users have to go a step furthur and they might not know how to do it.
View 1 RepliesThe audio is fine in the flash file but it is bad in the quicktime or swf file I exported.
View 4 RepliesMy swf file is rather large, so I tried changing the quality settings and the publish settings, but nothing I do seems to change the size of the final swf.
View 2 RepliesWhen I press command + option + enter, the graphics looks very good but when I look at the quick time mov I saved, its so bad. It's fine if I 'drag' the quick time window to the smallest but when I look at it in full screen mode, the picture is so bad... What can I do to improve the quality?
View 2 RepliesI need to first express that I'm a fully self-taught Flash designer. No one has ever sat down and tried to explain to me the DOs and DONTs about Flash. I have followed tutorials, books, and anything else I can get my hands on, but never a person. People of Flash seem to be very hard to find, in my personal experience.I am the most comfortable with Photoshop, knowing very little about Illustrator or Fireworks.That said, I have been asked to create a 45KB (yikes!) max file, rotating 3 .jpg images I created from other .jpgs given to me. The images are usually large, so I am given room to compress them for a 300px x 250 px stage.
However, these images are always my biggest culprit for my huge file size. I'll import them in, making them into Graphic Symbols, but nothing seems to prevent the enourmous file size.When given the raw images, I would throw them into Photoshop, make the files the correct 300x250 size. Then I have tried: saving the image at the best resolution in .jpg and .png form, and then I tried saving the images as low-as-I-could-stomach quality. I hardly see a difference with file size when they are imported into Flash and used.I was told to use Fireworks's Optimize function, which I did, but it made my .swf even biggerWhen I have my Flash piece all set up/animted as I want, but I need to replace the bitmap(.jpg/.png) photos, I will:right click on the bitmap to get properties, "upload" the new image to be used, adjust the Quality, having "Allow smoothing" unclicked.
I understand I should make as much of the graphics in Flash as I can, instead of Import, but I am primarily given photographs to use.Seeing what my previous peers have done is mind-puzzling, but they are not around, so I cannot ask them for their advice. Their files are under 45KB and look sharp and amazing:[URL]
For my movie, I plan to have 4 buttons, low, med, high, and auto. I want to specify the points in the movie where the quality should be lowered for slower computers (auto button). The beginning of the slow part would be MED quality and then after it's passed, I want to reset it back to BEST.
[Code]...
I am new to Flash CS5 and I have created a slide show. I am trying to reduce the .swf file size for faster loading. I have been trying to adjust the size using the jpeg quality slider, but it doesn't seem to function whether I set it to 0 or 100 or anywhere in between. Publishing always generates the same size swf file.
View 3 RepliesWhen publishing a project from Camtasia Studio 7, the params list includes a setting for quality. But instead of the usual "high" value, it sets it to "best". I Google'd and searched these forums but had no luck finding any definitive explanation if these two settings are equivalent. Can anybody enlighten? This topic also spurred another question, does the quality default to the highest value if the parameter value is invalid?
View 2 RepliesEverything looked fine when previewed in Flash but the quality is terrible in HTML. I'm using jpeg images. I tried boosting the quality up to 100 and it's still bad.. I provided some screenshots. I'm thinking this might be related to dimensions?
View 1 RepliesI have a flash presentation thats for a supermarket TV screen. Its big in file size 9.6MB. When I go file/export/export movie to quicktime and use the animation settings the file plays but leaves trail lines behind, skips frames and looks crap.
The quicktime settings I've used are either:
Animation
Quality Best
Millions of colours
All Key frames
24fps
or
DV - PAL
Frame rate 24fps
Quality Best
I need it to look high quality but I am not sure what settings to use.
What's the best way to maintain image quality in Flash.
The images in this banner gallery just don't look as good as they do on my computer.
Is there a way to embed color profile in the Flash import?[url]...
I've been working on an animation with the image fading in and zoomin in. However, I noticed that the image has different colour in a flash animation from the same image used on the same website as an image in a jquery gallery.
[Code]...
I'm looking to upgrade from Flash 8 Professional to the newest version. Has the quality of imported sounds improved beyond the tinny, in-the-submarine effect?
View 2 RepliesIn Flash I have some PNG images, and I wish these images to become 50% larger on hover. However the tween I have used to make them larger distorts the quality of the images considerably.
For the tween I am not using any external libraries and I am using a standard scaleX tween.
Is there a way around this loss of quality?