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








Multiple Buttons


I'm creating a simple color wheel mixer... there are three buttons red, yellow and blue. I want to be able to select red and yellow buttons then go to the orange frame... or select blue and yellow buttons then go to the green frame, etc... I'm sure there's an "if" "and if" way of doing this in as3... any thoughts? I don't want to use check boxes... just buttons or mc's.




Adobe > ActionScript 3
Posted on: 11/18/2008 12:59:42 PM


View Complete Forum Thread with Replies

Sponsored Links:

Multiple Buttons Multiple Popup Windows?
I have several buttons on one page. I would like each button to access a new popup window with different window sizing. All the tutorials I've seen here only show the ability to open one popup window. Can this be done?

Digiblu

View Replies !    View Related
Multiple Buttons Multiple Movie Clips - PLEASE HELP ME
Hello -

QUICK BACKGROUND: I am working in Flash MX. I have used Flash for over 3 years, however, I am still struggling with Action Scripting. I plan to take some advanced courses this Autumn.

THE PROJECT AND PROBLEM: I am working on a large Flash site for a cosmetic dentist. I have multiple buttons and when you rollover the button, it will play a movie clip. I got this to work okay.

EXCEPT, I want the movie clip to stay in place and then go away when you click on the next button. Currently, I do not really have any Action Scripting involved except for a few STOP actions. The movie clip is attached to the "OVER" state for each button.

I have attached the .fla file for anyone who can take a few moments to review it. I am really at a stand-still and ready to have a nervous breakdown trying to figure this out. I have been up until 3am every night for the last 4 nights researching this and I have come close but still have not figured it out.

Any help is GREATLY APPRECIATED!!

Denise

View Replies !    View Related
Issues With Multiple Possiblities With Multiple Buttons
here's what I've got:

three buttons (oneBtn, twoBtn, threeBtn). Click a given button, and onRelease a movie clip (noOne, noTwo, noThree) slides from x position 150 to x position 450.

here's what I want to happen:

say movie clip noTwo is already at position 450. When you click oneBtn, clip noTwo slides left to position 150, while clip noOne slides right to 450. And so on, ad nauseum.

I've tried a number of different ways to attack it as an if/else, and/or, etc. Nothing works right.

I'm attaching a . zip with the .fla. I'm using MX 2004, AS 2.

thanks!

View Replies !    View Related
Multiple Radio Buttons/Multiple Choices
I want to create a screen that has 4 radio button groups. Once choices have been made for each group, I need to store those choices somewhere so that when a submit button is selected, it will run a specific movie clip based on the choices made. The choices can be any combination of the buttons (I have already created the movie clips that will run).

This is to run scenarios based on data already collected. The button groups include: Pump Operation (1, 5 or 6 pumps), Tide Cycle Type (typical, wet year or dry year), Debris Load (high, mid or low), and Fisheries Criteria (salmon or other). The choices run a simple animation through a complete tide cycle, and once the animation has been run, the user can select any portion of the tide cycle to see specific information (changing data is displayed for each portion of the tide cycle).

I'm sure I'm overlooking something really simple, help is greatly appreciated!

View Replies !    View Related
Issues With Multiple Possiblities With Multiple Buttons
here's what I've got:

three buttons (oneBtn, twoBtn, threeBtn). Click a given button, and onRelease a movie clip (noOne, noTwo, noThree) slides from x position 150 to x position 450.

here's what I want to happen:

say movie clip noTwo is already at position 450. When you click oneBtn, clip noTwo slides left to position 150, while clip noOne slides right to 450. And so on, ad nauseum.

I've tried a number of different ways to attack it as an if/else, and/or, etc. Nothing works right.

I'm attaching a . zip with the .fla. I'm using MX 2004, AS 2.

thanks!

View Replies !    View Related
HELP Multiple Buttons Controlling Multiple Movies
I hope someone can either help, or point me in the right direction!

I am trying to do a little program for kids, where there make their own plants. They are to pick from several buttons; the petal, leaf size and stem size. Once they have done that, they have to then click sun and water. Only then does flash fetch the correct movie case that matches with the buttons pressed, and plays it.

My problem is this...i am a total newbie, and have no idea where to start! Any tips would be very appreciated, or if anyone has stumbled across any tutorials that might help, i would be very grateful!

