Hi
I need to be able to subtract 2hrs ,8hrs, 1 day and 1 week from the current Date.
Then convert to yyy-mm-dd hh:mm:ss format.
So far I have been unsuccessful.
What is the proper method to do this in actionscript?
...
I'm trying to parse an XML file of tweets as retreived from Twitter's restful API (http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline). The issue is, when I print it using:
tweetTextArea.text += xml..text;
I get the tweets. However, when I try the following, I get just numbers:
// Print all tweets.
for (var t...
Hi,
I have a Flex 3 application that makes a call to a webservice. That webservice calls returns a 2 Mb file that flex reads and parses. The problem is that it takes sometimes 45 seconds. I was wondering if there is a way to cache the response form the webservice? So the next time I load the flash movie it doesn't have to re-download th...
We all know that when serving normal ads (with document.write and all that) it's easy to setup cookies on the client's machine even if the ad server is on a remote domain (include a pixel 1x1 image when logging the ad impression and that will do the trick).
My question is: how can i handle this capping process in a flash environment? My...
Is it possible to dynamically load vector files, in this case .ai files in Actionscript 3? You can import them to the stage, but I want to do this dynamically, is there a way to do this?
...
I'm writing an Air application using only Actionscript, and Flex3 SDK as the compiler. Everything compiles and runs fine under adl, but when the final air file is built and installed, the main class is never initialized. For instance:
package {
import flash.display.Sprite;
public class main extends Sprite {
public functi...
In one area of my application I am creating a display that builds itself with actionscript during a loop. (in my actual app there are A LOT of nested children and my function might be looking for any of those children) In that AS I assign each item an ID, but when I try to access that item by it's id it fails. What gives? and how can I a...
My meter looks great and the needle rotates in a loop. How do I add easing to it?
The meter is built from a timer event. I want the needle to bounce at the end. Rather than just adding a variable, I need some control of when it happens so I can adjust it with the animation.
WORKING CODE "Thxs to member"
var timer:Timer = new Timer...
Is there a way to detect if my Vector is out-of-range before performing an action?
I tried
if (myVector[i] != null || myVector != undefined) {
// do stuff here
}
But I am getting an out-of-range error.
...
Im having a hard time putting in my head on how would i go at making flash read a xml file (this part I have it going smooth) and then fromt hat elements put on the stage a sprite or a movieclip that is interactive.
To make it clear I want to load and display an image that when you press it it just creates another square beneath it with...
Is there arguments that work most of the time in AS3? I want a code setup that will works most of the time. Any suggestions?
Books break it down, but don't show how the programmers arrived at their conclusions. This could turn in to a discussion question, but if there's a secret I want to know.
WHAT I'M AFTER
- an argument structure
...
I just started making games and I decided for my next project to use either flashdevelop or flex builder. Reason being is because you can embed just about everything and for licensing purposes and it recommended the the game is compiled into one file. flex sdk is good with that type of stuff.
As of right now I decided to use flashdevel...
Hi!
I am developing small application for training purposes. There after click on the button is done, the new panel is added to application, to the button of the application. Once I come across strange problem. The vertical scroll bar never appears.
Here is how I embedded swf:
<script type="text/javascript" src="/site_media/js/swfobje...
I am trying to take a movieclip of a character and change the colour of their clothes. The character is comprised of vectors.
So far I have semi-sucessfully used this method:
stop the movieclip
take the bitmap data from the current frame
use threshold to replace the colour
store the resulting bitmap data in an array
add an onenterfram...
How can be cloned shape loaded by Flex Action Script 3 from external swf ( authored in the Flash CS4 ) ?
...
Hi,
I am trying to MD5 a string in ActionScript using the MD5 algorithm that was created by Adobe and is part of AS3corelib. (http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/crypto/MD5.as).
I am comparing this to an MD5 created in php that I know is correct.
If I create MD5s using AS and PHP for say a string like "abcd1234" ...
beside swfaddress is there any other way to send data from a html page to a swf application? What I need is when a user clicks on html contents to change information inside the swf.
Thanks
...
For For some reason, I'm not getting any result returned to me when uploading a file to my server. I'm using a php script, the file gets sent, gets uploaded, but I can't get the return result.
I am firing these event listeners:
fileRef.addEventListener(ProgressEvent.PROGRESS, fileRef_progress);
fileRef.addEvent...
Hi, I trying to extends ObjectProxy class, the reason is because I want to have a Singleton of the ObjectProxy class, so I made something like
package utils
{
import mx.utils.ObjectProxy;
public class UniformObjectProxy extends ObjectProxy
{
private static var _instance:UniformObjectProxy;
public function U...
I'm writing a app with Flex/air,and i need a function that downloading files to the default dir without a pop-up window.i tried to use ftp instead of http but found it's not supported by air.how can i solve this problem?
...