actionscript-3

Flash Deep-Linking Causing Page Refresh in Web-Kit

Hello- I am working on a project where my team's Flash application is being displayed in another team's Web-Kit browser. We are experiencing a bug when a Flash Accordions selected index is changed; the web-page itself refreshes. Since this is a map-based application, this is unacceptable since the users Area of Interest is lost. From...

AS3: Reference Error 1056 when adding a movie clip containing an FLVPlayback

Hi all, I am getting a weird Flash error. The weird thing about it is that it -only- occurs when I open the .swf in the local Flash Player and go to "View > Full Screen". In the browser, or in the Flash Player at regular size, everything works perfectly. I have a button called video_button_01 (actually, video buttons 01 through 04), wh...

Syntax/error checking breaks in FlexBuilder/Flashbuilder with class libraries over Samba?

We have our class libraries on a shared server we access via Samba (and ssh for command line). Sadly, several features seem to fail in both Flex Builder and Flash Builder/Gumbo with this setup. For example, we no longer get automatic syntax and error checking. Anyone familiar with this issue and able to suggest a solution? Thanks! ...

Giving Flex MXML views their dependencies

I'm used to building applications using pure AS3. I always pass dependencies into the constructor of classes I make, but this method seems to not work out well for Flex MXML views. It seems like I should define setters on the MXML class, which map to attributes in the tag/class instantiation. But using this method I cannot specify whic...

1080p30 DVI to Flash Player

I have a high-definition video camera which outputs 1080p30 video over a DVI (yes, DVI) cable. Somehow, I need to use this video in a software prototype written with Flash using ActionScript 3. Any thoughts on how to do this? Right now, I am putting the DVI into a Folsom ImagePro HD and getting composite out to a Pinnacle Dazzle, which ...

git + Flash Builder workflow: how do I set it up so git works smoothly?

I'm using git to track a project I'm developing in Flash Builder, and I'm wondering the best way to go about having it track it, especially regarding Flash Builder generated files, Compiler generated files, and source files that aren't necessarily flex files. I had it set up to ignore all of the flash builder .project & debugging direc...

Actionscript 3.0 Tween Question

I am currently working on a website for a construction company and I am trying to build a very simple flash intro. I have two images in the falsh intro: a tractor and a picture of clouds in the background. I am trying to have the clouds appear to float by in the background. It is a very wide image that I am trying to loop through very s...

Does it make sense to dispatch events from another object?

I'm still trying to get my head around the best way to structure event flows. Someone made a lot of sense by telling me that contained objects should be decoupled from their parent containers so they're reusable between containers. Instead of calling their parent's function, they dispatch an event. Sensible! I recently myself in the awk...

AS3 - can't interact with swf file after loaded in

Hi, So I have this interactive swf file that I loaded externally as a background, everything's fine, but it's just not interactive anymore, I can't click on it. I googled this problem for a really long time and couldn't find an answer, I've tried the normal Flash way, and also using this library CASAlib, still couldnt find a solution. ...

Converting an array into a string in AS3.

Hello, I'm relatively new to programming and I was wondering how I would convert an array: [[0,0,0,0,0,0], [1,1,1,1,1,1], [2,2,2,2,2,2], [3,3,3,3,3,3], [4,4,4,4,4,4], [5,5,5,5,5,5]]; into a string of comma and line-return delineated indices, like: "0,0,0,0,0,0 1,1,1,1,1,1 2,2,2,2,2,2 3,3,3,3,3,3 4,4,4,4,4,4 5,5,5,5,5,5" with a...

ActionScript: Any short hand tip to reduce the verbosity of the following code?

I am very familiar with JavaScript and am now having a play with Flex for the first time. Obviously it's a strange felling as JavaScript and ActionScript are as they would say here in Southeast Asia "same same but different". The one thing that's getting to me (as with all static languages) is the verbosity. Are there any shorthand trick...

SecurityError: Error #2122: Security sandbox violation

Hi, I have a Loader that loads a flickr image, then I draw() the content of the Loader. I get this error: SecurityError: Error #2122: Security sandbox violation: LoaderInfo.content: mywebsite/myswf.swf cannot access flickr/imageurl. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flas...

Extending the TextInput class

Extend the TextInput Class/component to accept a "value" property as a number. I know there is a restrict method, that only allows for specified characters. The problem I am having is using a textinput to take the value in the box and apply it to math equations in a script. Any ideas? ...

Creating dynamic objects for quiz questions Flash CS4, AS3

Hi All. I'm making a flash quiz which will have a series of questions. Each question will have a button which will read the question out. As well as 4 buttons (probably MC's), that the user will click to answer. Each question is a different sound clip and a different set of answers. Problem is, I need to do it dynamically so I can pick...

Set DisplayObject to pass on MouseEvents

I have a Sprite I want to use as a debug layer. So I would like to overlay this layer over the normal scene and draw to it. This is fine except for that it blocks all MouseEvents from the layers below. Is there a way I can set an InteractiveObject to allow MouseEvent objects to "pass through" and onto the InteractiveObjects below? ...

Help - Null Object error when using stage.addEventListener (ScrollBar)

Hey guys, hoping for some help with this :( been stuck on it for a couple days now. I'm creating a ScrollBar using Lee Brimelow's ScrollBar class. I've had to modify it to work inside of my Class files and think I'm on the right track, but I'm getting the dreaded: Error #1009: Cannot access a property or method of a null object refere...

AS3 asdoc inheritance issue.

Hi, I have an API that inherits flash.display.Sprite .When I try to generate the ASDocs for the API, The ASdoc shows that my class inherits from flash.display.Sprite, but doesnt link or there is no click-able link to the Sprite's ASDoc. Can anyone tell me what I am missing. The command I am using in my ant script is <java jar="${asd...

Access Text in Textfield on Sprite

I'm adding an array of sprites, each with an associated textfield. When the sprite is clicked (or the textfield -- either one, though I want the cursor to be a hand) all I want to do is to grab the text. (e.g. "One" in the example below). It ought to be possible to do it with dot notation, using the sprite's name, but that doesn't work...

How do I adjust the overall alpha value of a Collada Model in Flash PaperVision3D?

Hi, I want to display a Collada model over top of a video stream and dynamically adjust its alpha value. Right now I have it partially working in PaperVision but I can't seem to set the alpha of the model at all. I have tried a few things from google. For non-Collada models the following works fine: var layer:ViewportLayer = viewpor...

Flash Custom Class Management

What's the best way to manage my custom classes without copying and pasting the folder they are contained in into the folder local to my project? Example, I'm using the Tweener class and I have to copy and past the whole caurina folder into the folder of every project I'm working on. How do I designate one area for all of my custom clas...