thanks

View Replies !    View Related
Controlling Multiple Movies With Multiple Buttons
I am trying to use variables to control mulitple movies with multiple buttons (I think). I can get one button to control all the movies the way i want, but not ALL the buttons to control ALL the movies.

Take a look at the main menu on exopolis.com and you'll see the effect I'm going for

http://www.exopolis.com


I am also using the code from joshua davis' flash to the core (tutorial #8). I'm try to apply this same concept, but with mulitple movies and mulitple buttons.

http://flashtothecore.praystation.com


I have four movies named:

home_mc
work_mc
play_mc
contact_mc

Each movie has a button within them that declares a variable that will be true or false depending on the rollver state. (fade01,fade02,etc.)


In the root, first frame I have the following:


//handle the onEnterFrame event
_root.bt_home_mc.onEnterFrame=function(){
if(_root.fade01){
_root.bt_work_mc.nextFrame();
_root.bt_play_mc.nextFrame();
_root.bt_contact_mc.nextFrame();
}else{
_root.bt_work_mc.prevFrame();
_root.bt_play_mc.prevFrame();
_root.bt_contact_mc.prevFrame();
}
};

//handle the onEnterFrame event
_root.bt_work_mc.onEnterFrame=function(){
if(_root.fade02){
_root.bt_home_mc.nextFrame();
_root.bt_play_mc.nextFrame();
_root.bt_contact_mc.nextFrame();
}else{
_root.bt_home_mc.prevFrame();
_root.bt_play_mc.prevFrame();
_root.bt_contact_mc.prevFrame();
}
};


//handle the onEnterFrame event
_root.bt_play_mc.onEnterFrame=function(){
if(_root.nav_mc.fade03_mc.fade03){
_root.bt_home_mc.nextFrame();
_root.bt_work_mc.nextFrame();
_root.bt_contact_mc.nextFrame();
}else{
_root.bt_home_mc.prevFrame();
_root.bt_work_mc.prevFrame();
_root.bt_contact_mc.prevFrame();
}
};


//handle the onEnterFrame event
_root.bt_contact_mc.onEnterFrame=function(){
if(fade04){
_root.bt_home_mc.nextFrame();
_root.bt_work_mc.nextFrame();
_root.bt_play_mc.nextFrame();
}else{
_root.bt_home_mc.prevFrame();
_root.bt_work_mc.prevFrame();
_root.bt_play_mc.prevFrame();
}
};



On each button I have the following (except the variable is unique....fade01, fade02, etc)


on(rollOver){
_root.fade01=true;
}
on(rollOut, dragOut){
_root.fade01=false;
}




Please help. This is for a personal project. If you need my fla file, i can send it to you. Thanks

View Replies !    View Related
Multiple Buttons Loading MC Buttons On Single Stage
Hello,
I need three buttons , working independent of each other, to "turn on" the MC in three seperate boxes, all on the same timeline- further, I want these MCs once "turned on" to actually be buttons that can then send the user to a different page. I can make this work if it's only one button, using two frames (by "hiding" the already launch MC over the top of it- then sending the link to frame two etc) but I need ALL three buttons visible, in whatever order the viewer clicks them! (Think of a wall with three windows and the MCs are the window images!) SO: the viewer clicks a button (any or all three) that turns on the movie clip and the movie clip can then be clicked to launch to a new page. Is this even possible?
-sorry for the long explanation- thanks for any help!
ras.

View Replies !    View Related
Dynamic Text For Multiple Buttons W/ Scroll Buttons/bar
HELP! I know a similar question to this has appeared multiple times before, but here is my situation:

i have four buttons, each of which will load a a separate text file into a dynamic text field (ie: button A to textfield 1, button B to textfield 1).

The other trick is, this also has a custom scroll bar. (I would rather just use an up and down arrow, but if i have to use a bar as well, I will not be too distraught.)

Is there a way that I can have all the text files loads in a dynamic text field PLUS have a scroll bar to aid with scrolling.

Any help would be greatly appriciated. I have been trying to figure this out for about a week now, and am still no where.

peter /slqu.net

ps: i am a designer, and for some reason, programming, even of the most simple nature, still eludes me. so please take pity me

