is there common code available that produces square, triangle, sawtooth or any other custom waveforms using the math class?
below is a basic function that handles a SampleDataEvent and plays a middle-c (440 Hz) sine wave. i'd like to change the tone by incorporating square, triangle and other waves.
var position:int = 0;
var sound:So...
HI, I have container movieclip and one mask layer with the height and width of the current screen. The continer is always bigger than the mask clip. so i need to zoom the container at the center of the mask clip. something link in MicroSoft XL zoom controller at the bottom right.
Does any once have the equation or any other demo links?
...
Hi Friends,
Is it possible to detect usb device using actionscript 3 from flash cs4?
Pls. let me know.
Thanks & Regards,
Sagar
...
Hi everybody!
I'm trying to compile my flash project from Flash CS4. But it raises me this error "5005 unknown error optimizing byte code"
Does anybody know the exact solution for this problem?
Thank you.
...
I want a to user a DateChooser to allow a user to select a date in a given month and year. I want to set the month and year programmatically and only allow the user to select the date/day.
I can do this for the year easily by setting the minYear and maxYear to whatever year I want, but I am not seeing a strait forward way of disallowin...
I am trying to stream audio to my flash application. I got it working with a test MP3 file. But the problem is that MP3 encoders are protected by patents and require license fees.(I am living in Canada) Isn't there a open audio file format supported by flash?
...
Unless I am doing something completely wrong, it seems the "official" AS3 Facebook Library from Adobe seems to be out of date. It seems to only return about 3/5 of a user's data, with Status Updates being the most notably missing piece. The last commit appears to be at least 8 months ago. The library also appears to be using the older RE...
Is there any difference between those three declarations?
var x;
var y:Object;
var z:*;
Is there anything in AS that's not an Object?
...
using action script how to draw a circle that have more than 2 or 3 color'si.e if circle is divded in to 3 parts then i will draw that circle with 3 diffrent color's..means that 3 arcs forma complete circle
...
I'm currently working on a Flash application that needs to save files to Drupal. I already saved the file to the Drupal site with the File service, but I can't get to attach the file to the node with the node.save service (Upload module, not CCK file field).
The object that I will transfer with node.save looks like this in AS3 :
var no...
So, in Flash Builder on Windows, my app and all embedded fonts compile just fine.
But when I try to build it on my production Linux server (via a Makefile on the command line using make), compilation fails while transcoding the fonts:
/home/me/MyFlexProject/SomeModule/src/Fonts.as(29): Error: exception during
transcoding: Font for alia...
So I have a working Flash player using Cloudfront, AS3, NetConnection & NetStream. Works with a FLV, but I need it to work with MP4s. It connects to the stream, and outputs the following:
NetConnection.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Buffer.Full
My presumption is that it is working when looking at t...
Code:
var myPattern:RegExp = /\"/;
trace(a.replace(myPattern, "\\\""));
<TEXTFORMAT LEADING=\"2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">sdfdsfdsf</FONT></P></TEXTFORMAT>
above im using that regular expression to escape the " in the string. however it only does it for the first ...
Is there an equivalent to LoadVars.send() in AS3 where I just send off variables without waiting for a response? I just send off the variables into cyberspace blindly, and I am happy that way. How do I do it? Or has it been removed for some security thingie in AS3?
...
Hi,
from my Flex app I want users to upload a .csv file to SQL server.I thought a possible approach would be:
-upload file to the server
-quality check the file there
-send back the file to flex to sow it in a datagrid
I am stuck in the uploading. I have the following code but I am always getting the 2038 i/o error. There is even no...
Extremely frustrated with this. I've created a simple class that extends the UIComponent. I create an instance of this class in a parent class and utilise the 'addChild' method to add it to the parent. I've overridden the 'updateDisplayList' method of the extended UIComponent to add my own drawing routine using the 'graphics' object.
...
Hi
How do I backspace a text string. If this was a login
screen, I should be able to backspace one character if I made an error,
and continue my login. I'm not sure how to accomplish this. Please help.
Thanks,
The sample code is obviously wrong, but may help explain
var log:String = "LOGIN_777";
trace(log);
b.addEventListener(MouseEven...
I have a Flex list and a custom ItemRenderer. I'd like to be able to have some items in the list use a different ItemRenderer (say, depending on the class of the item). Is this possible?
E.g.:
<s:List dataProvider="{_systems}" itemRenderer="myItemRenderer"/>
Most items in _systems use myItemRenderer. But if element 3 of _systems is "...
Could anyone give me a good use case for ActionScript dynamic classes?
Because it really looks like a bad pratice, for me, in every case.
...
Is there a way to modify xml document via actionscript? I have bare xml file i.e.
<words>
<word>
<name>this</name>
<title>that</title>
</word>
</words>
I want to add more words on this file via actionscript. Is that possible? If yes, what tag should I look into?
Thanks,
Rex
...