ActionScript 3.0 :: Button Not Working Anymore After First Use
Aug 17, 2010
I have a button which I want to be dynamic in it's use. The var currentQuestion get's updated within another function. I have traced this and that's not the problem. The problem lies within the fact that after i have pressed the button once it's not working anymore. So the buttons works the first time, but after clicking it (and so updating the currentMovieclip to "question01_mc") it doesn't work anymore.
This is not the complete code, but just the part that matters,
Code: Select allvar currentQuestion = 0;
var currentMovieclip = "question00_mc";
var Root = root;
[Code] .....
View 3 Replies
Similar Posts:
Apr 28, 2006
Ok, for my site i have a preloader that slides in, then it slides out once it's finished. I decided to change a couple things, now the same file with some unrelated changes is giving me syntax errors when publishing it. Heres some code:
Code:
import mx.transitions.Tween;
preloader.bar._visible = false;
container._x = container._y=0;
[Code]....
View 12 Replies
May 9, 2009
does anyone noticed when using the latest flash player (10), all website thatuse preloading and is publihed with actionscript 2.0 is not working anymore. Only the onloadComplete or onLoadInit is triggerd, so preload animations are skiped. For example i made this website a while ago that worked fine with flash players up to verion 9.Now the preload percentage is not showing anywhere. I also tested other websites that i know off
where made in actionscript 2.0
View 1 Replies
Jun 29, 2007
I have a big problem : My gallery ( with xml) was working perfect until yesterday . I uploaded my files to my server to test them. This morning I reopened the fla to make modif and big surprise : only the big image appears but no thumbs anymore in the scroller. I tried to trace the xml nodes but thay are now undefined. WHY? Everything is in the same folder.Nothing changed. I turned everything upside down but nothing. Does a uploading can affect some configuration ? Are the xml modified modified after being uploaded ?
View 3 Replies
Mar 15, 2011
So I am a photographer, and I wrote my own gallery using AS3 Anyway I do NOT use the Flash IDE for anything other than debugging and compiling and publishing. EVERYTHING is done on the fly in AS3.0 classes.
When I upgraded everything (Photoshop,InDesign, Illustrator,Dreamweaver, Flash etc... ) to CS5 and recompiled my AS3 code I got the following error. Web Design/GCSSplash/GCSSplash.as, Line 30exception during transcoding: Cannot embed local font 'Letter Gothic Std' as CFF. The CSS @font-face 'local()' syntax is not supported. Please specify a path directly to a font file using the 'url()' syntax. For [Embed] syntax the 'systemFont' attribute is not supported. Please specify a path directly to a font file using the 'source' attribute.
[Code]...
View 2 Replies
Apr 29, 2011
I have buttons, I can't assigned them simple actions such as GetUrl, like I use to do in flash 8.I am now in CS3 and can't make it work.
View 1 Replies
Feb 1, 2009
I create a button in flash cs4 and click "publish preview -flash" and my button works. I save my file and click "publish preview - flash" again, my button doesn't work anymore.??I'm using Flash CS4 on an IBM compatible.
View 17 Replies
Aug 23, 2004
Let say A is the main movie and B will be a external swf file that i'm going to load into A movie. The problems is that, some actionscript(AS) in my B movie is not working anymore after i load it into A movie. I believe that the AS in my B movie is not working anymore because it is refer to A as the _root instead of B movie as _root. This can be a common problem. So, i wonder what should i change in the B movie AS in order to make it work in A movie.
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
Aug 22, 2010
I have installed CS5 recently and then deleted CS4, since doing so (or at least I think that's the cause), I cannot open SWF by a simple double click like I used to. Opening them in browser or in CS works fine but I still want to be able to open those SWF with a double click.
Tried using "open with", then Flash CS5, without success. Also went on Adobe's website to try redownloading the flash plugin but didn't let me download it as "browser already have flash plugin installed".
How did you re-established the double click to open a SWF?
View 1 Replies
Dec 6, 2009
Im very new to flash and a colleague provided me with perfectly functioning swf presentation. I opened it with flash to make some minor mods and now when i save the pause/play buttons he had put on the presentation no longer work no longer work.
View 1 Replies
Sep 11, 2010
I load icecast stream into Sound object, using some tricks to overcome memory leakage. Generally it works quite well, unless someone reloads either icecast or stream source program on the server. In that case flash player just mutes itself forever. I'm looking for some way to detect this case internally and reload the stream without refreshing web-page.My problem is caused by the fact that onComplete event for some reason doesn't trigger, maybe there's another event happening, but I just couldn't find any.One thing that I tried was noting down stream progress point and checking consequently for 200 times if it stays the same and if it did I was manually calling stream reload function.
View 1 Replies
Oct 8, 2010
I have 10 buttons for various pages on a website I am building. I am only dealing with the first 2 buttons so far: home and about (laborLaw). On my about page, I wanted to have buttons to navigate to another frame where the viewer can Read More Details. In order to get my button to work, I had to type about_mc. before the event listener of that button. Here's the code that worked.
about_mc.laborLaw1_btn.addEventListener(MouseEvent.CLICK, laborLaw1);
function laborLaw1(evtObj:MouseEvent):void{ gotoAndStop("laborLaw1_fl"); }
So I am now able to navigate to frames from buttons inside the mc. My next task was to build a close button to navigate back to the about page from the "Read More Details" page on a 101. Here's the code I used on frame 101:
(stop);
// the following is to navigate back to "about" (Labor Page)
closeLabor1_btn.addEventListener(MouseEvent.CLICK, returnLabor);
function returnLabor(evtObj:MouseEvent):void{
gotoAndStop("about");
}
That worked great BUT, once I navigate BACK to the about page using the closeLabor1 button, I am no longer able to navigate to any other button such as the home button. Here's a video showing exactly what happens. [URL]
View 1 Replies
May 27, 2011
I'm using flash cs5.5 and today I opened my project to start working... just to find out that the project panel does not work. When I click the tab to expand it, flash hangs for a minute and then it works, but the panel is blank, empty. The odd thing, I saved the project as CS5 version to open it in the CS5 Flash, but CS5 it's broken too.
I tried opening Flash (both versions) without loading any project and the tab does not work either.
View 6 Replies
Oct 2, 2011
I have used the script below to loop my movie 3 times, many times before.I just made a new banner and put this same script in a keyframe at the end of the movie, like all the other times, but it is now giving me an error messages..see below.
View 3 Replies
Jan 27, 2012
I created a new flash ide project and used a document class named 'Main.as'. Then I created Main.as file. I then drew a box and converted it to a movieclip and used export for actionscript on it. I assigned the square box in the flash ide the instance name 'box1'. Below is my Main.as file[code]...
View 7 Replies
Jan 14, 2009
I just finished up my update for my adobe products, and one of the updates was going from Flex3 to flex 3.2. I rebuild my app using flex 3.2 and it worked fine in my browsers. But, II used to load my flexapp in a flash movie and published this movie to an EXE. What used to work isn't working anymore. In my flex project I use the popupmanager to popup custom dialogsscreens: they work in my browser, but they don't popup up anymore when I load the flex app in my flashmovie...
View 1 Replies
Feb 28, 2009
I have used a pop up window code several times before and now it doesn't seem to work. I've tried in several different movies now and when pressing the button it simply flashed the page and moves a little, but won't actually pop up to the page it's pointed to.Here's the code:
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.angelfire.com/in/HansonArtGallery/2newpaintingbig.html','newWin','width=650,height=6 50,left=0,top=0,toolbar=No,location=No,scrollbars= No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
View 1 Replies
Mar 21, 2011
Has there been an update this weekend thats broke masking I have tried to gradient mask an object both by using a vector mask and a png mask. NONE OF THEM WORK! Last week it woeked - and nooene else here at my job can get it to work either.Gradient masks are just shows by a square. No way of of getting smooth edges (gradients on a masked object anymore).
View 13 Replies
May 24, 2011
I have a problem to load a xml since I added "[CDATA]" in my xml code.my swf don't read anymore the html code. (sorry if my english is not very good but i'm french)this is my code
Code: Select allvar donneesXML:XML = new XML();
donneesXML.load("site_swf/fr/textes_fr/springbok_presentation_fr.xml") ;
donneesXML.ignoreWhite = true;
donneesXML.onLoad = function(succes[code].............
View 3 Replies
Aug 28, 2006
my links will not open in myspace anymore. read this article for further explanation. [URL] i dont understand what they mean. im just trying to get these buttons working... [URL]
View 6 Replies
Jun 15, 2011
So I'm creating an AS3 doc with a lot of jpegs and pngs. I'm really new to flash and the last swf I made was 5.6mb, way too big from what I read. But I haven't been able to figure out how to avoid this...I can't decrease the images sizes anymore for quality's sake. Can I store the images externally so that only the ones needed for that scene load at that time?
View 9 Replies
May 22, 2007
the flash autoformat destroys my code... And i use it all the time .. my switch and for statements doesnt work anymore after autoformat, it adds ';' where it shouldnt..
View 14 Replies
Apr 8, 2005
Went through your Flash Photo Album tute and it worked great. But I noticed when I went to resize (make them smaller) the pictures didn't show up anymore.
View 10 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
Apr 27, 2011
i was trying to make a movie clip visible (it starts invisible), than invisible again. It gets visible, but i could't make it turn invisible again! Same thing happened with buttonMode propertie. I applied both only for movieClips and buttons, have no idea what is happening.
View 4 Replies
May 6, 2004
i have a problem adressing or targetting a attached mc when i target de mc directly it works fine but when i try it trough a variable it doesnt recognise its path anymore???
[Code]...
View 3 Replies
May 12, 2004
i'm making a small "add news" movie for a site in actionscript. When I insert an image in my textField, I can only move the cursor with my keys and not with my mouse anymore. I put the image always in front. I also have to click one time in my textfield, otherwise my text appears under my image. When I click it aligns to the right.
[Code]...
View 2 Replies
Oct 5, 2007
So i made an expandable banner which overlaps a flash map. But now the flash map doesn't reacts any more for the part that is being overlap by the banner
View 1 Replies