flex4

Security Sandbox Issues with Flex/AS3 and AppEngine

I'm having trouble with an AS3 AMF RemoteObject request that is hosted on App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint. Here are the contents of the root crossdomain.xml: <?xml version="1.0"?> <cross-domain-policy> <site-control permitted-cross-domain-policies ="all"/> ...

external swf control flex applicaton?

I have a flex application that loads an external swf file. I created the external swf file using flash cs4 so I can add code to it if that is what it takes. Here is the code I use to load my external swf: //add button swf var request:URLRequest = new URLRequest("http://www.yadayada.com/media/but_button.swf"); var loader3:Loader = new L...

flex 4: mx/fx/s object types. any information about the structure?

Hi. flex4 provides the following namespaces: xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" what's the difference? which namespace provide which function? where can i find info about that? ...

flex 4: item renderer with data provider from soap: cannot convert ir@194e5851 to mx.controls.listClasses.IListItemRenderer.

hi. i'm trying to populate a <mx:List> with a dataProvider that i received from a soap request. i get the following error when i try to achieve this: TypeError: Error #1034: Type Coercion failed: cannot convert AchivementsItemRenderer@1906a851 to mx.controls.listClasses.IListItemRenderer. at mx.controls::List/createItemRenderer()[E:...

flex 4: skinning toggle button with images.

Hello. I'm trying to skin a button with images. i added the following css code: .muteVolumeButton { upSkin: Embed(source='images/sound-mute.gif'); overSkin:Embed(source='images/sound-hover.gif'); downSkin: Embed(source='images/sound-on.gif'); disabledSkin: Embed(source='images/sound-mute.gif'); } when the button is c...

Flex: MX + Sparks vs. MX-only components

I'm playing with the video components of Flex. When starting a new project, I was able to choose between (MX only) and (MX + Sparks). When I set the project to (MX + Sparks), the only video component I find is called s:VideoPlayer and it comes skinned. When I start the project as (MX only), the only video component I find is mx:VideoDisp...

flex4: fetch events from loaded swf using swfloader

Hi. I have a master swf that loads a child swf using SWFLoader class. the child swf is connecting to adobe flash media server using NetConnection class. using the parent swf i want to to display status regarding the connection. how can i do that ? ...

flex4: loading flex4 swf using swfloader shows only the loading bar

Hi. I try to load an swf in my flex 4 project using the following line of code: <mx:SWFLoader id="game_swf" source="demo.swf" complete="init()" /> the demo.swf file is another project i created using flex 4. the problem is that when i run the application i see only the loading bar of the demo.swf flash file and nothing else. if i t...

Showing Large PNG image in an Adobe Air application

I've got a bare minimum Adobe Air application; it's basically a s:SkinnableContainer inside a mx:WindowedApplication. I have a 6000 x 9000 pixel PNG image (~3.20MB) that I want to show in the SkinnableContainer. Note that the s:SkinnableContainer is a tag from Flex 4 Beta3 (spark components). Background Before I explain the problem, a ...

When it is time to reset dirty flag "invalidatePropertiesFlag" in Flex invalidation framework?

Hi all, Let's refer to the listing of the method "validateProperties" from mx.core.UIComponent class from Flex 3 (Flex 4) SDK public function validateProperties():void { if (invalidatePropertiesFlag) { commitProperties(); invalidatePropertiesFlag = false; } } My question is: Why dirty flag invalidatePro...

Using an external css in Flex 4

I'm using the Flex 4 beta and the ability to load an external css seems to be broken. Running the code below shows no styling at all. Have I missed something? Here's the code: package components { import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; import flash.text.StyleSheet; import ...

Flex 4 app behind proxy server w/auth fails to call webservice when launched from IE (firefox ok)

I have Flex 4 app which is deployed in internet. Just as an intro, when i'm behind our corporate proxy server, IE and firefox asks for username and password when accessing external websites. WHEN BEHIND PROXY In IE (i tested only in 8) Flex app starts fine, but it fails to invoke webservice - CallResponded result or fault event doesn...

Flex 4 - Programmatically set a button click handler function to null

I am looking for a way to programmatically dissassoicate the click handler function from a button on my mxml component through actionscript code. Something like what older actionscript let you do, mybutton.click = null; Thanks in advance ...

Why is the compiler complaining about a possibly undefined property

Hello, I have a very simple practice program for Flex 4 ( Gumbo ). package { import mx.controls.ColorPicker; import mx.controls.Label; import mx.events.ColorPickerEvent; import flash.display.Sprite; public class testClass extends Sprite { private var cPicker:ColorPicker = new ColorPicker(); privat...

Load an external swf file into SpriteVisualElement always return the same DisplayObject

code looks like: <fx:Script> <![CDATA[ private var role:DisplayObject; protected function btnAdd_clickHandler(event:MouseEvent):void { for(var i:int=0;i<10;i++){ var dis:DisplayObject = this.main.addChild(this.role); dis.x = i+10; dis.y = 400; ...

adobe flash buider (flex4): addChild() is not available in this class.

Hi. I want to be able to load an swf into a flex 4 application in order to use it's classes. var ldr:Loader=new Loader(); ldr.load(new URLRequest("file://path/to/fileswf")); ldr.contentLoaderInfo. addEventListener(Event.INIT, loaded); function loaded(evt:Event):void { addChild(ldr); } i receive the error: Error: addChild() is not a...

Migrating from Flex 3.2 to 4.0

Hi, I have an app built in flex 3.2, and would like to start using some spark components within that same app. Are there any pitfalls to look out for. Is it possible to use the old 3.2 components in the same app or Will I have to rebuild them. Would like to get the heads up from anyone that has done the same, before I make the plunge. ...

How to debug pending/hanging webservices in Flex 4 with Flash Builder 4?

Sometimes (too often...) some webservices "hang". I can see the clock cursor in my app and the network monitor of FB2 shows the webservice as "pending". After waiting a long time, the status changes to "OK" and the clock cursor disappears. How can I find out why a webservice takes sometimes minutes while it usually takes not even a secon...

flex 4 status ( use as beta? )

Hi All My company is considering upgrading to flex 4 ( mainly to use the richtextlayout ) I would like to know from your experiance what is the status of the product ( how far is it from official release ) and do you recomend using it now or wait till its complete its beta stage Thanks ...

Flex4 List item double click event

Hi, I'm working with a custom List component in flex4. I've created a custom ItemRenderer and everything looks and works as i want, but i'm trying to get the double click event. I'm receiving key down and all other events, but not this one. I've enabled the double click on the List component doubleClickEnabled="true" and i've added ...