ActionScript 2.0 :: AttachSound MC "speaker" Is Two Levels Deep In A Fla And Will Not Play?

Jul 24, 2009

The following AS2 code is placed inside MC "speaker":

ActionScript Code:
var homeSound:Sound = new Sound(this);
    homeSound.attachSound("page1Sound");[code]....

The MC "speaker" is two levels deep (inside an MC, which is inside an MC) in a fla and will not play. However, when I copy the MC "speaker" (and associated sound file) to a new fla it plays fine.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Deep Linking Multiple Levels?

Oct 10, 2009

I'm working on a portfolio website of a friend using AS 3 and after a lot of reading and testing I have implemented deep linking for the main categories of the website. Now I need to figure out how to do it for the 'level 2 and level 3' content, for example a category and a project.

I have thought of this. Let's say this is our string of swfaddress: /portfolio/illustration/freelance-city

I would use a String.split like this:

var addr:String = new String("/portfolio/illustration/freelance-city");
var splitted:Array = new Array();
splitted = addr.split("/");

I will check: if the array is 1 long, do only level 1 stuff if 2 level 1 and 2 (go to correct main category and portfolio category) if 3 do all levels (go to correct main category, portfolio category and project) Right now, the array will have 4 items (it should be 3).

is this a reliable way to work for deep linking multiple levels? Any general tips for deep linking this kind of content? And how can you make sure the string splits 'after' the delimiter? To make sure the stuff before the first "/" isn't counted.

View 2 Replies

ActionScript 2.0 :: 3 Levels Deep Transitions Between External Swfs?

Sep 12, 2005

I am having difficulty making the buttons of the 3rd level load the final set of external swfs and keep doing the smooth transitions they are supposed to, with midframes and outros. Somehow I am messing up the paths. I have several buttons in each level and they all work fine except the very last level.Below are a characteristic string of button AS for each level:

Main timeline:

