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




Multi Buttons Link Images To One Spot



so i'm a little confused at how the code is for this. but i want a picture of a car, and above that there will be "tire buttons" that when clicked they will show a new tire in the right spot on the car. i feel stupid cause it sounds so easy but i just don't no the script for it.

Flash 8
somewhat newbie

Thanks!



FlashKit > Flash Help > Flash General Help
Posted on: 11-13-2005, 02:04 PM


View Complete Forum Thread with Replies

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

Multi Buttons Link Images To One Spot
so i'm a little confused at how the code is for this. but i want a picture of a car, and above that there will be "tire buttons" that when clicked they will show a new tire in the right spot on the car. i feel stupid cause it sounds so easy but i just don't no the script for it.

Flash 8
somewhat newbie

Thanks!

Creating Multi-buttons To Open Multi-jpegs
I am a newbie to action-script and flash. I have Flash 6.
I am using a template built in flash and there is a sub page that has numerous
buttons with roll-over effects that were pre-built. BUT they don't point to anything yet.

I want the viewer to be able to click on a button and have each one open a different Jpg in a window next to the rows of labeled buttons.

I imagine this is pretty simple...Perhaps you know of a specific tutorial within this flash help site that addresses this?

Or if there are a few things that you can communicate to help me...that would be awesome!

Thank you!

Images That Are Spot On In The Fla Skip In The Swf.
hi all,

i have an fla where there is a background with 10 stars on it, i want to animate these 10 stars to have a lens flare at random times so i made 10 identical stars with flares on them and placed them over and set a tween with alpha etc so they fade in over the top and it looks like the flare is coming in, and disappering. the problem is in the swf they skip as if they are not placed in the right plce, but as soon as you zoom in, they dont move at all. any ideas on this would be most welcome.

Dave

Buttonless Scroller - How Do I Link Buttons Inside Mc To Dynamically Loaded Images?
Hi, I've made this scroller, http://www.flashkit.com/tutorials/In...-909/index.php and it works fine. One thing though is, it leaves out how to link the contents of the scroller to that dynamic field. In my case, I'd like to link the thumbnails to an image. I guess I'd make each image an swf with preloader? Since I need to add captions too...? Right?? Can someone help! I'm lost!! And, what is the code that I put on each button?

THANKS!

Buttonless Scroller - How Do I Link Buttons Inside Mc To Dynamically Loaded Images?
Hi, I've made this scroller, http://www.flashkit.com/tutorials/In...-909/index.php and it works fine. One thing though is, it leaves out how to link the contents of the scroller to that dynamic field. In my case, I'd like to link the thumbnails to an image. I guess I'd make each image an swf with preloader? Since I need to add captions too...? Right?? Can someone help! I'm lost!! And, what is the code that I put on each button?

THANKS!

How To Put All AS In One Spot - And Not Attach To Buttons, Etc.
I'm new, so sorry for a dumb question.

I want to put all my actionscript in one layer and not have to attach it to the buttons. I have 25 frames with movies inside them and several buttons in each frame. Is there any way to refer to them in AS from a central location, such as:


Code:
frame5.button3.on(release) {

do this;

}


??

Even within the frame, I can't figure out how to use AS for the buttons. I have to attach the AS directly to the buttons. I do this:


Code:
on (release) {
playing=true;
var orange_sound:Sound = new Sound();
orange_sound.setVolume(100);
orange_sound.loadSound("_sounds/orange.mp3",true) //streaming
}

on (rollOver) {
orange_btn._alpha = 50;
}
on (rollOut) {
orange_btn._alpha = 0;
}


Which means that when I make a global change, such as changing the directory "_sounds" to "_music", then I have to go into each button and change the code (instead of doing a find/replace in a single, long script for the movie). Thanks for you help!

Ben

Dynamic, Multi-page, Printer-friendly With Images...
Greetings everyone,

O.k., this is a complex one. I'm not looking for a specific code solution or anything. I'm mostly interested in how other people have dealt with similar order-of-events issues, general ideas, that sort of thing. I'm flailing a bit.

