[F8] Can't Change The Links Of A Button Instance... It Changes All The Button Links
Hello all...
I know very basic flash and i'm working off a template. In the template, there are a bunch of images and when you roll the mouse over it, it shows a hand symbol and a short animation on top of the image. Now when I go and change the action script link on the button, all the links within the flash file change. how do i make a change just to the instance of the button?
I've searched the forum but I'm not getting what to do... I need your help.
Here's what HUM said in a previous posting:
If you have a button with code on it that is inside a movieclip
and you then duplicate the movieclip to make other instances ...
then any editing you do to the buttons code will also affect the other instances....to avoid this ...make sure that you duplicate
the buttons as well......so there are new instances of them as well as the movieclips....and that they are all named differently..
obviously duplicating will increase the file size of the SWF and it will take longer to load. is there a more efficient way of doing this?
thanks a million in advance.
this is the code i'm using for the button:
on (release) {
getURL("http://flashkit.com
}
FlashKit > Flash Help > Flash Newbies
Posted on: 07-03-2006, 02:46 AM
View Complete Forum Thread with Replies
Sponsored Links:
Button Won't Change Where It Links To.
I have used flash for a while but I havn't worked with it in about 6 monthes. I am getting desperate! When I go to change the URL for the button, the site that it goes to won't change. I have saved it when I get done changing it so that isn't the problem. I have tried to start all over by erasing the script for the button but I can't get the new URL that I put in the script to work. I am using FlashMX still (I know I am a little behind in updating my software) could someone just paste the script for a button on a reply and then I could just change the URL for the button and see if it works.
Thanks
Confused and desperate.
View Replies !
View Related
How To Change The Movie Clip A Button Links To?
I am working on a website in Flash that had already been designed by someone else. There are a number of buttons across the website that are linked to the same symbol. Those buttons link to movie clips, in the button's actions, that pop up as small windows providing more information in regards to the button clicked. The problem is that I cannot figure out how to properly change the link association between button and movie clip.
Here is the action script for one of the buttons:
on (release) {
_root.scrHEIGHT=100
_root.scroller.scroller.gotoAndStop(2);
_root.scroller._x = 100;
_root.scroller._y = 150.7;
_root.TM_title = "About Chris Smith";
_root.READ = 3;
}
When I change the number after "root.READ =" it will change it to another movie clip but I how do I know what that association is based on? For instance if I make a duplicate movie clip how can I make the above script link to it? Also, what exactly does that last line in the above script mean? When I tested various numbers, like 3 and 6, they would link to the same movie clip.
Please help! This is driving me crazy!
Thanks!!!
View Replies !
View Related
Button To Links
I'm new to flash and having some problems. I can't seem to get my button to open another html document. At the moment, my html document is not published. It's sitting in the same folder as the rest of my .swf and associated .html files. I've been using the getURL scripts but I must be missing something. Could someone give me an example of how this works. Also, is there an easy way to move text around in the ActionScript window? Thanks for your help!! George, from Phoenix.
View Replies !
View Related
Button Links
I am trying to make a flash 6 animation that has things that you can click on to go to different html pages. How do I create links on for each item that gets clicked on?
View Replies !
View Related
Button Links
Hi there!
Im using Flash MX and i have just followed a tutorial to create popup menus. I can do everything other than insert links to other pages onto graphics or buttons. I can put links on the text but this does not include the entire button. Im sure im just being stupid but i cant seem to figure it out!
thanks for your help dudes!
View Replies !
View Related
Button Links
hello,
Maybe I am missing something here, but how would I go about
placing my PayPal link on a button within a flash movie, or is
this something that cannot be done? I tried it with the
getURL command, but when I put in the code for PayPal, I got
error messages.
Thanks
View Replies !
View Related
Button Links - Help Please
Hello,
My flash movie is located at:
http://www.kazak.ca/flash.zip
I have been able to create all buttons with
their rollover states. But have not been able
to set any links?? as well, the links are
to go into a new frame so I can't even
figure out where the "target" field is??
Please help and I am using Flash 5!
Thanx in advance to all you Gurus out there...
- Aneet.
View Replies !
View Related
Button Links - Help Please
Hello,
My flash movie is located at:
http://www.kazak.ca/flash.zip
I have been able to create all buttons with
their rollover states. But have not been able
to set any links?? as well, the links are
to go into a new frame so I can't even
figure out where the "target" field is??
Please help and I am using Flash 5!
Thanx in advance to all you Gurus out there...
- Aneet.
View Replies !
View Related
[F8] Button Links
I just recently started flash because i go this nice site that the menu is made by flash. I have been trying to get the buttons on the header to link to a site but it wont work any help??
View Replies !
View Related
Button Links To URL
Alright guys. I know nothing of this program when it comes to ActionScript, so bear with me. I made three simple text buttons, one that says enter, one that says contact and one that says login. My problem is, i need them to link to external url's. When i click and click actions in its sub menu, a dialogue box comes up and says action cant be added to current selection. Please help me figure this out.
Thanks.
View Replies !
View Related
Button Links
Hiya =]
I've created a button within a frame as a movie clip symbol and Ive linked buttons to other frames before.
The problem is that Im not wanting to link to a frame within the symbol of which the button exists.
I want to be able to link back to a frame in Scene 1.
What actionscript would I use to do so?
Thank you for the help =]
View Replies !
View Related
Button Links
Hi,
I'm really new to Flash and currently have a problem. I'm designing a project with several different screens inside of it driven by a menu interface. I'm not exactly sure how to link these together inside of one movie though. Is it possible to use getURL to call a fla file and display it in the current movie?
I'm starting to think that this is all done by creating several different movies in the same fla file, but I really hope not (I've already finished them in different files).
Can anybody help me please?
View Replies !
View Related
Button Links
Hello all,
I'm a newbie to AS3...and well just AS in general. I'm trying to create a slideshow of sorts that will cycle through upon clicking. Here's my code:
ActionScript Code:
play();
gotoAndStop(10);
sc1.addEventListener(MouseEvent.MOUSE_DOWN, onMD1);
function onMD1(evt:MouseEvent):void {
gotoAndPlay(1);
gotoAndStop(10);
}
sc2.addEventListener(MouseEvent.MOUSE_DOWN, onMD2);
function onMD2(evt:MouseEvent):void {
gotoAndPlay(11);
gotoAndStop(23);
}
sc3.addEventListener(MouseEvent.MOUSE_DOWN, onMD3);
function onMD3(evt:MouseEvent):void {
gotoAndPlay(24);
gotoAndStop(38);
}
sc4.addEventListener(MouseEvent.MOUSE_DOWN, onMD4);
function onMD4(evt:MouseEvent):void {
gotoAndPlay(39);
gotoAndStop(46);
}
The above script is in a layer of it's own spanning the frames. It works fine the first time, but after that there's no linking. It's either because it's still in the function and therefore won't read the other Mouse_Down events (though return; works to no avail) or it's because of the stops. I've also tried putting stops on their own layer but it's still not working. Grr. Any thoughts on what I'm doing wrong? Thank you!
View Replies !
View Related
Different Button Links...
Code:
for (i=0; i<picnum; i++) {
var pict = pic.duplicateMovieClip("pic"+i, this.getNextHighestDepth());
pict.loadMovie("thumbs/"+i+".jpg");
btn.duplicateMovieClip("btn"+i+"", this.getNextHighestDepth());
}
how can i assign different button links that i duplicated above?
View Replies !
View Related
Button Links
I have a flash template and got all the images placed and text done but do not know how to link the mouseover to a flash page. Can someone look at my FLA file and get one link to work for me so I may see how to do it??
Great Thanks!
View Replies !
View Related
Please Help With Button Links In Flash MX
Hi!
I just asked about this topic but im still having trouble! I'll explain the situation further - I an making a weebsite in html. It is built in frames consisting of a header, menu and main frame. I want to position dropdown menus in the menu frame, that when pressed, will open a corresponding page in the main frame. Most of the site is in standard html other than the drop down menus in Flash (MX). I can make the entire dropdown menus but i physically cannot attach links to the buttons in the dropdown menus. How do i do it? do i use actionscript?
thanks dudes!
View Replies !
View Related
Help With Button With Links Inside It
HI!
I am trying to make a button that's a movie with dynamic text links inside it . the movie(its simple scale tween) plays fine.it's just the links don't work, i have the text box set to html and set the links in the prop. panel.
on the movie I have:
on (rollOver) {
this.gotoAndPlay(2);
}
on (releaseOutside, rollOut) {
gotoAndPlay(11);
}
in the movie i have a layer of dynamic text links on frame 10.
attached is how i am doing it, i know there is a better way of scripting it out. with my limited knowage of scripting i just can't figure it out.
thank you in advance.
View Replies !
View Related
Button Links Linked Somehow :o(
im using someone else's menu as a tutorial and im trying to change it into one i can use at a later date (it's the elastic one off the movies section on 'ere).
Anyway, the text has them button things over em (show up blue on the screen and are see through), and when i change the link for one of em, they all change to the same new link. How are they linked and how do i change it?
If possible could someone tel me what these button things are and how to make them?
thanks )
View Replies !
View Related
Button Links In Template
I am an absolute beginner, enjoying the learning curve. However, I am trying to put flash buttons into a dreamweaver template but can not get the links to work as I want. I have tried adding the link in Flash, and also in Dreamweaver to no avail. Any ideas?
View Replies !
View Related
Still Having Problems With Button Links
Hi,
I'm still battling with MX 2004 Pro to get my buttons to link to various scenes within the project. I have got it right once with this script, and it HAS worked correctly...
about_btn.onRelease = function () {
gotoAndStop ("Scene 2", 1);
};
But, when I transferred the same script over to other buttons, ie:
history_btn.onRelease = function () {
gotoAndStop ("Scene 3", 1);
};
I get an error saying "Statement must appear within on handler" What is going on? Is there another section somewhere that also controls commands from action script? Why does script work on one button and not another, when all thats changed is the name and destination??
Please help me, I'm tearing my hair out over this. Thanks.
View Replies !
View Related
Problem With Button Links
Ive embedded a flash movie into a html page using dreamweaver MX and for some reason ive noticed two strange things occur after doing this.
The first is that the buttons react much slower than they do in the flash test movie. For instance the bottons when qued in the movie to happen with frame lets say... 44... dont come in and happen till about frame 56 or something like that. Is there a reason for this?
The Second is that my buttons that are linked to external web pages... seem to work the first time i hit them... and then fail to work the second. Is there a cause for this?
Thanks for your help.
Oh also i was wondering what the recommended file size to start using a preloader is.... My file is about 160k which i didnt think would be a huge issue but im not sure... any thoughts?
Yogi
View Replies !
View Related
Dealing With Button Links Etc
Hello, I am new to flash. I recently purchased a full flash template and I am changing ut all of the pictures etc... however, I am having a problem with linking some f the buttons to certain movie clips etc...
I have tried reviewing the buttons that are functioning... If I was just linking to a page it would be easy but it appears to be some type of movie clip....All navigatinal buttons are functioning properly... but I want to link a text button to one of the movie clips that fades in like the other movie clips...
Help....
View Replies !
View Related
Button Links & Targets
Hi folks,
I have a simple enough question.
I have figured out how to add a link to a button:
on (release){
getURL('http://www.labellavitaboutique.com/index.html');
}
But how to I assign a target so that it opens in the HTML iFrame I want?
Thanks for the help!
View Replies !
View Related
FLASH+XML Button Links
I created a function for the images, it works normal.
Now I am trying to make these texts is buttons, I tried to create a function but I did not have success, then I created one "onPress" inside the function text, a put a "trace", when I click in the buttons shows "undefined" and the last button change his name for "undefined".
AS
code:
var dadosXML:XML = new XML ();
dadosXML.ignoreWhite = true;
var mostrarConteudo = 0;
nomeProduto = [];
imagemProduto = [];
dadosXML.onLoad = function (sucesso) {
if (sucesso) {
var xnConteudo:XMLNode = this.firstChild;
for (var i = 0; i < xnConteudo.childNodes.length; i++) {
nomeProduto[i] = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
imagemProduto[i] = this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
}
//chamar funcao
mostrarTexto ();
mostrarImagem ();
}
};
dadosXML.load ("produtos2.xml");
//criar funcao texto
function mostrarTexto () {
var numeroProdutos = nomeProduto.length;
for (var i = 0; i < numeroProdutos; i++) {
var conteudoTextoMC = _root.attachMovie ("nomeProduto_mc", "nomeProduto_mc" + i, _root.getNextHighestDepth ());
//posicao dos textos
conteudoTextoMC._x = 0;
conteudoTextoMC._y = i * 30;
conteudoTextoMC.nomeProduto_txt.text = nomeProduto[i];
//clicar texto
conteudoTextoMC.onPress = function () {
trace (conteudoTextoMC.nomeProduto_txt.text = nomeProduto[i]);
};
}
}
//criar funcao imagem
function mostrarImagem () {
var numeroImagens = imagemProduto.length;
for (var i = 0; i < numeroImagens; i++) {
var conteudoImagemMC = _root.attachMovie ("imagemProduto_mc", "imagemProduto_mc" + i, _root.getNextHighestDepth ());
conteudoImagemMC._x = 200;
conteudoImagemMC._y = i * 100;
conteudoImagemMC.loadMovie (imagemProduto[i]);
}
}
XML
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<conteudo>
<dados>
<nomeProduto>Produto nș 1</nomeProduto>
<imagemProduto>imagem1.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 2</nomeProduto>
<imagemProduto>imagem2.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 3</nomeProduto>
<imagemProduto>imagem1.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 4</nomeProduto>
<imagemProduto>imagem2.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 5</nomeProduto>
<imagemProduto>imagem1.jpg</imagemProduto>
</dados>
</conteudo>
Sorry about my English
View Replies !
View Related
Random Links On One Button
Hi there all I'm looking for a way to place different links so that pressing the button wil take you randomly to another site. If there's someone that could explains me how this could be done I'd be really thankfull.
View Replies !
View Related
Button Links With Randomizing
Hello all,
I'm really new to using Actionscript and am struggling to figure out how to randomize images that link to external webpages. I have a total of 16 image buttons, but only 8 are up at one time. I have to have them fading in and out randomly and each image links to a different webpage. Can this be done? If so, how would I do it?
Thanks so much in Advance!
View Replies !
View Related
Interpolation Button Links
First of all, I've just searched through all that was available on this forum for button (2 pages listing), looked at quite a few online tutorials and searched thoroughly the software (flash) interface.
My problem is the following: I have a banner including 2 rows of 4 buttons which fade through each other with an interval in between, I did all the animation correctly and everything is working correctly for the specifications (which only needed to have a different image when hovered) but now I have to make the buttons links. I can make links fine on just one scene but the animation add quite a few interpolation, 17 that is, and having to link them the usual way would demand make quite a few operations (17 x 4) which will most likely also need to be modified, that's a lot of work ! I suspect ActionScript could help with this but the tutorials I've seen this far doesn't get even close to this problem and I can't find any resource about this neither.
Please start by just saying if there's a solution to this or that it would surely take more time, otherwise I'll just go ahead and do the links manually.
View Replies !
View Related
Flash Button Links
I hope someone can help me with this weird problem. I've been using Flash for button links for a while but for some reason lately, I've been having this strange problem. When you type in the url for the site, the Flash buttons will work as far as the roll overs and such, but the links do not work. Yet, if you click on an html link, it will take you to that page and from then on, the Flash buttons will work just fine. I can't understand why this would be happening. Basically, the Flash links work fine unless you type in the url. What's happening? Here is the link to what I'm talking about. Try typing in the url first. You will see that the Flash buttons don't take you to the linked webpage. Then try clicking on an html link, and then a Flash link from there. Thanks for the help!
http://www.surecarehomehealth.com
View Replies !
View Related
Text Button Links
I have used the text tool to create my links and turned each word into a button. When I test and publish the site however, I can only make the link work if I click on the actual leg of each letter as opposed to the general area. So, if I have an "O" the middle of the "O" will not work, only if you click on the actual top of sides (around).
I made a second site and did not have this problem. I am comparing but cant see anything different in the settings.
Help!!!
View Replies !
View Related
Button Links To Different Scenes
Hey all,
This is so basic it's almost embarassing to post about, but I'm in a pinch and can't for the life of me figure out what's wrong...
I'm using MX Professional 2004. My movie has four scenes; "Main" which plays on load, then three other scenes: "Whitepapers", "Products", and "Brochure". Main includes three buttons that, when clicked, should bring you to one of the three other scenes. For example, the Prodcuts button should go to frame 1 of the "Products" scene. But regardless of which button you click, it plays the "Whitepapers" scene, presumably because its next in the linear scene sequence.
Here's the actionscript for the Products button. Please tell me what I'm doing wrong. I've been doing simple scripts like this in Flash MX for years and and only having this problem in MX 2004. Thanks!
on (release) {
gotoAndPlay("Products,1");
}
John
View Replies !
View Related
Strange Button Links
Hi, some please help!
Every link works in my flash swf file until I upload the file onto the internet
had anyone else had this problem? its only one link, all the rest are fine!
I using actionscript 1.0 or 2 becuase of the code for my preloader but exporting as flash player 7 swf.
whats going on??
View Replies !
View Related
Button Links In Frames
im making this new site for a friends band. the site has a top and left side frame. in the left side is a flash menu with several buttons. i cant figure out how to get the buttons to open up the page in the mainframe.
http://www33.brinkster.com/repeatrepeat/index.htm
as u can see (press tour) i can only get the page to open up in the whole window.
this is the only thing holding me back from fishing this site, so all help is appreciated. please ask if u need more information. thanks in advance.
View Replies !
View Related
Button And Mc (and Death Links)
Hi every body, thatns for your great work here.
I am a new user of this forum and sorry for my english .
I have a problem with buttons inside MC,
I read all the tutorials that I find around but still
I have problems.
If I have a button in a MC and this button send at one frame of this
Mc it works, but if this button send at one frame or at another MC located
outside the Mc it donsen't works.
So anyone can help me?
Thanks.
P.S.
I don't know where to report a death link at:
http://www.kirupa.com/developer/flas...edrollover.htm
the links for the biggest images 6.jpg and 7.jpg give a
Page not found message.
View Replies !
View Related
FLASH+XML Button Links
I created a function for the images, it works normal.
Now I am trying to make these texts is buttons, I tried to create a function but I did not have success, then I created one "onPress" inside the function text, a put a "trace", when I click in the buttons shows "undefined" and the last button change his name for "undefined".
AS
Code:
var dadosXML:XML = new XML ();
dadosXML.ignoreWhite = true;
var mostrarConteudo = 0;
nomeProduto = [];
imagemProduto = [];
dadosXML.onLoad = function (sucesso) {
if (sucesso) {
var xnConteudo:XMLNode = this.firstChild;
for (var i = 0; i < xnConteudo.childNodes.length; i++) {
nomeProduto[i] = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
imagemProduto[i] = this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
}
//chamar funcao
mostrarTexto ();
mostrarImagem ();
}
};
dadosXML.load ("produtos2.xml");
//criar funcao texto
function mostrarTexto () {
var numeroProdutos = nomeProduto.length;
for (var i = 0; i < numeroProdutos; i++) {
var conteudoTextoMC = _root.attachMovie ("nomeProduto_mc", "nomeProduto_mc" + i, _root.getNextHighestDepth ());
//posicao dos textos
conteudoTextoMC._x = 0;
conteudoTextoMC._y = i * 30;
conteudoTextoMC.nomeProduto_txt.text = nomeProduto[i];
//clicar texto
conteudoTextoMC.onPress = function () {
trace (conteudoTextoMC.nomeProduto_txt.text = nomeProduto[i]);
};
}
}
//criar funcao imagem
function mostrarImagem () {
var numeroImagens = imagemProduto.length;
for (var i = 0; i < numeroImagens; i++) {
var conteudoImagemMC = _root.attachMovie ("imagemProduto_mc", "imagemProduto_mc" + i, _root.getNextHighestDepth ());
conteudoImagemMC._x = 200;
conteudoImagemMC._y = i * 100;
conteudoImagemMC.loadMovie (imagemProduto[i]);
}
}
XML
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<conteudo>
<dados>
<nomeProduto>Produto nș 1</nomeProduto>
<imagemProduto>imagem1.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 2</nomeProduto>
<imagemProduto>imagem2.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 3</nomeProduto>
<imagemProduto>imagem1.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 4</nomeProduto>
<imagemProduto>imagem2.jpg</imagemProduto>
</dados>
<dados>
<nomeProduto>Produto nș 5</nomeProduto>
<imagemProduto>imagem1.jpg</imagemProduto>
</dados>
</conteudo>
Sorry about my English
View Replies !
View Related
Question About Button Links.
I just read on this tutorial (http://www.kirupa.com/developer/mx20...ton_effect.htm) and it was a great resource in teaching me what I wanted. However, with the website I am making, I want to link to another page on the flash project rather than an external link. how would I be able to do that?
View Replies !
View Related
Button Links In Frames
im making this new site for a friends band. the site has a top and left side frame. in the left side is a flash menu with several buttons. i cant figure out how to get the buttons to open up the page in the mainframe.
http://www33.brinkster.com/repeatrepeat/index.htm
as u can see (press tour) i can only get the page to open up in the whole window.
this is the only thing holding me back from fishing this site, so all help is appreciated. please ask if u need more information. thanks in advance.
View Replies !
View Related
Button And Mc (and Death Links)
Hi every body, thatns for your great work here.
I am a new user of this forum and sorry for my english .
I have a problem with buttons inside MC,
I read all the tutorials that I find around but still
I have problems.
If I have a button in a MC and this button send at one frame of this
Mc it works, but if this button send at one frame or at another MC located
outside the Mc it donsen't works.
So anyone can help me?
Thanks.
P.S.
I don't know where to report a death link at:
http://www.kirupa.com/developer/flas...edrollover.htm
the links for the biggest images 6.jpg and 7.jpg give a
Page not found message.
View Replies !
View Related
Question About Pill Button And Links
I'm new to flash, but through some struggle i was able to do half of what i wanted to do. now i'm banging my head against the wall trying to finish this, so I came here for help.
I'm trying to get the default symbol "pill button" to work as a link to another web page. I'm not doing anything too fancy here, no movies, no animation, no secure servers. I'm just trying to make a little "box" where there is a login field, a password field, and a submit button. i did manage to do this, and this is my flash script for it so far:
function onClick(btn) {
if (btn == submit_btn) {
getResults();
getURL("http://www.mysite.com/login.asp", "_blank", "POST");
}
}
---------------
so i have one regular push button i call "submit_btn" and it works. For this box idea, I need 2 more buttons that will link to other pages, without posting anything. I wanted to use the Pill button, but on the "parameters" tab there is no way to put in a click handler for onClick?! it's just this big color slider thingy. about the only thing i can do with this pill button is change the instance name.
To be honest, i'm not even sure if i'm supposed to put more script stuff for these other link buttons in the "button's actions" or the "frame1 of layer*'s actions" area.
I think i might be able to do it with just the default push buttons, but i really wanted to use these pill buttons. however, they are just confusing the heck out of me, so any help will be appreciated! thanks.
View Replies !
View Related
Scrolling Text With Button Links?
Ok, I have made a scollbar with a long list of text and that works great but now I need to link parts of this text to goto a certain frame within my flash movie.
How do I get parts of this text to act like a button? Please let me know if possible. Thanks.
View Replies !
View Related
Button Links Within Movie Clips
Here's a simple question-
I have a movie clip called say, "Navigation MC". Within that movie clip I have a navigation menu made up of buttons. The movie clip is say, 30 frames long with a stop at frame 10 where the menu buttons are. I want to link the menu buttons to frames in different scenes, but it's not working.
For example, the button labeled "Home" is linked to frame 1 of the Scene called Home. What happens when you click on this button is it goes to Frame 1 of the current Movie Clip.
Any ideas, or is this a fact of life for Flash MX...?
Thanks,
Joe
joe@joefreelance.com
View Replies !
View Related
|