ActionScript 3.0 :: Controlling External Mp3 Sound Clips With Keyboard Commands?

Aug 28, 2011

I'm trying to control my mp3 sound clips with keyboard commands and have managed to get this to work with internal sound clips:

//************************************************** *************
var note2:b = new b();
btn2.addEventListener(MouseEvent.MOUSE_DOWN,playNo te2);
function playNote2(event:Event){

[code]....

View 3 Replies


Similar Posts:


Professional :: Controlling Sound Of An External SWF?

Jan 11, 2011

I'm trynig to control an sound of a external SWF but I can't seem to get it right,here is the code i'm using to import the sound
 
mport flash.media.Sound;import flash.net.URLRequest;import flash.display.Sprite;import flash.media.SoundChannel;import flash.events.Event;import flash.events.MouseEvent;var _som1:Sound;var _channel1:SoundChannel;var _playing1:Boolean = false;var[code]...

View 16 Replies

ActionScript 3.0 :: Controlling Sound Of An External SWF?

Jan 10, 2011

I'm making an application and I can't seem to find a way to control my sound of an external SWF(SWF2) from the main one(SWF1).Here is the code I'm using to control the timeline of external SWF that is placed inside of the main movie

Code:
var loadAnimBox:Loader = new Loader();
var vid_mc:MovieClip;
function startLoading():void {

[code]....

View 2 Replies

ActionScript 3.0 :: Controlling The Sound Of The External Loaded SWF?

Aug 18, 2009

I  have a Loader that loads external SWF. The external SWF has sound. I'd like to stop, pause and play the sound.

[Code]...

This only mute the sound only and the sound is still runnung.

View 4 Replies

ActionScript 3.0 :: Keyboard Commands Don't Work In Loaded Swf?

Sep 24, 2008

I have a Game swf that uses keyboard Listeners. They workjust fine when the swf's played directly. HOWEVER, after the Game'sbeen loaded into a parent Preloader swf - which is playing from anhtml - , the keyboard Listeners don't function at all.In the Keyboard Listeners do I have to reference the parent?

View 2 Replies

Playback Component Accessibility - Control With Keyboard Commands

Sep 14, 2009

Can you tab into CS3 Playback components or control them with keyboard commands in a regular (non screenreader) browser like IE? If not, can you in CS4? I believe that all screen readers can control Flash playback now, correct? But I have a higher up who wants it to be keyboard controlled as well.

View 4 Replies

ActionScript 3.0 :: Stop Action Interfering With Keyboard Commands

Nov 10, 2011

I have a simple Flash movie, and have used AS3 to allow users to hit the up arrow and go to a certain frame, then hit the right arrow to go to another specific frame. My problem is the minute I put in "stop();" in the script so my movie stops on frame 1, the keyboard controls do not work unless I double-click the playing video. The minute I remove the stop command from my actionscript, the keyboard controls work perfectly...but my movie obviously starts playing which I do not want.

I need both the stop command AND the keyboard controls, and am at a loss.

View 12 Replies

ActionScript 3.0 :: Two Stop Commands For Two Movie Clips That Are Also On The Stage?

Apr 7, 2009

Here it is..I have 3 frames on my timeline
 
Frame 1 -page 1
Frame 2 - page 2
Frame 3 - page 3
 
obviously there are several layers  on there too, and on them there are Three buttons which I want to click on to get to each of the three frames. But every time I follow a tutorial nothing seems to work.I have taken out all the script that the various tutorials have told me to enter and only have two stop commands for two Movie Clips that are also on the stage.If I give you the following information could someone please write the script for the three buttons to link to frame 1,2&3
 
the instance names are
home
price
contact
 
I am using actionscript 3.0

View 6 Replies

ActionScript 1/2 :: Keyboard Controlling A Dynamic Mc?

Jun 17, 2010

dynamically loading in a swf into another flash file, and I'm wanting the user to be able to either advance to the next frame(of the dynamic swf) with the right arrow key, or go to the previous frame with the left arrow key.  If I have to I can create a couple of arrows as a generic interface but I am not sure now to code those either.

View 3 Replies

ActionScript 2.0 :: Controlling A List With The Keyboard?

Dec 8, 2009

I'm trying to create an interface that's controlled totally with the keyboard (arrow keys and Enter button), and for part of it I'd like to use lists that the user can scroll up and down to select items. It's make things a lot easier if I could use the list component for this, but I'm not overly familiar with using it and can't find anything about my specific problem online.

View 1 Replies

ActionScript 3.0 :: Flash Keyboard Event And Controlling Timeline

Nov 4, 2010

I am very new to AS3. I have not wanted to migrate to it, but have been forced to do it for a current project which uses AS3 components. I am creating a slideshow (full screen) and will be creating each slide as a separate SWF file. I have been successful in loading and unloading the slides (SWF's). I need to use the arrow keys to move through the slides. I have that working, but want to load the slides without hard coding everything in each frame of the main timeline. I am using a var to get the currentFrame value. All is well exept that if the left arrow key is pressed and the main timeline is on FRAME 1, the playhead seems to think it can go backward to frame zero and then into negative numbers with each press of the left arrow key. I need to be able to stop the timeline from advancing backward at frame one. I have tried several methods that either do nothing or cause the right arrow key to work unpredictably and keep returning to FRAME 1 no matter what if statement and evaluation I perform. Here's the current code on.[code]

View 2 Replies

ActionScript 3.0 :: Controlling A Movie's ScaleX With A Multiple Keyboard Events?

Jul 8, 2009

click once on the screen with your mouse and then you can control the man with arrow keys on your keyboard.i can't figure out why the man turns back to the right if he is facing left if you press the up or down arrow. this is one of my first scripts,it's not set up right here is the code:

Code:
function rightKey(yourEvent:KeyboardEvent):void {
if (yourEvent.keyCode==Keyboard.RIGHT) {

[code].....

View 2 Replies

ActionScript 2.0 :: CS3 Controlling All Movie Clips

May 19, 2009

Im working on a quiz kind of game in which if you click an object, you get a question (the object is a movie clip and the question is within it). If you answer it, the movie clip stops at a particular frame. And so go all the objects in the game. Now, because you cant predict which object the user will click on last, I dont know how to bring in an ending screen saying that they've completed it successfully.

View 1 Replies

Controlling A List Of Movie Clips?

May 24, 2011

im trying to get a button to move a list of movie clips up and down how would u go about this

e.g

i have a button at the top of the stage and a button at the bottom and when the top one is clicked it moves up one movie clip till last one is hit. and if the bottom one is hit it moves down one until it hits the last one

View 3 Replies

ActionScript 2.0 :: Controlling All Movie Clips?

Feb 18, 2004

is there a way to refer to all movie clips on the stage or apply a function to all movie clips without applying the function to all manually?

View 3 Replies

ActionScript 3.0 :: Control A Flash Video Player With External Javascript Commands Using 'ExternalInterface.addCallback'

Mar 26, 2009

I'm trying to control a Flash video player with external Javascript commands using 'ExternalInterface.addCallback' but I'm not having any success. Here is the HTML code:

[Code]...

View 1 Replies

ActionScript 3.0 :: Using Movie Clips With The Keyboard Letters?

May 1, 2010

For the last few months I've been just experimenting with different actionscript elements, and Ive slowly built up a stick figure to move around on the Stage. He can collide with platforms, jump, etc. and there is an appropriate animation for each movement, and there is gravity effects, you get the idea.Well, normally, I just use the following method to activate a animation when I press say the Right Arrow Key:

if (Key.isDown(Key.RIGHT)) {
guy.gotoAndStop("runRight");
guy._x+= moveSpeed;

[code].....

View 4 Replies

ActionScript 2.0 :: Controlling Nested Movie Clips

Feb 27, 2009

I have a movie clip nested in frame 2 (* = movie clip in frame 2), it looks like this:

[1][2*][3]

When I test the movie it skips over frame 2. What type of action script (AS2) do I need either in the movie clip and/or in frame 2 to get the movie to play before proceeding and stopping at frame 3?

View 1 Replies

ActionScript 2.0 :: Controlling 2 Movie Clips With 1 Button?

Sep 7, 2009

Basically what I'm trying to do is have one button move two objects, each at different speeds. My first object is called "bg" the second is called "test." I have two buttons, "left" and "right" and when they are clicked on, only the "test" object moves. Here's the code I'm using:

function onRollOver():Void {
if (bg._x<gLEFT) {
bg._x = gLEFT;

[code]...

View 3 Replies

ActionScript 3.0 :: Controlling Flash Movie Clips

Apr 30, 2010

I made a flash animation using timelines and broke my movie up into three clips. The clips run fine in their own time line. I was reading about clip.play() clip.stop() and it seemed like I could do this. I have a main timeline with three frames. Each frame has a movie clip symbol on it. Each movie clip symbol has a timeline a few seconds long in it.I did this because I want to put a click event that will go to a different url depending on which clip the viewer is currently seeing. This swf file will be embedded into an html document.When I run the resulting swf - the three frames on the main timeline zip along like crazy and the movie clips don't play at all. I've tried every combination of stop() and play() I can think of but this is just not working as advertised.My movie clips have instance names of Clip1, Clip2 and Clip3.

1) some sample code that works so that I can run these clips in consecutive order;

2) the appropriate onClick code to use in the main timeline frames for my url events

View 4 Replies

ActionScript 3.0 :: Controlling Movie Clips On Different Frames?

May 22, 2010

I need to make some animation working without changing its structure, but I have no idea how to control mc instances on diffrent frames and diffrent movie clips. Below is example.When button is clicked, mc2 starts to play.

View 2 Replies

ActionScript 3.0 :: Controlling Movie Clips In A Function?

Sep 4, 2011

In the FLA file i have two animations of a turbine and a fan turning one is controlled via a button the other is a loop action that is not controlled.The button control is simple telling the movie clips to got frame 2 and play,and on the fan and turbine movie clips I have a goto and play frame 2 action the end of their time line. By doing this I get a rotation effect .

The problem is that when I call play function from the start button the movie clip does not play properly and just shudders between frames,rather than way it should run as a looped animation.

View 2 Replies

ActionScript 2.0 :: Controlling Loaded Swf Instances Clips?

May 8, 2003

I hava a move clip called Main in witch I load Interface and than load Content swf clip.I was trying to control a object (movie clip in loaded Content swf clip) with asctionscript in Interface swf and inversely, but nothing happend.I hava a button on the interface which I would like to activate when I click on the some area of the Content swf .

View 5 Replies

ActionScript 2.0 :: Controlling Two Different Movie Clips With 2 Different Buttons?

Nov 12, 2008

I am somewhat new to flash and am having some trouble trying to control two different movie clips with two different buttons. Currently when either one of the buttons is pressed both movie clips start to play. How can I set file up so that if button 1 is pressed movie clip 1 will play and if button 2 is pressed movie clip 2 will play

View 3 Replies

ActionScript 2.0 :: Controlling 3 Different Movie Clips With The Same Instance Name?

Jun 22, 2004

I have more 3 MC�s with the same instance name. How to make a button to control all of them?

View 4 Replies

ActionScript 3.0 :: Controlling Movie Clips Within Movie Clips?

Jun 22, 2010

What I'm trying to do is have my Flash piece have custom elements set by an XML file. I'm using ColorTransform. I have a piece that's loaded as a separate movie clip, and I can't figure out how to get to the piece and apply the ColorTransform.

Here's one example of what I'm doing for a different element on the same mc.

[code]...

So, in this example, I'm setting header_mc to a color specified in the xml. In the case I'm having trouble with, I want to set a color to a movie clip on the timeline and not the main movie

View 5 Replies

ActionScript 2.0 :: Controlling Clips Created Dynamically With Loops

Jun 19, 2006

how to make a grid of squares with loops? also, how do i controle the clips that were dynamically created with the loop. like clip25 only?

Code:

total = 5;
i = 1;
while(i<total){

[Code].....

View 10 Replies

IDE :: Controlling Movie Clips Using Alpha On Its Own Timeline With A Stop(); At The End??

Sep 10, 2009

I have created a website on the time line. There is actionscipt contolling which frame to play via a button. Within this button is a movieclip with a fade in using alpha on its own timeline with a stop(); at the end.The problem is I only want it to play when you first see it from moving to that page from the main timeline. Currently if i move over the button it plays the movie again which i dont want to happen. I do however want to retain the over states etc for the button.

View 2 Replies

ActionScript 2.0 :: Controlling Clips Created Dynamically With Loops?

Apr 20, 2011

i was wondering how to make a grid of squares with loops? also, how do i controle the clips that were dynamically created with the loop. like clip25 only?

Code:
total = 5;
i = 1;

[code].....

View 2 Replies

ActionScript 2.0 :: Controlling Dynamically Loaded Movie Clips?

Mar 3, 2004

Im creating a booklet with turning pages, like the one previously posted, so all the content is loaded dynamically.On the right hand page i have text, of which some lines are interactive.On the left page, i have a hidden text box. When the user clicks on a certain line on the right page, the text box on the left page becomes visible, and the relevant txt is loaded into the text box.Now, i can make the text box on the left page invisible by placing _visible = 0; directly into the actionscript pane of the text box.What i cant do is make it visible by clicking on the right page text. Where should i put the code to make the text box visible?Is it as simple as movieClip._visible = 1; ?

View 10 Replies







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