ActionScript 3.0 :: Manipulate A Sound / Track?
Mar 19, 2009I know that manipulate sound with as2 is limited. I wondered is it possible to manipulate a sound/track is possible with AS3?
View 3 RepliesI know that manipulate sound with as2 is limited. I wondered is it possible to manipulate a sound/track is possible with AS3?
View 3 RepliesIf you wanted to create a client-side Flash-based sound editor that lets you load more than 1 sound to an interface that allows you to manipulate the individual positions of the sounds, and mix/play them in real time, how would you accomplish this?
I'm looking to create a simple version that can mix 2 mp3s, allowing the user to adjust the positions of each. Sort of a dumbed down version of Aviary's Myna audio editor.
At the end of the mixing, I would also like our server to mix the 2 mp3 files with the proper positioning into 1 mp3 file...
I am using an addChild() method to place an intro MovieClip into a website. It has a short ten second musical track. I also have a skip intro button on the stage which does a removChild(). I keep trying to write code that will also stop the sound, which continues to play. I tried loading the sound separately and used the channel.stop(); So far nothing is working. It seems like I've been here before.
[Code].....
I've got the next track to load, when the first one is done, and after that everything works fine.I'm trying to make it so that two tracks will buffer in the same manner - but feel like I'm doing things the hard way.....http:[url]....that is the code
and
http:[url]....that is the fla, txt, and audio files.
I have some audio files on my http server, and I would like to write a Flash client in ActionScript3 to load those audio file and play them smoothly. Of course I can just create a Sound object and load it by .load() with a URL request. But for saving the bandwidth, I prefer to load audio file chunks on demand. For example, there is an audio file let's say 100MB. If we try to load as fast as possible when user open the page
<--------- 100MB ----------->
The downloading may finished within minutes, but let's say, if user stop listener in halfway, that's kind of waste to load whole soundtrack at first.
<--------- 100MB ----------->
^--- user may stop here
To solve the problem, I think it's better to split the big audio file into small chunks, load and play them on demands.
<--- 10MB ---><--- 10MB ---><--- 10MB ---> ...
^--- user current position
I want to design the player, let it load audio chunk by chunk, and only load it when it's near the end of current chunk.
How to load those chunks and play them smoothly? I can probably create Sound object for each chunks. But how to play them seamless?
does anybody maybe know how to track/trace the current position of a sound file while it is playing?So that it is updated every frame or second?I figured something with trace(sound.position) onEnterFrame, but didn't succeed in realizing this yet.
View 1 RepliesI am having trouble manipulating instances of xml loaded pictures. I want to change their x and y position and tween them etc. I have loaded them onto the stage from an xml file, and given them all individual names but the most I can do now is either move them all together, spread them evenly on an x or y axis, or remove one of them using getChildByName. What I can't do is what I want to do, which is place 20 or so images in an exact place, ie. a square.My main difficulty seems to be that I don't know how to reference an individual xml node and move it.
View 2 RepliesWhen Object A (player controlled) overlaps Object B and left mouse is clicked and held Object A locks with Object B and Object B becomes player controlled while the LMB is pressed so that it can be moved around screen etc and when button is released Object A becomes player controlled and Object B becomes static.
View 9 RepliesI'm using AS 3.0, and I'm trying to change the frames inside a specific object's timeline.The change will be triggered by keyboard events, but I don't know whether to add the eventlistener to the stage or to this. Also, it doesn't seem to be responding to anytime I use a gotoAndStart() or gotoAndStop() it just ignores it completely. Is it calling the stage's timeline when I call this? It also doesn't help when i add this.gotoAndStart() or this.gotoAndStop(), so how do you change the frames outside of the main timeline?
View 3 RepliesI'm working on an application where I'm drawing some rectangles on the screen, and then will need to manipulate the shapes (change their size, location). I tried to do something with .drawRect and clearing the shape each time I was manipulating it, but the RAM usage was spiking and then falling (presumeably because i keep reinitializing a new component and then removing it, and garbage collection was cleaning it out). This seems like its probably not the most efficient way to do it.
Is there a way for me to just create a shape once, and then move it around on a canvas (and change its width and height without all this RAM usage?
I have a flash map of the UK which is divided up into the counties, a user clicks on a county and is then directed to a new url, eg. [url].... The flash map remains on that new page in case they wish to select a new region.
What I want to know: is it possible to manipulate the flash so that if the [url]...then london remains highlighted on the flash map. I presume I will have to use some AS which is fine as long as it is AS3.
I'm trying to manually dispatch events on a textfield so I can manipulate it indirectly via code (e.g. place cursor at a given set of x/y coordinates). However, my events seem to have no effect.
I've written a test to experiment with this phenomenon:
package sandbox {
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.text.TextField;
[Code].....
As we can see, the events are being captured and replayed successfully. However, no change occurs in tf2 - the mouse cursor does not appear in tf2 as we would expect. In fact, the cursor remains in tf even after the tf2 events are dispatched.
What are the inbuilt functions available in flex,actionscript that I can use to find a node with a specific name inside xml variable and what functions could help me manipulate it? Something like Xquery in SQL! I dont want to use for loop everytime I want to manipulate a xml variable. For example, if I want to "cut" node inside this xml and add another attribute to it named enabled pro grammatically. Or how could I find "Find Next" node and delete it?
<menuitem label="Edit">
<m label="Cut"/>
<m label="Copy"/>
<m label="Paste"/>
[code]....
I'm trying to manually dispatch events on a textfield so I can manipulate it indirectly via code (e.g. place cursor at a given set of x/y coordinates). However, my events seem to have no effect.I've written a test to experiment with this phenomenon:[code]Essentially, all this test does is to use setTimeout to effectively 'record' events on TextField tf and replay them five seconds later on TextField tf2. When an event is dispatched on tf2, it is traced to the console output.The console output upon running this program and clicking on tf is:[code]As we can see, the events are being captured and replayed successfully.However, no change occurs in tf2 - the mouse cursor does not appear in tf2 as we would expect. In fact, the cursor remains in tf even after the tf2 events are dispatched.
View 2 RepliesHow do you use Actionscript to control Javascript? (Maybe through FX Script?)
View 2 RepliesI am creating an xml slideshow off of the tutorial on this site and its working great. Im hung up on one thing though. I need to be able to manipulate text fields depending on which slide is being loaded, and im not sure how to do it.
here is my code:
var delay:Number = 5000;
var init:Boolean = false;
// Load XML //
function loadXML(loaded) {
[code]...
I'm trying to manually dispatch events on a textfield so I can manipulate it indirectly via code (e.g. place cursor at a given set of x/y coordinates). However, my events seem to have no effect.
I've written a test to experiment with this phenomenon:
Code:
package sandbox {
import flash.display.Sprite;
import flash.events.MouseEvent;
[Code].....
I am trying to create an interactive flash that users will be able to manipulate certain events in the game. I was was wondering if it was possible to1. Make objects appear or disappear in a frame if a variable is set to a particular number.n example being a window, if you click on it, it opens and closes if clicked on again. If you open the window and go to a different frame, is there a way to make it be open when you go back? 2. Determine the next frame. An example being a door, if the variable is 1 then the door would open when clicked, to the next frame. If it is 0 then it would tell you you need a key or such.I wrapped my head around creating variables and manipulating variables using basic functions.The only thing I am having problems with is if there is an "if"chieve these two tasks.Edit: Figured out number 2:'blueButton' is the variable, when pressed it changes its stored number by two. I linked it to another button which this code is attached to...
PHP Code:
on (release) {
if (_root.blueButton == 2) {
[code].....
I have a movieclip (instance name preload), inside of it, I have another movieclip (bar) ... what i'm trying to do is a preloader for external files... i have a custom class and i what to manipulate my movieclip preload from it... you know verify the progress of the load:
Inside my class a have this function
public function loadProgress(e:ProgressEvent):void { percent=e.bytesLoaded/e.bytesTotal*100; rutaDos.preload.bar.scaleX=percent;
}
rutaDos is a reference to the stage... it works, I'm sure of it... the problem is:rutaDos.preload.bar.scaleX; I upload the files but it doesn't verify the progress of the load.
Using a common flash 3d library such as Papervision3d or away3d & as3dmod or better create a Flash 3d object manipulator that:[code]Finally Allows a user to capture & download a picture of said object after manipulation
View 1 Repliesi am trying to create a menu using as3 and i cant seem to find a way to finish it.this is what i got so far
so i wrote a class that is attached to a movieclip and i put several instances of it on the stage.
package {
import flash.events.Event;
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import flash.display.*;
[Code]...
I wanted the animation to not roll back once i click on a certain button and i wanted the animation to go back once i click on a different button. My question is, how do i proceed from here, i searched online for clues and from what i understood i could set variables within the class and change them on the timeline and use event listeners to catch the changes. I tried doing that but i always end up with some redundant way that gets me nowhere...
There seems to be little support or discussion around regarding Google Swiffy [URL]
Is it possible to effectively pause/resume/manipulate a swiffyobject from JS?
Using standard Google output, I noticed the swiffyobject could be found in console with a few properties; notably frameRate.
I want to create a image application in flash, but trying to map out the complexity of it!
Step 1: I want the user to upload a image
Step 2: The user can choose a separate background image
Step 3: The user can manipulate the image to make it fit with the background
Step 4: Export as one image as a profile picture on facebook or just the desktop
This is kind of like the yearbookyourself.com application if you have seen it=)
I am trying to manipulate the following code so I can use the mouse wheel with the scroller. I am not sure how to link the two. The scroll bar works fine, I was just wondering if there is a small bit of code that will allow me to do this.
[Code].....
i'm using flash cs3 portable edition and actionscript 2.0 (schoolproject is a must 2 use actionscript 2.0)
i must create a "game".in this "game" the user must click the correct ingredients.when the user clicks on the correct item, the item goes on the table.in total there must be 3 items on the table, so the "next" button can appear.
Can anyone help me manipulate bitmapdata to get a similar effect to the one shown here:URL...I have converted the contents of a movieclip into bitmapdata but haveno idea how you manipulate sections like that above. .
View 0 RepliesI am banging my head bloody here. I have this webservice to wich i have to post an XML scheme in order to get a result back. The XML is supposed to be formatted like illustrated in the fla file Now, when i construct this XML in Flash i can trace out properties from that, for example:
trace(wsRequestXmlBody.children().children().child ren().children()[2].text()); // traces passord.
But what i want to do is change for instance the value of that node to a dynamic value. I can manage to add a node to the XML by doing:
var testvariabel:String = "mytest"
wsRequestXmlBody.insertChildAfter(wsRequestXmlBody .children(), <test>{testvariabel}</test>);
But i just cant manage to manipulate the nodes further into the XML structure, or change their values. What i wish to do is for instance change the value of the tag <password></password> and assign my own dynamic value there.
Also, when i use the namespacing shown in the fla, it sort of strips the first tag of the original XML structure (the Envelope tag), i would like to preserve all the tags in the structure, and simply be able to change the value of some of them. I guess it has to do with the namespace structure, but i�m not good att understanding namespacing.
I have a few linked armatures on stage and was needing to be able to move them around with AS3. Is there a way I can state the angle that I want an armature at, and the rest of the armatures below it will follow, but the ones above it will remain in place?
View 1 Replieswould like to do is script the buttons so that before a new clip opens up the clip which is visible goes to a frame to play out an animation where it fades out and shrinks. (one clips fades out and shrinks before the next one opens.)what i want to do is not as elaborate but it gives an idea of finishing a clip off before another opens
View 2 RepliesI load 2 movies at the same time using loadmovie() function onto 2 different locations on the flash page. i would like to know if i can have a button in the second movie that can control, lets say play, the first movie when this button is released.
View 14 Replies