Setting Quality With Action?
Is it possible to set a Flash movie's quality (either JPEG Compression level and/or Flash movie quality (low, high, etc) with an action script in Flash MX?
I have a situation where I'd like the quality to change at different points of the movie, that's why I'm wondering.
Thanks!
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-03-2006, 07:45 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Quality Setting - Changing The Default Setting?
Whenever people go to my site www.findraf.com I find that the quality is set to Medium by default and most people don't know computers enough to realize how easy it is to change it. Any idea's how to change this?
Setting The Quality
i know that this is probably really easy to program but i'm just not very smart in actionscript ;P
can someone please 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)
thanks very much.
the experiences that i have made with people in these forums have only been good ones. you guys rock!
-Johannes
Setting The Quality
i know that this is probably really easy to program but i'm just not very smart in actionscript ;P
can someone please 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)
thanks very much.
the experiences that i have made with people in these forums have only been good ones. you guys rock!
-Johannes
Setting Sound Quality For A .exe
Hi,
How do I set the publish sound quality for a .exe. I can change for a .swf obviously. Never needed to this before. The settings panel doesnt exist, it has a default of
44kHz Stereo 16 Bit 15.4s 2712.2kB.
When I check it on the frame that the sound is on.
I need this at a better quality.
Any ideas?
Thanks
Setting Preview Quality
I need the script to changing the quality of the game... I want to let my users pick from low, medium, and high quality... Anyone knows how? THANKS
Quality Setting Doesn't Appear To 'take'...
I apologize for the cross-post, but I'm new around here and perhaps I posted the original thread in the wrong spot:
http://www.actionscript.org/forums/s....php3?t=192787
Essentially, the problem is that I have images that get resized... and when resized, they look like pixelated trash. I need them to look good.
FLV Playback Quality Setting?
I am putting together Flash UIs done by a designer, and the FLV playback one has a Quality: Low/High setting on it. I have not seen this before, and it isn't part of the FLVPlayback component. What is this? Or is is just the designer's imagination - there is no such thing?
Setting Quality Picture
hi...how to set the quality pixel in flash? everytime i export it, the pixel was so bad.... i'm currently using firework to create a picture, and then, i replace/import it into flash. does it bad by using fireworks? help..help..
and...one more thing...
why my wording wont appear even i've already place the frame above...why?why? someone...help..help...
Setting The Quality Of A Moveclip
Howdy!
Anyone here know if it's possible to set the rendering quality of just one movieclip, as opposed to the whole stage?
Thanks in advance,
Switaki
Setting Quality Independently?
Does anyone if it is possible to set the quality of a particular movie clip rather than the entire flash movie? I've been trying but with no luck. Everything I try, sets the quality of the entire movie
GFXman
Setting Quality For Individual Items
I have been trying to specify quality for individual movie clips as opposed to the entire flash movie. I tried this code but it still affects everything
onClipEvent (load) {
this._quality = "medium";
}
is this possible?
TIA
Setting The Quality Of A Specific Movieclip - Can It Be Done?
can you set the quality of a specific movie clip without it effecting the rest of the movie, I have tried:
myMovieClip._highquality=0;
to set a particular movie clip in my site to play at low quality, but it just sets everything to low quality!
can it be done and if so how?
Targeting Only Images/layers For Low Quality Setting...
okay... i know i have another post here basically asking the same question... but I am really desperate in getting this effect... (obviously)
somehow, sites like www.bacardidj.com and www.2advanced.com (as well as others) have targeted their images to use the 'low' quality setting, yet all of the other elements are using the 'high' quality. What this does is preserves the crisp lines and pixels of the original image and avoids the smoothing that flash does by default, but also results in nice, antialiased vectors and type.
Now, if (via the menu) you switch down to low quality, all of the type and vectors go to crap, but the images stay pixelized, as expected......... but changing back to 'high' quality, everything, including the images that on load were pixelized, now gets antialiased.
how in the hell are they doing this? every time I try and target the _quality or _highquality to a specific MC (with image in it) or to a layer, it globally changes the setting, resulting in crappy vectors/type.....
i know it's possible, as its clearly demonstrated byall of these sites.... but none are willing to give up the secret......... PLEASE HELP
Preloader Destroys Jpeg Quality Despite Increase Compression Setting
-I have added a regular preloading scene to my movie which decreases the resolution of the scene it is loading for...before I add the scene..everything is fine...after the scene is added....the resolution drops way down......
I Have changed the export settings for the jpeg but nothing seems to work...anyone have any ideas?
thanks Hasan
Setting Action Problem
hi guys,
My problem is as follow:
i have made a new file and i have Scene1, in that scene at frame 1 i have pasted a movie clip1, and at frame 2 i posted another movie2. now how can i set an action in movie1 at frame1 to go to movie 2 at frame 2.
i have already set a STOP action to both frame 1 and 2
so i need your help plz
Setting A Var On An Mc After An Action Has Completed?
I have a script which dynamically draws out shapes, and what i need to do is be able to set some sort of variable or something so when the shape finishes drawing itself, i can make that mc do something else. Would I/could i/how would i set some sort of variable that is specific to the mc that was just created? it needs to be specific to an mc so I can draw out multiple shapes and then manipulate them in a sequence.
On a similar note, how would I script a sequence of tweens/actions on mc's to execute in a similar fashion to using timeline shape tweens?
below is the code I'm using to draw shapes (squares/rectangles/etc) and then an example of something I might use to follow it to position the shapes drawn.
Code:
MovieClip.prototype.drawShape = function(x, y, w, h, speed, stroke, color, alpha) {
var v1:MovieClip = this;
v1.points = [[x, y], [x+w, y], [x+w, y+h], [x, y+h]];
v1.time = 0;
v1.style = [stroke, color, alpha];
v1.onEnterFrame = function() {
var v1:MovieClip = this;
var seg = Math.min(Math.floor(v1.time*v1.points.length), v1.points.length-1);
var nextseg = (seg<v1.points.length-1) ? seg+1 : 0;
var segtime = (v1.time-seg/v1.points.length)*v1.points.length;
// increment, test for completion
if ((v1.time += speed)>=1) {
v1.time = 1;
v1.onEnterFrame = null;
}
// or start drawing
v1.clear();
v1.lineStyle.apply(v1, v1.style);
//v1.lineStyle(1, 0, 100);
for (var i = 0; i<=seg; i++) {
if (!i) {
v1.moveTo.apply(v1, v1.points[0]);
} else {
v1.lineTo.apply(v1, v1.points[i]);
}
}
v1.lineTo(v1.points[seg][0]+(v1.points[nextseg][0]-v1.points[seg][0])*segtime, v1.points[seg][1]+(v1.points[nextseg][1]-v1.points[seg][1])*segtime);
};
};
MovieClip.prototype.elasTic = function(x, y, sp, frict) {
vx = 0;
vy = 0;
var v1:MovieClip = this;
v1.onEnterFrame = function() {
var v1:MovieClip = this;
if (Math.floor(v1._x) == Math.floor(x) && Math.floor(v1._y) == Math.floor(y)) {
v1.onEnterFrame = null;
} else {
ax = (x-v1._x)/sp;
ay = (y-v1._y)/sp;
vx += ax;
vy += ay;
vx *= frict;
vy *= frict;
v1._x += vx;
v1._y += vy;
}
};
};
//---------------------------- To put that into action
this.createEmptyMovieClip("mc", 10);
mc.drawShape(100, 100, 200, 400, .1, 2, 0x000000, 100);
//then i would want to do something like this after the drawing finishes
//mc.elasTic(500, 300, 3, .7);
any ideas?... any help is appreciated
thanks in advance
Setting The Duration Of An Action
Is there a way to control the timing and/or blending of the color changes in this code?
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(pages_main_mc);
trans.colorTransform = colorTrans;
page1_btn.onRelease = function() {
colorTrans.rgb = 0x000000;
trans.colorTransform = colorTrans;
};
page2_btn.onRelease = function() {
colorTrans.rgb = 0xFFFFFF;
trans.colorTransform = colorTrans;
};
Say like a 5 sec period from the time I click the pages2_btn before the color changes to white? In other words the color is black, 3 seconds after clicking the pages2_btn the color is 50% grey and at 5 sec the color is white? Some sort of a timer code for the color change?
Setting Variables With Action Names
Hi all,
I'm trying to create a payPal button in Flash. I have to send a variable to them called "return"
I can't do this inside of Flash, since return is an action and cannot be assigned as a variable.
Any help would be greatly appreciated.
Thanks
PS, I already tried the PayPal component. It wasn't working as well as it should have.
Setting Action To Buttons Via Code
Hi there.
I'm working on a drop menu. Since there are few menus with differnt number of buttons I'm Duplicating mcs with buttons inside. I like to set the right action, the right event for eche one of them.
Logiclly it suppose to be someting like:
mc_1.button_2.onClipEvent(release)
{do_something()}
But its not! How can I set action to buttons via code ?
Setting A Continuous Action With Set Intervals
Hello!
I am trying to figure out the action script for a movie clip that I want to keep playing every 2 seconds.
I have a Stop() action on the first frame (because it is being called to action by another MC so it has to wait for that call. BUT when it reaches its end I want it to replay again.
How do I do this? Where should I put the action at the beginning of the movie clip with the stop action on it or at the end? How can I tell it to stop and wait for that first call from the other MC and then to repeat itself?
I thought of the continuous action but I don't know how to apply it.
Any ideas??
M.
Help With Setting Text Boundary With Action Script
Hello, friends. I have problem with set the boundary for the textfield.
I have movieclip called screen_mc and inside I have movieclip called text_mc which contains a dynamic textfield. And I have two buttons for increasing and decreasing the text movieclip's size. But I would like to have it work like no matter how many words I typed or how large I press the increase button to increase it, the text is within the boundary of screen movieclip.
Does any one has some idea how to make it? Thanks a lot if you have any idea or suggestion. And wait for your reply!
Setting Frame Rate Through Action Script
Hello Guys,
I have one flash movie. I have to set speed controller for this.
Like: Regular, Slow and Speed. How can I set the speed controller.
or atleast can you please tell me any one setting frame rate in action script.
Please help me ......
Thanks and Regards,
Chethan
Help With Setting Text Boundary With Action Script
Hello, friends. I have problem with set the boundary for the textfield.
I have movieclip called screen_mc and inside I have movieclip called text_mc which contains a dynamic textfield. And I have two buttons for increasing and decreasing the text movieclip's size. But I would like to have it work like no matter how many words I typed or how large I press the increase button to increase it, the text is within the boundary of screen movieclip.
Does any one has some idea how to make it? Thanks a lot if you have any idea or suggestion. And wait for your reply!
Setting Font Size In Action Script
Hello,
I'm new to flash. Here is what I'm trying to do ... set the font size of a dynamic text area with a button using action script. Can you give me an example?
Setting The Movie To Read Action Script From Another File
Is there a way that I can have an exported movie in the .swf format and make it refer to another instructions.txt which lies with it? I tried #include though then found out that it embeds the info of the file into it at build.
If you know how to do this, please reply
Thanx
Flash 2004 And Action Script Pannel Setting
I and you also know that u click in AS panel in Fl. MX u can mark the whole line.
I am new in Fl MX 2004 Prof. and now i am confused, because if i do the same i set the break point, what in dont want.
How is possible to set up , thet the line will marked and i can COPY or CUT my code (as usual in FL MX)?
jan
Image Quality Lost, Exported At 100% JPEG Quality
I am working on a Flash website for a design group to display their work. These designs needed to be scaled down to fit the format of the website and many of these designs have body copy with small text. In the FLA file they look ok, but when I export the SWF, the text looks really bad.I know JPEG compression isn't very good for text but even when I export at 100% JPEG quality it still ends up looking different. The text looks very "sparkly" with the thins of the letters have been lost. The original assets that they gave me were all in one photoshop file at 150dpi with one design per layer and some of the text were just slightly pixelated if you zoom in (all text were rasterized and flattened into the designs). Some of the same images supposedly from that file had been used on their previous site with no problem. On some of the images in the PSD I can see that some of the thin strokes in the letters had been lost a little from scaling the designs down. This has been really frustrating and I can't think of how to rememdy this problem. Anyone have any suggestions?
-Sorry I did not realize that someone had already asked the smae type of question. I am trying the suggestions from the other thread.
<param Name=quality Value=low> Plays High Quality Flash
I want to adjust some flash content on my site depending on user rights.
The systems shows a slide show with swf/images, if the user is logged in he will also see a list of thumbnails with all flashes that is going to appear in the sideshow. This list is contained within XHTML markup and has nothing to do with the slide show other than containing the individual slides.
It would be nice if I could set the quality for the swf's in the thumbnails to low since 10-20 high res flashes tend to use a lot of CPU. Using <param name=quality value=low /> to achieve this has so fare granted no success.
Things I've tried so far are:
1. Setting <param name="quality" value="low" /> for the individual flashes in the thumbnail list. The flashes are still displayed in high res. Tried using " ' and no hyphens.
2. Sending the flash var _quality=low through the src of the thumbnail list elements. <param name="movie" value="/src/flash/movie.swf?_quality=low" /> with and without hyphens.
3. Googling quality settings for flash which all say to use <param name="quality" value="low" />
Things to point out:
1. I have no control over the swf. These come from all sort of people so I need to be able to adjust the quality via the web page.
2. I've tried different ways of writing the quality strings. value='low' value="low" value=low and so on.
3. The quality settings change if i right click and select quality -> low but they always start at high.
4. The source code writes what I expect it to, the flash simply ignores the values I send it.
5. I'm using a windows based machine with Fire Fox 2 and CS2, the site uses XHTML and my flash player is 9,0,124,0
Edited: 08/28/2008 at 07:55:30 AM by Cbastus
Low Quality Movie With High Quality Files?
hello again...well in the meantime the only way i managed to keep my pixel fonts crisp is by putting the movie quality to low ...however...i have some graphics in it that really won't show with low quality. is there any way i can have the movie at low quality yet be able to show certain graphics in high quality? perhaps by importing them in a certain format, or can i apply a property to them or someting??? or is it all or nothing?
i would appreciate any suggestion!
TY!
Low Quality Mc In High Quality Movie
the thing is....
i have my movie which is in high quality then i want one movieclip within this movie to be low quality, so i gave it this action:
onClipEvent (load) {
_quality=low;
}
this didnt work and the whole thing is still in high quality.
i'd appreciate anyone telling me what i'm doing wrong!
THX!!
High Quality To Low Quality Question
I have a loader taking up frames 1 - 3 that I want to remain as high quality and then from there on in frames 4 - 19 I want as low quality.
I have added on frame 1
_quality=high
and then on frame 4
_quality=low
But this does not seem to work - it seems to always be low quality throughout.
Where am I going wrong? - Any help would be so so so so welcome
Thanks in advance
Jools
Changing Low Quality Back To Hi Quality
Hi
i am making a CD rom with a lot of levels in flash
the misic is on level0
submenus on level 1
mainmenu level 3
any way when i load one swf onto level 1
this swf is flash lowquality file
which is fine as this is needed to run the movie
however after i unload the movie or press another option on the main menu
everything stays in low quality mode
is there some script that will bring the whole flash movie and all levels back to high quality?
hope someone can help
cheers
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Dynamically Setting Labels Or Dynamically Setting Frames To Print
1. Does anyone know if there is a way to dynamically set a frame label. The reason for this is that I want a particular frame to Print with other frames (requiring a frame label of #p) if you answer a question a certian way and not to print with the other frames (needing a different label or no label at all) if the question is answered differently.
2. Option #2 would be to be able to dynamically set which pages print when you call the "PRINT" command (probulary through an expression). Any ideas would be appreciated.
thanks
Action Script Replaycer, Action Script Viewer V.3,08 And URL Action Editor V.3
My friends! I urgently need the programs: Action script replaycer and URL action editor v.3 (or upgrade v.2 up to v.3).
In an exchange I can give you the programs: Action script viewer v.3,08, URL action editor v.2, SWF decompiler MX, SWF scanner v.2,63, SWF extractor, Action script obfuscator , Fla****! (deprotector), Vid2flash7t ( converter to format SWF), Fireworks (MX), Dreamweaver (MX), FreeHand (MX), Director (MX).
I shall be glad to send you any (or several) program in exchange for one or both programs which I need. And if you don't need its, send me please simply so.
My E-Mail: Flash_567@mail.ru
Flash_567@mail.ru
Cannot Alter "document-jpeg-quality" And "use Imported Jpeg Quality"?
sometimes in MX i can always choose between "use document default jpeg-quality" or "enter an integer for quality" for imported jpeg-data. (possibly jpgs generated with photoshop 6)
sometimes i can never - i just have to choose between "use imported jpeg-quality" or "enter an integer for quality".
(definitely jpgs generated with photoshop 7)
can anyone tell me why this happens?
are there preferences in photoshop 7 that solve my problem?
thanxx jo
|