View Replies !    View Related
Buttons: Same Instance Name...multiple Buttons
For a secondary navigation, I've created a frame based rotating object with different set of hotspots on each frame that link to the pages of the site.

What I'd like to do is give the same instance name to a set of buttons and then write a myInstance.getURL script that will apply to all these buttons.

The other option I've thought of is to copy the link code into my 190 individual buttons.

Any thoughts?

View Replies !    View Related
Copies Of Flash Buttons - Edit Each One? How To Edit Multiple Copied Buttons
I am creating a website using a flash template, my first venture into flash. The side links are all flash, where I had to add about 5 additional buttons. So I copied one of the buttons and pasted multiple copies of it. I was able to reposition each one correctly so they are move correctly. But I can't figure out how to edit each one individually? Any change I make to one, is made to all of them as well.

I am using Flash MX 2004 and any help is greatly appreciated!!

Thanks!!

Pete

View Replies !    View Related
Multiple Buttons, Multiple MC's
I asked this in the newbies section and didn't get a solution so I thought I'd try here. Sorry for the double post.

I've got several buttons with MC's in the DOWN state. I have 2 questions I need answered to finish my project:

1. The MC appears just as planned when the button is clicked, but it disappears when the button is no longer pressed. How do I make it so that it continues to appear?

2. Once a button is clicked, and the MC appears, I want it to stay appearing until another button is clicked. At that point the first MC will dissapear and the next one will start. This will happen each time a new button is clicked.

Is this process called something that I can look for a tute on?

Thanks in advance

View Replies !    View Related
Multiple Buttons - Multiple URL's SOS
Hi to all!

I'm an amateur in Flash and i'm trying to set up a website but i'm stuck up with smth that to most of u people will seem stupid!

I have a series of buttons that whenever clicked must point to a different URL; my problem is that i cannot separate the button functionality; what i mean u will easily understand if u download the flash and give it a try! I'd be grateful if somebody could work it out, i'm trying for days but i cannot find it out and also i have no time to study the necessary stuff!

I know i have to use the

on (release) {
getURL("iframe_6.html", "cont");
}

for example but even if i do it's not working, some conflict perhaps?

Thanks to all! KINDLY SEE THE ATTACHMENT!!

View Replies !    View Related
Multiple Buttons
Hullo there,

I have several buttons all with different code in them, arrays and stuff, instead of rejiggin the code to fit all in one button i was wondering if there was an action to force the actions of all the buttons just using a single sepperate button, i'm tearin my hair out with this one i have tried putting the code in mc's and it just won't work for me....please help!!

View Replies !    View Related
HELP - Multiple Buttons?
lets say i have a bunch of buttons / links.....

if i rollover each one (seperately) i want the other buttons / graphics to change.....but the one rolled over to stay the same and have a sound effect...

how is this done???

View Replies !    View Related
Multiple Buttons...
Hi all,

What could be the best way to achieve this: I have an undetermined number of button, when I click on one of the button I want to pass an action to the others i.e. resize them by 50%. But when I click a button I want it to grow back to its original size if it was at 50% while the others will be resized to 50%...And so on... Am I making myself clear??!

Any help would be really appreciated! Thanks in advance,

Isengard

View Replies !    View Related
Multiple Buttons....Can Someone?
Hi all..

I've this fancy button with all the crazy effects. I need three more of these buttons to complete my design. But, when I create the instances of my main button and add the required text to these instances of the button, everyone button (all four) gets the same text. I drag and drop from the symbol of my button from the library to create my instances. How do I go about on having four buttons with only just 4 different text. Ie: Main, Download, News, Email for 4 different buttons instances?


I've been struggling with this for more than 12 hrs for now,,and I'm tired and come to your help.

Thanks,
Jay

View Replies !    View Related
Multiple Buttons
I managed to log in!