I've got a Flash-based web site that builds modules of information/images for a given product based on the data in a database. This is all formatted for the screen. So I'm working on a "printer-friendly" version that is also dynamically generated.

Each product has one or more images and a text description. I want to put each image on its own page, the text description on its own page, etc. And there is a header that is the same for all pages which includes the product name and number. I have to scale the images to fit the printer-friendly format as well. Because I don't know how many images a product might have, I need to loop through the data and generate pages accordingly.

I have about 98% of this working. It determines how many pages it needs to print, what type of pages they are (text or image), retrieves the image name or text to be displayed, builds the page, loads and scales if it is an image, adds it to a printJob object, etc. This is all well and good. I have a movie clip off of the viewable stage area with the header, a container movie clip to load images into and a dynamic text box. That one layout gets reconfigured as I loop through each page of content. It's much simpler than it sounds.

The problem I'm having is that I need to wait until an image has fully loaded BEFORE adding it to the printJob, THEN move on to the next page. Otherwise, I end up with a blank page that printed before the image loaded. Even though the images load very quickly, they can't beat "instantaneous". And I'm trying to determine the best approach for dealing with that.

Checking to see if an image has loaded isn't a problem. It's doing it in the middle of a deeply nested loop and needing the loop to wait that needs solving. What I need is a mechanism that can stop everything, wait for an event, then continue. And Flash's asynchronous personality wants to keep on truckin'.

The solutions I've entertained include using setInterval() or the MovieClipLoader's onLoadComplete(). But I haven't come up with anything elegant. It gets very messy very quickly - and I hate it.

Anyway, any thoughts, input or whatever would be great.

Thanks

Xml Multi-categories Gallery W/t Masked Images Sequence
I'm trying to do somenthing similar at this site with some adding :
http://www.shiroganeya.co.jp/main_en.html
, but lately i decided to release free full source (I dont know if will be usefull to someone..), a sort of 'open-source', because my AS skillfull has limits ... the collettive can help.

Just, ... if someone can optimize or improve it, or find some bugs, just the correctness to release it at attention of the forum.

Its a gallery generated from xml, use Caurina Tweener , As2 Player 8, (naturally to test it better see it online or with the test Movie).

Basically i didnt improved yet the moving part (passage from a gallery to another), that its not my main goal, but im trying to optimize all the other functionality.

Some parts i trying to improve are:

1 - Some problems with stopping and restarting the automatic-slideshow (with the buttons Stop/Play Slideshow or/and clicking on thumbs) (the clock react strange ... to check better)

2 - Clicking on thumbs when the mask over the image still moving, reacts not so smootly, should be better that after click, the mask over the image finish to slide, and at the end load the new image? or other solutions? ...

Example : Link
All file are here: Link
About Caurina Tweener : Link
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I see also sometime a little bug ... at the start or when theres a gallery change, at the first image opening, the mask open in strange way ... open for 15 - 20 %, then return at 0 %, then re-open normally to 100 % (or 50 + 50 if doble is 1..)

Just a question ... someone can help me to optimize this applications ? ... also if i have to pay a fee for that, please contact me ... im getting crazy to make it stable ...

Multi Buttons?
k i know that you can tell flash to do something holding down whatever buttons you program but can you make so that if you press 1 button you can let go of it and press another and then flash well do something?? otherwise i'll just make it one button but i would like to do that to make it harder thanks in advance

how do you put if key.isdown(key.1)
when i put that it shows red and tells me to put a ) but i did do i type it out or ...

thanks in advance

Using Multi Lingual Buttons
Objective:
I need to create a presentation in Flash MX that can support multiple languages. I want only one set of buttons that can display the specific text specific to the selected language by user at the beginning.

Required:
I want to know the best possible way of doing this. I am not looking for the code I just the different ideas of making this presentation.

Please reply ASAP.

Multi-functional Buttons
hi...im currently in the process of building my first flash site. on my site i have a pop down menu which is revealed by an icon at the bottom of the menu which i have working. however i would like the same icon to hide the menu again if the menu is in a revealed state. ill happily upload link the file if you need an example of what i mean.

