flex

Flex: application hangs on "Loading..."

I've got a Flex application that loads without issue when offline, but once I embed it in a webpage it hangs on “Loading…”: I've tried fiddling with the -use-network compile flag to no avail. I've also watched the network traffic with Charles, and I see two requests for the SWF (ie, GET /foo.swf), both of which complete successfully...

[AS3] how to make FlexMDI resize it's child when the window is resized?

i use the addChild(myChild) on a window. but when this window resizes i want to make the myChild width and height to fit the window. how do I do this? thanks ;) ...

auto movable gallery in flex

hi, i have to develop one image gallery in flex, this is how it looks, wht i have to do, is to make it run, like it keeps running, from left to right,(the items shown here should move from left to right) i am using repeater in an hbox, can u help me by telling, how to make it movable? Thanx in advance ...

How to implement effects in Flex on components creation or removal

I have multiple MXML custom components that I add on the fly (using a repeater) that is binded to an ArrayCollection. So everytime I add/remove item from the ArrayColleciton new items show/disappear from the screen. Is there a straightforward way to make item fade in when they get created and fade out when they are removed? I thought of...

What is Flex good practice to change another component's state?

I currently use: Flexglobals.toplevelapplication.component1.compnent2.currentState = 'something'; is there a better way of doing do? Can I bind the state of a components to variable in my model? ...

Jetty or Tomcat with Non-blocking IO (servlet 3.0)

I need a point to start from. I read from Yakov Fain about a performance break through with jetty and blazeds. I realized that we already have some trouble with about 1200 concurrent users, some consumers dont get messages and cpu is under heavy fire. Did somebody already tried this Nio with BlazeDS? Did this work with Tomcat too? Whe...

Talking to a usb device when RIA app is installed locally - easier in silverlight or flex ?

I'm creating a program that needs to communicate with a usb device when installed on the desktop, but doesn't need to access the device when running in the browser. Hopefully this would remove the need for doing any browser-dependent extensions/hacks to work. Would silverlight 4 let me call a native process to do this (presumably via CO...

Warnings in FileReference - can not find the cause

I'm trying to make a loader of a few photos (use FileReference). I get the warnings, but I do not know the reason for their appearance. warning: unable to bind to property 'fr' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'name' on class 'flash.net::FileReference' warning: unable to bind to pr...

[AS3] FlexMDI & RobotLegs: How to use multiple context, that can run independentely and sometimes shares the same view?

Hy! What I really need is to make a mainContext and within add other contexts that are kind of other applications. The main context has a MDICanvas where all the windows are added, but the problem is that some windows comes from different context. The next problem is that I want that windowX only listens to contextX: Example: mainCont...

What should .NET programmer learn in Java/Flex world (equivalents to ASP.MVC2, MEF, Prism, IoC and DI frameworks

I'd like to play with Java/Flx and build RIA with Java as backend and Flex as frontend and if it would be necessary mayby some website (i don't know which framework right now, probably Spring + some Jquery) But at the begining i'd like to know which technologies should i use. Now i'm ASP.NET (MVC2) + WPF and a bit Silverlight programmer...

get the event when the loaded movieclip is ready in the right frame

Hi, i'm developing an app that use swf to load elements and add properties to the loaded swf. I use SWFLoader to load the movie and on the COMPLETE event i move the loaded MovieClip to a specific frame and then list its DisplayList. I've discovered that if i traverse the list soon it's note loaded. Maybe it's cleaner with code: loader....

Flex app cannot download images from other servers.

in my flex application: <mx:Image id="imgItem" source="http://notMySyte.com/1.jpg"/&gt; when i run my app, I catch this error: SecurityError: Error #2123: Security sandbox violation: Loader.content: http://mySite.com/2/BusFlex/BusProducts.swf/[[DYNAMIC]]/2 cannot access http://cs9621.notMySite.com/u7397474/c_b51d9fe6.jpg. A policy f...

Is there a way to access the remote IP of a RTMFP p2p stream?

I'm writing a communication system, using Actionscript 3 and C#. Flash is used to communicate with RTMP server and stream video and audio using RTMFP p2p, but the actual client logic is handled in C#. What I want to be able to do, is allow users to share files between each other also using a direct p2p connection. I have got the RTMFP ...

Flex How To Call A Function With A Variable Number Of Parameters?

Let's Say I Have This Class: package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace(getAverage(1,2,3)); trace(getAverage(1,2,3,4)); trace(getAverage(1,2,3,4,5)); } public function getAverage (...numbers) { var total = 0; for (var i = 0; i ...

Is GZip compression worthwhile with AMF

We've got a Flex/Java application using BlazeDS and we're investigating reducing the size of the payloads being passed between our server and the client. Since AMF is a binary format and supposed to be fairly compact, is there any benefit to turning on GZip compression? Has anyone else done this before and did you see any significant ga...

Melt: generated mp4 is not playing properly in flash player

I created an mp4 using the melt command line player by mixing two videos. Following is the melt command used for the generation melt -blank 0 avformat:/var/www/html/myscenario/app/web/files/videos/1l_926.flv in=0 out=540 -track -blank 300 avformat:/var/www/html/myscenario/app/web/files/videos/1h_376.mp4 in=300 out=900 -consumer avformat...

opening PDF using Flex in a web application

Is there a way to open a PDF file whixh exists on some server using flex in a web application? ...

stickman animation in flex

I am trying to build a stickman in Flex who will a) move across the screen with speed- based on slider value b) do something different (jump/ sit down) when he reaches end of screen I presume will need to switch between 3-4 images to simulate illusion of movement with parts of body moving. would this approach be right? Are there any si...

Flex DataGrid: Change value based on another value?

Hi! I have a DataGrid in Flex, with one column a checkbox and another a numeric value. When the checkbox is clicked, the numeric value should change, either to 0 if the checkbox is unselected, or to a pre-defined minimum value if the checkbox is selected. Here is the code I have: <mx:DataGrid x="0" y="45" width="272" height="525" dataP...

Custom cursor in AIR app doesn't show up completely

Hi, For the application that I am developing in AIR, I have removed the chrome through the app.xml. I am managing the features of minimizing, maximizing, close, resize and all other functions from within the application. I am facing a problem with resize feature. I have defined the grips for resizing and also I am able to display my cus...