flash

common validation mistakes in flash

i know the drill to find XSS and injection at sites made with javascript, php, java, mysql... Basically, I know how to write the bugs, so i know to find them. Now i'm evaluating a product which the frontend is flash. what are the common mistakes I should be looking? ...

How can I get plain text file in Flash?

Which function can I use to get the content of a plain text file? I can just read "value=32" as a variable or file in xml format now, but the file from vendor contains only the value "32". ...

is it possible counting number of children given tree in flex ?

myTree is updateParents(XML(myTree.selectedItem)) private function updateParents(item:XML):void { item.children().length(); Count.text=item.toString(); } In my application I used treeview with checkbox . How can I calculate (childnode node only) checkbox selected count in treeview . please refer any url for count the child ...

Flash Cs4 components skinning / themes ?

is there a way to apply custom skin / theme on components in flash Cs4. I remembeer I could edit them in flash 8 as2, but in flash cs4 they just an objects. without option to edit "content" of them. ...

Actionscript 3: How can I get the symbol name, and not the instance name

A silly question, but I spent an hour trying to find it: I created a symbol, and named it symbol_a. How can I get this symbol name from an instance? If I use myInstance.name I get the instance name and not the symbol name...... Thanks in advance, Edward ...

open Adobe Flash IDE, open windows explorer, crash

I installed Adobe Flash CS3 on my Vista Ultimate 32-bit machine (4GB Ram) last year. I occasionally had a problem where if I had opened the Adobe Flash IDE, and then opened Windows Explorer, the machine would freeze and require a reboot. Recently, this problem has gotten much worse to the point where it's very difficult for me to get any...

detecting changes to the location of sprite

What is a good strategy for detecting when the position (x, y) of a sprite, relative to the stage, has changed? In other words, how can I detect changes to a sprite's global position? This becomes difficult when the sprite is the child of other DisplayObjectContainer objects. ...

flash paths binding, constants

is it possible to use string as path ? instead of _parent._parent.myVar=123; use something like this: var path = '_parent._parent'; and then use it as path.myVar=123'; ...

Flash Clipboard Questions

I'd like to create a site similar to imgur.com that allows easy screenshot uploading. Because I don't know much about Flash yet, I'd like to know if the following is possible. Can I read bitmap clipboard data with a Flash applet embedded into a web page with the standard security profile? If 1. is possible, am I likely to run into any ...

Game Engine Falty Animation Flipping Logic

Hi Everyone, I am currently working on a nice little 2D game engine in AS3. You can even load in different flash movie clips through XML for the different animations. One of the features also allows you to flip an animation when you perform a certain action. That way you could have 1 animation for both left and right (as usual). I have t...

How can I upload files to django from within AS3 Flash?

I need to build a file uploader in AS3 that is capable of uploading files into an authenticated django view which contains a form with a file upload input. I have been working on this for an entire 7 days, all day. After much digging, I have discovered that Adobe, in their infinite wisdom has disabled cookie headers from being sent...

Add nested movieclip and set dynamic text AS3

Hello, I have a map of the US with icons over a number of cities (about 12). When the user hovers their mouse over one of these icons a movieclip with two dynamic text fields pop-up over the icon. Each city's icon movieclip is named after it's home state: state_(abbreviation) ie: state_TX The pop-up text balloon is named: cityTag_mc In...

Possible to disable flash element?

I'm trying to do something unusual. I promise it has a purpose. I'm 90% sure it can't be done, but wanted to double check with geniuses. Is it possible to have an object/embeded .swf in the page, let it be displayed, but do not allow any interaction with it. As an example, can you somehow change the youtube embed code to display the pla...

Is there a way to determine if Flash has cached an object?

Greetings, I am writing a networked flash application. The server (an independent C++ app) sends resources for the flash client to manipulate and/or display, eg, images and sound. I'm assuming that the browser stores these resources in its cache. Since the resources can be pretty big, I don't want to resend them from the server each ...

Flash library for OpenStreetMap

Is there a library in Flash to access and draw vector data from OpenStreetMap? ...

How to get the size of a dynamically loaded swf with javascript?

Hi, I want to get the dimensions of a dynamically loaded flash object and resize a DIV accordingly to it. I can't use a server side language to do it. I've tried searching about loading and reading the header portion of a SWF file to get it's dimensions with javascript but came up empty. Is this remotely possible/feasible? Thanks in ...

Flash as a socket gateway for javascript

hi everyone, i just completed a web based chat application based on ajax/php. But the problem with this app is that it has to continuously poll server to check for new messages, which in turn overloads the server if many people are using this app simultaneously. now i want to implement a socket based chat app in JavaScript. I know ...

Flash- Buttons not working, Content Keeps Looping.

Hello! I'm building a website in Flash CS3 and I'm having a problem. Yo give you a basic idea, the website itself is static, and when you click a button the only thing that changes is the content in the box. The first problem I'm having is that I can't stop the content from looping. Its set up so that a short animation plays and then the...

Make a call to javascript function from actionscript

Hi All, I am trying to make a call to javascript function from actionscript. As of now, I am using 'ExternalInterface' and could achieve partial success. I could make a call to function(without any scope resolution) like "scanDNA()", which is visible to all. But am not able to make a call to function(scope specified) like "Eukarya.An...

no intellisense for controls in Adobe Flash CS 4 Professional

i don't have intellisense when writing AS3 script in flash cs4, and it's only for the controls anybody knows how to enable it ? ...