thanks.
dom

Multi Function Buttons
i want to create a button that when you click it once one event happens you click it again and another thing happens and yet again you click and something else happens. i found a post about doubel purpose buttons that had this code
on(release) {
if (myVar == 1) {
myVar=0; fill in here;
}
else {
myVar=1; fill in other case here;
}
}

thats exactly what i want to happen but with 3 different outcomes. how can i change to code to allow this to happen?

Flash Buttons With Multi Scenarios
Okay this is gonna take a little explaining....
I've got a site design where there buttons at the bottom.. and the areas are on a long timeline. So when I click 1 it pans across and takes you to 'Area 1' then click 3 it'll pan across to 'Area 3'.
What i want to know is how to action script the buttons so it'll pan across from where it is to the next stage? so i dont have to keep making new butons for each scenario so it knows where it is in the timeline.

not sure if that makes sense...heh

Thanks for your help guys!

Multi Lingual Alert Buttons
Is it possible to change the language of display for the alert buttons. i.e whether YES,NO, CANCEL can be made to be shown in some language other than english? whether it is possible to the change the button's caption of a alert window based on multilingual operation?

Multi Layer Buttons Question
hello everyone, thanks for reading this.

i have a bunch of standard rollover buttons i made using movie clips with simple onActionscript.

now what i'm trying to do is group all the buttons basically into one big button but only for the purpose of color or alpha changes when the mouse is over the menu group.

basically i want all the buttons to get brighter when the mouse is over the menu area, but still have the individual buttons shift color as they do now.

i think it has something to do with depths but i havn't been able to figure it out. i added _root lines to everything, but that didn't help. i kinda of understand its looking for the actions in the new mc instead of the one nested inside that, but i dunno how to reach the nested lines of code. kind of a beginner here..

does that makes any sense? or is there an easier way to do this?

appreciate any ideas, thanks.

Multi-fram Rollover Buttons?
ok, im making a site for my clan, ive got basic flash knowledge, ive made rollovers in teh past, but no multiframe ones, i dont know if its even possible, anyways, i want to have text to be 100% alpha, then on rollover fades to like, 75% alpha and then fades back in, all on rollover


pls link me or show me how to do it....

MC Easing From Spot To Spot?
Hello everyone,

I have a quite weird problem... I'm trying to make an mc change its x & y coordinations and so move smoothly to a new spot in the scene...

I've been trying to integrate my script in a function but it just doesn't work the mc keeps disappearing by continually going up...

Any ideas how to solve this?

Cheers

[F8] Action Script For Multi Buttons.. Help Me Understand This Please
Listen up people
Thanks in advance for talking the time to read and hopefully help me out here. thats what Flash palls are for right! lol.

i have this Action script witch i cannot understand.
I want to make buttons .. witch each one of the buttons calling up different movie clips (mc i know). now i have this action script witch only uses text as an example. i know its close to what i would like to have,. but its not the one that i need for loading or calling up movie clips.

Action script:

bottone01_mc.tasto_btn.onRelease=function(){
bottone01_mc.bloccaBtn_mc._visible=true;
bottone01_mc.tasto_btn.enabled=false;
bottone02_mc.bloccaBtn_mc._visible=false;
bottone02_mc.tasto_btn.enabled=true;
bottone03_mc.bloccaBtn_mc._visible=false;
bottone03_mc.tasto_btn.enabled=true;
section_txt.text="WELCOME TO SECTION ONE";
}
bottone01_mc.btn1_txt.text="A";
bottone01_mc.btno_txt.text="A";
bottone01_mc.btn2_txt.text="BUTTON A LABEL";
//2nd button:
bottone02_mc.tasto_btn.onRelease=function(){
bottone02_mc.bloccaBtn_mc._visible=true;
bottone02_mc.tasto_btn.enabled=false;
bottone01_mc.bloccaBtn_mc._visible=false;
bottone01_mc.tasto_btn.enabled=true;
bottone03_mc.bloccaBtn_mc._visible=false;
bottone03_mc.tasto_btn.enabled=true;
section_txt.text="WELCOME TO SECTION TWO";
}
bottone02_mc.btn1_txt.text="B";
bottone02_mc.btno_txt.text="B";
bottone02_mc.btn2_txt.text="BUTTON B LABEL";
//3rd button:
bottone03_mc.tasto_btn.onRelease=function(){
bottone03_mc.bloccaBtn_mc._visible=true;
bottone03_mc.tasto_btn.enabled=false;
bottone02_mc.bloccaBtn_mc._visible=false;
bottone02_mc.tasto_btn.enabled=true;
bottone01_mc.bloccaBtn_mc._visible=false;
bottone01_mc.tasto_btn.enabled=true;
section_txt.text="WELCOME TO SECTION THREE";
}
bottone03_mc.btn1_txt.text="C";
bottone03_mc.btno_txt.text="C";
bottone03_mc.btn2_txt.text="BUTTON C LABEL";

