ActionScript 3.0 :: Make A Multiple Link In One Button?
Jul 6, 2010I want to make a multiple link in one button with AS3
View 1 RepliesI want to make a multiple link in one button with AS3
View 1 RepliesI am trying to make a button in such a way so that after you clicked on it, the button will change colour, indicating that the link has been visited.
View 3 RepliesI've got a flash file loaded on more than 150 sites. The button in the file currently goes to a single URL, but we are developing individual URLs for the link for each site. How can I do this in one flash file? I don't want to create 150 flash files with different links. Can I variables or something?
View 3 RepliesI'm working on a project and I need to link multiple screens so that when you click a button it will go to the next screen.I know how to do this via the timeline but I have to do it in action script with addchild.
View 1 RepliesI want to make a button map to a local printer on the network.
View 6 RepliesI'm trying to link a button to the next scene. But the problem is that I can't give an action to the button in the scene, because in the action panel appears: 'Current selection cannot have actions applied to it.' So I have to make a framelabel I guess but doesn't work eather, what's the next step?
View 4 RepliesI 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 have a movieclip and have actionscript on a separate layer that controls the movie clip. However I want to be able to link to a URL when I click the button. Based on what I have does anyone know how to teak my code? Lets pretend the site I want to link to is "[URL]". Here's the code:
[Code]...
I am trying to make a button work in a Flash cs4 file using as2. It is a template I am modifying from DreamTemplate. I don't know what I am supposed to change and exactly what I should change that unknown code to Here is the code I have:
[Code]...
As you can see I have tried to replace the url that was in the quotes and it does not work.
I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instancesIn the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.
View 3 RepliesI Want to have a button info_btn. Now i know how to make a button and link it to a scene/frame.
But what im asking is, i want the button to display something (text field or movieclip(doesn't matter )) but I do not want it to go to another scene or frame if you know what i mean ? i want it to display there and then on the same scene and frame with a button to close it.. Is this possible?
I am trying to connect audio to the button so when I click on the button music it starts playing and when clicked again music stops.
View 5 Replies1. The old main logo was not as wide as the new one, so now the entire new one is not clickable (to take you back to the main page). How do I fix this?
2. For the life of me I can't figure out how to make text (or a button if need be) link to a specific flash frame. If you look on the site, there are a couple of spots under "What We Do" that I need clickable to take them to the Contact Us page.
I'm working on a simple rotation of some parts, I'm making mouseover regions for each position that the parts are in and the shape of these regions are completely different in each frame. I was wondering if there was a way to make all these separate regions on separate frames act as one button instead of making 25 separate buttons to do the same thing?
View 7 Repliescan you make a button have multiple functions? as in if i click a button one and imahe will pop up and then click that same button and another different image will pop up??
View 1 RepliesI am literally at the end of my wick with this one! Here's the skinny, so to speak:
home.swf
products.swf
button line mc
[code]........
i created my subMenu buttons fine, however i only know how to link them to a picture/url address, my goal is to have the user click the subMenu button and open the image or page right below the menu bar in the "stage" area of flash. I read about IFrames but i'd rather create the whole site in flash .Here is the code for my subMenu...
btn_34th.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("images/34th.jpg"));
trace("I'm Clicked!");
Again, this works fine, i just want to have the image take up the "white" space on the stage area, very similar to an IFrame.
I've trawled the web, everyone with different ideas on how to call up a mailto link in AS3. What I'm looking for is this: I have a box, that is coverted to a button symbol given the name 'mailto'I have another layer for the actionscript I have imported 'flash.net.navigateToURL' and 'flash.net.URLRequest'
I know I need to create a function or a variable to link in the already created button. Do I also need to import the MouseEvents?
I created this FLA to get used to CS4 (i was previously using8)Everything works wonderfully, I would just like to know how to use AS3 properly, without having to call defeat and create the FLA again using AS2.
I have to make a worldmap for a customer. Everything works just fine, but now I have to link from the main swf, to another swf. This last SWF has also an XML attached to it. Now the question is, how to do that. Oh and the main swf has a button which should go to the other swf.
If you have a minute , I will try to give you the Flash file. As it is for a customer I can't always give this.
I have an an array of objects. I populate the datagrid from the array. The nmber of columns in the datagrid is fix i.e.5 and the first column always shows serial number (0,1,2,3,4). I have a link button called 'CLEAR' in the last column of the datagrid.
1> How do I make the clear button visible only when the row is particularly clicked 2> When the clear button is clicked, how do I make the contents of that particular row cleared. Not deleted, only cleared to insert data again. Also, the serial number (0,1,2,3,4) should not be cleared, nor deleted. How to do this ?
I've been trying to fix a problem I'm having in flash, but have no idea where to go from here. I am trying to link multiple images to different urls.[code]I need to make each bigImage file link to a different url.
View 6 Repliesstop();
brain_btn.addEventListener(MouseEvent.CLICK, clickFunction);
function clickFunction(evt:MouseEvent):void {
[code].....
I want to create a small color game. So far I am stuck at the first part. I already created the layers and buttons. What I am stuck on is the actual coding part. This is what i am stuck on, a start that will start sending 5 boxes from the starting point to the ending point. Each moving box will have its own buttons that allow it change its color. 1st click is blue, 2nd is red, 3rd is green, 4th is back to white. What ever color is recieve at the end point, it will send another color box back. So if a red reach the end point it will send a blue box back, or if a white reach the end it will send a orange box back.
View 0 RepliesI'm Trying to develop a small game where the user chooses from a range of boxes of the left of screen and can drag 3 of them separatley to 3 holding boxes on ther right. each box can be dragged to any location and the order is not important. Once the 3 holding boxes are all full I want a new button to appear. I completed a tutorial and I've got one box working perfectly but no matter what i try I can't get it working with multiple boxes and locations. Below is a list of the instance names of the movie clips plus my actionscript. I've attached a link to the flash file.
[URL]
INSTANCE NAMES
box 1 = "circle_mc"
box 2 = "circle_mc2"
both the grey boxes are called = "targetCircle"
[Code].....
I have a logo that I'd like to animate for a class presentation. The logo can be seen here: [URL]. I would like only the word LEAF to fade in, and then the blue portion to wind its way around (Starting at the gap at the top, going clockwise and finishing by revealing to two shorter lines in the center). At first I tried to mask the blue portion in segments, but couldn't figure out how to link multiple symbols together to mask the same image.
View 1 RepliesIn one of our project we are using flex for front end, blazeds/java in the backend. Its an existing code where services are prewritten. I have to make calls to 3 services in the backend (basically 3 remote objects) and get their result and store the result in an object and show the data of this object in a view.
Now in front end we are using Flex and Parsley Framework. I was thinking of the following approaches.
1) Making commands for each service call and storing the result in a shared object (model) and then displaying this model in the view. In this approach the problem is some services are needed in some other web pages, but they donot need the same model. How should i handle this scenario ? Should i make a asynchronous remote call and fetch the result and then again dispatch and event with the event object storing the result.
2) Making a service call , wait for the result then make another call and wait for the result and then make other call, not sure if this is the right way ?
can i use a single RTMP link included on FMLE with multiple servers, means, that RTMP link will do the redirection to the other RTMP links.with hight number of simultanous users, that feature will manage the use of servers
View 7 RepliesI want to load variable with multiple parameter link so i will load it in flash Like i have text file like it :
link1=mylink/youlink/ghe&ghik?dfds.blabla.html
link2=mylink/youlink/ghe&ghik?dfds.blabla.html
so how i can load it in flash?
So, I have tons o' buttons that each need to link to unique URLs, and I'd like to minimize coding as much as possible. The code below works, but I will have to do this about 50 times.Can I associate the URLs with the instance names of the buttons and then reuse the same function?In the event you didn't already guess, I'm a newbie to AS3
cap_mc.CapTeam_btn.addEventListener(MouseEvent.CLICK, capPage);
function capPage (evtObj:MouseEvent) { trace("clicked") var url:String = "http://www.mydomain.com"; var request:URLRequest = new URLRequest(url);
[code].....
i'm attempting to resolve a problem with targeting. i would like to target multiple iframes from a link that has been pulled into a flash document. basically, the link needs to load a title and an mov file. the mov file has to be loaded into an iframe, but the title could be loaded into another dynamic text field.. i'm using a text file that is loaded into a dynamic text field. the link within the text file currently looks like this:
<a href="video/AlzyGramp.mov" target="videowindow" onClick="parent.titles.location.href = 'alzy.html'; return true;">Alzy Gramps</a>
but it doesn't work. is there a problem with flash htmltext reading javascript? i even installed the flashjavascript gateway.