Actionscript 2.0 :: Flash Buttons Not Working Properly On Website?
Jan 27, 2009
I am building a website that is all in flash.In the first frame there are 6 buttons. Each button has a code to go to a different place in the timeline, where something happens. For example, one of the buttons has this code:
on (release) {
gotoAndPlay("web");
}
Another button has this code:
on (release) {
gotoAndPlay("widgets");
}
And so on.Everything happens on the same timeline.When I publish the movie to test it (ctrl+enter), everything works great.The problem happens when I upload the file to my ftp and try to view it online. In that case, when pressing one of the buttons, instead of jumping to the place in the timeline where it should go, it just continues on to the next frame on the timeline. So for example if I press the "web" button, instead of going to the label "web" it just continues on to frame 2 in the timeline, and then 3,4,5 and so on until there is a stop(); in the actionscript.
After the first press though, it goes back to working fine. Meaning, the second time I press the "web" button, it will go to the "web" label, and from the second click onwards everything works great. it's just the first click on ALL the buttons that doesn't work, although it does work locally...
my goal is to set up an MP3 player, yes I know there are plenty of tuts some may say, however I'm trying to get, what I would call "fancy", with the buttons.The object is for my play btn to toggle to the pause btn and back all with roll over animation.So far I successfully toggled between the play btn and pause btn.The play btn has roll over animation and the pause btn has animation as well. The problem is that when I click the play btn and toggle the pause btn the pause btn goes back to the play btn when I want it to stay on the pause btn, but the roll over animation seems to cancel the toggle so when I roll off of the pause it goes back to the play. Here is the script:
import flash.events.MouseEvent; function playbtnOver(event:MouseEvent):void {[code].....
I have SWFAddress going for the most part, but the browser's back and forward buttons aren't working properly. When I use the back and forward buttons, it successfully changes the URL but it seems the SWFAddressEvent.Change is not being fired in Flash. Everything I click within the .swf relies on this event and works great, but the browser buttons still won't.
Does anyone know why my flash site displays a white screen before the loader actually works? It kind of defeats the purpose of having a loader. I'm not familiar with xml either so could this be an issue? My swf file is only 2.2 MB
gotoAndStop() doesn't work. I am using Flash CS3. My code is simple:
on(release) { _root.gotoAndStop("menu"); }
I put that code into a button. The menu frame is three frames behind the frame that I put the button on. If I replace the "menu" with "game", it works. The game frame is one frame behind the frame the button is on. What happens is instead of going to the menu frame, it flickers to the menu frame, then reloads the lose frame, which is where the button is. I know that it reloads because I have a dynamic text field that throws a random insult when you enter that frame. I can assure you. I have already double checked and triple checked that the frame label is correct. And the menu frame has stop() in it. I'm not that stupid, alright?
I used the tutorial found here. The 3 frames of my button are in a movie clip, within a keyframe in the main timeline. I used the code at the end in the tutorial for the first keyframe, so that the clip begins with music playing. However; I cannot get the buttons to work. I cannot stop the sound.
Anyone familiar with using Cirrus? [URL].. I'm having the hardest time getting the onPeerConnect object to work the way it should. I just need to be able to just take 1 sides nearID and give it to the other. and then when the near tries to connect to the far, the far should return true and allow connection, then at the same time grab the connecting farID on its own with farID = subscriber.farID; (which works, i confirmed it's getting the farID) but when i try this code it just see it getting spammed with....
I have 2 frames and in frame 1 the target MC color is being changed to RED. After that i go to frame 2. If i came back to frame 1 the MC doesn't retain the RED color. What i do wrong. Please see the pictures.
I have something odd happening when I update a FlxSprite's alpha repeatedly to make it fade out. Instead of taking 150 seconds to fade out completely (I actually want 15 seconds), it fades out over maybe 2 seconds. I tried tracing the actual alpha value, and the sprite is invisible when the alpha value is around 0.95 (95% opacity, ie slightly transparent). how I can get the alpha to work properly in Flixel?
I have a html file which has flash in it. The flash has few buttons on it. WHen i just click on the html page, the flash works. However, when i get into the html file from other pages, which i use action script getURL to link it. The html file show the flash but the buttons in it is not working.
Code: var vendor_arr:Array = new Array(); //vendor_arr.push(new Array()); var level1:Array = new Array("yelp","yelp","yelp","yelp","yelp","yelp"); var level2:Array = new Array("a","b","c","d","e","f"); var level3:Array = new Array(12,14,7,2,11,24); [Code] ..... Why is it not sorting on "bdistance" ?? its returning 2, 14, 7, 12, 11, 24... what kind of sorting is this??
We have a Flash banner on the home page and each slide has a link to some other page. Everything works fine, exept in IE.
Basically what happens is that if you click on the banner the first time, the link will work fine and bring you to the new page. However, if you go back to the home page again, then the banner does not even present a link anymore (it will still work fine as far as the banner rotation is concerned - just no more links)..
Recently an associate of mine and I built this site www.grievewinery.com. It seems to be working fine for everyone EXCEPT the owner himself. I am at a total loss. I have checked it on 4 MACS and 7 PC's of all different browsers and variations. I have asked them to try all variations on the URL, such as leaving off the http, the www - any and all ways possible. Nothing. For the life of me I cannot surmise why the owner himself would not be able to view the site unless he had a typo or needed a FLASH update, of which he would be prompted as such, correct?
I'm losing my mind. I have the script uploaded, the swf, flv and the html code and nothing is showing up on the website. I'm sure it's something silly: http://67.199.12.209/newsite/
I'm building a website and decided I was going to work with a pre-built web template. Problem is, as I painfully found out, my host wants the file structure of the site a very certain way (html pages in the root directory, media-files folder, image-files folder, support-files folder following that). I had to go through the template and recode a good bit of it myself (only knowing HTML, while the site is written in HTML, CSS, Java, and Flash). I've gotten the vast majority of the site working now.. on my computer at least.
I went through the flash file and corrected the directories so it could find the background pictures it needs and saved the file. Now, when I hit CTRL+Enter in CS4, the preview comes up correction and works flawlessly. However, when I bring the file up in firefox, the flash animation is STILL missing the background images. Also, I need to move a related file to the flash animation into another folder, but when I do that the text disappears, even after correcting the directory in flash.
The template I'm working with can be found here : Click. The flash animation in question is on the mid-left side of that page, where you can click the arrow to proceed through 4 different slides. Also having problems with the logo of the site, where the text will disappear if I move the related file I was talking about (A text file).
Here are pictures of the problem: No background: Click No Background/No text (moved text file, corrected directory): Click What I see in Flash CS4: Click I've also tested the site in Internet Explorer, same problem. I'm guessing there's probably a simple fix for this, but being unfamiliar with flash I just don't know it...
I cant get the flash to work on my website. I have also tried using countless versions of the 'AC_RunActiveContent.js' wrapper with this, but it just ends up as a white block, whereas if I just use the following code I get a black block. So I am certain that the path is correct because if I change the src path, it becomes a white block.
I have a simple website that I am making in Flash. It is four pages and the backgrounds are in one long horizontal sequence.So each page is 1000px wide, so the entire photoshop file which I imported into Flash is 4000px wide.
I made buttons so that when the user clicks, Flash moves to that area of the long photoshop file.I did this using frame labels.
Here is the problem. Right now the pages are jumping one to the other and I want them to move fluidly like a motion tween (which I have set up, but does not seem to be working). The reason I made one long file was because I wanted to be able to do this.[code]...
I've got a nearly completed Flash site, but one of the buttons isn't working--sometimes. Run the .fla below, wait for the animation to stop, and click the "services" star. Two more stars appear: "design and production" and "editorial." If you click on "design and production" first, everything works fine. You can get to editorial and everywhere else. BUT if you click on "editorial" first (after clicking "services" but before clicking "design and production"), the "design and production" button doesn't work from there (the "editorial" label frames in the "inline_frame" movie clip). I've got several Actions keyframes in the "inline_frame" movie clip--I don't know if that's kosher or not.
I designed a flash banner with buttons. I am trying to get those buttons linked to other pages in my website. I have tried several methods but none appear to work. The first thing I tried to was to assign the buttons to my other webpages through using the behaviours under the windows tab in Flash CS4. It worked when using the publish preview option (preview in flash) and choosing Flash, but when I went to add the banner to my webpage through Dreamweaver, the buttons would not work. I tried another method and used actionscript 3.0. I kept getting errors.
Is anybody else finding their flash website event.RESIZE isn't working in Windows 7?My website works fine when I run it at home in Vista, however at work in Windows 7 it just does not work and I have no idea why???! Essentially the bit that says portfolio works should stick in the top right corner on resize and the mute and sound button in the bottom left.
i need to disable all buttons on my website (flash) at a certain time. At the moment i no that
button.enabled = false
will disable the button...I need to do this with about 10 buttons. Is there a way to disable ALL buttons in a more convenient way?I thought of looping i, button1, button2, button3..But my buttons are not named like this, and would not be suitable to do so!
I have been building a website in dreamweaver, but have flash buttons which work fine. But the banner I have made in the page just has a white background. When I export it in flash it works, and when I preview in the dreamweaver browser it still works. I do not know what I have done wrong. Is the coding in the server wrong for the flash?
i tried following the duplicate mc tutorial, however the part on putting the code in a frame to get it to duplicate on load doesn't seem to work for me
here's my code in the frame:
stop(); amount = 5; while(amount>0) {
[Code]....
apparently the clip only gets duplicated once where's the problem?
I have Xml Flash website but it is done in FlashMx with a Publish settings of Actionscript 1.0 and Flash Player 6 . Now I have a flv player component I want to embedd it inside my xml flash project, It says you need a higher publish settings to enable that flv component. ok fine Now i have changed the Publish settings to Flash Player 8 . When I run the movie Flv component is working but the xml flash website has been disappeared only blankscreen .
I'm setting up a website and im using flash as a menu, but my problem is when I click on a button to go to a new page it redownloads the flash files, not just the menu but also my flash banner.
This only happens the very 1st time i click on the menu but its still very annoying having to wait for it to redownload again when it should already be there saved.
The problem does not happen if I use the html links on the page just the geturl links from flash.
I'm trying to do in this case is populate a List UIComponent that I created with information that I get back from the PHP file. For some reason the loader.addEventListener(Event.COMPLETE, userOnLoad) isn't working and my program never gets any farther than that.
Here is my code: import fl.controls.*; import flash.display.Sprite; import fl.managers.StyleManager; DECLARATIONS var backgroundArea:Sprite = new Sprite(); var loginArea:Sprite = new Sprite(); var userArea:Sprite = new Sprite(); [Code] .....
I've noticed that by using isNaN(number), it doesn't always return true when needed. In fact, by using:
var bool:Boolean = isNaN(parseFloat(numberStr));trace(bool);
It will return true with:
-sdfda $%&$ asdf
BUT, false (when it should be true) with:
230asdfs 230sdfasd.50
It seems like the letters between the numbers aren't even considered and it returns false when it should in fact return true... If it starts with a letter, it returns true, otherwise, with a number, it's false...I need to check whether or not there are any non-numeric (except "dot") in the parameter "numberStr" (a String).