now i've been studying this action script for hours .. can you please explain to me in baby language how to understand this action script better.
or maybe if you know a better action script about the same thing but for Mc and text. pleas let me know. or an easyier one is also welcome.

i hope i have been clear enough for u to understand what i mean .
I have put in a file for you all to look at, dowload it .. so you get a better understanding of what i am saying.

God bless you all for helping the needy
sgdejong
pls help.

Creating Linked Multi Coloured Buttons?
I am intersted in creating a menu link the one in this website [http://www.visualdata.org/] where all the buttons and the shape they are held in changes colour when the buttons are pressed. Anyone have anyideas hows its done?

Does each button contain details to load up all the buttons again but with tweening there colour in from transparancy thus allowing in to tween from the colour in was before its pressed?

Any advice on how to get there would be extremly appreciated!

Many thanks

Matt

Multi Loaded Vars To Multi MC's...Banging My Head Against The Wall
OK I'm banging my head against the wall because this is probably too simple, and I've been working on too many things lately *L*

OK so I've loaded a bunch of vars... let's say var1, var2, var3...var6 from a txt file.

Now I want to send each var to a MC whit similar names - but1, but2, but3...but6

code:
varsFile.onLoad = function(success:Boolean) {
trace("loaded");
for (i=0;i<=6; i++) {
buttonClip.but[i].htmlText = varsFile.var[i];

}
};



I've tried a bunch of different syntaxes, but can't seem to get it to work... HELP!!!!!! LOL


Thanks!!!!

Specifying The FLV In A Multi-channel Multi-title Player
Hello,

I have Flash 8 Pro that I use to publish an Earth Sciences Agency version 5.1 multi-channel multi-title FLV player on my website. The FLV player is populated using an XML playlist. I'm going through the account setup process at Truveo, which is a search engine dedicated to video, that uses an RSS feed to enter your videos into their search engine. I've set up the RSS feed and it validates.

However, a listing of one of my videos in the search results only points to my site as a whole, rather than to the specific FLV file on a specific channel in the FLV player. I suspect that there is some need in the RSS file to specify the FLV video and also fire an event, plus some type of event listener in my SWF to respond with the correct FLV.

In other words, when the search engine(s) return one of my videos in a search list, and provides a hyperlink to my site, how do I make it open the FLV player at that specific video, rather than just open my site as a whole?

Can anyone point me to a tutorial for how to set that up? Is it even possible?

Thanks,

Tom Wood





























Edited: 07/13/2008 at 09:35:46 AM by tomwood2

Link Images
how do i link an image to where you just click on the image and it opens a website page in a new window?

Images Link.
I can only get text to have a hyperlink attached to it but I can't make an imported image have an hyperlink. Is there a way to make it link to someone? Thankyou very much

Changable Images Via Link
Greetings,

I'm making a small photo gallery. I'd like to put up 12 thumbnails and when the user clicks on each, the play head jumps to a different frame or loads a movie that loads the photo at a larger size.

The trick is I want the thumbnail and the full size images to be accessed on the server (I don't want to have to render a new SWF everytime I swap out an image) so that if I replace the photo with another that is exactly the same size, it will load into both the thumbnail and the large image.

This way, someone who doesn't have Flash could update the photos by overwriting the ones on the server with files that are exactly the same size and file name.

Ok guru's, can it be done?

Link To External Images
I have been reading about flash MX, but I haven;t really used it. I havent had any flash projects since version 5, But now i have a website to build,,yaaaaaa

anyways, i was reading in the "whats new" that you can link to external jpgs so you dont have to load them with the rest of the file, but of course the tutorial doesn't tell you how to do it. This website is going to be very large, with lots of pictures and a couple of movies. Anyway know of a good tutorial for doing this external linking.

justin

Rotating Images . . That Link
I need a small box on my website that will load either images or swf externally, ( prefferably images ) and have each image linking to a different website as it comes up.




I do believe flash is the best way to go as I can have the advertisements fade in and out, and they won't interrupt several of our visually impaired visitors using readers.

But I don't know how to make the stuff link properly. If I could get the movieclip to load a series of swf files sequencially, then I'd have it made.

Any suggestions ?

Images With Link (html)
I'm making a Flash version of a site and I want to avoid to put textfields and movieclips at design-time, I preferred to load an external XML and set its format with an external CSS (as the site does).

I've realized that this is a little utopic when I've noticed that Flash only interprets a subset of the HTML/CSS standards. However, limiting myself to content with images and text, it still seems possible to load the entire page dinamically. However, I'm facing problems with images with external anchors (to web htm documents).

I first tried to read directly from the XML the code <a href='someplace.com/something.htm'><img src='someimg.jpg'/></a>, but the clickable area of the image is set wrong: I only can click in the image borders.

Second, I tried to use the ID tag of the img tag. However, when I use myTextField.getImageReference(), I get a Loader object that somehow was added as a TextField child, althought TextField isn't a DisplayObjectContainer. The problem is that I can't get mouse events and have the hand cursor, because Bitmap, nor Loader are Sprites.

So now I'm back to set movieclips as bitmaps containers and add these images at run-time. The real negative of this is that I can't use my existing html pages and need to design most pages inside Flash... Any suggestions?

[F8] Overlapping Images Via A Link
I'm rather new with ActionScript so, please, be gentle!

I have an image, whiteball, and I want to place other images (which will have some transparent areas) over top it via buttons. These other images are (for the sake of this post and simplicity); yellowstar, bluediamond and redheart.

So what you see is the image of the whiteball and three buttons (yellowstar, bluediamond, redheart) below it. You click on a button, say, yellowstar and that image is placed overtop the whiteball. From this you'd see the white ball with what looks like a yellow star pattern. Also, I want people to be able to choose up to but no more than six images to place on that whiteball. I also want them to be able to click on a 'back one step' button that allows them delete their last choice.

I think that's it...

Thank you for any help!

Making Images In Swf A Link
I made this swf where images flash in and out of the middle of a hdtv screen. Is there a way to make the images links for people to click on? Sorry i'm a newbie at flash ^^;

Multi-multi-dimensional Array?
Can you have an array structured like this?

The idea being that'd we'd have a whole bunch of stores with the same data

School[0] = Store's full name
School[1] = Number of store employees
School[1][0] = Employee 1
School[1][0][0] = Janitor (Title)
School[1][0][1] = Employee 1's hire date
School[1][1] = Employee 2
School[1][1][0] = Sales person (Title)
School[1][1][1] = Employee 2's hire date

And on and on and on

Images Fade When Click On New Link
I want to create a site that when you click on a navigation button an image when fade/ transtion onto a new page. please check my site that I had created http://www.ambiancelounge.com/HOME.html for instance I would like to make 1 image on the homepage if you click on ambiance radio then the 1st image will fade onto a new one on the radio page...

Want To Link A Lot Of Images Without Compromising Size Of .swf
But I don't know how , the best thing I'd do is link the images (like in HTML), but I don't know how to do that. I want to have my images separated from my .swf archive , so I can have it lighter.

How can I do that?

Buttons That Link
i have made a set of buttons, i.e. i put the mouse over them and they turn a different color, but i kinda need them to link to parts of my site i have flash 5, and the tutorials that i have found have all been for flash 4 and have been unable to help me. can ne1 help?

I Cannot Link These Buttons Help
This has to be simple I just do not know what to do.. I know how to add actions on release to button but I can't get this to work.. I guess its because these button are actually movie clips.. But when I convert them to buttons, they do not animate.. Here is the link to them..
PLEASE HELP...
http://www.flashbuttons.com/openSour...s/button16.zip

This is the FLA file..
Thanks

Buttons Won't Link
What's wrong with my code?

on (releasegotoAndPlay(updates);
) {
}

[F8] Link Buttons
hey im having a really hard time getting my buttons in a movie clip to link to the scene that that clip is in or the movie clip that its in. like i have an entire presentation in one frame on "scene 1" its called "intro" and its a movie clip and inside that movie clip i have a movie clip called "contact us"and a contact us button in the clip. i want this button to link back to a frame in the "intro".

[CS3] How Do You Link Buttons?
Hi, I know this must be one of the most Newbieish questions ever... but how do you link buttons with flash?

I thought I knew how.. but turns out I didn't.. I normally do pages in Fireworks and I link buttons by using hotspots.. but After I finished doing a new page in flash.. (its finished) I found out that there aren't hot spots in flash (lol!) sooooo now I have been trying to figure out how to link my buttons to the pages they need to link to!....

They are just simple Roll over buttons. the ones that are preset up for you when you convert a image into a button.. I know I'll probably be needing to link them through action scripting.. so all I need is the code.....

I've done some more complected linking before... where you make it go to the end of the movie and it automatically goes to a specified link... (like say its a link to go to your about page.. you click it.. it does its animation then at the end it moves on to the about page without you having to do anything else.)

but this time it seems like a simpler link.. just a simple roll over.. Roll your mouse over the image, it changes you click it then it should send you on your way to the page.. just don't know how to get it to 'send you on your way to the page'

Anyways hope I wasn't to wordy :-p
THANKS!
-brit

Link On Buttons
Heya

I am trying to add a link to my top menu buttons but cannot find the way.
I have uploaded my fla file here.

I am new to actionscript so I hope that someone can help me out.

Buttons Link
Hi I have created a flash button which i want to link to a RAR file in dreamweaver on my pc, I have tried the Hyperlink button and the anchor button, but all that i get is my flash button (which is not linked) and the name of the rar file underneath the button which i obviousley do not want. I just want to be able to click on the button then a download box to appear so a user can then download the RAR file.
Could you please tell me where i am going wrong.

Thanks
Archie

Changing The Images, Stop Flash Loading After Click On A Link To Page.
i need someone help me how to change the flash header for my website. www.solestop.com  

1) I need to change the picture.
2) how to make the sound disappeared?
3) how to make the image stop loading repeatly after i click on a link.

