Adding To Current Button
Nov 17, 2009playing around w/flash cs4, i currently have the following code:[code]What i want to do now is add an action to each button, i need it to call another swf.
View 1 Repliesplaying around w/flash cs4, i currently have the following code:[code]What i want to do now is add an action to each button, i need it to call another swf.
View 1 RepliesI am new with ActionScript but not entirely new to programming so I haven't had many problems with it.However I am trying to make a slideshow like slide.com's. I have 3 layers:Actionscript Preloader Images
This is the ActionScript in the Images layer:
[Code]...
On the stage there is 20 pixels before the thumbnails are supposed to be layed out, so I have tried to accommodate this. So the objects I want to create are the thumbnails. My problem is they are not showing up, and I have a valid image URL in the XML. Can anyone tell me how I would fix this? How do I do this in AS3?
I have an array of numbers and I want to add the numbers and return an array of addition value My Array looks like
Code:
var optionYPos:Array=new Array(0,10,20,40);
I want the result as 0,10,30,70
Just adding the previous value with the current one.
I've got a group of buttons that don't navigate but show a tool tip. I have some of the functions working fine but can't seem to get my current button to stick. What am i overlooking here? fla: [URL]
[Code]...
I have some buttons placed on stage. Every button has s baseclass, Button.as.
What i wonder is how i in my baseclass can highlight the button that was clicked.. and then when another button is clicked highlight that one instead.. some current-button functionality.[code]...
I have flash navigation on two pages (index.php & index2.php). I am attempting to have the button determine the current url.
If the current page is index2 it loads the appropriate movie If the current page is not index2 it goes to index2 and then loads the appropriate movie.
this is what I started with?
on (release) {
trace(_root._url);
if (_root.url == "index2.php") {
[Code].....
I have managed to create some buttons movie clips and understand how to link pages. The only question i have is how do you make the button/link for the current page highlight so the user can know what page they are on? Is there a way to have a current page indicator in flash as you can do with html/css?
View 2 RepliesI've got scrpt that switching movie clips inside container_mc and i want to add button inside all that movie clips that will remove current displaying movie clip. When it will be removed i want to be able to choose in navigation any movie clip to display. Here is my navigation script:
[Code]....
I want to print the current page (web page) when user clicks on a button.
View 14 RepliesI have a movie, the movie goes to different possitions depending on what button is clicked, what i want to happen is for the movie to go over the frames in between two points in the event that one possition is skipped. does that make sense?eg. if i had points a b c d in my clip. buttons designated to each point so when i click them they go to that point. if i am currently on point a, and click on c, i want it to play but pass over point b. if on point d, i want it to play backward through c and b. can i define a start a stop point on the timeline? like if the possition = 34 go to and stop at 65. if 65 go to and stop at 2.
View 7 RepliesI currently creating a website which content some pages. example of homepage and aboutpage.I want to make it as below.
If the user clicks the 'home_mc' button i want it to disable to the content cant be loaded twice. If the user clicks 'products_mc' i want 'home_mc' to be enable again, and then disable 'products_mc'.This to prevent user to currently reading on homepage when click on the home_mc button again will cause the homepage animate in again.
but i still cant figure out how to make it. can we use some code like
if(nextPage == currentPage)
{
//disable the mouseEvent listener of the currentTarget button?
}
[Code].....
I have this menu that I am loading my swf files under a as. file and linked to a xml file. It loads perfectly my swf files when i click on the buttons, but when i keep clicking the buttons, it keeps loading it on top of each other...How can i unload the current swf file when i click on the other button.? under the as file i have the following to load my swf files:
private function customFunc(link):void { var request:URLRequest = new URLRequest(link); var loader:Loader = new Loader() loader.load(request) var swfContainer:MovieClip=new MovieClip ; this.addChild(swfContainer) swfContainer.addChild(loader);; trace(link);
}
and under the xml i have the following code :
<buttons> <button name="HOME" linkType="custom" link="ball.swf" /> <button name="DESIGN" linkType="custom" link="rec.swf" /></buttons>
I'm building a stand alone presentation application (.exe) in Flash CS4, and want to add a print button which prints current frame. Tried to find about that everywhere on internet, but didn't quite found what I need. So when someone clicks the button, I wish to save that image in original size as bitmap or jpeg image. How can I do that?
View 2 Replieshow to associates the active button with current slideshow. See the link below from Apple. So, people know which button is active.[URL]
View 9 RepliesI am working on a simple flash project that has 4 movie clips that animate on their own in the main timeline with a tween, changing every 20sec. to the next clip. I have flags set up so that you can also use the buttons to go to a specific frame.[code]...
View 13 RepliesI have this code about navigation using movieclip buttons. I just made the currently selected button disabled when it is in the current page but I just cant figure out on how to maintain it in its hover state (It keeps on returning to its normal state).
Here's the code I've written on the first frame on the main timeline(scene1), I have 4 buttons namely mcButton1, mcButton2, mcButton3, mcButton4 and 4 labeled frames, page1, page2, page3 and page4.:
var page:String;
var btnArray:Array = [mcButton1, mcButton2, mcButton3, mcButton4];var pageArray:Array = ["page1", "page2", "page3", "page4"];
[Code].....
I have a slideshow where you can click a button and it will bring you to a specific frame with an image on it. How can I code it so that the clicked button that represents the 'current' slide changes color until another button is clicked? When the other button is clicked, it will take on the 'current' color I bet this has been asked before, but I've only found responses for AS2.
View 3 RepliesI have a menu set up with several buttons (on the left side of the screen), each of which loads an external swf (on the right side of the screen). Within some of these swfs are more buttons to load other swfs, and the menu on the left remains active while another swfs is playing.What I want is to unload the current swf whenever a button is clicked and load the new on in the same spot. So before I was using addChildAt to get the external swf's at a certain level, and then removeChildAt to take away whichever swf it is and then add the next one. That didn't stop the sound, so I switched it to unloadAndStop and set up a function that unloadAndStops each individual swf, like this:[code]
That function runs every time a new swf is called to remove the previous one.Now I know that's not what I should do since I'm effectively using a method on objects that aren't in the display list, and it's apparent since it messes up the text later on in the timeline. But I don't know any other way to get everything to unload and to stop all the sound. It would be a headache to make specific paths for the buttons within swf's, but I don't even know what I'd do about the buttons in the main timeline that don't know what swf is playing on the right.I've searched lots of different forums for this one, for something kinda like unloadAndStop and kinda like removeChildAt, so I'm thinking I need to reorganize this project somehow
I have a game made by Flash CS5 ActionScript3. I want to create a button in the game where I can save the current timeline of the game. For example, I stopped at frame 5 and save the game. So when I load it, I should instantly return to frame 5.
View 2 RepliesSo I know Flashvars uses a lot different methods in AS3 because of the loader classes and all that. How do I disable the button and make it only display the second frame to the button corresponding to the page that the user is currently on?I've called a variable in the HTML document using query string (or I could use Flashvars just as easy if that makes it easier) called "currentPage" and on each page in the HTML give it a page name.I know how to grab the variable from the HTML into a text field in the SWF (see this tutorial) but I'm having trouble manipulating my menu buttons.
View 0 RepliesI'm working on a slideshow presentation which cycles through ten slides. It also has ten buttons so that you can go between the slides.My problem is that I want the button to stay hovering while it's on it's specific slide.Right now when you hover over a button it will "rise" and when you mouse off it "lowers" I need the button to stay in the risen position while it's on it's specific slide, then lower when it transitions out and then the next button will rise in it's specific slide.
View 7 Replieshave been looking for the right solution to my little problem and not found anything that works with my project.I have a fully functional mp3 player built in flash cs5 with AS3 and I would love to make the stop button reset the song to the beginning instead of pausing it like it is doing at the moment.. My code for the whole app is as follows :
/////////////////////////
/////// CODE FOR FRAME 1
/////////////////////////
[code].....
I've got a button that tells a movie clip to play its animation (goto and play frame 2), but I only want it to play that frame if the current frame is frame 1 - meaning that I don't want people to be able to keep clicking the button while the clip is playing and have the clip restart.
I'm guessing it would be something like:
If ( current frame is frame 1 ) { goto and play frame 2 }
But I can't seem to get it to work.
how can make a button that makes the current page my homepage? im 99% sure there's Javascript involved and I've tried writing it my self P.S if its, I got one button to work (adding to favorites),
View 5 RepliesI have a .swf file containing a navigation bar and also an animation. I was going to use getURL on the nav buttons so that a different html page would launch onRelease. The animation in the swf file that contains the nav buttons plays as soon as the swf is loaded and there's also a movie clip in the file which continues its animation even after the file has loaded and played. As each of the nav buttons are pressed and the correct html page loads, I don't want the entire swf file to reload and therefore play the entire animation again as it did on the home page, but instead I just want it to appear as though it's already loaded but I do want the separate movie clip in the swf file to continue to play. Is there any way to make this happen?
Also, I wondered what code I'd need to make the current page nav button appear in a different state to all the other buttons to make a "you are here" effect.
I'm making a mp3 player using flash. when i test the movie it starts playing fine but when i click the next button the current track keeps playing while the next one starts. plus the stop button it's not working. here is the code.
[Code]...
Take a look at this site. [URL] You notice when you click on a button the current 'site' you are on dissapears befor the next one loads. How is this done? It's like the code tells flash first to 'close' the current page and then load the page you clicked on.
View 1 Repliesis there anyway to have a button play frames 5-10 on a movie clip inside the current frame, as well as skipping to...lets say...frame 10 of the scene?
i want to create a site where buttons go to different pages, but those pages have animations in and out.so if someone is in one page, and clicks a button to go to another, that page plays the "out" animation while the other page plays the "in" animation.
As usual I click on the button and expect the actions palette to become active allowing me to add the code:
on (release) {
getURL("http://www.linkgoeshere.com");
}
But in CS4 it isn't active when I click on the button. When I click on the button to assign an action it tells me "The current selection cannot have actions applied to it".
I'm building a website & I'm using External Swf's, Everything works fine, but on some pages, e.g "Videos" loads fine, but when I try to click a button into another SWF, it reloads the current SWF "videos" again,, is it something in the preloader script or something,
View 3 Replies