flash

Using the 4x4 Matrix3D from flash10 for non-affine 2D transforms

Hi! I've been having a very tiresome time when using flash10's Matrix3D class for 2D non-affine transformations. Basically, I have a square in a sprite and four points that form a quadrilateral, and I want to apply a transformation to the sprite to make those points the vertices of the sprite. There wouldn't be much problem solving thi...

Flex + buffer + live stream via RTMP = disaster

Can't get any love anywhere on this and it's pretty hard to believe. Live streaming and a buffer on a NetStream do not mix. Why? The docs don't say you can't do this. The playback gets hosed. Buffer is supposed to fill to what you set it to before playing. Instead though, about half the time, the player starts playing right away an...

ActionScript -- How do u make sth move somewhere and move back?

Using Tween class maybe? I tried the easeOut. But if will write 2 Tween, the 2nd one will overwrite the 1st one, so I only see the obj moving in the 2nd Tween direction, not the 1st Tween direction. I know the coordinates for the 2nd Tween below is not correct (cos all coordinates shld follow the defined reference point), so I need to f...

Flash/uploadify filereference.upload not working, unknown reason

I've been using the uploadify jquery for a long time - this tool has been working on several different servers for quite a while. Recently, on rackspace cloud sites accounts, the uploads stopped working. There's been no change to our code and our code works perfectly on other servers. I'm having trouble finding the issue, here's what ha...

AS3 not accepting constructor

Ok, I have raise these question a thousand times and so far no ones been able to help me. I am raising again because I discovered something new. In the past I haven't been able to create parameters for class objects, every time when I do so I get the following error 1136: Incorrect number of arguments. Expected 0. I notice that my cl...

Create Google Earth zoom in

Is there any way to create a zoom in to a location like Google Earth for a site??? I think, I can do this with a slide show in Flash or jQuery, but I would like to know if there is a better alternative way! Thanks ...

slowly rotate an object towards another object

I have an object that points in the direction of another object (i.e. it rotates to the direction that the second objects x and y coordinates are at) below is the code I use. var distx = target.x - x; var disty = target.y - y; var angle:Number = Math.atan2(disty, distx); var vx:Number = Math.cos(angle) * cspeed; var vy:Number = Math....

In ActionScript, fill stage with external SWF

EDIT: I have since solved this problem by simply reworking my MXML-based app and using the SWFLoader component to get the desired effect, without any reloading necessary. This question is therefore no longer an issue for me, but I leave it open for reference. In MXML, I can get the desired effect easily: <?xml version="1.0" encoding=...

Getting 2D screen coordinates of a 3D object in Papervision 2.0

How do I get the 2D screen coordinates of a 3D object when using Papervision 2.0 (Great White)? I've read that following properties should return the screen coords but these always return 0. myDisplayObject3D.screen.x myDisplayObject3D.screen.y I've also tried setting: myDisplayObject3D.autoCalcScreenCoords = true; But this has no ...

How to link library symbols in Flash CS4 to base classes from an external .swc (rsl)?

Hi all, This question stems from this question that I asked yesterday. I've followed Theo's advice and created a .swc with all the common classes and added the .swc as an external library to my module .swf. This all seems to have worked smoothly--I don't get TypeErrors and my classes are all present in the catalog.xml of the .swc file w...

outputting an array of links, with no overlapping!

When outputting links dynamically, I cannot determine the Y-Pos dynamically. It will work find if my links are single lined. link_txt.y = i*20; this will only work if the links are Single Lined. assuming they are 15px for height + 5 for spacing. As soon as they are 2 lines, they overlap. I've tried different methods but unable to figu...

How can I accurately draw my rotated bitmap?

Hi - I have a container with masked bitmap in it. The scale and rotation of this container changes at runtime, and I need to draw the masked bitmap but cannot figure out the appropriate matrix calculations to do so. My code works correctly to reflect position, scale, offset for centering without rotation. When rotated, the angle is cor...

Edit Text in SWF File

I am wondering the capabilities of the SWF Format. I have some text in a Flash Video, which is an email address ([email protected]) which I would like to write a C# application to edit. I have the SWF File Format Spec and was wondering if the following is possible: If I read in the Tag (I am assuming this text is stored as a Static Te...

FMS client freeze when closing/refreshing client browser

Am working on a as3 video player and its playing everything ok. But when ever its getting refreshed from client browser its just freezed the browser. how to solve this? And some times it gives security alerts also. I dont want to make thoze alerts to users. how to solve it. ...

How to embed flash into XNA on windows mobile

Can I embed flash in XNA? how? Can I get data(flash game result) from the embedded flash? Thanks. http://en.wikipedia.org/wiki/Microsoft_XNA http://www.xnadevelopment.com/tutorials.shtml http://www.code-magazine.com/article.aspx?quickid=0709051&amp;page=7 ...

Efficiency of embedding flash assets in flex actionscript project

I'm creating a project in flex builder but it's not using the flex framework, it's just pure actionscript. At the moment I have some bitmap resources embedded for drawing things, but I'd like a little animation and thought I could create swf animations for them in flash and use the [Embed()] thing to embed them in the actionscript proje...

Flash Buider project can't listen the event in a Flash CS4 project

I am developing a project in Flash Builder which will load a file built by Flash CS4. The code in Flash CS4 is below, it's a doc class. I am sure the dispatchEvent has been invoked: package { import flash.display.MovieClip; import flash.events.Event; public class flashcs extends MovieClip { public function flashcs():void { ...

"Minimize the Flash movie size by limiting the glyphs embedded in the movie" in sIFR3 to improve rendering speed

What does this mean? "Minimize the Flash movie size by limiting the glyphs embedded in the movie" in sIFR3 to improve rendering speed What is the meaning of "limiting the glyphs embedded in the movie"? ...

Is it possible to debug flash cs4 project inside flash builder?

I am debugging both a flash cs4 project and a flash builder project, actually the flash builder project will load the flash cs4 project thru swfloader, but the system can only support one debugger at a time. So I am seeking a method to debug it simultaneously... ...

Implemeting a full interaction between FMS and Webserver?

Hi I'm working on project that includes technologies like: ASP.NET, FMS 3.5, SQL Server 2008 ... At some point I found it easy to send information from FMS to Web server using web service, where FMS Server can invoke webservice hosted on ASP.NET site. but I had a problem to do the opposite, I need to make the website (ASP.NET page) to in...