Great site. I have a problem: I downloaded this *.fla file to use for a website.There are 4 embeded buttons that play a movie (the button starts flashing)in roll over and play a different movie (the button's name shows up in the corner ) on release.The action script is as follows:

on (rollOver) {
with (_root.button1) {
gotoAndStop (2);
}
}
on (rollOut) {
with (_root.button1) {
gotoAndStop (1);
}
}
on (release) {
with (_root.pageturn) {
gotoAndPlay ("NextImage");
}
with (_root.titles2) {
gotoAndPlay ("one");
}
// remove this when adding movie clips
with (_root.loader) {
gotoAndStop (1);
}
}
What can I do to make more such buttons? I need three more but I can only make them show the name in the corner, they will not flash.Any idea? here is the file.thanks

View Replies !    View Related
Multiple Buttons
Not found it says.

Matt

View Replies !    View Related
Multiple Buttons
is it possiable to control an MC with a more than one button? in other words, have a MC play only on the click of 2 different buttons? and not untill they are both pressed?

thanks

View Replies !    View Related
Multiple Buttons
i made a movie thast slideshow type.. ive never done that before.. and when i put a button to go to next frame it works, but when in the next frame i put a button to go to the frame after that everything screws up.. any ideas?

View Replies !    View Related
Multiple Buttons
hello, i have a quick question. i know how to set one button to change to another scene for my website, but when i try to set another button on the main page to move to a different scene, it changes the first settings as well. how do i correct this?

View Replies !    View Related
Multiple Buttons
hello, using flash 5. I've made a control panel with approximately 30 buttons on it. this control panel will control a simulation on a different level. my problem is i want to use multiple buttons on the control panel to make something happen in the simulation. example is: press three buttons in a specific order on the control panel to make a pump turn on in the simulation. can this be done?

thanks.

View Replies !    View Related
Multiple Buttons
HI

I have an index movie that loads a movie called box1 that loads a movie called diary.

on the diary movie I have 8 buttons venue1_btn - venue8_btn when each is pressed I want a picture to load into a movie clip called top on the diary page. The pictures are venue1b.jpg - venue8b.jpg. The images are in a directory called im.

I want to put a simple script on frame 1 of the diary swf that will control these buttons. I can get them to work as single buttons but that means repeating the code for each button.

_root.box1.venue1_btn.onRelease = function() {
loadMovie("../im/venue1b.jpg", "_root.box1.top");
};

_root.box1.venue2_btn.onRelease = function() {
loadMovie("../im/venue1b.jpg", "_root.box1.top");
};

etc

As a newbie i have not got my head around variable scripts yet, help would be appreciated.

Regards Barry

View Replies !    View Related
[F8] Multiple Buttons
i was trying to make a multiplayer game(for about 1-4 people)
but i can't press more then two keys at once ex. one person goes diagonal(by holding up and left, down and right, ect, ect) then the other player can move. plz tell me how i can fix this

View Replies !    View Related
Multiple Buttons
I have a page on my site that has 4 buttons on each side...movie clip over a
button...looks like a bar with a small arrow movie clip on the end. I am sure
you know what I mean. When you roll the mouse pointer over the page it
obviously is supposed go through its actions and alert user there is a link. If
I put my code on the movie clip, you have to move the mouse over the arrow to
show the link. If I put my code on the button layer, it causes all 8 of the
buttons to have the same action/link and if I change one it changes all.

What am I doing wrong? I can't seem to figure it out. Here is the code...
on (rollOver) {
_root.position = _root.slide["b"+num]._x;
if (_root.l<>num) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
_root.position = _root.slide["b"+_root.l]._x;
if (_root.l<>num) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.l<>num) {
this.gotoAndPlay("s3");
_root["i"+_root.l].gotoAndPlay("s4");
_root.l = num;
}
}

View Replies !    View Related
Help About Multiple Buttons
i have a function in 1st layer and in 1st frame
in the same frame i have a 2 buttons also
1st button have Instance name which called from another swf.
now i want to apply this function same to these two buttons,
means to say , when these buttons display externally to another swf and when user click on any button the button should work the same.
on click event i want to call the function which is written in 1st frame as i said.
i try this.

1) apply the same instance name.
2) apply different instance name and also call it from different from external swf.

in simple words i want the same functionality with these two buttons if any one of them is click they should work the same.

but its not working

Thank you

View Replies !    View Related
Multiple Buttons
I am creating a childrens book for a school project. It is an i spy game...so the kids read a riddle and select the items. When the items are pressed I have them changing appearence, and then the word in the riddle changes color to indicate they have found the object.