[CS3] Multi Level Drop-down Menu. Trouble With The Multi Level Bit
Hi,

I'm creating a multi-level drop down menu for a college project. So far I have 2 main menu items, one of which (products) contains 3 sub menus (line 1, 2 and 3). Line 1 should also have 3 sub menu items (product 1, 2 and 3).

I'm putting the actions for the line1_mc roll over and roll out on the main timeline but it doesn't seem to be working because it is trying to call a movie clip from within another movie clip!

Any ideas would be greatly appreciated!

Link Buttons In A Sub Symbol....
Hi all,

I am new to flash....so... please help...

I created a movie with 7 scenes. In the first scene (Scene1) I createa a symbol (S1) and edited it. Inside this symbol I created another symbol (S2). Inside the S2 symbol I created a button with the following actions:
on (release) {
gotoAndPlay ("scene3", 1);
}

My intention was: when I release the button the movie would start playing the first frame from scene3...

But when I click on this button it just plays the frames from S2 starting with the first frame...

Any idea how I can make this button play the scene3???

Thank you in advance.
--Cip--

Buttons Link To Executable And Pdf
I try to link buttons to PDF using Mac platform but the path is unrecognizable. I used the " on presss () and getURL command. Can someone assist me on how can i write the right code to understand the path of my files.

