flash

how to play wave file using http

Dear all, how can i play wave file using flash . I m able to play mp3 files using following code <embed id="wmp" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" ShowStatusBar="true" EnableContextMenu="false" autostart="true" width="320" height="240" loop="false"...

Flash Player - green box with version number

I'm trying to get a very simple Flash video working using SWFembed, and it does work across multiple computers at this point in multiple browsers, but as soon as I pushed it live I got this: http://cl.ly/1EDS I've adjusted file permissions, but it is exactly the same code and files as in another directory on the server. I've seen this ...

IE popup an "object doesent support this propety o method" when using ExternalInterface.call

hi, i"m getting nuts in here. everytime i try to do even an ExternalInterface.call('alert','abc'); (which will work on every browser) i get an object doesent support this propety or method after the alert appears. it even happens in the HTML generated by flash without me touching it... there is any solution?! thanks! ...

How to turn bytearray into IList in Actionscript?

How to turn Array (like Camera.names) into IList (for for ex MXML s:DropDownList <s:DropDownList x="113" y="121" selectedIndex="0" dataProvider="{Camera.names}"></s:DropDownList> )? ...

Trouble getting Flash socket policy file to work.

Basically I'm using Flash to connect to a Java server. Despite my Java application replying to the <policy-file-request/>, in the Flash debug log it lists (not sure about the order as there are lots): * Security Sandbox Violation * Connection to 192.168.1.86:4049 halted - not permitted from http://127.0.0.1:8888/Current/wande...

How to programmatically associate a flash .fla file with a document class ?

I heard about jsfl (Flash IDE API) so I guess it is possible but I can't find any concrete example ? ...

embedded SWF isn't shown (SWFLoader)

I embed a swf as ByteArray and load it at runtime with the SWFLoader. Here is the internal swf that I want to load: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Label id="rLabel" text="From InternalSWF"/> </mx:Application> The embeding swf loads it with t...

Coordinates in distorted grid

I have a grid in a 2D system like the one in the before image where all points A,B,C,D,A',B',C',D' are given (meaning I know the respective x- and y-coordinates). I need to calculate the x- and y-coordinates of A(new), B(new), C(new) and D(new) when the grid is distorted (so that A' is moved to A'(new), B' is moved to B'(new), C' is mov...

How to proprely remove a flash object from a HTML page.

Hi guys. I made a website using AJAX (with jquery) for the navigation. The pages of the site are sliding and I use remove() to destroy the old page. Every thing seems alright, but some times the browser crashes when he tries to remove the old page containing a Flash object. I suppose this is because Flash is still executing the Flash ...

Flash video plays well, but time and time-remaining are out of sync.

Hey guys, Could be a known issue, an issue with my code or an oversight on my part. I have created a video player in flash. I have got it playing progressive and streaming over rtmp/rtmpt so that is all fine. My only issue is that when the video's are playing, the time-codes for time played and time remaining are not synced. So, if m...

Action Script 3 / Flex builder 3 : How to make a diagram.

Hi, I want to make a diagram with either flash CS4 or flex builder 3, don't know with one would be the best for the job. More about the task: I want to send in values external to the swf file. The swf-file takes the vaules and makes a diagram of it using x and y values. Any advise or tips of where i can make this is much appreciated!...

Loading a symbol of type Graphic from library with Actionscript 3

Inside Flash, I have a symbol with type graphic in my library and I want to add it to stage using Actionscript 3. Is this possible? Flash does not let me set any Linkage Properties for Graphic symbols. How do I draw stuff in Flash and be able to create multiple instances of that stuff at run time without using MovieClip? Thanks. ...

delete XML node, keep original

I need to delete some nodes from an XML variable and I want to keep the original intact. So I pass the XML to a new variable and delete the nodes from that one but the original changes with it. Is there a way to protect the XML from the original variable? ...

FileReference.browse() stops playback on some Flash Players

We have an issue were the server session associated with a Flex client times out when the browse file dialog is open for a time longer then the configured session timeout. It seems that on some players, the playback is stopped when browse or download on a FileReference is executing. This also causes remote calls to be blocked and hence o...

Flash: Correctly handling click-and-drag outside the browser?

What's the correct way to detect, from Flash, when someone has started a drag within the browser (eg, a MOUSE_DOWN event), dragged the mouse outside the browser window, released the button, then moved the mouse back over the browser? For example (assuming StackOverflow was a Flash application): I've tried the "obvious" thing, checkin...

Not getting stage.stageWidth and stageHeight on Firefox 3.5

Here's a problem that I've been tried to figure out but still couldn't get the right method to fix it yet. I'm having issue regarding the display when using Firefox 3.5 on MAC, I can see my menu and the display is correct. The menu just position above what it supposed to be positioned. It works fine with Safari on MACOSX. My flash size ...

Pass easing function as variable in AS3

Hi, I've been looking for some time now.. Is is possible to pass easing function as variable in AS3? eg. TweenLite.to(mcDelimiter, resizeTween, { x:(stageWidthHalf-(initStageWidthHalf-mcDelimiteri_X)), ease:Elastic.easeOut } ); TweenLite.to(mcBody, resizeTween, { x:(stageWidthHalf-(initStageWidthHalf-mcBody_X)), ease:Elastic.easeOu...

Actionscript: How Can I Know When The Source Property Of An Image Is Completely Updated

var I:Image=new Image(); I.source='C:\\Abc.png'; var H:int=I.height; H is always Zero! I am presuming this is because the image hasn't finished reading the png file off the disk yet. What event can I monitor to know when it's width and height will have the right values? The 'Complete' event only seems to work for DOWNLOADED images. ...

flash as3, fade in/out layering problem

Ok, what im trying to do is make a day to night cycle behind my landscape. There is a sun and a moon, they rotate in a circle on opposite sides. (i.e. the sun is up when the moon is down and vice versa) when the sun is coming up it should fade from the night movieclip to the dawn movieclip, then when the sun is up a little bit more, fade...

Need help creating flash animation with clickable buttons at the end.

Very inexperienced with Flash, but I hope this is simple enough for someone to walk me through. I'm ultimately trying to create a flash page for an html website that has a brief five-second animation during which 3 buttons fade in (buttons then become clickable after the animation is over). The animation part is done. Right now, I am ...