ActionScript 2.0 :: Complete The Audio Toggle On/off Task?
Mar 16, 2003
I used http:[url]...tutorial and made a working button to START the sound.This method is the simplest. Can't stop the sound yet.Given that tutorial, what's the simplest way to complete the audio toggle on/off task?
View 1 Replies
Similar Posts:
Mar 11, 2010
Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?
A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.
View 1 Replies
Dec 30, 2011
I call it a hiccup because the code works; but it's backwards. When I hit the audio button it plays the music and when I hit it again it stops the music. I wish for the music to play automatically when you enter the SWF and then you hit the button to mute the music if you wish; and then hit the button again to play the music again.
Here is the code I have:
toggleButton.addEventListener(MouseEvent.MOUSE_OVER, rolloverToggle);
toggleButton.addEventListener(MouseEvent.MOUSE_OUT, rolloutToggle);
toggleButton.addEventListener(MouseEvent.CLICK, toggleClick);
toggleButton.buttonState = "On";
var song:Sound = new TitleMusic();
[Code] .....
View 7 Replies
Oct 19, 2011
I have tried this too but the value keeps on changing as the sound load progresses.
View 3 Replies
Jan 10, 2011
I'm new to flash and just need to do a simple task but I can't manage to get it to work. I'm trying to import a video (flv) into a SWF container and need to AS functions which should be exposed to JS (using liveconnect or anything else). These two function should toggle sound on/off and toggle play/pause. I dont need any user interface or a full featured player, just these two functions.
View 1 Replies
Jun 14, 2011
I made a test where I download a file using URLLoader - something like this:
[Code]....
in the middle of the downloading process I physically disconnect the internet connection. the download stalls - but after aproximately 30 seconds downloadSuccessful is invoked, although only half of the data was downloaded. how can I make sure that the data to be downloaded is complete and correct?
View 2 Replies
Feb 17, 2011
I am loading in binary files with the url class which can be quite large 10mb + and it works fine on my server but another server I am testing on it can sometimes not work. Sometimes it will not load the file and other times it will only load about 20% and it throw a complete event??? Then of course other times it works fine. This server is https maybe that has something to do this it?
View 0 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
Feb 7, 2012
I'm new to actionscript so I can't create task that I need.My problem is that, I can't change the task doing every frame with actionscript.let me example:
ActionScript Code:
instance_name.x += 2;
if (instance_name.x > stage.stageWidth - instance_name.width)
{
instance_name.x -= 2;
}
In this code I told flash to move the object (instance_name) 2 pixels to the right every frame. and if it arrives at the end of stage, It move 2 pixels to the left every frame. But when I test the movie, at the end of stage it wouldn't turn back and move to the left and stood still. Its because it process ( instance_name.x += 2; ) after it got out of the end of stage.
View 6 Replies
Sep 8, 2009
Flex Builder 3 provides support to generate actionscipt from WSDL via the GUI ( Data->Import Web Service (WSDL) ) - but this sort of method requires that you check in the generated source. This is not desirable to us (we understand both sides of the 'should generated source be checked in' and we have decided that they should not) so we would like a method to generate the actionscript classes from an ant task. In this case, the WSDL would live in the file system.
View 2 Replies
Jun 1, 2009
Using the Flex ant task to build our application results in the "Flex Data Visualization Trial" watermark being displayed in our charts. We have professional licenses for flex builder but do not know how to tell the ant task about these.
View 1 Replies
Dec 13, 2010
I have some code that I want to wait until the first step of the process is done and then do the next task. But I can't seem to think of a way to do it??The full code for the entire process is this:[code]How would I tell it to wait until the first part is done to perform the second part?
View 3 Replies
Mar 28, 2012
How to make as3 do Task Manager priority = high? I found out that , when I was playing my game on the flashplayer.exe . I went to task manager "set priority" to high on the flashplayer and boom everything running smoothly and it was lock on 30 fps every frame.
View 1 Replies
Nov 17, 2009
I'm trying to create a Flex application that automates a web browser to perform certain tasks. I would use the application to login to a site, parse data out of the HTML, and send it to a jsp page for processing. I currently have an application written in WPF that does that exact thing, but it needs to be ported to flex.
View 1 Replies
Jul 1, 2011
I've tried using the haltonfailure="false" and failureproperty="compile.failed" but ant just throws an error when I try to run it: "The <mxmlc> type doesn't support the "haltonfailure" attribute." I need to do a little cleanup before the build script exits if the mxmlc task fails, how do I achieve this?
View 2 Replies
Nov 2, 2006
Lets say you have 5 instances of a circle on the stage.Now, lets say you want to make all of the circles _x += 5;How can I do this without doing a repeat loop?Isnt there a single line command that could be used? Such as: {tell all circle objects} : _x += 5;
View 4 Replies
May 31, 2011
I'm building a simple task manager that will at this moment execute tasks in a serial manner. I have been reading about threads in flex and it seems it is not quite clear/prepared for real threads.
What I'm looking at this moment is a way to execute a method at the beginning or end of a flash builder update. This method will be the one that will take the responsibility to start tasks added in the previous update. The removing of finished tasks will be done through event notification (the task will notify it finished) then the scheduler will remove it and dispatch the message again to let the outside world know the task was over.
[Code]...
View 1 Replies
Mar 30, 2009
I am basically creating an application that prioritizes jobs listing, so far I can assign a task priority, description. So basically once the task description and task priority is chosen, the user will click the add button, and this will be stored in the database and on the screen another mc will appear where the created priority and description assigned will be display. In the mc there will also be a delete button to remove/delete the task. What code could I use to remove the task...
So far I have typed the following
mc.task_mc.delete_btn.addEventListener(MouseEvent.CLICK, onDeleteClick);
private function onDeleteClick(e:MouseEvent):void {
}
View 4 Replies
Aug 5, 2010
Has anyone noticed the following behavior building Flex programs using the mxmlc ANT task (running in the background): as the MXMLC task starts, it steals the window focus from whatever application is currently running, and then gives it back again! This is extremely disruptive.Is there a way to run the MXMLC task "headless" so it doesn't interact at all with the window system?I'm running on Mac OS X (10.5.8, if that matters), and Flash 4.0.1 (although the behavior existed on 3.x as well).
View 1 Replies
Oct 25, 2008
I'm trying to set a common task, wich is activate/desactivate interactivity (clickability) of a button. (sometimes clickable, sometimes not). The button is a blue bowl. I use the stopPropagation() of event metod to stop propagation, then my blue bowl is not clickable anymore. (if you erase "stopPropagation()", it becomes clickable) It works.
But I want to change this statut. I've designed a ON/OFF switcher, who set the blue bowl clickability ON/OFF. And it doesn't work. I've tried everything : removeEventListener, an "if" who write "stopPropagation()" or not, but it fails, it stay on the beggining statut. Here's the very simple .fla to show you : [URL] What should be my "ON/OFF switcher" code ?
View 11 Replies
Dec 1, 2008
I'm a complete newbie regarding Flash development, but I've been tasked with automating SWF creation from an AVI source (and quickly!). Once the SWF is finished playing it should endlessly loop from the last frame to about 5 seconds prior to the end frame. Think of a speaking character, followed by some idle movements. We want the idle movements to endlessly loop. What I've done/need to do is:
1) Automate the creation of the AVI. Done.
2) Convert the AVI to SWF (using FFmpeg). Done.
3) Write Actionscript to detect the last frame, and then jump
to some other frame.
4) Merge the SWF with the actionscript and produce a new SWF which is then placed on a website.
Being a newbie to Flash, I'm overwhelmed by the array of options out there for something so simple in concept. I'm looking for a command line solution so everything can be completely automated. My questions are: Can steps 3 & 4 be done with the FlexSDK? What would the steps be to get something like this accomplished?
View 1 Replies
Aug 21, 2009
I double-clicked on a bitmap-item in the library and instead of opening the properties-windows where you can change compression, import and so on, the focus changed to a random explorer window and flash got "locked". Flash probably thought that it actually opened a new sub-window and waited for it being closed, but there was no such window! Seems like the open-procedure failed and the next window to focus on was just an explorer window. Closing this one didn't get the focus back to flash. What a luck, I could still save the file using ctrl-s but couldn't get back to the application. So I had to kill Flash with the task-manager.
View 1 Replies
Jun 10, 2010
use the mxmlc task of the Flex Ant tasks with a user-definable list of source path or library paths? The idea is that the user can define an arbitrary list of source paths and/or library (swc) paths into an Ant properties file and the build file takes these values and evaluates them for use in the mxmlc task. Just wondering if there are any tricks (maybe utilizing filtering/string replacing) to get this working?
View 2 Replies
Jun 10, 2010
I have a highly intensive benchmark/testing chore and I'm getting the 15-second timeout error despite my best efforts to keep my script running.Basically I'm making about 1.2 million remote procedure calls (RPCs) over a socket and want to check the results of these rpcs.I can make the calls just fine. The problem I'm having is verifying the results of all these calls once the loop is complete.
Once the calls have all been sent, my flash movie moves to frame 7 which initializes a bunch of variables that I need for my RPC checking loop.Frame 8 does all the work. The first thing it does is stop the playhead for my main movie. Then it sets up a timer to wait for minute or two until any straggling RPC responses come in. [It's been my experience that these are likely to straggle in for several minutes when I'm really pushing the server hard.]
If the timer gets too high, the [b]checkResponse[/b] function returns and the playhead moves to frame 9 which checks to see if I've checked all the RPCs. If not, the playhead returns to from 8 which skips the timer this time and starts checking immediately.The output I'm getting ends up like this:
elapsed time:4985elapsed time:4985Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at flash_fla::MainTimeline/checkResponses() at flash_fla::MainTimeline/frame8() at flash.display::MovieClip/gotoAndPlay() at flash_fla::MainTimeline/runDelayedResponseCheck() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()[code]....
View 5 Replies
Feb 9, 2011
I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :
<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>
[Code]....
View 2 Replies
Aug 25, 2009
I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)
Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.
I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.
View 8 Replies
Aug 4, 2009
I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...
View 1 Replies
Mar 11, 2010
Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..
View 1 Replies
Sep 6, 2011
Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:
1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.
2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.
View 1 Replies
Apr 1, 2012
Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?
View 1 Replies