Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Txt To Button Link



Lets say I am making an application with simple buttons.

I want the buttons to change their getURL("link") depending on the link I type on a txt file.

Does anyone know how i can go about this?
Thanks!
SS



Ultrashock Forums > Flash > ActionScript
Posted on: 2005-08-31


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Button Link Inside Movie Clip Link To Slide #
First let me say I am a very new to ActionScript and Flash, but have a pretty good understanding of the web and a basic understanding of object oriented scripts from CSS and a few other languages.

I have a navigation menu which is a movie clip containing buttons inside it and have a slide presentation as my main content. I am trying to make the buttons link to a specific slide # in a different part of my flash presentation.

You can see the page here: http://brhpc.ericlevay.com

The nav menu is a downloaded source and the slide show is the default canned one from the Flash templates directory.

I was hoping to use the gotoandStop (slide#) to make the connection between the nav button and the slide but it does not do anything.

I will provide the source if needed...

Thanks!

Text Flash Link - Button Mouseover & Link
Hi - I'm a basic user of flash mx - I'm redevloping my design site. How do you make text links and how do you do mouseover scripts in flash MX.

Thanks for your help

Link To Url From Button - Help Please (button With Effects Is Yourzzz..)
Hey there!
I got a little problem..not that difficult it must be, but i can just not figure it out.. Can anyone check this button..Feel free to use it for whatever you want. Well, the question is quite simpel..this button has to refer to e.g.> http://www.mypage.com
Please if someone knows, let me know
Thanks

How Can I Make A Link To Another Scene For The Button If The Button Is In A MC?
sorry newbie question*_*
but im getting really mad at it now..
i created a button in a MC
i tried to put action on the button to make it link to scene 2
but it just doesnt work....
and i tried the button on main stage and it worked
but in my situation the button cant exist in main stage
what can i do? pls pls pls help me>__<+
PS. my version is Flash MX

Button Location And Button Link
any one help me with this;

I have a button that is buried in a movie clip (MC2) that is within another MC (MC1) on the main scene/timeline (TL) - complicated, but necessary.

I need the button action to move the MC1 to a specified spot.

I've tried this;

on (release) {
_root.MC1.gotoAndPlay("PlaceNameOnMC1Timeline");
}


which isnt' working. Anyone help please?

How Do You Link A Button?
I have four buttons in my animated banner. I have them working properly with the Up, Over, Down, and Hit functions. Now I'd like to make them link to other pages on my site.

By the way, my Help file locks me up when I try to use it. Is there an online version of it?

jon

A Link Through A Button?
Im a newb i was hoping someone could help me with this....


Ok i know how to make buttons and all but now how do i get the down frame to be set when you click it it takes you to a webpage? only way i have figured out is set the button with action script the the original scene since the action script commands for it is unavailible when i try to set it to the down frame and when i just set it to the whole button and i test the movie it just pops up a wbepage everytime it goes through that portion of the movie....so basically my question is how do i set the down frame of the button to have it direct you to a diffrent area of a webpage? or open a diffrent page
[Edited by Jamoan on 04-06-2002 at 12:08 AM]

Link A Button To A URL?
I am a beginer at flash.
Plz help me with linking a button to a web page when i click mouse to this button.

BUTTON LINK
I can't <b>link</b> (target) my <b>button</b> to an Iframe! I cant even link my buttons to anything! I've tried many times, and I've posted help everywhere, and cannot get anything! I need to link my button to the IFRAME, so when you click on the buttons, it changes the content in the IFRAME. Its just like frames, except using buttons instead of words, and IFrames instead of just normal frames. <b>I need major help!</b> If you still dont understand what i mean, go to the flashkit <b>guestbook</b>, and at the guestbook, you can see these buttons, that you click on, and the content changes in the iframe. That's what i'm trying to do on my site, but unable to do that. Pretend < > is ( ). I did, (a href="...html" TARGET="...")(object...*button*)(/object)(/a) *the (object) was there already for the button. And it wont work! But that's how it said in many sites. <b>PLEASE REPLY to: xiluvfreddiex@hotmail.com IF YOU KNOW THE ANSWER THE MY PROBLEM!</b> THANKS!

Button Link
How do i link a button to a url????

Button Link
Hi everybody,
i have a question about a button link. When i make the the text into a button there is a mistake. I want to have the text into a button when you move over not only the text is a button but also a rectangle around it.If you move with you mouse over the button your mouse is a hand just over the text. I would like it to have a hand in a rectangle around the text if you know what i mean. I just don't know how to do that. I hope you can help me.

Thanks,

Dj Persone

Link Or Button
Hi there

Is there a way to make a link or button downloadable. when it is click it will start downloading.

thanks

Button To Link?
How do I get a button to link to an html page?

Button/Link Help Please :)
Hello
Hoping someone may be able to help me with a problem!