Here is the problem, if there are "4 bats" then what is the best way to code it, or keep track of the amount of bats selected?(In other words, how do I make the color of the word "4 bats" changeafter all the bats are pressed).

Also, I need to indicate that all objects have been found. Basically, provide a option to move to the next page. How would I code that?

View Replies !    View Related
Multiple Buttons
How do I actually go about assigning different actions to the individual buttons in this specific movie. Its gotta be easy right?
For example button1 loads in a swf or button2 jumps to frame 6. You get the idea.
Also how do I control what is in the text fields. At the moment it just says 1,2,3,4,5. It would be good If I could work out a way of it just displaying the a different word for each.

http://www.canfieldstudios.com/flash...at5/index.html

Hope someone can help. Thanks...

View Replies !    View Related
Multiple Buttons HELP
http://www.jasonallies.com

If you go to my site and click on the small "PORTFOLIO 06" button you will see a "button grid" that shows different videos or photos. Unfortunately I am fairly new to actionscript and the code associated with this grid is extensive and extremely repetitive...

//Repeated for every thumbPic and thumbClip button\
thumbPic1.onRollOver = function() {
this.gotoAndPlay(2);
}
thumbPic1.onRollOut = function() {
this.gotoAndPlay(8);
}
thumbPic1.onRelease = function() {
clipHolder._visible = false;
picHolder._visible = true;
this.gotoAndStop(16);
this.onRollOut = function() {
this.gotoAndStop(16);
}
curPicNum = 0;
picLoader.loadClip("pics/pic" + curPicNum + ".jpg", picHolder); }

...of course it is just a simple copy and paste which doesn't take too long - but I'm assuming there has to be a better way.

JA

View Replies !    View Related
Multiple MCs As Buttons
I have created a MC that acts like a button (rollover, rollout states). However when i try to add more to the frame they don't want to work:
This is the AS for one button:

Code:
this.button1.onRollOver = function(){
button1.gotoAndPlay("_over");
}
this.button1.onRollOut = function(){
button1.gotoAndPlay("_out");
}
And when I add a second I just use the same but change the instance names to suit the second MC.


Code:
this.button1.onRollOver = function(){
button1.gotoAndPlay("_over");
}
this.button1.onRollOut = function(){
button1.gotoAndPlay("_out");
}

this.button2.onRollOver = function(){
button2.gotoAndPlay("_over");
}
this.button2.onRollOut = function(){
button2.gotoAndPlay("_out");
}
Any ideas what I am doing wrong? This is really bugging me!

View Replies !    View Related
Multiple Buttons
Hi All,

I’m fairly new to flash so please bear with my ignorance. On the stage I have placed a movie clip called links, inside links there are 4 movie clips (mc1, mc2, etc.), each one of these movie clips has a button in it (btn1, btn2, etc.). I have scripted the first button so that it loads an .swf in level 1. Once the external file is loaded in level 1, I can still access the buttons, what do I do to disable all 4 buttons when there is an external file in level 1?

Thank you for your help.

View Replies !    View Related
Multiple Xml From Buttons
'lo all,

Using Flash 8 and as2.0 I am trying to create a simple (!) app. that lets a user click one of ten buttons to go to a gallery.

On frame 1 of the .fla I have ten buttons, and on frame 2 a target mc. Frame 2 also has the script to create an xml 'object'. In the same folder as the .swf, I have ten xml files.

How can I get each button when clicked to 'pass' the url for the specific xml file to the xml script in frame 2? My xml script works pertectly if I key in the url, ie


Code:
snacks.load("unit_one.xml");
But I want the load() method to be set via the button.

Thanks in advance.

db

View Replies !    View Related
Multiple Buttons In As3
Hi everyone,

I'm trying but I can't work this out.
I have a single movieclip named button, and I want to use a "for" to multiply that movieclip, that way I can have multiple buttons and edit them all in a single function.

It would be something like this:

var _button = new button;

for(i=0; i<5;i++){
_button[i]:button = new button;
addChild(button[i]);
}

I've searched but I can't find any thread with this.
Thanks in advance.

View Replies !    View Related
Multiple Buttons
Hi,

I have a menu of 4 buttons (button set A), once clicked they each load external jpgs into the main_holder.

What I would like to achieve is this:

