actionscript-3

Extracting thumbnail from .flv

Hi, i was wondering, how can i extract thumbnail from a flash-video file, then display it in a listbox. the listbox is suppose to have many videos which i need to extract thumbnails from programatically with actionscript. the flash-player is going to be on the web, and the extraction must happen when the swf file is loading, therefore...

How to Make Flash Builder Package Explorer emulate Flex Builder's Navigator window?

Hi Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window? Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to ...

Timer vs setTimeout

The docs for flash.utils.setTimeout() state: Instead of using this method, consider creating a Timer object, with the specified interval, using 1 as the repeatCount parameter (which sets the timer to run only once). Does anyone know if there is a (significant) advantage in doing so? Using setTimeout is a lot easier when you...

attaching id to a movieclip

I have a loop that creates mc from a database for (var i:Number = 0; i < t.length; i++) { var portfolioItem:PortfolioItem = new PortfolioItem(); addChild(portfolioItem); portfolioItem.name = t[i][0]; portfolioItem.addEventListener(MouseEvent.CLICK, getThisName); } public function getThisName(evt:Event) { trace(evt.target.name); } I...

Approaches to replace cursor in pure AS3 / Flare project?

Hi there good lookin, I've got a pure AS3 (no Flex) project that uses Flare to display and interact with a data visualization. I just implemented some panning behavior, so you can click and drag the visualization around, and now I'd like to give the user a visual indicator that this is possible, by switching the arrow cursor with a nic...

As3 split strangeness

Hello coders, Super simple example: var Path:String="E:\SWF Security\Acess Current Path\Access SWF URL.swf" var Path1:Array = Path.split("\\") // Split using the backslash as delimiter (No limit the number of returned tokens) trace(Path1) What do you expect path1 to be ? E: ? No its E:SWF SecurityAcess Current PathAccess SWF URL....

Flash go to frame label action

It is my first time using AS3. The way that is set up us I have a "Main MOvie Clip" and inside the main movie clip I have another movie clip which is the MainMenu. Inside the MainMenu are buttons. The frame label I wanted to go to in outside of the MainMenu but Inside of the MainMovieClip. I am doing a small project that involves got...

How to access the stage from an AS3 class in Adobe Flash

The problem I've encountered is that I am using a keyboardEventListener to make a movieclip run around. As I'm a college student, I'm creating this for an assignment but we are forced to use as3 classes. When I run the code in the maintimeline, there is no problem. But when I try to access it from another class (with an 'Export for Acti...

I am trying to parse a text file I loaded in Actionscript 3.0, help please

All I can find information on for the URLLoader object in Actionsript 3.0 involves loading XML files, which I don't want to do. I'm trying to load in a .txt file that I want to parse, line by line with each line being delimited by a comma. Anyone know a method of doing this or a place where I can find some information on how to do this...

Error #2130 Unable to flush sharedObject

I cant flush the shared object in my project. What can I do for that problem? ...

Align the coordinate labels of the triangles, so that they never collide with each other. Actionscript 3

Hi all, Im trying to achieve something similar to the flash movie in the below link. http://mathopenref.com/coordtrianglearea.html As we drag the points of the triangle, the coordinates labels, ( A(1,2)) are properly aligned and arrange themselves so that they never collide with each other and never falls inside the triangle. Please ...

Connect to Java Server problem

I have written an ActionScript client program that tries to connect to a local java server that listens on port 8787. The code is the following: import flash.display.*; import flash.events.*; import flash.net.Socket; import flash.system.Security; public class Main extends Sprite { // Properties private var socket:Socket; ...

AlivePDF generate pdf with grid, text not showing

Adding text to a grid in flex adding the grid to a pdf with some other elements on there as well. text is not showing up in some cases. I've tested myself silly on the computers i own but there doesnt seem to be a problem. However, the person i made this for keeps saying text doesnt show up. I've seen the results of his instance of thi...

Remove whitespace in as3

How can one remove whitespace from a string in as3? I would like to be able to remove all carriage returns, spaces, tabs etc. ...

mulitple attribute xml filter as3 e4x

I am trying to come up with the best xml schema to support tag filtering. And then a method to filter the xml on an arbritary amount of tags. So here is the xml: var videoXML:XML= <?xml version="1.0" encoding="UTF-8"?> <videos> <video> <tags label="dogs,brown,lawns" /> </video> <video> <tags label="dogs,cats" /> </v...

Use Network Services for FDT

Hi everybody, I've recently started using FDT, for a while I was using FlashDevelop, it had a really handy feature in Compiler options where you can set UseNetworkServices to false which would stop the compiled swf from connecting to the internet and became very useful for running standalone flash apps without security warnings when load...

Retrieving/simulating run-time "layer" functionality in Flash under ActionScript 3.

Are there any AS3 classes to help arrange objects into layers, like in the designer, such that the objects all have the same parent? Obviously, I can use container clips to simulate layers, but I specifically want this kind of functionality for objects that have the same parent. My understanding is that the design-time notion of layers...

How to Open Local File in AS3?

Hi, i have some code that looks like this function main9Click(event:MouseEvent):void { var main9URL:URLRequest = new URLRequest("N:\ICT\Nationals\Unit 2\Pages\Cars"); navigateToURL(main9URL, "_self"); } mainBtn6.addEventListener(MouseEvent.CLICK, main9Click); I need to make it open so when you click on that button it opens the ...

how to avoid the error due to missing element from an XML file in Flash Action Script

Hi, I have a code which is written for read the xml data. and the xml file contains the optional values, so some time the elements are present there some times not. In this case how can i set a default value for that in action script 3.0. When i tried to trace the value that area is skipping. So is there any other method to trace-out ...

uiscrollbar name through textfield

I am adding a TextField and a uiscrollbar that goes with it dynamically. And since the end user can add / remove text, and re-size the textfield I want the scrollbar to update. So how do I keep track of scrollbars? For example, it would be really useful if I can just click on a textfield and it will tell me what scrollbar it is linked t...