I've created a website using a long (800x2310 pixels) flash movie, and down the bottom of the first page i have a link to another frame.

Yet, when you click the link it goes to the next frame, but down the bottom of the page, instead of to the top, making it look rather funny!

I was wondering if there is a way of making the link refresh/reload the page so it goes to the top??

To see what i am meaning (if i don't make sense!) go to www.positiveenergy.info - down the bottom of the About The Positive Energy Company page there is a underlined text link to The Oracle, if you click this you will get what i am trying to do!

Thanks for your time Have a FANTASIC day/nite!!

Link A Button
How do I create an outside link to a button?
Thanks

Pop Up Button Link
HI>
how do u code a button in flash to link to javascript files...
THANX

Button Link
hi i am making an intro to a friends website, and i was wondering how to assign a url to a button. like i want the movie to play, and the visitor will click the enter button, and bring them to the first page. thanks, peace

Button Link
HI

i'm trying to assign a action to a button that would go to the contact page which in this case is scene 3. but it does not seem to work. what am i doing wrong. i'm using flash mx professional so i don't know if there is a difference between professional and mx.here is the script i have assigned

on (press) {
gotoAndPlay(scene3);

}

Button Link
hi

i'm trying to link a button to a website.

he is the script
on (press) {
getURL(http://www.ryanair.com/);
}

the question i have is when i put the exact address in ..
the //// will end up making it a comment.
is there a new way to write a link..also how i make it open up in another window.
i'm using flash professional

thanks

How To Use Xml To Go To Link By Button
I have problem about using XML to link certain website though button.
Please help me how to write the actionscript, thanks^^

Button Link
Hey guys my main webpage has a button that pops up another page that contains an swf. In the popup swf I have a button that I want when someone clicks on it then it would change the adress of the main page and close the current window (the popup).
What would the on release command code for the button be?

Link -> Button
Hi all,
I have a question! it's about this script:

Quote:




/****************************

Alessandro Crugnola

SEPHIROTH
alessandro@sephiroth.it
http://www.sephiroth.it

****************************/

fscommand("allowscale",false);
fscommand("trapallkeys",true);

// dichiariamo i valori di acc e smorzamento dei movieclip(s) che
// comporranno il nostro menu
MovieClip.prototype.acc = 3.9
MovieClip.prototype.smorz = 1.22

// ACTION FOR THE BUTTON
MovieClip.prototype.DoSomething = function(theClip){
trace("nome: " + theClip._name)
trace("valore: " + theClip.mov.txt)
// here you can add your script for the button action...
}
etc..etc....






as you can see, the maker of this (http://www.flashkit.com/downloads/mo...ing%20menu.zip)
says people can add the script for the buttons, but I don't know how ! could you please help me out?
Thanks a lot !!

the file is located here
and this is the full script:

Quote:




/****************************

Alessandro Crugnola

SEPHIROTH
alessandro@sephiroth.it
http://www.sephiroth.it

****************************/

fscommand("allowscale",false);
fscommand("trapallkeys",true);

// dichiariamo i valori di acc e smorzamento dei movieclip(s) che
// comporranno il nostro menu
MovieClip.prototype.acc = 3.9
MovieClip.prototype.smorz = 1.22

// ACTION FOR THE BUTTON
MovieClip.prototype.DoSomething = function(theClip){
trace("nome: " + theClip._name)
trace("valore: " + theClip.mov.txt)
// here you can add your script for the button action...
}



// label sui bottoni
nomi = new Array("HOME","JOIN US","FORUMS","POLLS");
loghi = new Array("cubo","triangolo","ottagono","sfera");
max = 3
// creo il menu
for(i=1;i<=max;i++){
duplicateMovieClip("_root.menu0","menu"+i,i)
myMenu = _root["menu"+i]
myMenu.mov.txt = nomi[i]
myMenu.attachMovie(loghi[i],"logo" + i,(5000+i))
myLogo = eval("_root.menu" + i + ".logo" + i)
myLogo._x = -76
newColor = new getColor(myMenu);
}
_root.menu0.attachMovie("cubo","cubo",(7000+1))
_root.menu0.cubo._x = -76

// coloro i menu in modo differente
function getColor(what){
inizio += (255/nomi.length)/3
colore = new Color(eval(what))
alex = new Object();
alex = colore.getTransform();
alex.rb += inizio
alex.gb += inizio
alex.bb += inizio
colore.setTransform(alex)
}

Button's Won't Link To Url's - HELP
Could someone please check out the attached fla. file? I have created a simple menu bar with some linked buttons (invisible) and they won't link to my url's. For some reason the url's start to open up but stop seconds later. I have no clue what I'm doing wrong.

Can't Get Button To Link To A Different URL
I am needing to change the URL that I have a button linking to. I go in there and just change the address of where they have moved the page to but it still will not link to the correct place. Is there a reason that the change to the new code does not get saved?

I am extremely desperate to get this button fixed because this single defective link/button is decreasing the value of my website.

I am using FlashMX. I know I need to upgrade my software

desperate for help

Help With Button Link
I have an exe projector for pc and mac my link works in pc but not mac.
here is the link:

on (release) {
getURL("http://www.sdwebworks.com/track.php?source=AIMCDCAMPAIGN&targetUrl=http://www.google.com", "_top");
}

Does anyone know how to make this link work for mac?

thanks for your help.

How Do I Link A Button To A Pdf?
I have created a basic website with flash. What actionscript do I use to make the button link to a pdf?

How Do I Put A URL Link In This Button?
yeh i know its dumb but I bought something off of flashden.net.. and i'm confused about putting a link in the code.. ITs probably so simple. its just a scrolling list for navigation... but it has dummy items.. When i went to add my own lists to it, it so weird. Heres what it looks like

//------------------------------------------------
//total menu items
ti = 10;
//------------------------------------------------
//set up some demo items
n = 0;
while (Number(n)<Number(ti)) {
set("item" add n, "item" add n);
n = Number(n)+1;
}
//------------------------------------------------
//what to do with YOURs?
//remove the above LOOP (which creates dummy variable names.) START at "0"!!!!! Create variables named item0="blah", item1="test", item2="and so on..." and you're set! Look at the button action. It is currently set to GETURL and load a "swf" file with the same name as the button you just clicked on into a placeholder (which does not exist in this demo).



So what do i do to add a link to say "contact" that goes to a url?

thanks any help is greatly appreciated!

[F5] Button With Link.
Can someone please help me. I need to make a button with a link for webpage flash intro. I have no idea how to do this. Using CS3.

Thanks.

How To Link A Url To A Button Use XML
I want to create a button in flash that is linked to a URL. I want it to be able to change the URL through XML because I have a long list of URL links that need to be update regularly. Is this possible?

xml example:
<link>
<btn1 title="CD player" url=http://www.google.com></btn1>
</link>

The question is how to make the button work to get the URL in actionscript.
Anybody?

Cant Get Button To Link
Hi all, Im having an issue with a flash header I purchased...

I cant seem to get the buttons in it to link to where I need them to be.
The action script is there, it just wont go anywhere...

This is the script Im using..

on (release) {
getURL("index.html");
}

Im a beginner with all of this, so dont drown me with technical stuff please lol

Use small words for me!

Link Button To Swf
hi there...

first.. i must apologise for this, what you must think, is a ridiculously easy question ...

here goes.. (and btw ive been searching for an hour with still no joy grrr)

i have 3 files... called

flags.fla - contains 2 movieclip buttons (german flag(instance=deClick and an english flag(instance=enClick)

welcome.fla - is a greeting in english

welcome_de.fla - is a greeting in german!!

in the flags.fla file, in the first frame of the actions layer i have experimented by putting lots of different combinations of code ive found from the internet... none to my joy...

how do i link flags.fla to either welcome.fla or welcome_de.fla depending on which flag is selected?

again.. im sorry for the ease of this question (although i dont find it easy hehe)

thanks for reading and replying guys

jeffers

Button---->Link
how do I make a button into a link?

can anyone give me the code for that?

Button Link To URL
So I've looked at w3schools.com for a tutorial on how to get a button to link to a URL by clickint the "+" symbol in the action window and click the "GetURL" aciton.

but while having the button clicked, the action window says "Current selection cannot have actions applied to it"

any help?
thanks!

PS. i apologize if this was posted before, i did do a good search and didnt find anything

Link To Css Using Button, How?
can Flash mx 2004 pro can link to external css style with a click of a button?

Button: Link To Pop-Up...
Ok here is my situation. I have a new portfolio where I want all the thumbnails to link to a pop up (that isn't blocked). I want the pop up to be centered on that person sceen.

Is that possible to do without the pop up being blocked? Thanks

Mike

Link A Button
I went to your page on linking a button
http://www.kirupa.com/developer/flash5/buttonlink.htm

I'm using flash mx professional 2004. When I right click on the button

I don't see "Actions"

Can you help me..
Thank you

How To Link A Button?
Subject; I tried the way Flash 5 says to, in the Ktutorial, but cant get it to work. Any help appreciated, thanks a lot.

Alex

Link Button With MC
Hi guys,

How can I do this with the button when u click on and the MC play? Please check the site and see wht I mean...Click on one of the link from the top..( who we are, what we do, ect..) http://www.morneausobeco.com/EN/default.asp

Please attach a flash sample..Thank you


Bobby,

Button Link
Hi,

I tried tutorial "Complex button" (here is link http://www.kirupa.com/developer/mx20...ton_effect.htm )
and by this button I want to link with next scene? Is it possible? Kindly help me if there is any solution?

Thanks

aKASH

Link To Css Using Button, How?
can Flash mx 2004 pro can link to external css style with a click of a button?

Button > Url Link
My connection is having probs using the search and is taking forever so i am sorry that this is a question that has already been answered a billion times before.

However, I am trying to link another page using the

on(release)
{
getURL("http://www....","_blank");
}

Ive been told that I have to select the instance button on the main scene and type it in the actions, but flash wont let me type. If however I select the keyframe on the timeline instead, I can type into the actions window but for some reason the link doesnt work. BTW my button is inside a movie clip which is on the main scene, does this matter?

Button Link
I would like to create a button after my animation finishes to link to my main page, What would be the best, easiest way to link a button to a URL

How Do I Link To A URL From A Button?
I have just learned how to make a button (dot) that changes colors in the up, over and down states. Now, how do I make that button link to a URL on the web when someone clicks on it? Also, I imported the button into a movie and then tried to type text next to it, but the text won't stay on the screen. I want to make a flash file that has several buttons (dots) with URL links and text - so that you can click on the dots and go to certain web sites. Is this done with actions or properties? I'm new to this and still learning basic Flash. Thanks.

Xml Button Link
Please forgive me if this has been addressed specifically, I have looked, but have not been able to solve my problem.

I have added a button to Lee?s Carousel tutorial that comes up with the text. All I am trying to do is add a link to that button from the xml. Most of the threads that I have seen add links to the icons themselves. I seem to be missing something (probably somthing rather simple) when trying to convert these links to an individual button.

Thanks

AS:
Code:

import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.025;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;
buttonLink._alpha = 0;
var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", 10000);
tooltip._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {
   var nodes = this.firstChild.childNodes;
   numOfItems = nodes.length;
   for (var i = 0; i<numOfItems; i++) {
      var t = home.attachMovie("item", "item"+i, i+1);
      t.angle = i*((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      /////Button Link
      t.buttonLink = nodes[i].attributes.link;
      t.content = nodes[i].attributes.content;
      t.icon.inner.loadMovie(nodes[i].attributes.image);
      t.r.inner.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
   }
};
function over() {
   //BONUS Section
   var sou:Sound = new Sound();
   sou.attachSound("sover");
   sou.start();
   home.tooltip.tipText.text = this._parent.toolText;
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y-this._parent._height/2;
   home.tooltip.onEnterFrame = Delegate.create(this, moveTip);
   home.tooltip._alpha = 100;
}
function out() {
   delete home.tooltip.onEnterFrame;
   home.tooltip._alpha = 0;
}
function released() {
   //BONUS Section
   var sou:Sound = new Sound();
   sou.attachSound("sdown");
   sou.start();
   home.tooltip._alpha = 0;
   for (var i = 0; i<numOfItems; i++) {
      var t:MovieClip = home["item"+i];
      t.xPos = t._x;
      t.yPos = t._y;
      t.theScale = t._xscale;
      delete t.icon.onRollOver;
      delete t.icon.onRollOut;
      delete t.icon.onRelease;
      delete t.onEnterFrame;
      if (t != this._parent) {
         var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, t._xscale, 0, 1, true);
         var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, t._yscale, 0, 1, true);
         var tw3:Tween = new Tween(t, "_alpha", Strong.easeOut, 100, 0, 1, true);
      } else {
         var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, t._xscale, 100, 1, true);
         var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, t._yscale, 100, 1, true);
         var tw3:Tween = new Tween(t, "_x", Strong.easeOut, t._x, 200, 1, true);
         var tw4:Tween = new Tween(t, "_y", Strong.easeOut, t._y, 320, 1, true);
         var tw5:Tween = new Tween(theText, "_alpha", Strong.easeOut, 0, 100, 1, true);
         var tw6:Tween = new Tween(buttonLink, "_alpha", Strong.easeOut, 0, 100, 1, true);
         theText.text = t.content;
         var s:Object = this;
         
         //Button Link Code
         buttonLink.onRelease = function() {
            //getURL(t.buttonLink, _self);
            //getURL("http://www.google.com");
            getURL(this._parent.t.buttonLink);   
         };
         tw.onMotionStopped = function() {
            s.onRelease = unReleased;
         };
      }
   }
}
function unReleased() {
   //BONUS Section
   var sou:Sound = new Sound();
   sou.attachSound("sdown");
   sou.start();
   delete this.onRelease;
   var tw:Tween = new Tween(theText, "_alpha", Strong.easeOut, 100, 0, 0.5, true);
   var tw6:Tween = new Tween(buttonLink, "_alpha", Strong.easeOut, 100, 0, 1, true);
   for (var i = 0; i<numOfItems; i++) {
      var t:MovieClip = home["item"+i];
      if (t != this._parent) {
         var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, 0, t.theScale, 1, true);
         var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, 0, t.theScale, 1, true);
         var tw3:Tween = new Tween(t, "_alpha", Strong.easeOut, 0, 100, 1, true);
      } else {
         var tw:Tween = new Tween(t, "_xscale", Strong.easeOut, 100, t.theScale, 1, true);
         var tw2:Tween = new Tween(t, "_yscale", Strong.easeOut, 100, t.theScale, 1, true);
         var tw3:Tween = new Tween(t, "_x", Strong.easeOut, t._x, t.xPos, 1, true);
         var tw4:Tween = new Tween(t, "_y", Strong.easeOut, t._y, t.yPos, 1, true);
         tw.onMotionStopped = function() {
            for (var i = 0; i<numOfItems; i++) {
               var t:MovieClip = home["item"+i];
               t.icon.onRollOver = Delegate.create(t.icon, over);
               t.icon.onRollOut = Delegate.create(t.icon, out);
               t.icon.onRelease = Delegate.create(t.icon, released);
               t.onEnterFrame = mover;
            }
         };
      }
   }
}
function moveTip() {
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y-this._parent._height/2;
}
xml.load("icons.xml");
function mover() {
   this._x = Math.cos(this.angle)*radiusX+centerX;
   this._y = Math.sin(this.angle)*radiusY+centerY;
   var s = (this._y-perspective)/(centerY+radiusY-perspective);
   this._xscale = this._yscale=s*100;
   this.angle += this._parent.speed;
   this.swapDepths(Math.round(this._xscale)+100);
}
this.onMouseMove = function() {
   speed = (this._xmouse-centerX)/10000;
};



XML:
Code:

<icons>

<icon image="red.png" tooltip="red" content="This is red box text" link="http://www.google.com"/>

<icon image="yellow.png" tooltip="yellow" content="This is yellow box text" link="http://www.google.com"/>

<icon image="blue.png" tooltip="blue" content="This is blue box text" link="http://www.google.com"/>

<icon image="green.png" tooltip="green" content="This is green box text" link="http://www.google.com"/>

</icons>

Button Url Link?
I created a button that I wanted to link to a website by using the action script ....

on (release) {
getURL ("http://www.killfrog.com")
}

but when i click the button it doesn't take me their, instead it takes me too...

C:/my documents and settings/...ect and then at the end it says www.killfrog.com

what am i doing wrong...?
thank you

Button-link Difficulties. =/
"Perhaps I've been using the wrong search string, or looking in the wrong forums, but I have not found a solution to my ever-longing quest for common sense."

I have an index.html which is split into three horizontal frames, in which the top frame has a spiffy Flash button-menu I created. I've made several buttons before with no trouble, but they were simpletons that sent you to another page without the use of frames.

My question is: how can I get the URL from my Flash button-menu to send to a different frame? I know how to accomplish this in HTML using the FRAME NAME and TARGET tags, but haven't found a way to do this in Flash.

'elp!

-- Matic --

Flash Link Button---HELP
Hello-
Im trying to use an animated link button for my new portfolio website, and Im stuck.

Please go to-
http://www.kentleech.com/nu.site/mainframe.html

Click on transport, across the top. Up comes and image with a discription, and a little flash movie of a button saying 'next'.

Each image will have this 'next' animated button, linking it to the next image.

My question is how do you make a link from this button without loading a new button with a dedicated link every time?

I thought I was being clever and put an a href tag in front of the movie in the html, as you would with a gif or whatever. It works on the mac explorer only, nothing else. Do I do some scripting???? HELP!!!!

Thanks a bunch- Kent
.

Can I Link A .swf File To A Button?
Can I like a seperate .swf file to a button, and how do I do that? Thanks!

Link Button To Scene?
Man Thats What I Tried And It Still Doesn't Work
Im Using Flash 5 Its A Drop Down Menu In Which You Click Text Which Then Takes You To A New Scene Called "Prince Albert Riders".

I Get This:

Scene=Scene 1, Layer=sub menu, Frame=6: Line 2: ')' or ',' expected
gotoAndPlay (Prince Albert Riders);

Scene=Scene 1, Layer=sub menu, Frame=6: Line 3: Unexpected '}' encountered
}

[Edited by [KaPtAiN][KiNk] on 11-26-2001 at 08:03 PM]

Copyright © 2005-08 www.BigResource.com, All rights reserved