apache-flex

How to create DialogBox in blackberry tabOS & how call next screen after click on button using Adobe flex4.5?

六月ゝ 毕业季﹏ 提交于 2020-01-06 08:14:21
问题 i am new to Blackberry application development. now i am trying to make new app using adobe flex4.5 for Blackberry TabOS.. can anyone please guide How to create dialog box and how to call another screen by clicking on button????can anyone give sample code for the same...? i am trying this code: private function showLoginDialog():void { login = new LoginDialog(); login.title = "Device is locked"; login.message = "Please enter your username and password:"; login.addButton("OK"); login.addButton

Call an Adobe Flex/ActionScript method from JavaScript?

做~自己de王妃 提交于 2020-01-06 08:04:08
问题 I need to know why JavaScript can't talk back to Flex. I have a project that is going to use JavaScript to play a given video file. Its running on a custom MVC framework where asset files are loaded via the /static prefix. Example : http://helloworld/static/swf/movie.swf` I compile my Flex application using the mxmlc binary with options -static-link-runtime-shared-libraries=true , -use-network=true and --debug=true . Flex <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http:/

how to access all item renderer of MX: Tree in?

余生长醉 提交于 2020-01-06 07:24:45
问题 my renderer contains a canvas in it, i add some title-window, every time i see my tree previously added Title-Windows are visible, i want to access each n every item in tree and remove previosly added all windows from the rendere. so can any tell me how access all the item renderer in AS3 ? 回答1: if tree having id for example " id_tree " is using XML dataprovidor then by useing the for each(var tmp:xml in rootTag.descendants()) { id_tree.itemToItemRenderer(tmp); } 来源: https://stackoverflow.com

how to access all item renderer of MX: Tree in?

耗尽温柔 提交于 2020-01-06 07:23:25
问题 my renderer contains a canvas in it, i add some title-window, every time i see my tree previously added Title-Windows are visible, i want to access each n every item in tree and remove previosly added all windows from the rendere. so can any tell me how access all the item renderer in AS3 ? 回答1: if tree having id for example " id_tree " is using XML dataprovidor then by useing the for each(var tmp:xml in rootTag.descendants()) { id_tree.itemToItemRenderer(tmp); } 来源: https://stackoverflow.com

Flex/Flash 4 ExternalInterface.call - trying to get a string from HTML to Actionscript

让人想犯罪 __ 提交于 2020-01-06 07:20:14
问题 I need to obtain a string from HTML and put it into Actionscript. the actionscript: import flash.external.ExternalInterface; protected function getUserName():void{ var isAvailable:Boolean = ExternalInterface.available; var findUserName:String = "findUserName"; if(isAvailable){ var foundUserName:String = ExternalInterface.call(findUserName).toString(); Alert.show(foundUserName);}} the javascript: function findUserName() { var label = document.getElementById("username-label"); if(label.value !=

ItemRenderer Vs ItemEditor

我怕爱的太早我们不能终老 提交于 2020-01-06 06:16:10
问题 What is the Difference between ItemRenderer and ItemEditor? And When ItemRenderer is initializing and loading? Regards, Ravi 回答1: ItemRenderer is for configuring how something will look in a list control (i.e. a Picture + text might be a use case for an ItemRenderer). Thus "Render", how it will display (read-only). ItemEditor is used when you want to override how the user might change the value in the list (assuming that you've set all the requisite editable properties on the controls in

How to check the state of a Radio Button in Flex 3?

▼魔方 西西 提交于 2020-01-06 05:48:07
问题 I'm working on a template for dynamic questionnaires in Flex. More detailed description in my previous thread HERE To create the questionnaire, I use nested repeaters - one for the questions and one for the answers (as their amount may vary). <mx:Repeater id="r" dataProvider="{questions}"> <mx:Label text="{r.currentItem.question}" width="200"/> <mx:Repeater id="r2" dataProvider="{r.currentItem.answers}"> <mx:RadioButton label="{r2.currentItem.text}" width="200" click="answerHandler(event,

Mobile App Using Remote Web Server

天大地大妈咪最大 提交于 2020-01-06 05:47:35
问题 I must say that I am reaching the end of my tether with Flash Builder and Flex. Firstly, I have built this wonderful app that I want to start using but it is data driven meaning that when I built it, I created it on my localhost. The PHP scripts were generated from Flash Builder and I have edited them to make them more secure. I have all my services working 100% and I have this brilliant app, but I can only run it on localhost. I have done everything necessary and installed Zend Framework on

Drag and drop item renderer(panel) within list

徘徊边缘 提交于 2020-01-06 05:40:07
问题 I have a spark List,its item renderer is a panel,and in the panel there are some components such as Textinput,now I want to drag and drop a panel within the List,how can I do that,could you pls show me the code,thanks. 回答1: The list in flex has a default drag and drop functionality. So basically all you need to do is to set 3 properties to true to your list: dragMoveEnabled , dragEnabled and dropEnabled . So your list if you add it from mxml will look like this: <s:List dataProvider="

Passing Parameters from flex to database using java

寵の児 提交于 2020-01-06 05:15:07
问题 I am facing one problem when am trying to insert values from flex(frontend) to database(backend).No problem in blazeds connection.I think problem is with java code.Anyway am pasting both java and flex code.Please let me know how to insert values into database.I am not well in java.So i tried a lot to solve this issue. My Flex code is: <fx:Script> <![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; private function