flex

Glow effect does not "cycle"

On my mx:Image component I have a creationCompleteEffect="glowIn" <mx:Glow id="glowIn" duration="700" alphaFrom="0" alphaTo="1" blurXFrom="0.0" blurXTo="30.0" blurYFrom="0.0" blurYTo="30.0" strength="2" color="0xCCFFCC" effectEnd="glowOut"/> <mx:Glow id="glowOut" duration="800" alphaFrom="1" alphaTo="0" blurXFrom="30.0" blur...

ActionScript 3 - a loader that supports many apps?

Hi there! I have created a simple SWF-loader in ActionScript 3.0. It loads an SWF from a server and then plays it. While downloading, it displays the "loading" screen. Its main defect is that it can load only one Flash application - the one which it is compiled for. Let's say it's named test1.swf. Is there any way to make the loader supp...

Text rotation Flex

How to rotate text (s:label)? I've tried using rotationZ but instead of rotating text it rotates each letter with some weird effect... How to change text angle? ...

Flex/Actionscript 3 dynamic width/height change

Hello. Is it possible to dynamically (not in the project's options) change the dimensions of the stage by using ActionScript 3? I'd want to create a 400x300px loader, but I also want it to load animations that have bigger or smaller dimensions. I would then change the width and height of the loader to make the loaded animations fit well....

Flex 4, SWFLoader border resize issue

Hi, Following is the issue i am facing. I have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets re...

Flex chart...update date range

I am using Flex 4 & zend to create a simple areaseries chart. Currently, I am pulling 20 yrs of data from the database & displaying it by default. I then want to let the user choose the dates he wants, but without going back to the server....how can I do that? <mx:AreaChart id="Areachart" dataProvider="{employeesResult.lastResult}"> <mx...

Wait for class method to complete in ActionScript 3.

Hi, I'm currently creating a website with AS3 in FlashDevelop, so it's code only — no timeline stuff. I have a class that loads images with a method that I call from my main source. I was wondering how I go about making sure that the images are loaded before executing more code outside of the class. I know how to do it using Event.COMP...

Is Flash the only option for browser-based video-conferencing?

To display a P2P video chat / screen-share session in the browser are we limited only to Flash? I think there are HTML5 solutions 'in the pipeline' but I've no idea of timescales. Do you know of any flash alternatives? ...

ActionScript-3 : Array vs. ArrayList

Can anybody say me what is faster: Array or ArrayList? (ActionScript3) I tried to find a page about this but didn't find anything. Thank you. ...

Flex 4 Scroller component doesn't render horizontal scrollbar.

I'm pretty sure my dynamic mxml layout must give me two scrollbars (horizontal and vertical) but it only shows vertical one. Am I missing something or is it a bug? <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xml...

How to check if a menu is displayed.

I create a menu with this: menu = Menu.createMenu(parent, get_entries()); menu.labelField = "@label"; ... menu.show(position.x, position.y); How can to check if the menu is still displayed? ...

How can I show a warning before a radiobutton changes in flex?

In my flex app I have some radio buttons. When a user clicks the radio button, I want to popup an Alert, and if the user clicks ok the radio button will change, otherwise their change will be discarded. How do I accomplish that? I tried event.preventDefault(); while handling the click event, but that didn't do anything. Any other ideas?...

Flex 4 - Define a style for html links in CSS

It's been 2 hours that I'm trying to do this, I never thought it would be such a nightmare, and Google isn't helping me at all. Does anybody know how can I define a CSS style for html hyperlinks inside a mx|Label component such as a, a:link, a:hover and a:active ? (I can't use s|Label since it doesn't dispatch link events...) I tried ...

How widespread are Actionscript3 naming conventions?

In 90% of the example projects I see for ActionScript / Flex I notice the following two coding conventions: 1) private member variables with getters/setters start with an underscore as in "_credentials" and 2) interfaces start with the letter "I" as in "ISessionInfo" Coming from the Java world, I find both of these conventions unnec...

Flex 4 RichTextEditor Insert Image Functionality

Hello! How can I make it so that the RichTextEditor from Flex can add images? I'm not talking about the upload process, but rather then way I can insert images into the textarea. Thanks! ...

Flex Best Practices - Multiple Flex Projects or 1 Project, multiple Application MXML files

Having seen several different ways of setting up larger projects in flex, I'm wondering what your opinions are of how to organize projects that are going to require 2 or more different applications. For example a public and private site within the project. The two main ways that I know of would be first, creating one flex project, and t...

how to detect when animation is completed

hello, i have a mx:AdvancedDataGrid control with animation on resize. And i need to resize another contol A accordingly with mx:AdvancedDataGrid size. But resizing of contol A is too slow. Threrefore, the addition of resize handler is bad solution. I want to get the time when the animation is completely stopped either the new size of m...

Binding mxml (as)

I have actionscript file with a binding {someBinding}... The Main.mxml is where all the action happens. If I set {someBinding} in the "text" of a label component I will have a number. I have another form.mxml file. Where I want that binding to be in, but it can't find such binding. I need to have that {someBinding} in that other mxml,...

Java Hibernate and servlets with Adobe Flex + Model View Controller Pattern ?

Hi Guys, I am preparing a document for a project. The project's backend is developed in Java, frontend is adobe flex. I am not sure about the correct way of describe the project in Model-View-Controller way. For Model layer: Using Hibernate Java beans to implement all the business logic and persistence? For View Layer: Using Adobe ...

HTTPService & MySQL & PHP

I can't seem to post needed information to my database, here's what I've got: <mx:HTTPService id="someService" url="http://name.domain/postPHP.php" method="POST"> <s:request xmlns=""> <name>{name.text}</name> <score>{score.text}</score> </s:request> </mx:HTTPService> And of course a button to send(); P...