apache-flex

rso between flex and red5. I can create but cant read

落爺英雄遲暮 提交于 2019-12-12 01:46:30
问题 so im still stuck on this that i can create remote shared object but cant read while im notified about changes. im using trunk version of red5, and flex 4.0 with flash builder. in debug i can see that changeLog has name of the changed value of rso, but object itself has undefined value. Currently im working on local windows machine, but tried everything on ubuntu server 10.04 and got the same results. i can connect to the room, create a shared object and all client are notified about that,

flash.net.URLRequest call stays in pending

前提是你 提交于 2019-12-12 01:39:53
问题 I've got this flash/flex application and issue with URLRequest call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. Sometimes it works, but sometimes call is never finished - stays in pending . I'm using latest flash player and different browsers. On my computer I can replicate issue using chrome and colleague can replicate on firefox. I've looked at flash player log files and there's nothing

Flex and Salesforce connection: NOT ABLE TO login from flex to salesforce

拥有回忆 提交于 2019-12-12 01:39:12
问题 I am trying to log in from flex to salesforce, but I get security error accessing url . <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:salesforce="http://www.salesforce.com/" layout="absolute" width="500" height="300" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]" applicationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.collections.ArrayCollection; import com.salesforce

Adobe Air: why SQLStatement's getResult().data is null?

爱⌒轻易说出口 提交于 2019-12-12 01:38:54
问题 Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken) as an example, and there is one part of codes that does not work: private function resault(e:SQLEvent):void { // with sqls.getResault().data we get the array of objects for each row out of our database var data:Array = sqls.getResult().data; // we pass the array of objects to our data provider to fill the datagrid dp = new ArrayCollection(data); } Checking the program

create arraycollection with different name

拟墨画扇 提交于 2019-12-12 01:36:34
问题 I would like to create a new AC instance with a dynamic variable which is nca1, nca2, etc. Without define using hardcode variable name, it is possible to do that in a loop? 回答1: I'm afraid you are missing the point here, getDefinitionByName gives you a class instance, you cannot create a variable with a dynamic name this way. This is how you create an instance per reflection: var symbolClass: Class; var s: ArrayCollection; symbolClass = getDefinitionByName("mx.collections.ArrayCollection") as

URLRequestDefaults.setLoginCredentialsForHost not setting the user & pwd in authorization header

二次信任 提交于 2019-12-12 01:34:24
问题 I want to access html files which are protected by basic authentication. I am trying to load this html page using htmlloader and sending the request by urlRequest. I am using URLRequestDefaults class to set the credentials but when I see the request being send in the fiddler I don't see any authorization header being set by this. Am I doing something wrong here. My code is below. URLRequestDefaults.authenticate = false; URLRequestDefaults.setLoginCredentialsForHost("www.xyz.com", "madhur",

Reading data from XML file in flex

浪尽此生 提交于 2019-12-12 01:33:39
问题 How to read data from XML file in flex? 回答1: Check out the HTTPService example in Tour de Flex. 回答2: Use URLLoader var ldr:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest("file.xml"); ldr.addEventListener(Event.COMPLETE, onLoad); ldr.load(request); private function onLoad(e:Event):void { var ldr:URLLoader = URLLoader(e.target); trace(ldr.data);//traces the string content of file var myxml:XML = new XML(ldr.data); trace(myxml.toXMLString()); } 回答3: You can load the xml

When I run my Flex app, a different, older version is run?

↘锁芯ラ 提交于 2019-12-12 01:32:41
问题 When I hit the run button in Flash Builder 4, an older version of my app is being run. I can't for the life of me work out why this is happening. Can anyone help? Thanks. 回答1: I find it is very common for me to run into this problem if I change code and compile an app while an active debugging session is running. So, be sure to always stop all debugging sessions before recompiling the app--it will happen every time you save if you have "Build automatically" selected. IF the app won't change.

Adobe Flex fails on unicode / foreign input in Linux

自古美人都是妖i 提交于 2019-12-12 01:32:10
问题 I was learning flex for a few days now and suddenly noticed that input of unicode / foreign characters on Linux into TextInput , TextArea or RichTextEditor gives you unreadable text composed of several characters (seems like utf-8 is making things bad). On the other hand, output is flawless. I was trying hard to find anything for the same issue on the internet, but only this old blog entry could be seen. Author produced temporary solution but it is not sufficient. So if Windows allows unicode

AS3 Pass Custom Event Data Question

点点圈 提交于 2019-12-12 01:29:55
问题 I am trying to pass custom event data from 1 class to another class...here is my codes.. a.as private function onClick(event:MouseEvent):void{ dispatchEvent(new YouTubeSearchEvent(YouTubeSearchEvent.CHANGE_VIDEO_READY, videoId)); } b.as private var newVideoID:String; public function get selectedVideoID():String{ return newVideoID; } private function buildSingleCont(videoResult:Array):void{ tn=new a(); addChild(tn); tn.addEventListener(YouTubeSearchEvent.CHANGE_VIDEO_READY, getNewVideoID); }