ActionScript 3.0 :: Animated Speakers For Mp3 Player?

Jul 31, 2011

this is my first time making anything on flash. I have cs5. I've designed an mp3 player control menu as well as a big speaker in photoshop and put everything into flash. I followed a tutorial which shows how to animate a speaker in real time using the song that's playing as a reference for how much the speaker animates.

the code for the speaker bounce is this

bounce.width = ( Math.round(channel.leftPeak * 8) ) + 259.10;
bounce.height = ( Math.round(channel.leftPeak * 8) ) + 259.10;

everything works fine on my mp3 player except the speakers wont animate.

259.10 is the original size of my speaker which is supposed to change size according to how booming the song playing at the moment is.

the only difference that i can see between my file and the tutorial's file is that the speaker in the tutorial says "drawing object" under properties and mine says "shape"

does this have anything to do with why the width and height of my speakers are not changing as the code says it should?

View 3 Replies


Similar Posts:


Flex :: How To Mute The Speakers

Jan 18, 2011

In the following code how to mute the speakers

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"

[code]....

View 1 Replies

ActionScript 3.0 :: SoundChannel Null When No Speakers?

Sep 29, 2011

I was debugging sound in an app and decided to make a little test case as I kept getting odd errors... well I just moved to a new desk yesterday so hadn't hooked up speakers yet. Here's the test:
 
var backSound:Sound = new bgSound();
var backChannel:SoundChannel = backSound.play(0, 999);
trace(backChannel);
 
bgSound is just a library sound... if my speakers are unplugged from the sound card backChannel returns null. If speakers a plugged in backChannel is a soundChannel object.

View 1 Replies

ActionScript 3.0 :: Sound Channel Won't Construct If Speakers Are Not Present

Sep 1, 2009

I built an application on Windows XP and Vista. And it seems that the sound channel constructor decides not to run with no speakers attached. Runs fine when headphones are plugged in, but when no speaker device is present the Sound object is constructed, but the Sound Channel never seems to make it.

I did some testing and even the most basic Sound Constructor fails to create the default sound channel if there are no speakers connected.

In the following example channel turns up as null if no speakers are present on a Windows machine. I/O Error doesn't throw anything for me either.

This is a modified version of the example from the Adobe Docs:

Code:
private var channel:SoundChannel;
public function sound_test(){
var request:URLRequest = new URLRequest("audio.mp3");

[Code]...

View 3 Replies

Actionscript 3.0 :: Sound Channel Won't Construct When Speakers Are Not Present

Aug 26, 2009

I built an application on Windows XP and Vista. And it seems that the sound channel constructor decides not to run with no speakers attached. Runs fine when headphones are plugged in, but when no speaker device is present the Sound object is constructed, but the Sound Channel never seems to make it.

View 1 Replies

ActionScript 2.0 :: Use The Mike In Flash, Don't Want The Sound Forwarded To The Speakers

Aug 13, 2007

I'm using the activityLevel of the Microphone (because its the only thing, it seems, Flash can use from it) to perform certain actions, based on how loud the Microphone activity is.
That works fine.However, all sound picked up by the microphone is forwarded to the speakers.I need the speakers for sound F/X so I can't just turn them off. But I really don't want the microphone audio to be played over them.I tried using setGain(0); but that not only killed the mike sound to the speakers but the ability to sense sound from the mike at all.

I tried setSilenceLevel(0); and setSilenceLevel(100);
But that didn't seem to effect it either.
setUseEchoSuppression(false); and setUseEchoSuppression(true); also had no positive effect.

So... Is there any actionscript left to try?I just need to prevent the speakers from repeating what the computer hears from the Microphone, while still allowing Flash to read and react on varying levels of activity from the microphone.I recieved 6 pages from the keyword microphone. None of them addressed or came near to addressing the problem I'm having.

View 2 Replies

Professional :: Export Animated Banner In Animated .gif Format

Sep 1, 2006

I have been tyring to export an animated banner, in animated.gif format. it's a simple animated text with no gradients. it should go on top of a graphic which has some gradients and is multi-coloured and with effects (the colours are similar to the one/i used in the page) as you can see here the text looks a bit funny.url...

View 3 Replies

Professional :: Animated Mask On An Animated Clip?

Jan 20, 2012

Am I completely hallucinating or what ? That's several years I'm working with Flash, and today, i want to do the simplest animation ever, and it just doesn't work....I want to mask an animated clip with an animated mask (a shape animation), but every time the mask arrives at a keyframe, the clip restarts to the frame 1 !!I added a piece of code to see at which keyframe it is blocked, and at every mask keyframe, the code says 'TypeError: Error #1009: null property..

View 2 Replies

Media Server :: Flash Media Live Encoder Doesn't Recognize System Speakers?

Jan 6, 2012

When using Adobe Flash Media Live Encoder, it doesn't seem to recognize my system speakers, so I can't record system audio.

View 1 Replies

ActionScript 2.0 :: Animated Movieclip Inside Animated Movieclip (Pulldown Menu)?

Jan 15, 2011

Im using an animated movieclip to create a pulldown menu..the thing is that I want to anymate the buttons inside the pulldown as well..so I therefore used a similar movieclip inside the pulldown menu to make this animation

View 1 Replies

Asp.net :: Play MP4 Video On Window Webserver In Quick Time And Flash Player(flv Player)?

Aug 3, 2010

I have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc. Does it need to have mp4 player(or codec etc) installed on webserver?

I have also some wmv files on that server , and i am playing perfectly using silver light player, and media player object on my website.

View 1 Replies

ActionScript 2.0 :: Making The Simple Player Using The Player Component Preinstalled In Flash?

Jun 3, 2010

I am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:

Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)

