actionscript

As3 printing problem, blanks swf after print or cancel

Hey all! ok back at another issues in as3 printing //Function to print entire screen function printFunction(event:MouseEvent):void { var myPrintJob:PrintJob = new PrintJob(); var oldScaleX:Number = root.scaleX; var oldScaleY:Number = root.scaleY; //Start the print job myPrintJob.start(); //Figure out the new...

how to give hyperlink in flex

i have source code of flex as below:- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:MenuBar labelField="@label"> <mx:XMLList> <menuitem label="File"> <menuitem label="New" /> <menuitem label="Open"/> </menuitem> <menuitem label="Edit"/> <menuitem label="Source"/> ...

Execute system commands via actionscript on Flash Media Server?

When writing an ActionScript application on Flash Media Server 3.5, is it possible to execute local (unix) system commands within the actionscript itself? The uses of actionscript, being primarily used client side where people are quick to respond "No, that's impossible, it's a security risk for flash", make it difficult to search for q...

Print a bitmap without printing a sprite?

Following up from: http://stackoverflow.com/questions/3021557/as3-printing-problem-blanks-swf-after-print-or-cancel I am trying to comeup with a function to print without creating a sprite, because that's what it seems to be causing my problem: public function printScreen():void { var pJob:PrintJob = new PrintJob(); ...

NetStatusHandler never gets called (Flash CS5)

Hi, I'm using this code to connect Flash CS5 to WebORB: import flash.display.*; import fl.events.*; import flash.events.NetStatusEvent; import flash.net.*; import flash.utils.*; import fl.transitions.*; // var connection:NetConnection; // function initORB(){ var gateway:String = "http://www.domain.com/weborb30/console/weborb.aspx"; conn...

Blank Swf after printing from another app.

Ok, so i am having a problem, where i developed an app that uses the webcam, adds an image and then takes a picture, well, i implemented textbook style the printjob, and well everytime after printing my swf goes blank. http://stackoverflow.com/questions/3021557/as3-printing-problem-blanks-swf-after-print-or-cancel But now i have been c...

TypeError: Error #1009 - (Null reference error) With Flash.

I am not an expert in flash, but i do work with AS and tweak Flash projects , though not having deep expertise in it. Currently i need to revamp a flash website done by one another guy, and the code base given to me, upon execution is throwing the following error. "--- TypeError: Error #1009: Cannot access a property or method of a nul...

Flex DataBinding Drilling Down Through Arrays

The help page on the BindUtils.bindProperty function: http://livedocs.adobe.com/flex/3/langref/mx/binding/utils/BindingUtils.html Has this to say: "For example, to bind the property host.a.b.c, call the method as: bindProperty(host, ["a","b","c"], ...)." But what if I need to bind to host.a.b[2].c? How do I do that? ...

Equivalent of Flex DataBinding using Pure Actionscript

When Flex Sees Something Like This: <mx:Label text="Hello {MyVar} World!"/> It Must Translate That Somehow Into ActionScript. But What If I Need To Do Something Similar, At Runtime. How Can I Accomplish What DYNAMICALLY? WHEN I DO NOT KNOW THE CONTENTS OF THE BINDING TEMPLATE. In ActionScript it would need it to look something lik...

how to write to an xml file using flex

Hi all, I have an application which takes live data from internet, I want to develop another application which reads data from the internet and writes it to an XML file (i.e. I want to save the state in an XML file). THE ONLY THING I NEED IS HOW TO WRITE THIS DATA IN AN XML FILE. I WANT TO SAVE THE XML FILE ON LOCAL DRIVE (SAY C: ...

added Effects and removed Effects start almost together.

Hi, I have run into a problem where I am removing a component and adding another one. I have set addedEffect and removedEffect for corresponding component. But the addedEffect starts before the removedEffect completes. How can i make them in order ?? I am doing this in actionscript.So, in this case i'm not using state and transition....

Fit a logperiodic function to data set in flex

I wahnt to fit a function to a data set. The function formula looks like this: http://docs.google.com/fileview?id=0B_6wV4xlS6wCNTA2MzU2MTMtMWMwZC00NzNjLTg1MjktYzc4MzFkOTk5YzJh&amp;hl=en" I fited the power function following this advice: stackoverflow.com/questions/2984164/power-function-fit-to-data-set. I've done it like here: mathworld...

simple login form using Adobe LCDS

Does anyone knows a tutorial with a simple authentication using Adobe LiveCycle Data Service? ...

Wildly inaccurate timing in Flash?

Hi, I'm building a tool in flash to tell me how long it takes to load a bit of content off of a server. I'm doing foo = new Date().getTime(); // get the thing bar = new Date().getTime(); trace(bar-foo); Yet, somehow, the times just seem to fluctuate HUGELY, from 3ms to 150ms. When I test this using Python, the times are consistently ...

what's more efficient? checking == or just mutating the variable?

Imagine I had a variable called X. Let's say every 5 seconds I wanted to make X = true. (it could be either true or false in between these 5 seconds, but gets reset to true when the 5 seconds are up). Would it be more efficient to check if the value is already true, then if not, reassign it to true? Or just have X = true? in other word...

Should I use Flash or Java?

I want to make some 2d games that I may want to submit to a game site, such as newgrounds.com. Even if I decide not to submit, I'd still like to know which is a better choice. Which has a faster startup time? Which performs faster in a 2d game? Which IDE should I use? Thanks in advance! EDIT: Also, a couple more quick questions. I ha...

Flex graph printing

Hi Guys I'm looking for a way to print / save flex graphs, preferably without changing the flex code.Is this possible to to from the client with some kind of JavaScript library.If I need to change the flex,is ALIVEPDF the way to go (converting content to pdf first) or are there simpler solutions to this. Thanks ...

changing "enabled" value of a button during runtime in flex

i want to make a button disabled if a datagrid is empty and it should be enabled when there is atleast 1 entry.the entries in the grid are made at runtime.I tried this this is the button: <mx:Button id="update" label="Update Contact" enabled="{isButtonEnabled()}"/> and the function is defined as where dg_contact is the datagrid: publ...

AS2 Net connection memory leak

Hi, I noticed that NetConnection leaks memory var nc:NetConnection = new NetConnection(); var o = new Object(); o.onResult = function () { trace ("onResult"); nc.close(); loadData(); } nc.onStatus = function () { trace ("onStatus"); nc.close(); loadData(); } function loadData () { // some amf serv...

Why doesn't Flex support threads?

Why doesn't Flex/ActionScript currently support threading? ...