ActionScript 3.0 :: Buttons Can Often Be Unresponsive
Nov 12, 2010url...My problem is that the buttons can often be unresponsive. Sometimes you have to click 2 or 3 times for the button to work.
View 2 Repliesurl...My problem is that the buttons can often be unresponsive. Sometimes you have to click 2 or 3 times for the button to work.
View 2 RepliesNow my website is up and running, (functionality wise, not so much with the content yet), but I've noticed a problem with the buttons.They work for me on my Mac in Safari and Chrome, but not in Firefox. On my PC the buttons work in Chrome but not IE. They work sometimes, on some computer/ browser combinations, and not on others. On my friends mac, they would not work in any browser, chrome included.(Even the same computer/browser combinations don't seem to have continuity).It's seemingly at random when they do or don't work.I went ahead and added html links to to the top of my page, so people could still get around without being able to use the buttons, but its really is a drag that i've worked on this so hard and yet they have less than a 50% working rate.I have tried using flash help, tried researching the topic in forums, debugging, etc, with no luck! I have no errors in my code.I have no idea what is causing their limited functionality. Here is my website URL so you can take a look at my site and my html for embedding the flash if you want: [code]my site has a preloader, so i don't think its an issue of the page being loaded fully. My links are absolute/concrete html links. They are not relative to any folder structure nor are they pointing to files on my hard drive. I almost feel like it's a security setting on some browsers not to let flash take them to external websites.Is there some way for flash to override browser security settings?I'm just using the wrong keywords?about the extra script on my buttons; I have them set up so that they load and unload a movie clip appropriate to each respective button inside of a frame on the stage, each time you mouse over and out of them.
View 0 RepliesI have a custom app for a one-to-one chat (chatroulette style) and it seems that I cannot get more then 730 users although at that time I'm using 25% cpu 22% ram and about 120mbits (1 gbps available). Clean 4.5 install with no custom adjustments. My developers say that, according to the logs, I've a problem on a protocol level. I have no idea of what's happening (fmscore is active - no crashes), maybe is this the limit for a 1 gbps line? I'm using Windows 2008 R2 Web Edition, I've red somewhere that this particular version of Windows "may" have connection limits, maybe is this the reason?
View 5 RepliesI'm loading an image into a thumbnail button in flash from an XML file.
The button will scale up when it is mouse-over'd (is this a word?)
Here is the loading of the image into the movieclip
Code:
imageLoader = new Loader();
//imageURLArray[i] = "image.jpg"
imageLoader.load(new URLRequest(imageURLArray[i]));
[Code]....
Without the image loaded in it works fine. But with the image loaded in, the image is on top of the button so the scale event triggers the Loader object to scale ( instead of the button it is parented to). Is there a way to make the Loader object or the moveiclip it's parented to (imageHolder) unresponsive to a mouse over so only the thumbnail will scale (and its children as a result of course).
Here is the parenting if you need help visualizing it:
[ thumnail:MovieClip ] --child--> [ imageHolder:MovieClip ] --child--> [ Loader:dont know]
I just made a little site with CS3 where songs are supposed to stream and well the music player takes forever to load. Each song is supposed to be dynamically called by the actionscript but it looks like each song is being downloaded all at once when the page opens.
View 2 RepliesIt is a website for my dad and i decided to take this opportunity to learn flash. I made the nav bar using a tutorial i found from youtube and the code is this
Code:
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.URLRequest;
[Code].....
You can download it here [URL]external swf's when loaded.....run very very slow; sometimes unresponsive as if there is a script running in the background. I'm using keyboard commands to navigate through the screens - eg:on (keyPress "<Space>") {gotoAndStop("scene02", "firstframeLabel");}
View 3 RepliesI have a flash movie playing some music, but the slider controlling the volume has become unresponsive. I have no idea why. msg me if you want the see the actionscript.
View 1 RepliesI have designed an AIR application that displays a list with all txt files located in C: directory. I have used following code:
var videoListsArr:ArrayList = new ArrayList();
var folder:File = new File(driveName+":\");
folder.getDirectoryListingAsync();
[Code].....
This function works fine but it is being executed the application is hang and become unresponsive. how to resolve this problem that it displays the list of txt file without making application unresponsive ?
I am doing a simple Flash button that controls the playing of a moving clip.I want the movie to go to frame one and play when I mouse over the button and I want it to go to frame 12 and play when I mouse out. I have stop(); at frames 1, 12 and 25 to prevent looping.The mouse_over part works fine, but the mouse_out part is unresponsive.Here is my actionscript:
stop();
button_btn.addEventListener(MouseEvent.MOUSE_OVER, playMovie);
button_btn.addEventListener(MouseEvent.MOUSE_OUT, unwindMovie);[code]......
I have a parent swf called Main.swf that loads a child Registration.swf via a regular loader class then adds it to the stage. This child has a webcam function that captures an image but before that happens it prompts the user for permission to allow the webcam to be turned on. The problem I'm having is that in my IDE the prompt works like a charm and continues through to capturing image data. When I plop the files on a live server it fails. A friend recommended that it's most likely an issue with how I'm requesting permission from the child, so instead I'm calling an event to the parent telling IT to prompt and still no luck. Having the same issues. Note: The parent .swf was published as Player 9 and the child is in Player 10. I had to do it this way because each package has dependencies that require it.
View 1 RepliesI have an actionscript function which is supposed to launch a panel and then fill in Networktopology data inside it.As, network data is too large that it consumes much time and makes browser hang!Even I tried to display busy cursor which also stopped spinning when data was being processed.How can I ensure processing large amount of data does not hang the browser.
View 3 RepliesI have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
I am having trouble with a job I am doing at the moment which has an mc with buttons within it. I want it so that when I roll over the mc it tweens from a small version to a larger version, and on this mc there are some buttons. At the moment I can get the mc to move but the buttons remain inactive and also the rollover states on the buttons don't work. I have attached a simpler version of what I am trying to do to this post.
View 3 RepliesI'm working on a site and I have 2 movieClips/buttons that I would like to use as use as next frame/ previous frame triggers respectively. Is there a way to set the buttons up once and then access the functionality from the various levels of the site? Note that the prev/next buttons will not always be on the stage.
View 3 RepliesI am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?
[Code]....
im working on a zoom/pan gallery and i have a problem that i can't solve.URL...the pan buttons are not working but the zoom and reset buttons works. im working on movie the image using the mouse now, if you will hold the image and move it it will drag it on stage.the image is a loader the loads and image and placed on screen.there is a mask on top of it and a frame that indicates the size of the gallery.when the user pan the image loader content i want it to stop as soon as it gets to the gallery frame,but i cant seem to find the best way to do it.so basicly when the image is in 100% i dont want the user to be able to drag it but after you zoom the user will be able to drag it but only to the edge of the frame so there wont be any white spaces.i tried a lot of different ways to do it but all of them are complicated and not working the way that i want them to work.
View 2 RepliesI am using Flash CS4 with ActionScript 3 and I am fairly new at it. I am struggling with two things.
1. How can I start a movie clip while scrolling over a button? I know how to start a movie clip when a button is clicked.
2. How can I use multiple movie clips for seperate buttons?
[URL]
I'm trying to make a menu that has onRelease buttons on top of onRollover buttons (the onReleases are on a separate layer from the onRollovers). The onRelease buttons take the user to different urls, and the onRollover buttons are supposed to allow different parts of the menu to appear.
The onRelease buttons work fine, but I can't get the onRollover buttons to work consistently. Sometimes the onRollover buttons will correctly advance to a different frame, and sometimes they "stick" and do not advance. The script has no errors and I've tried changing the sizes of the onRollover buttons (in case they were too large and the cursor was hovering over more than 1 at the same time), changing the order of the code for the onRelease and onRollover commands (in case the onRollovers were being superseded by the onRelease commands), and countless variations of the layers and frames.
I'm sure that you'll want to see the script, but I don't think that pasting it all on this post would be reasonable? So I've put the .fla and the .swf on this page for reference: [URL]
I have 4 buttons , one container and one background movieClip as the attached file shows. Well.. at the Gallery movieclip displayList I add the other three BLACK buttons like this:
[Code]...
Everything I need consist on swap the buttons when i CLICK or ROLL_OVER those buttons, how do I do on thats circunstance? With a container and a background at the same displaylist.
I'm creating a menu system, the text buttons should, on rollover, move all buttons to the left (of the button currently rolled over) 100 pixels, in the gap created a sub menu running vertically will appear which will break into a 2nd horizontal submenu etc. I'm still in the early stages, and have hit a stumbling block, I placed a trace (this); cmd in root of the roll over function then again in each segement of the IF/ELSE loop inside that fuction. The trace CMD in the root of the rollover gives me the feed back _level0.btn1 or 2 or what ever button I have rolled over but the ones inside the IF/ELSE loop all say _level0.btn0 regardless of the button I roll over!
[Code]...
I have three buttons and when I click the second one, the first stops working (e.g. no trace event and it won't go back to the frame "tab1") but the third still works. Then when I press the third button both the first and second no longer work. If I take out the gotoAndStop lines, the buttons work fine. The subsequent frames simply have stops on them.
b1.addEventListener(MouseEvent.MOUSE_UP,b1Pressed);b2.addEventListener(MouseEvent.MOUSE_UP,b2Pressed);b3.addEventListener(MouseEvent.MOUSE_UP,b3Pressed);
function b1Pressed(event:MouseEvent){ trace("b1 pressed");
[Code]....
-Alright so I have made a next, and a prev button. That navigate the timeline inside an mc "tabs_mc." This mc ison the the main stage.-When the next and prev buttons are pressed they goto 1 of 4 frame labels on this timeline inside tabs_mc.-When one of these lables is reached an mc "thumbs" appears on the screen / stage.-These mc's "thumbs1, thumbs2, thumbs3, and thumbs4" contain buttons that SHOULD be clickable.-But are not after the prev, and next buttons are press. They are before the next, and prev button are press, but not after.
way this is or even better how to keep these buttons enabled after the next, prev buttons are clicked?I thought of making some sort of boolean to tell the each button that is needs to stay "true" after prev, and next are pressed.But I'm a beginner so I don't know where to start.Heres the next, and prev button code:
HTML Code:
//Button Listeners
/////next_mc.buttonMode = true;
[code].....
I'm having problems with the flash buttons on the flash website i made for a client. or some reason the buttons in the top and bottom menu work on some people's computers but on some they don't. I don't know what to do, i had this code for all the buttons,
on (release) {
getURL("http://legaldepartment.ca/","_self");
}
and they worked on my computer but on others the buttons didn't work at all so i added this code to each button also
on(press) {
_root.getURL("http://legaldepartment.ca/","self");
}
and they still work on my computer and some other people's computers but still some they don't work on some people's computers.
I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation.
View 3 RepliesI have been using Flash since it was Flash 3 and AS2 for about 3 years now. I have never ever ever been a fan of buttons. I find them limiting and icky. I just moved to AS3 and OOP this week (it's about freakin time, I know). I am just wondering who here likes to use buttons and why? Is there a point to them? I mean, apparently with AS3, you just have to add "mc.buttonMode = true" and you are well on your way to having all the functionality you need without all the hassle or up states and all that.I am open to adopting new techniques and strategies if they are worthwhile so I am just curious as to what the community thinks. What are the pros and cons to using MovieClips as buttons instead of using an actual SimpleButton.
View 6 RepliesI've to do a presentation in flash. I need to create buttons that will interact with other buttons. An example:
I've an electronic circuit with 4switches (ON or OFF state). Each switch it's a button. I've to close 2 switches so that closes the circuit and then i want to show to where the current flows.
I'm trying to do something like this, but I think this isn't a good solution:
on (release) {
if(_root.btn1 == "btn1_on")
gotoAndStop(<number_of_a_frame>);
else
gotoAndStop(<another_frame_number>);
}
I think this is gonna take me an HUGE time to create all the possibilities. Because I can open the switch1 and close switch4, or open switch3 and close switch2... Do you know what i've mean?
I've used flash like twice in my life, but I think I know how to make a button. I'm working on my artists portfolio online and I'm making it in flash. Basically it has buttons which link to photos and videos. There are 5 videos and 5 photographs. Now the problem is when you click on a button and watch a video buttons 1-3 of photos don't work. But the 4 and 5 buttons for photos work. It seems to only happen after you watch a video. The same actionscript is on all of them GotoandStop is the command I'm using for the photos and GotoandPlay for the videos.
View 3 RepliesI am attempting to create a flash site for my mom's company. I am having problems with the menu bar. Right now in the timeline the actions for the menu are:[code]but the buttons aren't even showing up as buttons, they are just text?
View 2 Replieshere is my issue, so i have a main page with a slideOut movieclip which basically is a movie clip button and the "over" state sends a tray out of the movie clip with info and anothe rmovie clip button. i cant seem to get that movie clip button to root.gotoAndPlay("frameLabel");i have the actionscript on the same frame as the movie clip i need to act as a button. but it just doesnt seem to react to it.i have tried going to the main timeline and doing
blank_mc.blank2_mc.onRelease = function();
{
_root.gotoAndPlay("frameLabel");
[code]....