on (release) {
if (_level0.currMovie == undefined) {
_level0.currMovie = "firm";
menu.loadMovie("firm.swf");

[code]....

All buttons inside assoc.swf are not working. I played around with the paths, but obviously I am missing something very simple and very ellusive about pathing. If I change the path in firm.swf so that _root is _lever0, then THOSE buttons stop working.

View 3 Replies

ActionScript 2.0 :: Use AttachSound Method To Load 2 Or More Sounds To Play At The Same Time?

Feb 23, 2005

Can I use attachSound method to load 2 or more sounds to play at the same time? If yes, how?

View 2 Replies

ActionScript 2.0 :: Loading Individual Levels Before Play Them To Remove 1 Long Wait?

Aug 10, 2008

I am currently doing a project which involves quite a large swf file at the end. I was wondering if anyone knows a way that i can easily make it so that at the begging, when first loading up the flash, it just loads the menu and a couple of other frames, but when i go onto play the game, it will load each level just before you play it, so that the player doesnt get bored from waiting right at the begging for a while when they can wait 5 seconds before each level.

Im pretty sure ive seen this done before but im not sure whether it is preparing it in that time, or downloading it. I want it so that there will be a 10-20 second wait for the game to load up, then you go to the menu, press play, loads the next frame, or certain number of frames, you play that level, then it keeps on doing this for all the levels.

View 2 Replies

ActionScript 2.0 :: Play A Sound Using "attachSound" And "start" With A "hitTest"?

Jul 24, 2006

What im trying to do is play a sound using "attachSound" and "start" with a "hitTest". I've exhausted everything i can think of and it still doesn't work.

View 2 Replies

ActionScript 2.0 :: Get The Levels Of Volume (peak Levels) Of Multiple Sound?

Jan 9, 2005

I believe that my question here is a little hard, or maybe impossible. But here it goes:

How can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?

View 1 Replies

ActionScript 3.0 :: Speaker Notes Like PowerPoint?

Mar 2, 2009

I'm preparing a conference presentation using CS4 and AS3.There are pages where images are presented and right belowthem are speaker notes. In PowerPoint speaker notes can be seen bythe presenter, but not the audience when using a digital projector.How can I achieve the same in Flash CS4 using AS3?

View 2 Replies

ActionScript 2.0 :: Sound Left And Right Speaker

Feb 10, 2005

I need some help to make a bar that controlls the sound that comes out from ether the righ tor the left speaker so If the bar is 100% left the the right speaker doesnt play any sound but the left is playing to 100%! (just like your "volume bar" tutorial but I need a Tutorial for right/left sound!

View 4 Replies

ActionScript 2.0 :: Sound, Left And Right Speaker

Feb 10, 2005

make a bar that controlls the sound that comes out from ether the righ tor the left speaker so If the bar is 100% left the the right speaker doesnt play any sound but the left is playing to 100%! (just like your "volume bar" tutorial but I need a Tutorial for right/left sound

View 4 Replies

ActionScript 3.0 :: Change Speaker Output Volume

Aug 22, 2011

Is there any way by which I can change the volume of the Speaker?
 
When I use Microphone class, I can set the mic.gain to set the gain in the microphone, likewise can I change the volume of the speaker?
 
I have seen, some websites allow you to change the decibel gain of the speaker in Flash.

View 4 Replies

ActionScript 2.0 :: AttachSound To An AttachMovie?

Sep 28, 2007

This is my first post, and and im not sure this is the right place to do it, but i need some help.

With AS2 in CS3, im trying to attach a sound from library, to a button that is also attach from library, when reading a XML file, but not yet succeed.

I want to play this sound the first time the button is attached and also onRollOver.

View 1 Replies

ActionScript 2.0 :: Does AttachSound Load MP3 Into SWF File

Jun 15, 2006

I have the following code:

PHP Code:

var soundPlay = true;var mySound:Sound = new Sound();mySound.attachSound("mySoundFile"); 

Does the above load my sound into my SWF file? This is what I want.

View 1 Replies

ActionScript 2.0 :: AttachSound On An Included Movie?

May 17, 2007

Let's say i got Movie A, which loads Movie B at some moment. And let's say that Movie B creates a sound, lets say:

var sndMusic = new Sound();
and then attaches it...
sndMusic.attachSound("music");

[Code]....

well, when i open Movie B alone, the music plays; when I watch it while being included in Movie A, it doesn't... BUT the sounds that are simply added by dragging and dropping on a keyframe DO work on both cases. I believe it's sth related to attachSound...

View 4 Replies

ActionScript 2.0 :: AttachSound - Sync Audio Clips With MC?

Jul 6, 2005

Are there issues with using attachSound to sync sound clips with Movie Clips? I currently am having this problem. I have all my sounds in a separate swf (sounds.swf), then I call the sounds like this:
Code:
gear1_btn.onRelease = function() {
logo.gear1.play();
sounds.gearssmfx.start();
}

I build the movieclips with the sound on the timeline, so that I know they sync up. Then I remove the sound from the movieclip, and actually play the sound with the AS above. The above AS should play the same in the browser, but doesn't. The problem is that the movieclip animations often run slower in the browser than they did within Flash. Is is possible that the movie is running at a slower FPS in the browser? I have noticed that it runs slightly slower in Firefox than IE. I'm currently using 32fps.
Here is my development : [URL]
Specifically, I'm having problems with the gears next to the letter "S" and "0", click on them to play.

View 2 Replies

ActionScript 2.0 :: Music Player With AttachSound In Array?

Oct 1, 2010

1.Music player with an array of 3 songs;

2.The music player LOOPS one sound taken from an array of 3, and the sound is attached with attachSound method.

3.There are 3/4 buttons: Previous sound, Stop, Pause, Next Sound. With "previous sound" and "next sound" i actually mean next sound in the array.

So...I'm a bit "stuck" on managing the loaded and attached sounds, aka how to go to next sound, how to go to previous one etc.This is the code i've been able to write down:

Code:
var soundFiles:Array = ["9052_ok.mp3", "Glimmer_ok.mp3", "Loop_9095_ok.mp3"];
function playSound() {
var my_sound:Sound = new Sound(

[code]...

View 7 Replies

ActionScript 2.0 :: LoadSound/attachSound Lowers The Original Pitch?

Feb 3, 2010

i am having this very big problem(for my particular application). i am writing this music application in flash and i use as2 to load randomly specific sounds which are in the same folder as the movie. the problem is that i need the sound to be replayed with fidelity and it seems flash is lowering the pitch of the "music" by a halfstep(it does the same when "previewing" it from the library). musically speaking, if i have an mp3 containing A at 440 hz played with piano timbre, Flash will lower it and when it is played through the flash player is its played as a G sharp(35 hz lower). I thought that if i will replace the attachSound with loadSound and the sound will be loaded externally and not from the library the problem will be solved. it seems that this won't solve the probem. the sound just doesn't want to be played at the frequency it has in the file from which is loaded. i had read somewhere that this is a flash player's bug.

View 8 Replies

ActionScript 2.0 :: MX Preloader Doesn't Work When AttachSound Invoked?

Apr 14, 2004

I have a splash page.

I had a preloader which worked great before I added the sound (a WAV file) and I used attachSound.

Now the preloader doesn't work anymore!

I have tried putting the attachSound action on the main timeline, in the movieclip, in its own movie clip, EVERYWHERE! All to no avail.

View 14 Replies

ActionScript 2.0 :: MX Preloader Doesn't Work When AttachSound Invoked

Apr 14, 2004

I have a splash page. I had a preloader which worked great before I added the sound (a WAV file) and I used attachSound. Now the preloader doesn't work anymore! I have tried putting the attachSound action on the main timeline, in the movieclip, in its own movie clip, EVERYWHERE! All to no avail.

View 14 Replies

Getting Deep Into Flex?

Jan 1, 2010

The better you understand what you are doing, the better you will do it. I want to get Deep into Flex . I did some simple Event-Handling and The better you understand what you are doing, the better you will do it.

But i have i big question: What does the Compiler do ? What happens with the MXML file ?

lets say we have a simple code ( code from blogflexexamples):

[Code]...

View 3 Replies

Professional :: Deep Linking Into Swf?

May 24, 2011

Ive been working on a site TheCondoBar which will be up and running soon..... but im trying to figure out some steps on "deep linking" into specific frames. i would like to have deep linking to the tabs I have at the top of the swf file  Flash File .... and recommendations on what could be done

View 1 Replies

Flex :: Deep Copy Possible In It?

Apr 12, 2012

Is deep copy possible in flex 4.5?

View 1 Replies

Deep Linking Or Using Swf Address

Dec 18, 2007

tutorial on deep linking or using swf address.Also my site uses currMovie for it's page transitions. I've noticed the examples seem to have all their pages on the main timeline. Is it possible to deep link with external swf's?

View 2 Replies

IDE :: Deep Buttons Within A Header?

Mar 1, 2010

I have buttons in my header and the header has animations on it so I have no choice but to place the buttons deep inside the header movieclip. Now, the problem is that the actionscript on the main timeline can't access the buttons.

Here is a sample of my actionscript:

about.addEventListener(MouseEvent.CLICK, clickSection);

If I place the button on the main time line. I get no errors. But when I place the button deep inside the header, I can't seem to access it.I checked the layers and it indicated "Scene 1", "Header2", "Header", and at the very end of that are the buttons so I tried doing this:

Scene1.Header2.Header.about.addEventListener(Mouse Event.CLICK, clickSection);

I obviously failed.

View 3 Replies

ActionScript 2.0 :: Deep Linking With SWFaddress?

Jan 15, 2010

I'm trying to get to grips with SWFaddress and struggling a littleJust trying to work out how to place the mc buttons into one movie clip.The code on the mc buttons is :

Code:
this.deepLink = '/about/';
this.onRelease = _parent.btnRelease;

[code]....

View 3 Replies

Actionscript 3 :: One Way Deep Linking In PureMVC?

Sep 2, 2010

A project requirement is that it be 1 way deeplinkable(a specific query string will load a section within the swf).I have a URLProxy that I use for all external linking. It makes sense to me to put the query string logic in this proxy. So in the constructor, I check for a querystring, and then send a notification if it equals a predefined value.One problem with this is that I'd like to predefine this query string key value I am checking against in an external xml file. So another proxy, loads-parses this config xml, then the URL proxy checks against this.

View 1 Replies

ActionScript 2.0 :: Deep-Linking With External SWF's?

Nov 12, 2010

how i can achieve deep linking with the external swf import technique? Im using the "Transitions Between External SWF's" tut from Kirupa but am not able to post a link here since im new. I have created a website that has this functionality between sections and would like to apply the deep linking to it.

View 9 Replies

ActionScript 3.0 :: Deep Linking In Flash

Nov 14, 2010

I just posted an article about deep linking in flash and thought that you might be interested: [URL]

View 0 Replies

ActionScript 3.0 :: Deep Linking With SWFAddress?

May 4, 2011

Yo. Im trying to get deep linking working with a flash website im building. Im using SWF Address (asual.com/swfaddress). In my code I can set and get the current address value my using SWFAddress.setValue(), and SWFAddress.getValue(), but I can't for the life of me get the address bar to update accordingly.

View 4 Replies

ActionScript 2.0 :: Deep Linking Into Flash?

Oct 7, 2004

If there is a link to a section of a flash website from an HTML and/ or another Flash Movie... is there a way that the link could load the next Flash movie and then go to a specific keyframe or, even better, allow a custom animation to play when the user goes from the link on the first page to the "deep link" within the Flash movie?I can try to clarify the problem and question if I have to. Curious if this can be done and if anyone out there has had any success.Have used named anchors before to allow Windows toggling and bookmarking of Flash sections... however, this would have to work on ALL platform browsers and as info is somehow passed into the new Flash movie it seems different altogether

View 10 Replies







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