ActionScript 1/2 :: Captivate SWF Audio Can't Return After Muted And Unloaded In Flash
May 4, 2010
I'm having a problem with audio of Captivate demos created in Captivate 4 loaded into a Loader component using Flash 8 and AS2. Problem is if someone is viewing a Captivate demo and hits the Audio On/Off button on the playbar to turn the audio off and then returns to the menu, the next Captivate demo loaded has no audio until the user click the audio Off/On button a couple of times. Even though when loaded, the playbar audio is shown as on.
I've already tried cpCmndMute and cpCmndVolume to no avail. Is there another audioOn variable I'm missing?[url]...
View 2 Replies
Similar Posts:
May 3, 2011
I have a project where an external video plays with cue points that trigger the elements on my main timeline (captions). I have a custom mute button for the video so that the guy talking on the video can be muted if necessary (did not use a skin for video controls but set it up as a button). The problem is, when I reach the end of the video and I click a "replay" button to restart at the beginning, the timeline and video start but if the video was muted previously, the video remains muted while my button shows that it isn't. How do I get the audio to turn back on automatically when restarted, or at a minimum show that it's still muted when replaying? My replay button AS2. mcPlayer is my flv.
[Code]...
View 9 Replies
Mar 29, 2010
I have a large project built in as3. Part of its main functionality is to load and unload various as2 swfs. The problem is that the memory ins't free up once they are unloaded.
I have access to the as2 swfs code base and destroyed all objects, stopped and killed timers, listeners, removed from stage, destroyed all the MovieClip.protoypes that were created. They look to be clean as far as the AS2 debugger show no remnants of the object after the destroy function is run. In AS3 i've closed the local connection, cleaned all references/listeners to the AVM1Movie and ran Loader.unloadAndStop(). The trace out in flex says the swf was unloaded but looking at windows task manager the memory usage never drops to when it was before the as2 swf was loaded. Each as2 swf can take up to 80 megs each time it's run so memory gets eaten up fast and loading and unloading a few as2 files.
At this point if the AS2 swfs are unloaded the only thing that I can assume that could be left is MovieClip.prototype and/or _global, _root variables add during the AS2's run time. But i've gone through those and can't find anything else that might be sticking. Has anyone ever seen problems before with the AVM1 machine not freeing up its memory?
View 2 Replies
May 28, 2009
I'm trying to load a successive series of swf, each containing audio, into a loader. As each ends, it's unloaded and the next one loads. I'm using the following code:
Code:
var ldr:Loader = new Loader();
var c:int = 0;
[code].....
View 2 Replies
May 28, 2009
I'm trying to load a successive series of swf, each containing audio,into a loader.As each ends,it's unloaded and the next one loads.I'm using the following code:
[CODE]var ldr:Loader = new Loader();var c:int = 0;var clips:Array = new Array("dmt1.swf","dmt2.swf","dmt3.swf","dmt4.swf")addChild(ldr);ldr.load(new URLRequest(clips[0]));
addEventListener(Event.ENTER_FRAME, loading);[/CODE]...........
Each swf loads just fine, but the audio from the previously loaded swf start playing again, so there's a layered audio mishmash.
View 1 Replies
Sep 24, 2010
This is one of those projects I've been nursing for a while to help better myself with as3, but I've hit a point in the code where I'm just going around in circles now and can't seem to figure out how to get out of it. This project still has a few more problems after that, but I'll deal with those, for now, the situation is, here is a compressed file of my files
it contains:
the flash file which just targets the main .as file
assets -> packages -> and three .as files
music.xml
to save space I left out the 2 .mp3 files, for testing purposes if you really need them, I'll host them up, but otherwise if you need to test it and you have some .mp3's lying around, the <fsong> in the xml file is the mp3 file name.
so here's the issue: What I'm building is a flash audio player and virtualizer that will feed off of the music.xml, parse the data into info at the bottom, and eventually those song links will actually be active and choose the song, but that is something I'll figure out later.Right now, if I hard code in the song title "currently symptoms is hard coded in" it plays fine no problems, however what I want it to read is the first [fsong] in the xml file, so that I don't have to mainly change the as files, and that's where I've been going around in a circle.if you look at LoadSongXML.as at the top inside the public class LoadSongXML extends Sprite .there is public var initSong:String = "symptoms"; and public const SOUND_URL:String = initSong + ".mp3"; to control what gets called and played initially.
in public funciton completeListener(event:Event){
I have var initSong:String = songFile[1]; I can trace that value as you see in the line below just fine, but when I try to return the value so I can actually use it, I can't seem to access it, and I don't know how to get that function to return the value up so that I can actually access it.I've tried moving the various xml arrays out of the function so that they are in the same level, but that ends up breaking it.I originally had the public const SOUND_URL:String = initSong + ".mp3"; line in SpectrumDisplay.as and tried to pull the data to that, but to no avail, even tried adding the xml parser to that actionscript, but that ends up breaking over there as well.
View 1 Replies
Nov 18, 2009
Basically I'm building CD extras for a band, and they have a bunch of videos that are embedded in the timeline that need to automatically return the menu when they finish playing.I have the menu working fine, and all the videos are linked and playing; is it just a simple matter of replacing the "gotoAndStop" command or is it more complicated?
View 2 Replies
Aug 6, 2010
If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?
View 1 Replies
Jul 24, 2009
I've got Captivate movies dynamically loading into a Flash movie. The problem is, the tab index which works so well when the Captivate movies are in stand-alone mode falls apart when loading the Captivate movie into a Flash shell. I've tried tabEnabled=false and tabChildren=true for the movie clip that contains the Captivate movie, but with no results. Does anyone know how to get the focus manager to tab to objects in a Captviate movie when that movie is running in a Flash shell?
View 1 Replies
Jun 15, 2011
I have a custom build swf player, which has basic functions of play, pause, quit etc. It plays swf created with flash. I created a demo using captivate cs5, then exported it to flash. The captivate swf does not works with my swf player, it loads and starts playing but play and pause button does not work at all with it.[code]...
View 7 Replies
Jun 30, 2011
i'm using captivate 5 to create an elearning project, due to captivates limited animation abilities i created a menu bar in flash and imported it into captivate as an swf. The menu bar has a glossary listing that whne clicked calls upon another swf which is a glossary.
The problem is that the glossary swf doesnt pop up when the glossary listing is clicked inside of captivate. The menu bar works perfectly outside of captivate. the glossary is already made in AS3. So my question is can you call a nested swf within captivate?
View 1 Replies
Jan 5, 2010
I wonder whether anyone knows of a solution to this: I want to embed a Captivate 4 quiz in a flash CS4 file and retrieve the score from the Captivate SWF so that I can use it in my flash file (AS3)- does anyone know a way of doing this (?eg. shared objects?). Communication between Flash and CP seems to be a lot more problematic than I anticipated.
View 0 Replies
Jan 9, 2012
I don't get it Why is it so difficult to pass a variable from Captivate 5 to AS3/Flash CS5. I have a variable (gpDone = 1) in Captivate 5 (it's a guided practice) on the last frame which will indicate that the learner has completed the guided practice file. Now I want to pass that variable back to Flash/AS3 so I can evaluate whether I should show the Continue button so they can continue. They have to complete the guided practice before they can continue. If it is equal to 1, the Continue button will display. If it is not equal to 1, the Continue button will not display, but a message will display telling them they have to complete the guided practice in order to continue in the course.
View 0 Replies
Mar 9, 2011
I've developed a menu in AS3 with about 10 buttons. Each buttong will load an swf or a swf created in Captivate. I want the swf to load ontop of the menu, then close when it's done playing. I can get this to work fine with swfs created in Flash, but not captivate 5. The captivate file will open and play, but it won't close.I tried adding the script at the bottom to an swf and importing that into the last slide of captivate with no luck.This doesn't seem like it should be so tricky.Here is some of the AS3. I didn't bring the code in for all the buttons.
var swfLoader:Loader = new Loader;
introduction_to_gcssj_btn.addEventListener(MouseEv ent.CLICK, introductionClicked);
portal_features_btn.addEventListener(MouseEvent.CL ICK, portalFeaturesClicked);
[code].....
View 1 Replies
Aug 25, 2010
Flash builder traces out when swfs are loaded and unloaded eg:
[SWF] C:xampphtdocscar_explorerfontsArial.swf - 174,937 bytes after decompression
and
[Unload SWF] C:xampphtdocscar_explorerassetsspinEXTERIORBASE_12.swf
How to disable these types of traces?
View 1 Replies
Oct 14, 2010
I have a flash application, some kind of a play-list that loads external SWF video player (I don't have code access to that external file), so users can watch the video or skip to another one. When user switches to another video new SWF file is being loaded.
The problem: If user didn't finish watching the video and skips to the next then I unload previous SWF file (unloadAndStop()) and load a new one. And because the previous SWF was playing it is not actually unloaded, it is still playing on the background (I hear two audio tracks: current and previous).
View 1 Replies
Jan 10, 2010
Basically I need to pause a Captivate movie (CP3) that is playing within a flash movie (CS4, AS3).
I have made a full motion recording with Captivate which I have imported into a flash movie. The flash movie is organised as a series of movieclips that play from the main timeline. My CP demo forms part of one of these movieclips (there are flash objects playing "on top" of it in different layers). I have a play/pause button on the main timeline that works to pause all of my movieclips EXCEPT for my captivate demo. This continues playing, while the movie clip is forms part of pauses, throwing everything out of sync.
how I can pause CP portion? My actionscript skills are minimal and I'm not even sure what object(s) to target.
View 2 Replies
Nov 4, 2009
How can I create and control Captivate Playback Skin in Flash with my custom layout and script?
View 1 Replies
Feb 3, 2010
I have a flash app, that redirects to another page. I'd love to trap any other window unload event (clicking links / submitting forms) and warn the user they'll lose their progress in the Flash app. However, I can't find any way to tell that the click/change of URL/window unload was triggered by Flash vs being triggered by a normal link etc. Is there any way to detect this, and how reliable is it?
View 2 Replies
Jul 16, 2009
How do you set an FLV player to be muted automatically on load? I know how to make the volume 0 on load but I actually want to set the mute button state to muted so the user can click on it to unmute it.
View 2 Replies
Aug 18, 2011
Has anyone attempted to implement a captivate video into Flash Media Server (specifically an aggregated Captivate video in Flash Streaming Server).if this works, or if you have any other information.
View 4 Replies
Feb 17, 2011
I would like to pass Captivate (version 4) slide Lable to Flash file which will be shown in a dynamic text filed. Here is what I got but it does not work.
I have dynamic field called "myLable" AS3 code:
myLable.text = MovieClip(parent).cpInfoCurrenSlideLabel;
View 0 Replies
Jun 21, 2011
I created a flash video player. Could any one show me how to seek unloaded time in flash video player?
View 1 Replies
Mar 12, 2012
i have a project that i'm working on for school in a multimedia class. everything in the project is essentially done except i need to load a few sounds into the project file all at the same time. as this would be rather unpleasent to listen to, i want them all to be muted when they are loaded (externally or internally, it doeesnt really matter) in. my professor doesn't seems to be very helpful so i decided to come to the source. the program i'm using is flash pro cs5.5 with as3. i think there is some code for controlling the volume, and optimally that is what i would like to use, like "setVolume = 0" and then later when i want the sound(s) to be heard "setVolume = 100", or something along those lines.
View 5 Replies
Jan 9, 2009
I have a custom Flash Video Player and I have the play and mute button as controls. Currently my player has the sound on, I want to set it as muted by default.
This should also show my mutebutton as on as a visual cue. The only line of code I am using for the mute button is this
myVideo.muteButton = mute_btn; // which is just telling the flv component which button needs to act as the mute button
Using Flash CS3 , Actionscript 2.0
I got extremely two easy lines of code that I put in my action Frame 1 which fixed everything.
myVideo.volume = 0;
myVideo._uiMgr._isMuted = true;
myVideo is the name of my FLVPlayback component
View 8 Replies
Jul 18, 2010
I need to check that the user has not muted the system before running my main movie (as indicated by the red bar over the speaker icon on the lower rgiht) and if so prompt to unmute with pop up. Is that something I can do with Actionscript 3 or is it sometihing that needs to be addressed with JavascriptWSH?
View 3 Replies
Nov 8, 2011
I am looking for my soundspectrum animation to play but my sound will be muted...This will be inserted in a banner ad, so their are specific rsestrictrictions with vendors where the sound has to be user initiated...
var SpectrumLineWidth:Number;
var SpectrumLineColor:Number;
var SpectrumGlowDirection:String;
[Code].....
View 1 Replies
Apr 13, 2011
My server is streaming binary audio data (mostly mp3 files) to a client (a browser). This client stores the audio data in memory.
What I'm looking for is a flash audio player that I can input the binary audio data so that it can play the audio file.
Preferably, the flash client is merely a bridge to Javascript so that I can handle everything in Javascript and simply use Flash's audio features, but this is not a requirement.
View 1 Replies
Apr 25, 2011
I have a single audio file, I'd like to avoid cutting it up.
I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.
View 2 Replies
May 15, 2007
I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).
View 7 Replies