This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:

Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};

But this is not working.

PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.

View 2 Replies

ActionScript 3.0 :: Send The Number Of Points A Player Is Awarding To Another Player To A MySQL?

Jul 11, 2010

I have a game that needs to send the number of points a player is awarding to another player to a MySQL database on the same server. This game is part of my psych MSc dissertation, and I've gotten a lot of help on this bit from my department techie who knows php and MySQL well. However, he has absolutely no experience with Flash or Actionscript. He's gotten the php bit working so that it does send data to the right table in the database when it's supposed to using dummy variables, but when we try to test it with the actual .swf thats supposed to be doing the sending, nothing happens. We're pretty sure this means theres something wrong with the actionscript, but we don't know where.

[Code]...

View 1 Replies

ActionScript 2.0 :: CS3 Flash Player 6 Code To Player 7 Causes Script Not To Work

Apr 29, 2010

I have a slight problem when publishing to Flash Player 7 but works perfectly in Flash Player 6, below is the code:[code]In short this creates a list where the values are kept in SharedObject.I need to use a WebService so I require Flash Player 7, as I said this works as expected in Flash Player 6, so maybe someone may know a pitfall or two when migrating code form 6 to 7?

View 1 Replies

ActionScript 3.0 :: Flash - Access Player.x And Player.y From External Class?

May 8, 2011

I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").

Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):

Main.badger.x
Main(root).badger.x
Stage.badger.x

I have also tried to access other vars and still nope..My class code is this:

Code:
package
{
import flash.display.MovieClip
import flash.display.Stage

[code]....

View 1 Replies

Export A .fla To An Animated GIF?

Sep 5, 2009

Whenever I export a .fla to an animated GIF, the resulting image looks rather pixelated. I've seen other GIF animations online that look less pixely than mine. Are there some settings that I don't know about?

View 2 Replies

Cannot Publish Animated GIF

Oct 9, 2010

I recently got Flash CS5 and began working with it on some things. One thing I was making was a simple animation that I was going to publish as an animated GIF. However, upon completing my animation, I've been unable to publish it as one. I can get it to publish as a GIF, yes, but it only shows the first frame.

My Publish Settings for GIFs in Flash CS5 are as such:

Playback: Animated, Loop Continuously
Options: Optimize Colors checked
Transparent: Opaque
Dither: None
Palette Type: Web 216

Are there any other settings I may be missing to ensure I can publish as an animated GIF?

View 4 Replies

Add Some Animated Text

Jul 6, 2009

I'm creating a simply animation with background images fading in and out. I've done that part.Now i want to add some animated text (simple scroll to middle of movie), i have it fading in ok, but i want to make it look a little bit more realistic.By this i mean, i'd like it to move towards the centre of the movie, but slow down before it stops at the centre.At the moment it simply moves accross the screen at one speed and then stops abruptly. Doesn't look good.

View 2 Replies

Professional :: Can Jpg Can Be Animated

Nov 14, 2010

For my project development i want to do animation on jpg image.

View 5 Replies

ActionScript 2.0 :: CS3 Maxscroll Returns Correct In Player 7, Not In Player 8+

Mar 13, 2009

I was re-using some old actionscript in a new fla. For some reason my scrollbar script didn't work correctly. After some debugging I found out the the maxscroll value was being returned as 2. Strange when there is only two lines of text in a 400px high textfield.

I published the same fla for flash player 7 in stead of 9 and the problem was gone??? Tried in 8 and there it was again. So something went wrong between Flash player 7 and 8, but what? Is this a known bug and are there any work arounds?

View 4 Replies

Actionscript 3 :: Dynamically Load .swf Movies In Any Player (in Web) Like Flv Player?

May 3, 2010

I want to dynamically load .swf file in a player(like FLV player of as3) in as3.When I shall click on an image the corresponding video will be played on the player on right side(like you tube). Is there something (like FLV player) for .swf files with play, pause, resume, scrubber options to play in web?

View 3 Replies

Flash Player 11 Project Doesn't Run In Standalone Player

Nov 4, 2011

Flash Player 11 project doesn't run in standalone player, is it posible to do this?

View 1 Replies

ActionScript 3.0 :: Player Mc Not Registering Player.as Vars Or Functions

May 9, 2011

i think i might be missing some information here about how to manage classes and display objects. In the main .fla i have a mc called player; so I made a player.as class and put a linkage on player mc considering it would work as the mcs class. Well, its not working, the mclip is not noticing any of the vars and functions i added in the class. Anyone figures whats going on? How to make it work?

View 2 Replies

ActionScript 3.0 :: Download Flash Player 10.1 (not Player, But Library)?

Mar 28, 2010

I can only find how to download the actual PLAYER for 10.1, but which library is used in conjunction with it?Will the latest release of the Flex SDK have the libraries for the multi-touch events etc?Or is the SDK for 10.1 only available to people who work for Adobe? will porting to iPhone supported formats only be available in Flash Professional, or will SDK users also have that option?

View 3 Replies

Create An Animated Signature?

Aug 13, 2003

how to create an animated signature? You know, as though it's been drawn / written on screen.

View 5 Replies

Import Animated Gif Into Flash?

Nov 14, 2000

How do I import my animated gif into the FLA??

View 5 Replies

Animated Gallery Of Images?

Sep 22, 2008

Main requirements for that gallery are:- must be updated via xml file- must be auto resize- thumbnails must be floating like in example- also must have preloaderhat's allIt is my first serious project with flash and it will be good to get any tips how to start doing all of that.Especially I am interested how it is possible to make such floating thumbnails which are also preloading.

View 2 Replies

CS3 Have Four Animated Buttons But Two Don't Work?

Jun 1, 2009

[URL] the above site has small animated buttons that run through a sequence continuously until the user positions their mouse over the button then it launches into a 2nd sequence (all in the same movieclip). inside each movieclip there is the entire sequence and the first half is the bit that runs continuously - the second half is the mouse 'overstate'. the top layer has an invisible button and the action script:

[Code]...

View 3 Replies

Sound And Animated Gifs

Feb 14, 2010

Yesterday I worked on an educational activity for adult English as a second language students similar to this one and the two pages worked perfectly.However, when I tried to make another page today that incorporates animated gifs, I ran into problems.I lost the ability to embed sound on the down state for all objects on the page.I am using Vista updated, and KoolMoves 7.4.1.I used these steps:

1. Import an image (jpeg) on to the stage.

2. Clicked on it and selected make it a button from the tool bar
.
3. In the OVER State, I drew a layer over the image and made it transparent.

4. I moved to the UP State, copied the OVER State, and added the word.

5. I moved to the DOWN State, copied the OVER State, and returned to the Main Movie.

6. I then right clicked on the image to show properties and changed the sound to YES, went to the down state, and linked to the sound.

7. I then saved, previewed in Play in Browser Window, and the two previous images with sounds (which worked perfectly before I worked on the gif) and the animated gif do not play sound.

View 1 Replies

Set CS3 Animated Flash In Button?

Feb 25, 2010

I am using Flash CS3 to create a button for a site I am building in Dreamweaver CS4. The button I am trying to create looks like a volume knob on a guitar amp. I need it to point to zero and then "turn up to 10" over a period of 3 seconds when the user hovers over it. It also needs to play a sound. I have created seperate images in photoshop for the knob pointing at each increment 1-10. I added these to a new Flash doc on separate layers. Saved it and it plays as expected when in preview. However I cannot figure out how to get it set in a button. I have created simple buttons but not one that "plays a longer animation" like this.

View 2 Replies







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