How can I link buttons to .exe files to automatically install files ex. Adobe Acrobat reader Installation.

Thanks.

How Did They? Macromedia Buttons At This Link
http://www.macromedia.com/support/fo...eview_release/

Hello, check out that link. Do you know how the buttons on the top of the page are scripted (right of the Macromedia logo)? Upon rollover, they go from gray to blue and will fade back to gray when you rollout.

I like the way it fades in and out, based on the time of the rollover. It looks much more fluid that the typical on/off or start movie command.

Have you seen a tutorial or movie out there?

Thank you,

+nvp

Using Buttons To Link Exes
is there anyway to link a button to an exe. I have a flash intro with a menu then one of the buttons is linked to setup.exe its on a cd if that makes any difference.
Thanks.

Flash Buttons Will Not Link....
My Flash buttons are animating but not connecting with their target URL when clicked.

I exported the buttons as SWTs, placed them in the Dreamweaver flash folder. Inserted the buttons in dw; The over and down states work perfect. The target URL even gets displayed in the address bar. But online, the action takes me nowhere. Any ideas? I have separate dw text links for each button, below the inserted flash buttons, and they work fine. Thanks.

PE

70 Buttons To Link To The Same Url. Is There A Quicker Way?
Hey masters! I have a project, and I have to redo the 70 buttons that I have. They are all going to the same url for example, going to www.flashkit.com. The thing is, the url for all the buttons I'm trying to assign is the same, except the end of the url. for example www.flashkit.com/here www.flashkit.com/overthere. is there a faster way of just automating the first url part, example, www.flashkit.com, so that I don't have to assign the url with all 70 buttons, one by one? Thanks!

