Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Quality Changer; Help!
Topic Started: Sep 19 2004, 06:01 AM (218 Views)
Neo_uk
Member Avatar
Smellheadface
Could anyone please tell me how i can make a 'Quality changer'...?

(e.g. high quality, medium quality, low quality)
Offline Profile Quote Post Goto Top
 
Ranoka
Member Avatar
Teacosy is watching you! ♂
Here you go, found an old thread I answered this question in:
http://s7.invisionfree.com/Brackenwood/ind...p?showtopic=879
hope it helps!
Offline Profile Quote Post Goto Top
 
chluaid
Member Avatar
Bitey's Daddy
Admin
I didn't answer that last thread either so I thought I'd better answer this one...
Make a movie clip (not a button) on the stage and give it the instance name: low_btn

then unlike a button where you put your code on the button itself, put the following code on frame1 of the movie:


Code:
 
low_btn.onRelease = function(){
      _quality = "LOW";
}
Offline Profile Quote Post Goto Top
 
alexsmolik
Member Avatar
The Prince of Troy
Well, if you're too lazy to go to Ranoka's link, and you find Adam's advice way too difficult, just follow these steps :

Make 3 buttons. Each button will be for a quality setting. (i.e: LOW button, MEDIUM button and HIGH button). So there you go, once you are done with the buttons, you can make them neat the way you want to by double clicking on them.

Now to every button, you'll add this code, if medium button, replace LOW by MEDIUM. If high button, replace LOW by HIGH. Pretty simple stuff. I thought that Adam's way was too difficult. :
Code:
 

on (release) {
_quality = "LOW";
}

Offline Profile Quote Post Goto Top
 
chluaid
Member Avatar
Bitey's Daddy
Admin
I learned mine from Sham.. apparently having all the code on the first frame of your movie makes the whole thing run faster, and keeping the code all in one place makes it easier to debug your scripts.

Probably doesn't speed things up too much for a small thing like this, but it's still good practice :)
Offline Profile Quote Post Goto Top
 
Ranoka
Member Avatar
Teacosy is watching you! ♂
Interesting techinque Chluaid, I haven't been shown that before... Will try it out in my next project.
Offline Profile Quote Post Goto Top
 
Neo_uk
Member Avatar
Smellheadface
Cool, thx guys

Dont understand adam's way... coz if its on the first frame wont it ONLY be that quality setting?
Offline Profile Quote Post Goto Top
 
Markham Carroll
Member Avatar
Custom member title
Neo_uk
Sep 23 2004, 07:04 AM
Cool, thx guys

Dont understand adam's way... coz if its on the first frame wont it ONLY be that quality setting?

It's a function. Functions can be called from anywhere in that scene.
Offline Profile Quote Post Goto Top
 
mwc
Member Avatar
Duyid Afryt Milish
SO what would the code be for the auto quality?
ie: Prowlies

Offline Profile Quote Post Goto Top
 
Chungus
Member Avatar
Psilocybe Cubensis
Flash just quit on me. This is from memory.


Say, one frame 374, something intesive starts. You'd put something like:
Code:
 
_quality = 'LOW';

When I get flash started, I'll get the actual code.
WHen you come to something non intensive, Same thing, but _quality = 'HIGH';
Offline Profile Quote Post Goto Top
 
chluaid
Member Avatar
Bitey's Daddy
Admin
yep that's right... when I make the movie, I test each scene as I finish it for playability. Lag most often occurs when there are a lot of gradients and heavy detail on the screen during a camera move.

So at the frame the camera starts moving, I simply put a keyframe with the action:
Code:
 
_quality = "LOW";

At the frame that the camera move stops, I make another keyframe and put quality to HIGH again.

Occasionally it's not necessary to go all the way down to LOW so I just put MEDIUM in those scenes. .. that's all there is to it :)
Offline Profile Quote Post Goto Top
 
FhqwhgadsE2TL
Member Avatar
Flash Anim8r
Don't forget if you want to manually go through and "set up" the _quality settings throughout the movie for an "auto" setting, you need to have a test condition for each "auto override" throughout the movie.

Code:
 
if (auto == true)  // or just if(auto) for those who know what's up...
{
   _quality = "HIGH";  //or whatever it needs to switch to at this particular frame
}


ELSE it would use the _quality = "LOW", "MEDIUM" or "HIGH" that was set up on a button press, or otherwise, at the beginning of the movie. When you click on the AUTO button you need to set the variable auto=true, and by default you would initialize it to auto=false.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Application Support · Next Topic »
Add Reply