flex4.5

How to ensure that the popUp always displays above the PopUpButton? With test case and screenshot

╄→尐↘猪︶ㄣ 提交于 2019-12-08 01:03:37
问题 Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?) How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton? I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin

Assign variable to MXML component ID

本小妞迷上赌 提交于 2019-12-07 23:58:17
问题 I have my custom component and for example few Label. I want to pass to my component value which will be assign to label's id. Code: <fx:Script> <![CDATA[ [Inspectable] [Bindable] public var test:String = "asd"; ]]> </fx:Script> <s:Label id="{test}" text="etc"/> Error: {test} is not a valid identifier Can I even do something like that? 回答1: No you can't. You have to understand that when you write an mxml component like <s:Group> <s:Label id="myLabel" /> </s:Group> it will generate

Flash Privacy Popup Dialog is missing “Remember” checkbox

…衆ロ難τιáo~ 提交于 2019-12-07 04:42:49
问题 I am trying to get the Privacy Settings Tab to show in our flash/flex4 video chat application we are building. I have 2 systems with latest Flash installed (currently 11.1.102.62). However, the player always shows this (privacy popup question) instead of this (privacy settings tab) when loading the app. The reason i want the settings tab to show is because i need the end user to easily check the "remember" box. I have tried to call Security.showSettings(SecurityPanel.PRIVACY); before as well

Getting error while maintaining flash code

爱⌒轻易说出口 提交于 2019-12-06 20:16:35
I am new to flashbuilder. I have got this existing code to maintain. All of the mxml files have outermost tag s:WindowedApplication . The navigation from one page to another is done using code as follows: public function help_clickHandler(event:MouseEvent):void { var dTracker:aboutProduct = new aboutProduct(); this.addElement(dTracker); } After navigating to a new page I get following error on clicking any where on newly loaded page: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/getChildIndex() at mx.managers:

Simulate Tab Key Pressed on Flex?

女生的网名这么多〃 提交于 2019-12-06 15:45:13
问题 It is possible to Simulate a Tab Key when another key is pressed? I'm looking to do exactly the same, but with the DOWN & ENTER Key. I know about the onKeyDown function. I'm trying this but it doesn't work. private function onKeyDown( e:KeyboardEvent ) :void { if( e.keyCode == Keyboard.DOWN ) { (e.currentTarget as TextInput).dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, 0, Keyboard.TAB)); } } I know tab works differently, I saw it in Here but still not idea. Any help

Assign variable to MXML component ID

馋奶兔 提交于 2019-12-06 12:31:02
I have my custom component and for example few Label. I want to pass to my component value which will be assign to label's id. Code: <fx:Script> <![CDATA[ [Inspectable] [Bindable] public var test:String = "asd"; ]]> </fx:Script> <s:Label id="{test}" text="etc"/> Error: {test} is not a valid identifier Can I even do something like that? No you can't. You have to understand that when you write an mxml component like <s:Group> <s:Label id="myLabel" /> </s:Group> it will generate ActionScript code like public class MyClass extends Group { public var myLabel:Label; } (Mind you, I grossly

How to ensure that the popUp always displays above the PopUpButton? With test case and screenshot

好久不见. 提交于 2019-12-06 07:40:01
Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?) How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton? I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin and assign it to my PopUpButton? And I probably should use the PopUpPosition.ABOVE constant together

Channel.Security.Error…Error #2048

可紊 提交于 2019-12-06 03:31:17
问题 I recently upgraded to Flash Builder 4.5 for PHP and am trying to upload a release build to my remoteserver. When I try to make a php call from the app, I get the error: Send failednChannel.Security.Error error Error #2048 url: 'http://localhost/my_php/public/gateway.php' The release build works fine on my localhost machine. All of my php service calls are on my remote host. Here's the structure of my remote host: /my_directory/html (this is the root directory) /my_directory/html/my_php

Using mx.charts in a Flex mobile project

百般思念 提交于 2019-12-05 07:28:22
问题 Adobe states that Charts are supported in mobile projects but when I try to change the following working files (created project with File - New - Flex Mobile Project - Google Nexus One): MyTest.mxml: <?xml version="1.0" encoding="utf-8"?> <s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.MyTestHome"> <s:navigationContent> <s:Button label="Home" click="navigator.popToFirstView();"/> </s:navigationContent> <s:actionContent

Adobe Native Extensions — not working?

隐身守侯 提交于 2019-12-04 13:18:22
I am trying to work with "Adobe Native Extensions" - one of the newest features released in Adobe Flash Builder 4.5. I am trying to communicate between Adobe AIR and a native C++ application on Windows 7 with the help of Adobe Native extensions. (Of course, we can do this today with NativeProcess APIs, but ANE is much more powerful) I followed the steps mentioned in the following article: http://thingsico.de/blog/tag/native-extensions/ created the sample DLL using cygwin to compile the C++ code (integrated the FlashRuntimeExtensions.h and FlashRuntimeExtensions.lib during compilation) built