flash

How to rotate an isometic view?

I'm creating a view of isometric tiles using this simple nested loop: const TILE_WIDTH:Number = 180; const TILE_HEIGHT:Number = 90; for( var i:Number = 0; i < 10; i++ ){ for( var j:Number = 0; j < 10; j++ ){ var tile:MovieClip = new TileMC(); // a movieclip in the library... // with a different tile & label on each...

Why this rect is not drawn?

My actionscript: package { import flash.display.Graphics; import flash.display.Sprite; import flash.events.Event; import spark.core.SpriteVisualElement; public class SimpleFill extends SpriteVisualElement { public function SimpleFill() { //var sprite:Sprite = new Sprite(); ...

Enlarge flash game through VB.

I'm trying to use Visual Basic to enlarge or magnify a flash game. (Just trying to make it take up more of the screen without having to do something like change the computer's resolution.) The only code I have is the one that loads the game from the website: Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System....

How to include external actionscript library into flash?

Sorry for the dumb question, but I've spent already hours trying to figure this out (I am not a flash developer). I have downloaded some external actionscript library in a form of a bunch of folders with .as files that have the following folder structure: com/helper_lib1/*.as com/helper_lib2/*.as com/primary_lib/LibClass.as <- primar...

add flex combobox to movieclip in swf

I am trying to add a flex custom component (basically a combobox that is populated with xml) to a movieclip in a swf. Is this possible? I don't get any errors with the code below, but I also don't see the combobox. If I add it to the parent, which is a uicomponent, then it shows up. _fontDD = new FontDropDown(); _addTextMenu.addC...

TextField and Security Sandbox Violation

Hi I am creating a TextField in my flash application, but when i am starting to write something the following error in written to trace: * Security Sandbox Violation * SecurityDomain xxx tried to access incompatible context yyy What is the reason for that? How can i solve it? ...

How to fire a event for Array push? [Flash]

How would I go about as to addEventListener for a array object. I'm trying to avoid running a timer every x milliseconds to check for new elements in array object, rather trying to make a event fire when new elements are detected to process them and remove them. Is it possible with Arrays? maybe ArrayCollections? either is fine. P.S.>...

Finding A Child Control Based On X & Y Coordinate in ActionScript

In Flex/Actionscript When writing an on mouseMove event on a Canvas control for example, how could I check to see what control if any is under the mouse pointer at a particular coordinate? ...

Filling Flex Application background with pattern?

We are trying to fill our Flex 3 applications background with an image pattern by repeating the pattern throughout the background. The pattern is a very small "bulleted"-background. The Flex App seems to just stretch the image pattern even though we've specified in the CSS the following: Application { background-gradient-colors: #...

Passing parameters to a function reference?

Hey all, I'm attempting to write a performance testing function that can take any function, run it X times and spit out how long it took that function to run in AS3. I've got it working just fine if a function doesn't take any parameters but it comes up with an error otherwise. Here's the code: public static function testFunction(tar...

Internet Explorer Full Page background

Hi, I currently am working on a site with a full-screen flash video background - http://polivision.tv/test.html It is working in most browsers, except apparently IE (I am working on a mac). Apparently the only problem is the flash video is not playing. I put this in the body: <div class="zone-home"> <object classid="clsid:d27cdb6e...

How to assign a value to a variable in Flash (AS3)?

Using targetCurrent -- I am able to get the name of the MovieClip a user clicks on. On function toggleClick there is a trace statement that says: trace("movieClip Instance Name = " + e.currentTarget); OUTPUT Window: movieClip Instance Name = [object Comp] Based on what a user clicks on -- there will be a value associated to the Mo...

Flash CS4 randomly won't open .fla file

All I get is an error box saying: "Unexpected file format." Everything was going fine until I did some simple action (removing a few frames I believe), then Flash crashed and I haven't been able to reopen the file since. It opens other .flas just fine. I rebooted, but to no avail. Any ideas? This is an important project and very frus...

How to adjust numToChar to support any key (AS3)

I have a flash conversion function that I call like this: var key:String=numToChar(keyboardEvent.charCode); currently the function (see below) supports limited US character set, how to enhance this function as much as possible easily without hardcoding? I want to make the function to support all standard western keycodes (available...

Protect flash files

Hello, I would like to protect my flash files. I would like to block any decompilers,protect actionscript and also protect graphics. Some time ago,I tried to decompile a swf and when I placed it inside a decompiler , it showed me a login form and no graphics.I believe that is the ultimate protection method.Do you have any idea what softw...

jQuery/UI/Tab ajax not loading flash cfcharts in IE7/8

Hello, I have a coldfusion page that uses JQuery UI TAB to load another coldfufion page which includes a cfchart in flash format. But this works completely fine in FF.(everything was loaded, flash cfchart, tables ...) <li><a href="xxx.cfm?param=#xxx#">XXX</a></li> However in IE: all of the html elements that are generated with the fl...

Game in iphone using Flash Lite

Hai everyone, may I ask whether iphone can support .swf file or not? This is because I have developed a mini game using Adobe Flash Lite by using action script 2.0 and save as .fla file and export as .swf file. If can, can give me some guidances on how to import .swf to iphone. Thank a lot.:) ...

Detecting flash clicks through jQuery

I only have very limited control over a flash application. The only thing I can do is modify some links in an XML that it reads from. I want to execute JS code based on the selected item in flash. I can link to something like: currentpage.html#some_anchor, but is there any way for me to detect the URL change from jQuery? ...

How to grab a value from from an Object (associative array) in flash, and reassign that value to a new variable?

I have multiple toggle buttons on my flash stage. These toggle buttons are MovieClips. If a user clicks on one of the MovieClips, I want to be able to find a way to go through the Object below--get the appropriate value based on what the User clicked--and store that value in a new value called var powerData which will then be passed to a...

Compiling with mxmlc vs Flash

I have some ActionScript code that I got from some website. I've tried to compile the code and it seems to have compiled with no errors. However, it doesn't work as expected and I am wondering how I can debug this? It seems that the website uses Flash to compile it because there's a .fla file located as well. Does anyone have any idea?...