1. As each button from within set A is clicked (and a jpg is loaded), I'd also like a new set of buttons (each set to contain 2 buttons) to appear so when they are clicked they too load more external jpgs within the main_holder.

What would be the best way to approach this?

View Replies !    View Related
Multiple Buttons
Last edited by CyberEvil : 2004-08-12 at 19:01.
























Hello,
I have a couple of buttons named btn_01, btn_02, 03.. 06.
How can I do to give them an attribute in a single way?
I've tryied with a var, but when starts running, it says that a script is making flash runing low.
4 Example, I have:
_root.btn_01._visible = 0;
_root.btn_02._visible = 0;
And so on...
I'm looking to have something like:
btns._visible = 0;

Thanks you!

View Replies !    View Related
Multiple Buttons?
The code i'm using is:



stop();

academics_btn.onRelease=function(){
gotoAndStop(49);
}
stop();

music_btn.onRelease=function(){
gotoAndStop(50);
}

stop();

running_btn.onRelease=function(){
gotoAndStop(51);
}
stop();

other_btn.onRelease=function(){
gotoAndStop(52);
}





when trying to test the movie, I get the error message:



"Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton."



And I get it 4 times because there are 4 buttons, one for each button.



Help?

View Replies !    View Related
Multiple Overleaping Buttons
Hi!

I think the answer is rather simple...

I have to do a menu that is hiding and unhiding (in anim with 20 frames long each) if the mouse crsr is near.

1. Tryed to put one big invisible button (when mouse over - play anim "unhideMenu, when out - play "hideMenu") and several menu buttons with their own animations. As I can see I am unable to do it that way 'cause when crsr is over menu button it forgets it is over big button and "hideMenu" anim is played.

2. Second try was with MC that is checking if the crsr is over big button, but every check (MC have 2 frames anim with _xmouse & _ymouse in first frame)causes first 2 frames of "unhideMenu" anim to be replayed continously...

Please help...

View Replies !    View Related
Making Multiple Buttons?
I have a list of links, each one is to be a button. I was wondering how I could make this list so that I would not have to make 10,20 or so buttons, one for each link. I think this can be done with using smart clips, but I have not ever used them before and would need some help. If smart clips are the route you suggest could you direct me to a good tutorial?

Thanks for your help

View Replies !    View Related
Buttons Over Multiple Levels.
Im using a draggable menu system, with a button that opens up a sub-level of several other buttons. I want one of the buttons to skip to a frame on the base level of the movie... or skip to the next scene. However I cant work out what command to give it, as the following dont seem to work;

on (release) {
tellTarget ("_parent") {
gotoAndPlay ("framelabel");
}
}


on (release) {
gotoAndPlay ("Scene 1", 3);
}

I know my problem is that the button is about 3 levels down from the root layer, which is why the _parent command doesnt work. So what command should I use??

View Replies !    View Related
Buttons With Multiple Actions
Hi There,

I'm creating a flash web site and am having a few problems. I have a main page with four buttons along the bottom. Also on the time line are four movieclips which are the other pages. When I click the first button, The first movieclip begins which slowly builds up parts of the page. It then has a stop action once the page has got to where I want it. After this stop action, the movieclip continues and dismantle's the page. I am trying to get it so that, once a movieclip has got to that stop action, when you press a different button it will finish the movieclip that is displayed(closing that page) and then run the first part of the other movieclip.

Any ideas how to do this?

Hope this makes sense (I'm having trouble explaining this)
I've spent ages creating all my pages and just can't figure this one out, so please, any help is greatly appreciated.

ps. I'm using Flash 4, and have little programming experience, so if you could reply in simple terms, that would be great.

Cheers

Ben

View Replies !    View Related
Multiple Codes On Buttons
I am looking to figure out how to tell a button in one swf to load another swf on top of it and go to a certain frame of that second swf without coding the second swf to go to that frame. I can get the second swf to load on top (loadmovie script) but when I put the goto script on it, it doesn't work. It just goes to the first frame of that swf. Any ideas?

View Replies !    View Related
Drag Multiple Buttons How?
I would like to drag mutliple buttons/symbols around the screen. Up to twenty or so.

I can drag one, but as soon as i ad more than one they all move with the one drag?

Thanks in advance.

View Replies !    View Related
Multiple Buttons/MC's And Ext. Txtfiles
I have a problem with MC's:
There are five buttons and thereby five ext. textfiles to read in. Because i want to preload the text files i have the textfields inside MC's:

button:
on (press) {
loadVariables("buren.txt", "data_holder");

View Replies !    View Related
Multiple MC's / Buttons / Variables
I have a problem with MC's:
There are five buttons and thereby five ext. textfiles to read in. Because i want to preload the text files i have the textfields inside MC's:

-button
-mcData_holder (empty)
-mcTypewriter
in the mcTypewriter there is one textfield called
_root.type_text



code:
------------------------------------------------------------------------
// button
on (press) {
loadVariables("buren.txt", "data_holder");


//mcData_holder
onClipEvent(data){
_root.show_text = true;


//mcTypewriter
onClipEvent (load) {
n = 0;
}

onClipEvent (enterFrame) {
if (_root.show_text) {
_root.type_text = substring(_root.data_holder.text_loaded1, 1, n);
n++;
if (n>_root.data_holder.text_loaded1.length+1) {
_root.show_text = false;
}
}

------------------------------------------------------------------------


So this works fine, but what if i want to load more textfiles, from separate buttons? I think i have to load the Variables in a frame?

By the way at the end of every script i left this '{' out there where still some problems on the boards.

Thanx

View Replies !    View Related
Mulitple Buttons, Multiple MC's
I've got several buttons with MC's in the DOWN state. I have 2 questions I need answered to finish my project:

1. The MC appears just as planned when the button is clicked, but it disappears when the button is no longer pressed. How do I make it so that it continues to appear?

2. Once a button is clicked, and the MC appears, I want it to stay appearing until another button is clicked. At that point the first MC will dissapear and the next one will start. This will happen each time a new button is clicked.

Is htis process called something that I can look for a tute on?

Thanks in advance!

View Replies !    View Related
HELP Multiple Buttons In Movie
I have a 6 button movie in my Library (they are all on their own separate blocks). I have assigned goto object actions to them all. From here I place the Button Movie into my scene. When I tested it, all the buttons when clicked would just reload the scene. What am I doing wrong... This is driving me nuts.

http://www.advancerecruitment.com/ar..._V1/index.html

Click on Flash Version to see what I mean. Ack!

View Replies !    View Related
Multiple Buttons In A Movie
I have Mutlple buttons in a movie. Then the movie is place in frame 1 of the scene. How do i assign actions to them? Normally i would just have a "on release goto frame 4". But its not working. I am usine flash MX.


Any Help would be apprecated.

Thanks,

View Replies !    View Related
Multiple Choice Buttons
I'm not sure the most straight forward way to go here.

I am attempting to create a page that has something akin to a paper doll in the center surrounded by pieces of "clothing" strewn about the screen, either as buttons or as symbols with invisible buttons.

When a user clicks on a button/clothing symbol it turns on that symbol in the appropriate place on the figure in the center. So for example you may have 3 pants and 3 shirts and I want to be able to click on one of each and have them appear in place regardless of what the other clothing pieces are.

That would be easy if I was sending the center "movie" to a certain frame with a certain clothing combination, but with multiple other clothing combinations possible I would need a button to access every possible frame combination.

Am I looking at some ifThen mass of code or is there another simpler work around anyone can point me to?

View Replies !    View Related
Multiple Buttons And Telltargets
I have looked through the forum....my question is I have multiple buttons on a layer and wish to attach tell targets to each of them. I am creating a portfolio, the first button(1st pic)works fine and the larger image appears in the preview box. When I roll over the second button the telltarget cannot be found. Does each telltarget have to be on a different layer. How do I make all the buttons perform corectly using the roll over/ roll out method.

Desperate and Dying for help...School Project is Eminent

View Replies !    View Related
Multiple Buttons With Tell Targets
I have looked through the forum....my question is I have multiple buttons on a layer and wish to attach tell targets to each of them. I am creating a portfolio, the first button(1st pic)works fine and the larger image appears in the preview box. When I roll over the second button the telltarget cannot be found. Does each telltarget have to be on a different layer. How do I make all the buttons perform corectly using the roll over/ roll out method.

Desperate and Dying for help...School Project is Eminent

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved