I need some actionscript code to simulate the dragging and dropping of a Sprite, I was wondering if it is possible to do so? if it is how?
For example to simulate a click on a Sprite I can achieve with the following line of code.
sprite.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
...
I have an app that I am currently using a viewstack to display each page and I am wondering is this the right way to go, or should I use different states (or something else).
The site is powered by a menu bar with the top level items of Home, Tools, Support. Underneath the Tools menu is a submenu with Tool1, Tool2, Tool3. Currently when...
I am a Flex newbie and I am testing a little application that simulates a cart. (It is based on a nice sample by Farata Systems' Yakov Fain).
Note: I am using the beta of Flash Builder 4 to code the application.
Here you have a link to the screenshot:
Screenshot
(Sorry I can't insert the image of the screenshot right here since stackov...
I'm using a custom itemrenderer to display a list of photos and need to know how to control the width. At the moment it does this:
Which, as I'm sure you'll agree, is eye-bleedingly ugly.
The list is created like this:
<mx:Panel width="100%" height="100%" layout="absolute" title="Photos">
<mx:List x="0" y="0" width="100%" height...
I created separate own canvas component for Home page, Contact page, Rules page etc.
In my main application it has link button like Home,Contact,Rules in application controller(child state) .
<?xml version="1.0" encoding="utf-8"?><mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="903" height="508" backgroundImage="@Embed(sour...
hi,
how to know the folder as write permission in air application..in my application i am saving txt file in folder,so that i need to test that folder as write permission...
var file:File = File.desktopDirectory.resolvePath("TxtFolder/DataFile.txt");
i need to check "TxtFolder" has write permission...? before saving the file(DataFil...
I'm having problems compiling applications with remote ant, something similar to this. However the flex compiler seems to have problems with this. When I run the same script on my local compiles everything without any problems but when I try the remote ant it fails without giving more information.
...
I'm coding up some delicious business logic and I've come to a situation like this:
There are a bunch of rules (ruleA, ruleB, etc...) which all follow a standard pattern. I've created a Rule interface, and implemented it in RuleA, RuleB, and so on.
So now I just need a way to load them.
Right now I'm using a map:
var rules:Object = {...
I have PopUpMenuButton. I want to make it so that a mouseover (over either the button or the "V" part) pops open the menu. I don't care about the button click
I tried to do a My_PopUpMenuButton.dispatchEvent(new MenuEvent(MenuEvent.ITEM_CLICK)) when another button was clicked, but that didn't work.
Any ideas?
Thanks!
...
Howdy All,
I'm having an odd problem that isn't mission critical since I can use the command line with no probs.
In my earlier post http://stackoverflow.com/questions/1141133/flex-web-tier-setup, I had problems getting the web compiler to work.
Now that it's working I use this in a browser to compile:
http://localhost/flex/topsight...
I have two viewstacks one for Main menu and another one for submenu. I want to show viewstack page infomation at the time only one viewstacks . Another one hide . if i click submenu viewstack then Mainmenu viewstack will be hide . How can i do that ? I dont know whether it will be correct or not . If you have any other option for addin...
In Flex, it's easy to convert the XML to Object and to ArrayCollection by using
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder();
decoder.decodeXML( xml );
But is there a good way to convert ArrayCollection to XML.
I have search a while on the internet and havn't found any answer.
Thanks.
...
Hi all i have a problem where if my application is full screen i cannot click on any text input component and i cannot input any text into the fields. i have tried creating the text input fields at run time and i have tried creating them on the canvas when on the gui design window in flex builder. however they both give the same results ...
A groups of friends are working on a little game that would listen to the microphone as part of the interaction. We've tinkered with processing and flex. What we'd like to know is if anyone has succeeded in:
recording from the microphone using a web app
performing an FFT on this microphone data
In the case of flex, according to the d...
I want to replace the default title of the header with my image in Flex Panel.
...
I am creating an AIR application which downloads file from a server. I am using URLstream object with complete, progress, IOError, security error and HTTP status events. I am not getting an event if the network is disconnected when the download is in progress. Please can anyone tell me which event is dispatched?
Thanks,
Anahas
...
I've looked around a bit and I can't seem to find the answer to this problem: in fact, this may be a stupid question and there isn't an answer.
So anyway; here's my problem.
I have a website that runs off of Drupal. So, I've also started to mess around with Adobe Flex to create a few fancy drag/drop webapps that I'd like to embed into...
For a multi-line TextArea Flex component, want to be able to keep entering text and have the TextArea auto-resize in the vertical direction so that all the entered text is shown at once. However, TextArea wants to push any components down in the layout flow. Instead, want the TextArea to extend over on top of them. Once the text entry is...
What methods do you use to unit test event handlers, particularly if they require information from the event (such as mouse coordinates, or the target of the event)? Is the most common practice to just refactor the behavior into a method that does the lifting while the handler just extracts information from the event, or are there effect...
I have a custom component made up of a selectable control (radio button)
and a text input. I want to perform some logic in response to the
change events from both of those controls, but after that I want
anything that is registered on the composite component's change handler
to have a change to handle the events as well. The problem is...