flash

Popup dialog box manager using PureMVC

I am developing a a game in Flash using the PureMVC framework. From time to time I need to show dialog pop-up window to get a user response back (e.g. "Cancel", "OK" and other kinds of asynchronous user feedback) while "locking" the background for interactivity. I need some management for my pop-ups: all pop-up notifications should be s...

Connect to Java Server problem

I have written an ActionScript client program that tries to connect to a local java server that listens on port 8787. The code is the following: import flash.display.*; import flash.events.*; import flash.net.Socket; import flash.system.Security; public class Main extends Sprite { // Properties private var socket:Socket; ...

Jquery calendar overlapped by flash....

I use a jquery calendar and a flash in the same page.. What happens is my jquery calendar is overlapped by my flash... Any suggestion to make it display above flash... Look at the image and see my calendar Fr,sat are invisible because of flash... EDIT: This is what i used, <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ...

What's the timeout on URLLoader.load connection?

Is there a timeout on the connection made by URLLoader.load? If there is, what's its value, where is it documented and can it be changed? Also, what event (if any) gets dispatched if the timeout occurs? Is there a difference between AIR and browser application in those regard? ...

How do you dynamically load different streaming F4V files into one SWF player?

Hi. I need to figure out how to utilize one SWF player/file to load different streaming F4V files dynamically. As it stands now, I have: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="500" height="314" id="something" ali...

Text-based one-on-one chat with Flash interface: what to power the backend?

Hey guys. I'm building a website where I hook people up so that they can anonymously vent to strangers. You either choose to be a listener, or a talker, and then you get catapulted into a one-on-one chat room. The reason for the app's construction is because you often can't vent to friends, because your deepest vulnerabilities can oft...

Clicks on a Flash / Silverlight object under a HTML overlay

Hi, is it possible to let clicks on a HTML element that's overlaying a Flash or Silverlight object bubble through to the Flash / Silverlight object? I've been experimenting with this, but i can't figure out if it is even possible because of possible security restrictions to prevent clickjacking. I don't have access to the source code to...

Silverlight P2P App (In Browser) - Will we get RTMFP?

Ok so from all my research I'm fairly positive P2P is not possible in Silverlight 4 (in browser). Flash can do P2P using Stratus/RTMFP which I believe uses UDP hole punching and a Stratus server to help initialize the connection. Is there any plans for Microsoft to add some kind of p2p rendezvous service in the future? Can we get a de...

Use Network Services for FDT

Hi everybody, I've recently started using FDT, for a while I was using FlashDevelop, it had a really handy feature in Compiler options where you can set UseNetworkServices to false which would stop the compiled swf from connecting to the internet and became very useful for running standalone flash apps without security warnings when load...

Retrieving/simulating run-time "layer" functionality in Flash under ActionScript 3.

Are there any AS3 classes to help arrange objects into layers, like in the designer, such that the objects all have the same parent? Obviously, I can use container clips to simulate layers, but I specifically want this kind of functionality for objects that have the same parent. My understanding is that the design-time notion of layers...

how to avoid the error due to missing element from an XML file in Flash Action Script

Hi, I have a code which is written for read the xml data. and the xml file contains the optional values, so some time the elements are present there some times not. In this case how can i set a default value for that in action script 3.0. When i tried to trace the value that area is skipping. So is there any other method to trace-out ...

uiscrollbar name through textfield

I am adding a TextField and a uiscrollbar that goes with it dynamically. And since the end user can add / remove text, and re-size the textfield I want the scrollbar to update. So how do I keep track of scrollbars? For example, it would be really useful if I can just click on a textfield and it will tell me what scrollbar it is linked t...

Preloading a .swf from multiple sources

Hi, i have a rather big (34 MB) Flash CS4 AS3 swf being loaded as a whole into a preloader like l.load(new URLRequest("sample.swf")); What are my options to minimize loading time? Can i split the swf and load from several servers? I'm dynamically loading images from the library: var myBitmapDataObject:myBitmapData = new myBitmapDat...

jquery flash object show hide

i am trying to show/hide a flash object based on click of button, but the code is not working //to hide $('object').css({visibility: 'hidden'}); //to show $('object').css({visibility: 'visible'}); i dont want to use .show() and .hide() as they will also remove the area of flash content. ...

Filtering data in an array.

Hi all, I have an array that has 30 date objects. The date objects are indexed in the array from the minimum date value to the maximum date value. What I would like to do is retrieve only 7 dates from the array. Out of the 7, the first one should be the minDate and the last should be the maxDate, with 5 dates in the middle. The 7 number...

Flash/Flex: Is it possible to encode Dictionary using AMF?

As the title suggests, is it possible to use AMF to encode/decode Dictionaries (without subclassing, that is)? For example, here's a test case: function serializeAndReload(obj:*):* { var serialized:ByteArray = new ByteArray(); serialized.writeObject(obj); serialized.position = 0; return serialized.readObject(); } funct...

navigateToURL with GET parameters in local SWF

I'm running a Flex application locally (local-with-filesystem or local-trusted), and I'm trying to call navigateToURL to a local page using GET parameters. Flash Player in Internet Explorer seems to be ignoring the parameters when opening the local page, though. The same code works as I expect in Firefox, so I'm not sure whether it's ...

Resizing FileReference image then reuploading, only reuploads original image.

I can;t figure out how to do this. Someone selects and image after calling FileReference.browse(). I take that image and make a thumbnail in flash. Then I upload that image like so: var newFileReq:URLRequest = new URLRequest(FILE_UPLOAD_TEMP); newFileReq.contentType = "application/octet-stream"; var fileReqVars:URLVariables = new UR...

How do I emulate Photoshop CS4 Smooth Font Rendering in Flash?

Any ideas about how to emulate Smooth font rendering option from Photoshop in Flash/Flex? I've tried different settings for advanced rendering (antiAliasType, gridFitType and friends) but not much luck so far. Any ideas?.. ...

How do I ensure that SOAP requests from a flash client to my ASP server are coming from the flash client?

I have a flash based game that has a high score system implemented with a SOAP service. There are prizes involved and I want to prevent someone from using FireBug or similar to discover the webservice path and submit fake scores. I considered using some kind of encryption on the data but am aware that someone could decompile the swf and...