ActionScript 3.0 :: Quality Button Not Working?
Jul 19, 2009
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].........
View 2 Replies
Similar Posts:
Jun 22, 2009
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.
View 2 Replies
Sep 16, 2011
Currently one of our teams suffers from a very strange phenomena: after manipulating the z property of a MovieClip and changing the stage quality some event listeners of nested MovieClips seem to disappear (or at least not react to the proper events any longer).
The problem also only appears when doing both, changing the stage quality and manipulating the zproperty.
Here is a simple class demonstrating the issue:
package {
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.display.Graphics;
[code]....
View 4 Replies
Feb 7, 2011
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.
View 1 Replies
Aug 18, 2010
Just 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].....
View 1 Replies
Mar 24, 2005
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 Replies
Apr 2, 2006
can someone tell me th as to set the quality of a flash file when releasing a button
Code:
on (release) {
. . . . . . . .
}
View 1 Replies
Nov 18, 2002
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 Replies
Jan 9, 2005
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]...
View 3 Replies
Mar 7, 2010
I want to take a static text field, convert it into a button, and use it as a button. I need it static, because I changed orientation, and I do not know how to do that otherwise. The problem is, even though I converted it to a Button symbol, it does not work when I test the movie. It works fine with "Enable simple buttons", but when I test it, the button is not there, no change in mouse cursor, no reaction at all.So this is what I did:
Made text. // static, not selectable, Orientation: vertical left to right, / //rotated; Two filters: Drop Shadow and Glow;
Converted text field to Button - Symbol (scrollBT)
Editing the Button,I put the same content (the static text field) in all four frames: No luck, not working. without the Hit frame filled (which I think doesn't really make a difference): No luck, not working.Tried again, converting the static text field in the button into a Graphic Symbol: No luck, not working.Tried again, and put some differences in the frames for "ON" and "OVER" etc.: No luck, not working.Tried again, duplicating a similar, working button, edited it, and: No luck, not working.
To the button itself and the AS: The button will be a scroll-button for a text field, with different scroll speeds on rollover and press, but nothing else. The code for that I have (I think). It's something like (and please excuse my incorrect syntax here, but I'm typing from memory; still, I use the Script-Assistant and my syntax is apparently correct; it's also working with other buttons):
on {rollOver} {
function (scroll) {
textfieldtxt.scroll - = 1;}[code]....
I'm at the end of my wits. The only difference I can tell from other (working) buttons I did the same way, is that the scrollBt does not do anything except scrolling, while all of the others have frame actions (gotoAndplay etc.) associated with them.
View 1 Replies
Apr 18, 2011
[URL]
The ad on the bottom right of the screen (the one with lightning flashing) has an invisible button in its Flash file (CS5) linking to [URL]. This file is imported as SWF in Dreamweaver CS5.
The hyperlink works in Firefox, but not in Safari. Maybe it is just my computer.
View 1 Replies
Sep 30, 2011
When 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 Replies
Sep 15, 2009
I am having a problem where my buttons on main timeline are working fine. When I create a button within a movieclip layer (a page importeded from Photoshop as a movieclip) the button is not working once I leave. It doesn't show as a working button when I select Enable simple buttons, when I preview or publish as HTML. The thing is, it is a button, it has an instance name, is that weird blue color... and it works fine when I am double clicked into that movieclip layer. I also tried common library buttons and they work fine until I leave that layer as well, also tried it within other layers and creating a new file and doing it... all no success!
View 5 Replies
Jan 31, 2008
I have a picture with an invisible button, once clicked on the button runs a movieclip with an instance - box1, once its opened a close button appeared, called closeBtn1 and the idea is when thats clicked, for box1 to gotoAndPlay frame 80, but no matter where I put the code it doesnt seem to let the closeBtn work! Even trace actions aren't getting recognised![code]as u can see I'm trying to trace even if the closeBtn gets rolled over but to no avail.I have also tried it from scene level and still no joy.
View 7 Replies
Mar 16, 2009
I have created a flash menu using flash cs3 and actionscript 2.0 I have used the geturl script for my buttons have exported added the file to my site but one i goo to use the button links three of them work fine but one just won't work. Really haven't a clue what I am doing wron the code is identical for all the buttons (minus the url).
View 3 Replies
Jul 25, 2009
I work with Flash all day at work, and I've made a million buttons. But today, I decided to make a few at home for my personal website. I made a rectangle, turned it into a button symbol, and made keyframes on each state. When I tested it, it didn't work. If I go to Control -> enable simple buttons, it works just fine, but either testing it with ctrl-enter or opening up the SWF gives me a dead button with only the up state.
I uploaded the fla. How could something so simple not work?
It was created in flash CS4, but I saved it down to CS3/Flash player 9 for the sake of compatibility.
View 1 Replies
Aug 9, 2009
This is a simple mute toggle button for an mp3 player.
I first var sound: Sound
Then I have the function
//mute the current sound
function muteSound ()
[Code]...
View 3 Replies
Nov 9, 2009
What I'm trying to do is to close the pup op flash in the flash by click the ESCAPE btn.[code]...
View 4 Replies
May 13, 2010
This is a virtual tour of the school I am making. You start on a map and click a specific entrance. I have 16 paths you can take (arranged by 8 backwards and forwards (a#=forwards b#=backwards)) each arranged in an array.
stop();
var b2Array:Array = new Array("Walkthrough Pictures/b2/01.jpg", "Walkthrough Pictures/b2/02.jpg", "Walkthrough Pictures/b2/03.jpg", "Walkthrough Pictures/b2/04.jpg", "Walkthrough Pictures/b2/05.jpg", "Walkthrough Pictures/b2/06.jpg", "Walkthrough Pictures/b2/07.jpg",[code].....
Some of the functionsadd two or three more EventListeners cause you can turn left or right in the tour. The pictures are arranged as you see in the array (in folders).I attempted to create new buttons each time a function is run so that they do not get covered by the new picture... This isn't working. I also have two more buttons that need to be always present to lead back to the start.
View 28 Replies
Jan 10, 2010
I have a movie clip for my graphic design site that is a slideshow of three images transitioning to one another. (to see it, go to [url].... - and no, that is not a deliberate plug I assure you.)Recently (though not uploaded to my site yet), I added a small little "play" button, where, once you click on it, it will go to the next slide. There's three slides: Print, Logos, and Web. If you click the play button when it's on the print slide, it will go to logos. If you click play when it's on logos, it will go to the web slide. If you click play on the web slide, it SHOULD go back to the print slide.However, on the web slide, mine replays the web slide instead of going back to the print slide.Here's my code:
Code:
slide_mc.addEventListener(MouseEvent.CLICK,portF);
play_mc.addEventListener(MouseEvent.CLICK,gotoNext);[code]....
I checked the syntax and there's no errors.Also, when I test the movie, no errors pop up. I think the problem is in the "else" part of my gotoNext function.
View 1 Replies
Oct 16, 2009
I have some movie clips that hold the contents. (ie I have a movie clip to hold my navigation buttons and another to hold the actual content.) I wrote some action script on a separate layer that is outside of the movie clips, the AS adds event listeners and a few simple functions. All my navigational buttons work prefectly, I have a button that I use for email, this works the first the frame is loaded. If I go to another frame (another page of the website), and then go back, the button no longer works, I tested with just using trace("the email button was clicked"); oh, I thought I might add that each page of the website is a different frame, that is inside my content movie clip. my AS looks like this:
stop();
navigation_mc.home_btn.addEventListener(MouseEvent .CLICK, homeClickF);
navigation_mc.rates_btn.addEventListener(MouseEven t.CLICK, ratesClickF);
[code].....
View 3 Replies
Feb 20, 2009
I have a weird problem... I have a button inside a movieclip and actionscript on root frame. I know whats the problem, just cant understand how to solve it.I have this script for the movieclip:
Code:
setColor.onRollOver = function(){
setColor.gotoAndStop(2);
[code]....
View 1 Replies
Feb 28, 2009
Quote:
on (release) {getURL("http://paulmillichip.com/1stop/transferprem1.php?pos=GK&playerid=premGK1&playerou tfield=premGK1value","_self","GET");
}
That's my code.. how come it works in Firefox but not IE?
View 1 Replies
Mar 18, 2009
Ok here is what I have.
randomLoader.swf - It has two layers. One being movieclip layer for loading the external .swf files to. The other is the script layer with the following code:
Code:
filename = ["random1.swf", "random2.swf"];
path = "http://www.domain.com/random/";
i = filename.length;
[Code].....
Now if I just embed randomX.swf into HTML they work fine. But if I embed randomLoader.swf in the HTML to load a different randomX.swf file everytime the page loads/refreshes the button seems to show up but does not function. I get the hand but clicking it does not take you to the URL.
Should I be using Java or PHP instead to load the randomX.swf files? I like how well what I have already is working and I don't have to touch the page to update it to show new randomX.swf files. Just need to get Z buttons to work
View 4 Replies
Mar 20, 2009
I am working on a flash site that was done by someone else. I have never used actionscript before so I am sooo new at this. There is a reset button on the form so when people accidentally type in something, they can just click on the "reset" button and it clears all fields. The problem is that it's not clearing.This is what I have in the code for the button:
on (release) {
fullName = "";
address = "";
message = "";
}
The three (fullName, address and message) are the names of my variable when you select each input field. Where am I going wrong with this? Nothing happens when I click it.
View 2 Replies
Aug 25, 2009
why this script in action script 2.0 is not working on OS X but works fine on Windows.
mcFinalPrintMaterial.mcWhiteBkgnd._visible = false;
trace(mcFinalPrintMaterial.mcWhiteBkgnd._visible);
printBtn.onRelease = function()
[Code].....
View 1 Replies
Sep 21, 2009
I have got a simple button in the first frame of my flash file, but its not wokring. Here is the code I am trying.
Code:
Btn.addEventListener (MouseEvent.CLICK, myFunction);
function myFunction (e:MouseEvent):void {
trace("working");
}
It gives this error: "The class or interface 'MouseEvent' could not be loaded"
View 3 Replies
Jan 2, 2010
I'm using Flash Cs4 with As3 to make a project. In part of it I have an object which is invisible, but when a button is pressed is made visible. Only problem is, it won't make it visible.
Heres my code
PHP Code:
import flash.events.Event;import flash.events.MouseEvent;aSettings.visible = falsevar setVisible:Boolean = false;buttonVisibility.addEventListener(MouseEvent.MOUSE_DOWN,function():void
[Code]....
I'm not receiving any errors at all, but whenever I click the button the output says "false", so I know that its not changing it to true.
View 2 Replies
May 2, 2011
In Scene 1, I have some buttons which I want to lead to Scene 2, Scene 3, and Scene 4. However, I can't make the buttons work! I have tried this code:
btn_1.onRelease = function (){
gotoAndStop("Scene 2", 1);
};
It gives me these errors:
1120: Access of undefined property btn_1.
1067: Implicit coercion of a value of type int to an unrelated type String.
And I wind up with a looping flash movie of scene 1 and scene 2, even though I put a stop() on the timeline of Scene 1.
View 2 Replies
May 4, 2009
I have a number of scenes and would like to set up a restart button on the last scene to go back to scene 1 and restart.
View 4 Replies