ActionScript 2.0 :: Goto A Certain Url When Click On A Button Named "hyperlink"?
Aug 19, 2004How do you make it so that when you click on a button named "hyperlink" it goes to a certain url?
View 5 RepliesHow do you make it so that when you click on a button named "hyperlink" it goes to a certain url?
View 5 RepliesHow do you make it so that when you click on a button named "hyperlink" it goes to a certain url?
View 3 RepliesI am trying to make a series of images act like buttons, where each button opens a new browser window with a url of my decision. I have put in the images, converted them to symbols (buttons) and given them an instance name.
Now, the AS3. The following works for me:
Code:
btn_bent.addEventListener(MouseEvent.CLICK, buttonClickHandler_beton);
function buttonClickHandler_beton(Event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.hattingks.dk/Default.aspx?ID=6587&ProductID=9866200&VariantID=&GroupID=vogne"));
}
But I wouldn't want to make a new function for each button. I have tried to extend the function to take two parameters like:
Code:
buttonClickHandler_beton(Event:MouseEvent, www:String):void
I need help with the 'If' statement I want it so when i click a button till the socre gets to 5 I want it to go to another frame.
View 8 Repliesi am doing a simple project in which i have 2 frames in the main time line and a movieclip in the first frame and a button.i have something else in the second frame.when i click the button the movieclip should start after it ends the timeline should move to second frame and stop.
View 7 RepliesI have four scenes, it loads on the first scene. I click the button which sould go to scene four but it goes to scene 2.
View 2 RepliesI want to be able to click on the higlighted area to open a link. However, when I do this in the area on the left, it does the same link for all. What happens is when the link is hovered over, it changes colour, I want to also achieve a onmouse click to open a link. What code do I need and placed where to do that without changeing the current mouseover function of highlighting the sentence in another colour?
View 3 RepliesI have an ArcGIS map created with Flex. The labels created dynamically are the towns on the map. We have some PDF files that have some information about the towns on the map.
Is there a way to make those town labels clickable so that they can display the PDF information on a new page?
I have created a flash with five movie clips. I want when I press each of them to go and play specific frames on the main timeline? How can I do that?
View 1 RepliesI've got 10 keyframes with a image on each one. When the user clicks the button i'd like it to go to a random keyframe.
View 2 RepliesI've seen various games where by when you start the game it gives you a scenario and 2 boxes to click, if you click a you go to frame say 57 and if you click b you goto frame 58
[code]...
I'm learning AS3 and I can't get this to work for me. In AS2 I would add a unique var to my buttons. If you clicked any of them they would just play() the main time line. Then when they got to the next keyframe it would look for the var and then go to the corresponding keyframe. How do I do this in AS3?
View 2 RepliesDyamic text box timer problem?
var score:int=0;score += 10;
addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void{ mytextbox.text = String(score);}
on first click it adds number 10 then it doesnt goto 20 on the next clicks?
I'm new to actionscript and I've got this problem.Hypothetically, I have Button 1 and Button 2.When I click Button 1 the file goes to frame 10.What I need is that when someone clicks Button 2, Button 1 instead of go to frame 10, go to frame 20.
View 2 RepliesI have a 400 x 300 video on frame 20 when a user clicks a button named double_btn I want them to go to frame 21 with the video still playing but double the size. Any ideas on how to do this?
View 1 RepliesI want to add a hyperlink link button to my site, but it keeps buggering up the flow.Here's is the code for my site so far (minus the link code):
stop();function trans(event:MouseEvent):void{ gotoAndPlay(event.target.name);
}
[code]............
So there are three menu buttons, and the page flys in animations depending on the button pushed.I have another button named LINK, and I thought it would just be a matter of inserting the following code somewhere:
LINK.onRelease=function(){ getURL("http:url....); }
But no matter where I put it, it just makes my site play through all the animations one after the other regardless of whether buttons have been clicked or not, and the link won't work.Where should I put this code and is it correct? Also, once it's working, I want to copy it and make another button for creating an email.Is that just a matter of having a mailto: link instead of a hyperlink?
on loading multiple external swf on single button... I mean on click of next or previous button may I load external swf with different name on targeted instance....?
View 9 RepliesLets say i have a button on frame 1. And if you press it normal, you ll get to frame 2. But then if you click it on another way, you ll get to frame 3. How do i do that easy?! With another way i mean like shift click or ctrl click or is it an easier way?
View 3 RepliesI want to do is add a simple hyperlink in my xmlhtml hyperlink in my xml.how to do a hyperlink in xml.This is what I do know,you can add the <a href="http:[url]...but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have.I have also seen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml?
View 38 RepliesI have made a banner in CS4 and I need to make it a button scripting in the code for a hyperlink. This function seems to have changed quite a bit in action script 3.
View 8 RepliesI have a button symbol on the top layer in a flash file. I have it fade in and on the last frame of the tween, I placed an action of:
on (release) {
getURL("[URL]", "_blank");
}
I copied that frame and pasted it on the last frame of the movie. When I play the movie, I get the mouse-over for the button, but when I click, nothing happens. How do I get the url to work?
I do not know really anything about ActionScript. I have completed a tut on it but that is all. I am trying to make a hyperlink from a classic arcade button but the code I found is apparently from AS2.
View 1 RepliesAfter you finish the Creating Movie Clip Buttons tutorial you might want to know how to add a hyperlink to it. Just study the last 2 lines of code
[Code]...
I would have thrown both my computer and probably my family out the window by now out of pure frustration. I used the tutorial to learn how to use flash mx to make button hyperlinks by using the actions/browser/geturl thingWhat I am struggling with is finding a way to outline or select each individual state so that the user can click anywhere in the state and have it link to another page rather then have to make a dot on the state
View 2 RepliesI want to hyperlink to a zip file using a button in flash. Is there anyway i can do this? the GetURL bit doesnt work. (at least not in mozilla). The final file will be a projector so it has to work from there. When a person clicks on a image, it links to a high-rez tiff in a zip file.
View 2 RepliesI have five buttons on a page. One must link back to a previous scene in the movie. The other four must each launch a window with a unique URL.
Currently the code is this:
stop();
resourcesretoc.addEventListener(MouseEvent.CLICK, btnclickresourcesretoc);
function btnclickresurcesretoc(evt:MouseEvent):void {
gotoAndPlay(120,"Scene 1")
[Code].....
I get an error - "Call to a possibly undefined method navigateToUrl, but I don't know what that means / how to fix it.
I'm currently trying to load specific XML data as a hyperlink into a button,the hyperlink is saved in the xml-file, and called upon by "childURL", now if I assign this function to the child_mc, which is formed into a menu dynamically within an instance named emptyMC, it will give me the link:
Code:
btnLink.onRelease = function() {
getURL(childURL, "_blank");
};
problem is I want to assign the link, when the child_mc-movieclip is clicked, to a button named 'linkbutton' on the main stage which will then load the page assigned in the xml-file when clicked.How would I load this data inside the button on stage? All codes I tried just open my browser and link to nowhere.
Am working on a website and just doing the final tests and evrything works apart from in internet explorer 7 when i click on the hyperlink( flash button) it says it can't find the url, which doen't make any sense as it works fine using mozilla.
View 1 RepliesI have "inherited" some projects. One question I have is about a project that directs a user to a particular HTML page when a button is clicked. I have searched through the Actions and Behaviors and I can find no reference to the page it currently calls so I don't know how to change the page activated.
View 4 RepliesI am creating a Picture preview system, so far I have a movie clip with all of my images inside, a load of buttons that when pressed make the movie clip swap to the correct picture and stop there. All of this is fine, my issue is that I wantto place the Movie clip in question into a button, and depending on the particular frame the movie is showing, it will send the user to a different Website.
View 4 Replies