I've written a url validator for a project I am working on. For my requirements it works great, except when the last part for the url goes longer than 22 characters it breaks. My expression:
/((https?):\/\/)([^\s.]+.)+([^\s.]+)(:\d+\/\S+)/i
It expects input that looks like "http(s)://hostname:port/location".
When I give it the input:...
I'm using Flash Builder 3 to edit my Flex app, but I noticed that every time I make a change on the .html files (index.template.html for example), even if it's not in the IDE but with another program, Flash Builder rebuilds the whole project.
Is there anyway to stop this? Why would it need to rebuild the workspace everytime a html file ...
I have been having serious trouble making data displayable and updatable using the popupmanager. I have gone back and forth and decided with the approach of placing a titlewindow in a custom component (which everyone recommends) rather than in main application. However, when I do this, since the titlewindow component I created doesn't kn...
Been trying to smooth images loaded with FileReferece with no luck. Below is the code I'm using:
fileRef = new FileReference();
fileRef.addEventListener(Event.COMPLETE, fileLoaded);
private function fileLoaded(e:Event):void{
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, funct...
Most JavaScript code is also syntactically valid ActionScript 3.0 code. However, there are some exceptions which leads me to my question:
Which constructs/features in JavaScript are syntactically invalid in ActionScript 3.0? Please provide concrete examples of JavaScript code (basic JavaScript code without DOM API usage) that is NOT val...
I want to load key/values configuration pairs stored in XML file. To bind a collection of data i know i need to use the ArrayList class, but the problem is that i want to be able to bind the loaded values using their corresponding keys and not by their indexes in the ArrayList object.
For example i want to be able to do this :
<mx:Tex...
I'm working for the first time with a TileList and an itemRenderer and I'm having a bit of trouble getting the information from my array collection to display and looking for some advice. Here's what I've got
private function loadData():void{
var stmt:SQLStatement = new SQLStatement();
stmt.sqlConnection = sqlCon...
What's the best method for performance testing Flex applications with a BlazeDS/Java severs backend. We're looking at JMeter but can it be used with the amf the protocol at a more sophisticated level where values in a request can be manipulated?
...
I have a datagrid that uses an array of objects as the data provider. The objects are essentially key/value pairs:
{ foo:"something"}
{ bar:"hello"}
{ caca:"lorem"}
The datagrid has 2 columns. The first column is the key and the second column is the value. Right now my grid looks like:
...
I am trying to place API variables on ONE class file or mxml file and call these variables in other random class or mxml files... any suggestions?
...
I have developed a flex project
It brings out the result from an xml file through an url.
It works when i run from flex builder..
I had made a copy of swf file of that mxml file and run seperately by keeping in my desktop..
No values are fetched from the url... What is the solution for this...
...
Hi everybody,
I've a custom itemRenderer for my datagrid. To set the actual data I use the following method:
override public function set data(side:Object):void{
...
}
As soon as I use this function the cell doesn't show up any item Editor anymore. Why is that? When I remove this function the itemEditor is working but with the wro...
Hi all,
if wrote the following code and do not understand why the trace returns "false":
function (with trace):
import mx.controls.Alert;
import mx.collections.ArrayCollection;
public function runTest():void {
var unique1:MyUniqueObject = new MyUniqueObject();
unique1.id = 1;
...
Hi there,
Im having a strange problem with my custom itemRenderer in the following Methode I assign the values to the cell. The problem is, when the side.element is still empty. In this case the itemEditor will not show up by default...
override public function set data(side:Object):void{
super.data = side.element.toString();
c...
I'm creating a flex-based video player, using the FLVPlayback component (imported from Flash Pro CS3). I've reskinned all of the player controls and linked them in, and it's all working really well...
However, if you try to seek beyond the point where the video has loaded (it's using progressive download), the video completely freezes. ...
Hi, I am new in Flex. Was just wondering what is the difference between skin and CSS??
Why it is better to use skin over CSS in Flex. Could anybody please clear my doubt.
Thanks!!!
...
I don't want to allow linewise scrolling(means through arrow key) in textArea in noneditable mode
...
I'm working with several components that take color as a uint, but the colors I have are in the format of "#161616". I'm not sure what the relation between the 2 types of colors are or how to go from one to another.
It doesn't have to be an actionscript solution. I have only a small number of these colors, so can be done manually too. ...
I've got a business class, Spam and the corresponding view class, SpamView.
How can I augment MouseEvents coming out of SpamView so the MouseEvents which come out of it contain a reference to the instance of Spam which the SpamView is displaying?
Here's how I'd like to use it:
class ViewContainer {
...
for each (spam in s...
Hi,
I am getting a FaultEvent when trying to send form fields through HTTPService that contain more than 542 chars.
Initializing the HttpService:
httpServ = new HTTPService();
httpServ.method = 'POST';
httpServ.url = ENDPOINT_URL; //http://localhost:3001/ReportError.aspx
httpServ.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
httpSer...