ActionScript 2.0 :: Using Varaible Values In Actions?

Apr 28, 2008

I have a site that has several different loops playing in the background. I want to control them with a single sound icon.What I was thinking of doing was setting a variable value when the sound was played - something like soundplaying=loop1.Then, when the speaker icon is clicked to mute the sound, it would be something like this:

Code:
onRelease {
var (soundplaying value):Sound = new Sound();

[code].....

View 1 Replies


Similar Posts:


ActionScript :: Get Values/actions Using Javascript Without ExternalInterface?

Dec 15, 2010

Is is possible to click/get ActionScript values/actions using Javascript without ExternalInterface?

Is the how GreaseMonkey works? Can I do that using GreaseMonkey?

View 2 Replies

ActionScript 1/2 :: Actions Depending On Input Text Values?

May 8, 2011

I have started to use input texts and passing them to outputs etc.I was wondering, is there a way in AS2, to, for example if someone enters a value that's between 150 and 200. Accepts it, and the code somehow recognizes the range if value from 150 to 200, perform a function (for example setProperty on something to visible true) a different function would apply if someone enters a value between 100 to 150.

View 10 Replies

ActionScript 2.0 :: Load Text Into Varaible And Split?

Jun 1, 2004

Not sure if this is the best way to do it but I want to have every individual line from a text file.

something like

variable=loadtextfile("text.txt");
variable.split(newline);
textfield.text=variable(2);

thats just something I came up with now, im sure it wont work =/

View 7 Replies

ActionScript 3.0 :: Make A Global Varaible ArrayCollection That Can Call From Different Classes/components In Flex?

May 26, 2009

How can I make a global varaible ArrayCollection that I can call from differint classes/components in flex?

View 1 Replies

ActionScript 3.0 :: Timeline Actions Ovverriding Actions In New Frame?

Jun 19, 2011

I have a series of frames one the timeline. Each frame has a graphic and a mouse click leads to the next frame. Think Myst.

[Code]...

When the middle frame is returned to, clicks no longer change anything. I believe that the actions of the 'left' frame are replacing the one's in the middle frame so then it is told to gotoAndStop to itself.

I'd like to know if that is indeed what is happening and how I can make it stop.

View 1 Replies

ActionScript 1/2 :: Put Another Set Of Actions In Frame 2 Of The Actions Layer?

Sep 29, 2010

1. Can i put another set of actions in frame 2 of the actions layer?i tested but it doesn't seem to work..it has 836 rows of code and it's getting annoying when tryin to search for a function..
 
2. I am not that familiar with classes, i usually put all the code into movieclips or in actions layer.. i am not sure if i can call a function from a actionscript class..
 
3.I am curios if there is any way i could specify an alternative for the if statement like in this pseudocode:
 
if ( apple is not clean BUT is tasty)
{
eat(apple)
}

View 5 Replies

ActionScript 3.0 :: Slider Input Values - Can't Get The Output Values To Add Up?

Dec 6, 2010

I've gotten these sliders to work but can't get the output values to add up. For instance, depending on the values for slider 1, 2 and 3, I need the total to show up in a separate text box. I keep getting a NaN message in the text box.Here's the code I have so far:

//item 1
sliderOne.width = 600;
sliderOne.value = 0;[code].....

View 3 Replies

Flex :: Set Values In Cookie And Get Values From Cookie Not Using With Shared Object?

May 18, 2010

I need to save email-id in my login form through the cookies. if I use shared object I am able to save but my requirement is need to save in cookies. How can I save? I got sample code from net. Attaching that code `package com {

import flash.external.ExternalInterface;

/**
* The Cookie class provides a simple way to create or access
* cookies in the embedding HTML document of the application.

[Code].....

View 1 Replies

Date :: Comparing Two Date Values In ActionScript - Compare Whole Day Values?

Sep 4, 2011

I need to be able to compare the number of whole days between two dates in ActionScript, is this possible? I'd like to test if one date is 7 days or less after today, and if so is it one day or less (if it's before today this also counts).The workaround I have in place is using the .time part of the date field:

// Get the diffence between the current date and the due date
var dateDiff:Date = new Date();
dateDiff.setTime (dueDate.time - currentDate.time);[code].....

As I say - this is only a workaround, I'd like a permanent solution to allow me to check the number of whole days between 2 dates. Is this possible?

View 1 Replies

Flex :: Pass The Array Values (not The Array Collection Values) To The Bar Charts Or Column Charts?

Sep 7, 2010

Is there anyway where I can pass the Array values (not the array collection values) to the Bar charts or column charts using flex 3.5...

here is the thing i want:::

I have array values like this,,

array1 = [23, 49, 40, 239, 20, 80, 39,49,120, 24, 31,41];

and i want to show these values on the Yaxis and months on Xaxis....

I have two Qns,

1) how can I pass this array to Bar chart or column chart.

2) how do I need to show months on Xaxis. beacuse I'm asking this regarding, I have kept a filters that even if we want to see some months or a particular months or perticalar span of months... there on Xaxis it need to change the months dynamically depending on the filters..... (for ex, on Xaxis the values should be (Jan, Apr, Jun,Oct) if i select the 3 months period filter....)

I have written a logic to collect the values of those particular months into an array, but not understading how to pass this array to Bar chart,, beacuse there I don't know what Xfield and Yfield to be given....

View 1 Replies

Button With Two Actions?

Aug 17, 2010

I got this early version of a sliding menu. See file "scrolling.fla". Its got four images that slides into place when you click on the small colored buttons. The thing is I want the movie to quit/shut down when I press the red button, AFTER the red image has moved back in place.The code for the red button is:

on (press) {
_root.xnew = _root.mask2._x+(-2-1)*458.5/2;
}

I added the following:

on (rollOut) {
_root.unloadMovie();
}

It works in a sense but I dont want to use "on (rollOut)", because you might shut down the slideshow involuntary moving the cursor on your way to the other buttons. So the question is, yet again, how to quit the movie after the red image is back in place?

View 6 Replies

Add Some Actions To Artwork?

Aug 6, 2011

I am trying to add some actions to artwork, is for a button, fox example the output says:

Scene=Scene 1, Layer=Actions, Frame=1: Line 1: Wrong number of parameters; set requires exactly 2.
set ("boxStatus"); = "0"
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances

[code]....

View 3 Replies

ActionScript 2.0 :: Actions In A Movieclip

Sep 30, 2009

i have a scrollbar that controls the action within a movieclip called "future". The code for this works just fine when it's placed in root, but when i put this in a movieclip by its own, a can't get it to snap and control anymore.I would like to but this code and movieclip and put in in a clip called "scroll". The for it to control the same thing as it does now ,_parent.future.gotoAndStop("a"); etc.[code]

View 1 Replies

Store Actions In Flash As3?

Jul 23, 2010

I am trying to create a history of the actions, perhaps stored in an array, I make in flash so that I can have a button that allows the user to go back to a previous action

View 3 Replies

Open Actions Into New Window?

May 4, 2011

I'm using flash 8, I'm tired of having one monitor share the timeline, stage, actions and properties window. I'd like to detach my actions window and place it on my other monitor. Is this possible?

View 2 Replies

One Button Multiple Actions (as2)

Oct 30, 2011

is it possible to add multiple actions to the same button.e.g.on stage theres only one button, on first click it should make mc1 visible , on second click it should make mc2 visible and so on.

View 3 Replies

Extended Actions Frame Too Far (F9)

May 31, 2009

Don't ask me how, but I've made my Actions Frame way too long and I can't drag it up high enough to size it correctly. Consequently, I'm not seeing the end of my code without adding a whole bunch of empty space.

View 3 Replies

Actions Panel Not Appearing

Jun 29, 2009

I am unable to view the Actions Panel window in a document I've already done a lot of work in. It worked previously - I created an Actions Layer and was able to add action script, however, when I try to open it back up to edit the action script I wrote, neither the F9 shortcut nor the Windows>Actions pulls up the Actions Panel.  In fact, when I try either method, nothing happens.

View 3 Replies

ActionScript 3.0 :: Add Actions To Buttons?

Apr 6, 2010

When creating a website in Flash, I have made the buttons but I am unable to add an action to the buttons. A message appears to say 'current selection cannot have actions applied to it'. I have followed the tutorial to the letter without any success - what am i missing?

View 1 Replies

CS5 :: Can't Type Anything In Actions Box In Flash Pro

Sep 30, 2011

After working fine for about a month, all of a sudden I can't type anything in the Actions box. I can select and enter code snippets, but if I try to edit the code, it disappears. If I start a new Flash file (doesn't matter which Actionscript version, 2.0 or 3.0), the cursor briefly flashes, and then disappears and I can't enter any code in the new file. I can create and edit .as files -- it's only the Actions box for .fla files that's problematic.

View 1 Replies

ActionScript 2.0 :: Actions Outside The Symbol?

Sep 11, 2010

how can I make an action cause things to happen outside of a symbol?Suppose I have a button inside a movieclip. The frame that the movieclip is on has a stop(); action applied to it. I want to make it so that when the button is clicked, the frame which the movieclip is on gets "Un-stopped" how to do this?

View 1 Replies

ActionScript 3.0 :: Load Swf That Has Actions In It?

Jun 26, 2011

I have a program that loads external SWFs, I usually create an SWF within adobe after effects and load that (That works properly). I created an SWF that combines 2 SWFs from after effects with a screen blend mode using adobe flash. It works fine when playing the SWF in flash player but if I try loading it, it does not show up.[code]...

View 3 Replies

ActionScript 2.0 :: Have One Button With Two Actions?

Sep 10, 2008

I`ve made a movie that has one button , now when I click on button this code will execute exactly :

Code:
b1.onPress = function() {
loadMovie("textarea-load.swf",555);
};

I need add another code to hide textarea-load.swf from my movie and this action should occur when I press same button once again . Note : I don`t have any movie with "555" instance name but it helps me to run my movie

View 7 Replies

ActionScript 3.0 :: Add Different Animations For Actions In It?

Aug 15, 2009

I am attempting to make a very simple Final-Fantasy-style fighting game and I am just having a little trouble getting the player (MovieClip) to play different animations while he is doing different things I have the concept down the player has a layer that splits up the different sections of animation, but in my code in an ENTER_FRAME looping function when I say[code]...

View 1 Replies

Professional :: Button With Two Actions?

Aug 24, 2010

I got four buttons that pull up images in a slide show. I want the fourth button to first pull the image in place and THEN shut down the movie clip. I thought this would be easy, but no. Unfortunately I can´t attach the fla-file on this forum. You could take a look at this:

on (press) {
_root.xnew = _root.mask2._x+(-2-1)*458.5/2;
}

That´s the code for the last/fourth button, it pulls the fourth image in place. So that´s in order.I added this below in the same script:

on (rollOut) {
_root.unloadMovie();
}

It works in a sense. The movie falls into place when I click the button and the movie quits when I move the cursor. But it also means you might shut down the slide show involuntary when you move the cursor going for any of the other buttons.

View 3 Replies

ActionScript 2.0 :: OnPress 2 Actions?

Sep 18, 2010

If I want a button to perform 2 actions such as 1st time onPress the mc visible true and 2nd time onPress the mc visible false and true and false and so on.

View 2 Replies

ActionScript 2.0 :: Two Actions, One Button?

Oct 3, 2011

I have made a simple menu with a 'slider' using this tutorial. What I am wondering is if it's possible to have different actions for one button. Here is my first menu button:

Code:
on (rollOver) {
// slider - Movie Clip's Instance Name. button_1 - Button's Instance Name.

[code].....

View 4 Replies

ActionScript 2.0 :: [FMX]On Button(mc) For Two Actions?

Apr 3, 2004

How can I make a mc witch I us as a button fuctional for two actions.I mean when I press the button that a clib fades out and when I press again it fades in again I tried it with an if but the it only works one time.This is the script

Code:
but.onRelease = function(){
if (mc._alpha <= 1){

[code].....

View 3 Replies

Why Is Loaded Swf Ignoring Stop Actions

Mar 2, 2009

I have a main swf into which has a number of clip instances which serve as buttons to load separate swf files dynamically. The swf I'm testing has stop(); actions on various frames, but when loaded it simply plays through to the end and loops continuously.I was able to use onLoadInit to stop the loaded swf in the first frame, but have failed at various efforts to direct the clip to play again in the manner that I desire- i.e. stopping at the various pause points until a click starts it playing again.

View 2 Replies







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