IDE :: Control Multiple MCs With Function?

Nov 26, 2009

I have a keyboard which consists of 26 MCs, named keya, keyb, keyc.... and so on.

I want to create a button that will disable all these buttons at once, but I'm not sure how to express it in actionscript. Basically, I need it to say 'on release, key X (where x = all characters from a to z) _enabled= false;

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Control Multiple Rollovers From One Function?

Apr 27, 2007

I have been developing an interactive map, part of that has buildings, each is separate movie clip. Each needs to have a bit of stuff happen onrollover and stop onrollout. I have that all working if I code each building separate. Instead of having 60-80 nearly identical blocks of code, is there a way I can consolidate this down to less code. for instance, instead of declaring the name and path of the button I'm rolling over, is there a way for flash to figure that out by getting the name of the current movieclip the mouse is over and then sticking that in the code? here is the code as it is right now:

Code:
var tt2:TooltipBuilding = new TooltipBuilding(0x660000, 0x000000, 0xFFFFFF);
_root.mainMap.mainMap.cateteachingcenter.onRollOver = function() {

[code]......

View 1 Replies

ActionScript 3.0 :: Control Multiple Sounds In Multiple Timelines

Mar 10, 2009

Here's the setup:

-I have a music score that will be streamed in via actionscript

-I also have multiple short sounds (SFX) in multiple nested MCs

-these SFX sounds are customized using the ide edit interface, so it would be a pain to use actionscript to play each sound

What I need: To have 1 mute button for the music, and 1 mute button for the SFX, both on the root timeline.[code]...

View 7 Replies

ActionScript 2.0 :: One Sound Control Multiple SWF

Jun 26, 2010

I have multiple swfs in one HTML page and I would like to create the simple sound control (on / off) to control all the mouse over sounds.

View 3 Replies

IDE :: Using Multiple Flv Movies And Timeline Control?

Apr 26, 2010

In short I am trying to have a looping movie clip (already an flv) on the 1st frame with a button that goes to the next frame where the movie only plays once (transition) and goes to frame 3,loads up a menu with a movie clip thats looping and from then a menu that links to other looping movies on different frames with text etc.

View 1 Replies

IDE :: Multiple Sound Volume Control?

May 3, 2010

I'm having issues with controlling multiple sound volumes in flash. What I need to have happen is a Background music softly playing while a voice over is also playing.

This is what i have in the first frame of my main timeline

Code:
firstSound = new Sound(BGMusic_mc);
firstSound.attachSound("LatinRockMusic");
firstSound.setVolume(10);

[Code]...

but when it starts to play the voice sound the volume jumps up to 100. I need the first sound to stay at 10 and the voice sound to be at 100.

View 2 Replies

ActionScript 2.0 :: Control Multiple Movie Clips?

May 15, 2009

I have 6 movies that i need controling. These are named hex1, hex2, hex3 etc. When the file opens i have some action script that needs to run something like this:

while (i<7) {
hex[i].gotoAndStop(1);
i=i+1;

[code].....

View 1 Replies

ActionScript 3.0 :: Multiple Buttons To Control 1 Array?

Oct 22, 2009

I need 6 buttons to control the same array. it's a list of 12 things.

Button1 loads the first image in the array

Button2 loads to the next image in the array

Button3 loads to the previous image in the array

Button4 loads the 1st image in the array (yes two buttons to do the same thing but it's necessary)

Button5 loads the 4th image in the array

Button6 loads the 7th image in the array

Button7 loads the 9th image in the array.

on top of that if no button is pressed the next image in the array moves forward after 15 seconds.how to do this with a set of images. Eventually the Array will become an xml document which accesses images, and two text fields.

View 2 Replies

ActionScript 2.0 :: Control Multiple Text Fields?

Feb 23, 2010

I am working on a program that has several text fields and I need to control them all very simply by using actionscript. I have an idea how to do it, I just don't know if it is possible. Here is the basic idea:

I have 20 sets of text fields with 3 text field each. The first set are named "firstNumber1", "secondNumber1", and "total1"; the second set are named "firstNumber2", "secondNumber2", and "total2"; and so on an so forth. What I want them to do is add the first number and second number to reach the total. Rather than writing this formula 20 times

PHP Code:

total1.text=firstNumber1.text+secondNumber1.text;

I would like to do them in the following manner:

PHP Code:

for(i=1;i<=20;i++){
"total"+i+".text"="firstNumber"+i+".text"+"secondNumber"+i+".text";
//if i=6, formula should be total6.text=firstNumber6.text+secondNumber6.text;
}

The problem I face is that Flash doesn't recognize what I am trying to do. I have tried several variations, but I haven't figured out how to write the command so that it will do them all with one group of code.

View 3 Replies

ActionScript 2.0 :: Control Multiple Levels With Variable?

Aug 14, 2010

I am getting frustrated, because I am unable to tell a range of levels to do something with this actionscript [code]...

View 2 Replies

ActionScript 2.0 :: Control Multiple Movieclip Rollovers?

Feb 13, 2006

- im creating an interactive piece which requires 100 movie clips to be created which im treating as buttons. Each of these movie clips need a rollover and rolloff command and also need to load an external jpg into a movie clip on press. (along with few other actions)

Code:
_root.eh_2.onPress = function() {
var BGalpha = _root.BG_mc1._alpha;

[code].....

View 3 Replies

ActionScript 2.0 :: Control Multiple JavaScript Pop-Up Windows

Jun 12, 2006

I am trying to launch 2 different JavaScript Centered Pop-Up Windows within a Flash movie. There is a main movie, then 2 other movies that load into the main. The main movie resides in the index page and all of the JavaScript is in the header. I need one pop-up to load an FLV (movie.html) with NO SCROLL BARS......and the other to load a results.php page (results.php) WITH A VERTICAL SCROLL BAR only. I have been referring to the a tutorial on the Kirupa Website [ [URL] ] but I'm not totally clear how to write with the properties in the Java Script to talk to these windows individually.

View 2 Replies

ActionScript 2.0 :: Sound Control Over Multiple Scenes?

Apr 29, 2002

I currently have a movie, about 12 scenes long. I have a sound control that loops the track I have the user select repeatedly. But because I wanted music to always play unless they manually turned down the volume in my controls I load the music each time the main scene is loaded... This ends all of the other sounds and just restarts the first track in my list.

Here's the code:

For the main frame, inside a movie clip placed on scene 1:

stop ();
stopAllSounds ();
setProperty ("playing1", _visible, "1");
setProperty ("playing2", _visible, "0");

[Code]....

All I want this to do is keep playing the track the user selected, and not have to reset everytime the main scene is loaded...

View 1 Replies

ActionScript 3.0 :: Multiple Mc Control To Avoid Layering?

Sep 9, 2009

In a scene I have 8 MC's each MC has a stop() on frame one and frame ten.on click the MC plays till frame ten ( moving into the scene ) then waits for another click to return to its original location. [URL] Signs for below example, if you click on multiple signs on the right of the page they over lap each other I want it so if you click one and view it once you click another a play function is sent to the mc that is on the stage to send it back to its original docker.Right now I am using this script.

import flash.display.MovieClip;
import flash.events.MouseEvent;

[code]....

can't find the variable, is this because it's in a movie clip?

View 3 Replies

ActionScript 2.0 :: Scripts To Control Multiple MovieClips

Sep 22, 2002

I am creating a Flash movie that has some PowerPoint-like pages in it. I've created an nice clipEvent script that make bullet points slide in and bounce to a stop. I want a whole bunch of clips to do the same thing, and I'd like simply to define a script globally at the beginning of the movie and apply it to all those different clips, that way if the client asks for changes I only have to change the one script, not dozens of them.

onClipEvent (load) {
originalH = this._x;
this._x += 500;
speed = 75;
pass = "right";
[Code] .....

View 2 Replies

ActionScript 3.0 :: Using A Mc To Control The Main Timeline With Multiple Scenes?

Jul 19, 2010

I have a main timeline that has 27 different scenes. I have a movie clip that is an "on call" navigation menu for the main timeline. I can call the menu once, and it will go to the first place I want it to go. However, I cannot seem to figure out how to get it to go away to be able to call it again. I get the "must be child of caller" error. how to get rid of it each time I use it?

View 2 Replies

Flex :: Add Multiple Icons To The Spark TabBar Control?

Dec 15, 2010

In the MX TabBar component, the iconField property allowed us to display different icons in each tab. In Spark, there does not seem to be an inherent way to add icons to the TabBar.Does anyone have an example of implementing icon support for Spark's TabBar?

View 4 Replies

Flex :: Control Multiple Instances Of Movieclips In A Loaded Swf At Once?

Mar 2, 2011

I am loading an swf created in flash professional cs5 via the loader class into a flex 4.1 application. The flash file contains multiple movieclips that are exported for actionscript and those movieclips exist in many instances throughout the movie.

Iterating through everything, comparing class types seems to be the most easy but also the most redundant way to solve this. Is there any way of using the class name as a kind of global selector to access the clips?

I could also make the sub-clips in the flash listen for an event on which they perform an action, but I am not really sure what might be best.

View 2 Replies

ActionScript 2.0 :: Control Multiple Movie Clips Simultaneously?

Mar 15, 2010

Here's the issue. I have a movie with 8 different movie clips on the stage. Each one is just a simple animation with a button. When the movie runs, all the movie clips run their respective animations until they hit a stop action in the middle. The stop basically seperates the intro from the outro of each clip. Once the user clicks a button, I want all of the other movie clips to start playing again and then load the next movie, depending on which button was clicked. So the button AS, in plain english speak, would be something like this:onRelease, make movie clips a, b and c play then load movieXYZ.swf to main stage.

View 1 Replies

ActionScript 2.0 :: Slider To Control Multiple Swf's With Loop Checking?

May 18, 2010

I have to create a slideshow that loads 16 different swf's into a container_mc. Each swf has an image with accompanying voiceover.

I have the basic next, previous, first, and last slide buttons working but they want to add a slider bar that plays and u can slide to a specific section of the slide show. The slidebar is where I am having troubles.

Here is what I have so far...

This is the code on the first frame for the buttons

Code:
nowPlaying = 1;
lastPlayed = 0;
playingNext = 2;
autoPlaySlides = false;

[Code]....

For the slider I need to create some kind of loop that checks where the dragger is. If it is between 1 and 6 slideLabel = "Go to slide 1"; If it is between 7 and 12 slideLabel = "Go to slide 2"; and so on up to 16... when the dragger is released on the slide the user wants to go to it needs to load specified .swf.

View 1 Replies

ActionScript 3.0 :: Control Multiple Video Files Simultaneously?

Mar 11, 2010

I have five videos playing at the same time in a .swf. They are each .flv files of the exact same length, I'm keeping them external rather than embedding the files within the Flash, and it's imperative that they each play at the exact same time so I'm avoiding using streaming.They all need to be kept at the same time code as any other of the movies at any given time. Is it possible to make a scrubber or other controls that will allow the viewer to move positions within these videos simultaneously?

View 1 Replies

ActionScript 2.0 :: Slider To Control Multiple Swf's With Loop Checking

May 18, 2010

I have to create a slideshow that loads 16 different swf's into a container_mc.
Each swf has an image with accompanying voiceover.

I have the basic next, previous, first, and last slide buttons working but they want to add a slider bar that plays and u can slide to a specific section of the slide show... The slidebar is where I am having troubles.

It is partially working now, just needs to be tweeked... It is reading the variables, and setting the slide label text to the correct label, BUT it is only doing this once when the mouse is pressed and does NOT update when the mouse is dragged. I tried so many different ways and can't figure this out.

Here is what I have so far...

This is the code on the first frame for the buttons

Code:
nowPlaying = 1;
lastPlayed = 0;
playingNext = 2;

[Code].....

For the slider I need to create some kind of loop that checks where the dragger is.
If it is between 1 and 6 slideLabel = "Go to slide 1"; If it is between 7 and 12 slideLabel = "Go to slide 2"; and so on up to 16... when the dragger is released on the slide the user wants to go to it needs to load specified .swf.

View 2 Replies

Professional :: Play Multiple FLVs Simultaneously Using Single Control Bar?

Jul 30, 2010

How can I  add a single control bar to control 2 external FLVs inserted in FLA document so that when scrolled, both FLVs move simultaneously?Is there a better PPT to Video Converter out there than Moyea that I can purchase or even a freeware? Original documents One FLV is a PowerPoint presentation with videos in some slides, converted into FLV using trial version of Moyea PPT to Video ConverterAnother one is an AVI converted into FLV using Super
 
I saw a similar question posted on Aug 15, 2007 ([URL].. but the "Look Here" link that describes the solution is not available (removed by Adobe for security reasons).

View 19 Replies

Professional :: Play Multiple Videos Simultaneously With A Single Control Bar?

Aug 17, 2010

I have 4 live f4vs that I'm using with interactive server 3.5.  Thus they are running in dvr.  I'm trying to find a way to control all 4 videos so that when you go back on one video all 4 videos go back to the same time.  This is very important with camera 4 as it is the only one with sound.I have tried putting all 4 videos in one swf file and I have tried putting each video as its own swf. 

View 11 Replies

ActionScript 3.0 :: Control Multiple External Swfs From Main Timeline?

Jun 26, 2011

I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's. I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline

I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it shouldn't be hard to do." but they did not elaborate any further. This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now. I understand pretty much how both pieces of code work, but just can't work out how to combine them.[code]...

View 16 Replies

Flex :: Multiple Line Series On Single Chart Control

Apr 10, 2011

I want to show the second line series underneath the first one, however with this code they are appearing sequentially. Not sure how to make sure they are overlayed! I followed some code I saw for combining charts.. not sure what to do.

<mx:LineChart showDataTips="true" x="10" y="77" id="GlucoseChart" width="1009" height="219">
<mx:horizontalAxis>
<mx:DateTimeAxis dataUnits="hours" parseFunction="parseDateString" displayLocalTime="true" />
</mx:horizontalAxis>
<mx:series>
[Code] .....

View 2 Replies

ActionScript 2.0 :: How To Control Multiple Clips Mass Speed Movement

Jun 2, 2004

How to get mass speed movement like in this intro site. [URL]. How to control the multiple clip mass speed movement....using actionscript.

View 12 Replies

ActionScript 2.0 :: Control Function For MC's?

Apr 6, 2004

I have 120 MC's (little squares, names square_01, square_02, etc) around my stage like a frame around a painting. I would like to create an onRollOver/Out effect for these mc's, but it seems a bit much to me to place them all in an array.

The effect have to be that when you roll over the alpha is going to 0 and that on roll out the alpha will be restored to 100. I also would like the effect to be easing. I know how make a function to control the alpha.But I don't know how to continiue from there. I think it has something to do with a (for in) loop witch I tried, without any results.

View 7 Replies

ActionScript 2.0 :: [FMX] Control Function For MC's?

Apr 6, 2004

I have 120 MC's (little squares, names square_01, square_02, etc) around my stage like a frame around a painting. I would like to create an onRollOver/Out effect for these mc's, but it seems a bit much to me to place them all in an array.

The effect have to be that when you roll over the alpha is going to 0 and that on roll out the alpha will be restored to 100. I also would like the effect to be easing. I know how make a function to control the alpha. But I don't know how to continiue from there. I think it has something to do with a (for in) loop witch I tried, without any results.

View 7 Replies

Flex :: Select Multiple Items In Tree Control Without Pressing Ctrl Key?

Mar 4, 2010

I'm trying to modifty the Flex Tree control to allow a user to select multiple items by just clicking each of the desired elements (ie I don't want them to have to press Ctrl or Shift). If the user clicks a selected item a 2nd time, it will deselect it.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved