I'm creating a 2d flash game (coded in flex/actionscript 3) where assets are downloaded when they are needed. Currently I have it setup like this:
AssetLoader.as
package
{
import flash.display.Loader;
import flash.net.URLRequest;
public class AssetLoader extends Loader
{
//set vars
private var url:String = "h...
In my project i used Accordion . if i add skin to Accordion then so error ? but i tried like
<mx:Accordion borderStyle="solid" width="212" height="346" upSkin="@Embed(source='image/UPDATE.png')" >
But shows error like Cannot resolve attribute 'upSkin' for component type mx.containers.Accordion. how can i add overskin,downskin,upskin ...
I am from a programming background ,and newbie to flex3 . i would like to learn flex3 and develop some application using rails and flex3 . Is it necessary to know flash in order to learn flex3 or just learning Action script 3 would do ? .Can anybody tell what are the prerequisites to learn flex3 . Thanks in Advance.
...
I have a Flex3 LineChart component using an CircleItemRenderer and the datapoints are being cut off because they are too close to the edge. Here's what it looks like:
http://img29.imageshack.us/img29/3850/chartx.png
As you can see, the circles on the left and right sides are being cut off.
How can I make the LineSeries area, plus...
Let's say function foo() is executing. Suppose that an external event occurs, for which you have a handler. Will function foo() be interrupted so that the event handler can be executed? What is the order of execution in this situation?
...
Has anyone ever created a combobox like the one below taken from the Bombay Sapphire website?
It's cool to me, does anyone know how to do this?
...
I'm working on a Flex 3 application that uses the Flex IFrame project to connect to remote web servers, using basic authentication.
When authenticating against the remote web server, the URLRequest is put together with the following code, and loaded with a URLLoader.
var request:URLRequest = new URLRequest(targetHost);
var authorizat...
I am trying to center itemRenderers in a horizontal list if the number of items in the list is less than the maximum visible number. Has anyone found a good way to do this?
See an illustration of what I mean if it is hard to picture.
Thanks!
...
Hi All,
in flex 3 using itemrenderers how to change the background color for particular cell in datagrid.i am passing value from external xml filses.any one having idea?
Thanks,
aravindakumarThangaraju.
...
I've been writing in actionscript 3 using flex builder 3 for a couple of weeks now and never encountered the need to use anything like MXML. I code all layout and design in pure actionscript.
I am not sure why, but many people immediately expect me to have written a lot of MXML when I say that I'm using flex builder.
Is MXML really rec...
I have a page made of custom components. In that page I have a button. If I click the button I have to call another page (page.mxml consisting of custom components). Then click event handler is written in Action-script, in a separate file.
How to make a object of an MXML class, in ActionScript? How to display the object (i.e. the page)?...
I've been trying to create an universal asset loader class (with help of the folks here at stackoverflow), which remembers previousely downloaded assets by storing them in an associative array.
This is the end result:
AssetLoader.as
package
{
import flash.display.Loader;
import flash.events.Event;
import flash.net.URLReque...
I have a HorizontalList that is resized at runtime. The problem is that the items are not adjusting their height to the height of the HorizontalList.
I use an item renderer (vBox) which has its height set to 100%. But the items always stay at their initial size.
...
how to load wmf & emf into flex?(it's function like MS word)
my idea is writing a program to translate wmf into jpg and then load it;
but i want to know more other solutions.thx :)
...
I have this HBox with drop functionality:
SCRIPT:
// The dragEnter event handler for the HBox container enables dropping.
private function dragEnterHandler(event:DragEvent):void
{
if (!event.dragSource.hasFormat("items"))
return;
var dropTarget:Box = Box(event.currentTarget);
dropTarget.setStyle("borderStyle", "out...
Hi,
In continuation to my earlier post on having threaded comments, I have some updates and changes as well.
One of the functionalities in my current flex application requires me to maintain a comments section. Here, the users can post the comments and the replies to existing comments. All I want is like the usual thread style commenti...
I need a high precision time method in microseconds rather than milliseconds for actionscript, unfortunately I couldn't find much help on the web.
I need such control in order to implement the usage of a fixed timestep in transitions as described in this article: http://gafferongames.com/game-physics/fix-your-timestep/, in order to solv...
Any clues how this can be achieved? It needs to work on all resolutions .. is there any parent/stage object available to find out the resolution of the system?
...
Hello and thanks in advance for any help you can provide.
My AIR application queries a webservice to see what components to build. A sample of the XML returned is:
<item>
<type>EventList</type>
<url><![CDATA[http://dashboard/cgi-bin/dataService.pl?type=ManagedEvents]]></url>
<index>4</index>
<title>Index 4 eventlist</titl...
I have a flex MVC app, only the view is using MXML. In that application, the user enters the
username and password in the view.
Now, i send the username and password from view to controller using code
click="admin.verifyLogin(this, Username.text,Password.text)"
in the controller i have a model object teacher , setting the values for...