Draw Buttons With Link From Xml, Please Help
hello everyone,

i've made a project were i load my data from xml.
flash checks how many nodes the buttons tag has, that way he knows how many buttons there are.
in the xml file the buttons tag also contains the link for the button.
this link for the buttons doesn't seem to work (At least all the way's i tryed, wich is limited to my know how).

this is the xml code

Code:
< content >
< menu >
< button name="button 1" link="0"/ >
< button name="button 2" link="1"/ >
< button name="button 3" link="2"/ >
< /menu >
< pages >
< wk_content title="content 1" text="content1.html"/ >
< wk_content title="content 2" text="content2.html"/ >
< wk_content title="content 3" text="content3.html"/ >
< /pages >
< /content >
the number stored in the link attribute is the pagenumber wich it refers to.

this is the actionscript used to create the buttons.

Code:
pageNum = 0;
trace ("pageNum = "+pageNum);
drawPage = function () {
num.totalpages = xmlindex.menu.childNodes[i];

trace ("num = "+num.totalpages.attributes.link);
i = pageNum;
_root.createEmptyMovieClip("MainPage", 3);
// title bar
_root.MainPage.createEmptyMovieClip("welkomsblok_title", 4);
var id1 = _root.MainPage.welkomsblok_title;
id1.refXML = xmlindex.pages.childNodes[i];
trace (id1.refXML.attributes.title);
draw_standard_box(id1, 100, 0, 400, 20, DarkGrey);
//----------rollover---------------------------------------------
id1.onRollOver = function() {
draw_standard_box(id1, 100, 0, 400, 20, Orange);
};
id1.onRollOut = function() {
draw_standard_box(id1, 100, 0, 400, 20, DarkGrey);
};
// content bg
_root.MainPage.createEmptyMovieClip("welkomsblok_content", 5);
var id2 = _root.MainPage.welkomsblok_content;
draw_standard_box(id2, 100, 52, 400, StageH-30, White);
//--------------text----------------------------------------
id1._y = id1._height+10;
id1.createTextField("title", 111, 100, 1, id1._width, 20);
id1.title.html = true;
id1.title.selectable = false;
// XML
id1.title.text = id1.refXML.attributes.title;
id1.title.setTextFormat(titleFormat);
};
for some reason flashkit board doesn't show all my code so this is a part of it. the code works with the name of the buttons wich also comes from the xml file but the links don't work.
check the files in the attachment for the full version.

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