apache-flex

Flex - how to make a tabbed panel

邮差的信 提交于 2020-01-11 03:21:08
问题 My app has 3 categories of buttons, I want to have a tabbed panel I can use to switch between the 3 categories like in this example: My app is a mobile app though so I can't use mx components. When I try searching for mobile tabbed navigation etc., I come up with only viewnavigator examples. 回答1: For a mobile tabbed application, you simply use the TabbedViewNavigatorApplication class: FIRST METHOD Your views are simply MXML components that use <s:View> as the root note. Reading your comments,

is it possible to value store cookies in Flash or Flex?

蹲街弑〆低调 提交于 2020-01-10 20:01:12
问题 In PHP there is a setcookie function based to store it. In Flash is it possible ?. If it is possible then how? I want to store value. 回答1: First off: PHP runs on the server and therefore can send the necessary HTTP header to set a cookie, Flash runs in the client's browser and thus can not do the same. However, there is a way to access and store cookies from flash/flex by using the flash.external.ExternalInterface and calling JavaScript functions to get and set cookies. I've developed a class

.NET and AMF

大兔子大兔子 提交于 2020-01-10 19:55:08
问题 How can I get a ASP.NET (inc MVC) application talking to a Flex UI over AMF. I am wanting to push approx 100+ records around at a time and AMF would appear to be the way forward, but there doesn't appear to be anything obvious. 回答1: If you're pressed for time, you can just use the RemoteObject to hit a compiled DLL (like WebORB - its free for .NET, but you need a VS copy above Express to compile your classes that you want to expose to Flex) and Retrieve the object that way... Obviously your

flex : Random NetConnection.Call.Failed: HTTP: Failed

人盡茶涼 提交于 2020-01-10 05:17:09
问题 We are experiencing some random NetConnection.Call.Failed: HTTP: Failed when using the flex 4 mx.messaging.channels::SecureAMFChannel We have never had this problem in our local servers (server/client on the same machine), but when we went live, some users experienced this problem randomely (about 5% of the 800 beta users). Lately, at last i was able to reproduce the problem every once in a while on one client machine (windows XP), in our LAN using a remote server in the same LAN (but not on

How do you dynamically load a CSS file into a Flex application?

假如想象 提交于 2020-01-10 03:57:05
问题 I know that you can apply CSS in order to style objects in Flex using the StyleManager: http://livedocs.adobe.com/flex/3/html/help.html?content=styles_07.html You can also load compiled CSS files (SWFs) dynamically: http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html However, I'm dynamically creating my CSS files using a web GUI and a server-side script. If the CSS is changed, then the script would also need to compile the CSS into an SWF (which is not a viable option). Is

Flex: Sending parameters to Alert closeHandler

帅比萌擦擦* 提交于 2020-01-10 03:47:27
问题 Is it possible to send parameters to a closeHandler Alert function? The fisrt parameter the function gets is the CloseEvent, but how to send another one? <s:Button id="btnLoadLocalData" label="Load data" click="Alert.show('Populate list with local data?', '', Alert.YES | Alert.CANCEL, this, loadLocalData(???parameters???), null, Alert.OK);"/> Thank you! 回答1: This should be possible using Flex's dynamic function construction. A similar question was asked here. Here's an example: The parameters

Using Flash Component SWC file in Flex

落爺英雄遲暮 提交于 2020-01-07 16:05:23
问题 I am accessing custom UIComponent via SWC file from Flex 3. This component works OK in Flash CS3, but using it from Flex gives A weird error in draw(). I have added swc component inside Sprite (with addchild) and its in LIB path. TypeError: Error #1010: A term is undefined and has no properties. at com.xxxx.highscores::HighScores/draw() at fl.core::UIComponent/callLaterDispatcher() Here is the draw() function of this UI Component: override protected function draw():void { isInitializing =

How do I make a video full screen using actionscript in flex desktop application

你。 提交于 2020-01-07 07:47:21
问题 I am playing a flv video using the videoplayer class of flex. (all the properties of it are being set at runtime) I want to make the video fullscreen without clicking on the fullscreen button i.e. through programming. Is it possible. If yes then how can I do this.? 回答1: Dispatch click event from the fullScreenButton of VideoPlayer. yourplayer.fullScreenButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); 回答2: Use the displayState property of the stage. You can access the stage as a

Differences between adobe actionscript 3 softwares and which should be used to create youtube style annotations?

五迷三道 提交于 2020-01-07 07:45:09
问题 I'm working on a guitar tutorial website where users can select parts of a song, then write an explanation of how to do that guitar technique. The explanation will pop up, like a youtube style annotation whenever someone plays that song. It's like the youtube video annotations, except exclusive to guitar lessons: When someone plays a song, the annotations get displayed in real time. -There will be 3 sql databases: user information (ex. email, password, etc...), song meta information (ex. song

Save data into external files in AS3, with out server?

﹥>﹥吖頭↗ 提交于 2020-01-07 07:27:06
问题 HI How can I save some text information in local hard-disk with out the server support. I know shared object, but i dont use this. I need to save all these function in anther external file as text. Is there any way to do that in AS3.0 . I don't prefer Flex, am working in Action Script 3.0 & Flash IDE EDIT: My swf is saved in a local machine. So no server interaction or browser interaction. the swf is running a local folder and read txt files from local folder, and save once press the save