flash

How does AMF communication work?

How does Flash communicate with services / scripts on servers via AMF? Regarding the AMF libraries for Python / Perl / PHP which are easier to develop than .NET / Java: do they execute script files, whenever Flash sends an Remote Procedure Call? or do they communicate via sockets, to script classes that are running as services? Rega...

What is WebORB for PHP?

What is the WebORB for PHP runtime environment? It supposedly connects Flex, Flash, AJAX and Silverlight clients with PHP classes and data from relational databases. It seems to support AMF (Flash<>PHP data exchange), is the entire product built around this? Does it use sockets? or is it just an AMF service? Does it run as a backgroun...

flash as3 - Can't have classes of the same name in different swfs?

Say I have 3 different swfs: dog.swf, cat.swf, mouse.swf, and each has their corresponding fla file. In the fla files I have movie clips like "head" and "tail", which are exported for Actionscript with names like Head and Tail, and each just contains an image. The problem comes when I have a main swf that loads and unloads these animal ...

Need to Emulate this style of Flash Carousel

Hey I need to emulate the Carousel at this site: EMC Website Is there any tutorials or already built free frameworks that can do this type of thing? The big need is to be able to have this database driven(or XML) and be able to have embedded links (like that site does) so that when they click on those links I can send the user to their...

Calling Flash functions from C# and vice versa

What's the proper way to communicate with Flash from C# when it's hosted in the ActiveX control? I see a CallFunction method which look promising to communicate with Flash but I'm having a hard time finding documentation about what the parameter data should look like. Also, what would the reverse look like; i.e. how could the Flash con...

What are the pros and cons of migrating an application from AS2 to AS3?

I have a client asking me "What are the pros and cons with upgrading from AS2/Flash to AS3/Flex?" He is having performance and maintainability issues with his app. I sorta hate these questions because I just want to say "AS3/Flex is going to be faster and more maintainable," but I know I should be more specific than that. The applicat...

Flash / Flex crossdomain.xml help...

I am trying to figure out how to properly setup my crossdomain file. Here is what I have so far: <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"&gt; <cross-domain-policy> <site-control permitted-cross-domain-policies="all" /> <allow-access-from domain="cont...

Flash Font embedding problem

I am facing a wired problem with a project. I am embedding Arial font as project is multi-lingual. If I build this project on one of my development machine, Font gets embedded successfully but in any of other machine, project successfully gets published without any warning but font just dont get embedded in SWF. Note : Project code base...

How to stick position of one Sprite to another?

I have the following code: if (i==0) sprites[i].y = 0; else sprites[i].y = sprites[i-1].y + sprites[i-1].height; Every Sprite can have a different height. Height of a Sprite can change on user action. When the height of some Sprite changes, I would like to update the position of other sprites accordingly. I am looking for an obj...

Take snapshots of flash videos.

How do I link to snapshots of embedded flash videos instead of the actual flash videos to reduce loading times of a site? ...

Render TIFF image in Flex?

I have TIFF images in the database, and I need to render them in Flex. Please consider server-side conversion options as falling outside the scope of this question. Client-side conversion options interest me, if anyone has anything. ...

Remote Shared Objects: Which is better, one array SO or multiple object SOs?

Hello everyone, I'm building a multiplayer game using Flash/Flex for the client and FluorineFX (just like FCS/FMS except it is written in .NET) on the server-side. My questions are regarding the use and performance of shared objects over RTMP protocol. Essentially, I'm planning on having quite a few objects on screen simultaneously, ea...

How to save a snapshot of a SWF to the server with AS3?

I am facing the task of having to upload a snapshot to the server. But I don't want the user to download the image to their computer. I have explored a few solutions of generating an image serverside with PHP, but they all seem to use a method where the server sends the image to the user. See for instance: http://mattkenefick.com/blo...

Different flash Tab-Focus behavior in Firefox and Internet Explorer (Solved)

In a minigame that is part of a larger flash game we show a number of editable textfields, about 10 rows with two textfields per row. Every row of two textfields is encapsulated in a class, and objects of that type are placed under each other so that it looks like some sort of table. Now on Firefox the tab behavior is fine, after manual...

MouseDown/MouseMove/Click Issues with Flex Drag and Drop

In Flex 3, I have an ItemRenderer that has a button in it. I want users to be able to click and drag this Renderer, but also just click the button. Right now it's working with the Renderer listening on "MouseMove" to initiate drag and drop, and the button listening on "click". However this is very screwy. If somebody is dragging a scro...

Get object under mouse

Is there a way to get the current object(s) under the mouse? There's a function called getObjectsUnderPoint() on AS3, but I need to know if AS2 provides a similar functionality. In case it doesn't, anyone has a good implementation of what I am trying to achieve? Migrating to AS3 is not an option. Thanks! ...

How to track flash / video content usage?

I have a few YT videos embedded on the pages of my site. Is there any way (say, via Javascript/DOM) I can track the following: How much % (bytes, duration, etc) of the video content got transferred to the user's browser? (The red progress bar in YT videos, for example.) How much % (bytes, duration, etc) actually got played (watched by ...

http post with flash ?

when using http post with flash that send ip address request from client computer or server? Useful Link ( i add it because when using Google Search with"http post with flash" its first page ) http://www.shinedraw.com/data-handling/flash-vs-silverlight-simple-http-post-request/ example var sender = new LoadVars(); sender.x = "xx...

How can i see what variables are sent from flash to a php script?

Hello i was wandering how i could see what variables my flash sends to my php sccript. Is that possible? Maybe an extension or something else? i don`t know if my flash is sending any variables. My problem is that i have a flash wich i can`t change and i the flash has a form. in that form the variables are sent to a php script.. we had t...

How to disable and re-enable MouseEvents; buttonMode, mouseChildren and enable don't work

Basically the question could more probably be more accurately asked, how do I simply disable a button and then re-enable it? I've tried setting buttonMode to false, mouseChildren to false and enabled to false. Nothing works. I realize I could just remove the event listeners, but surely there is a more elegant and efficient way. As removi...