flash

Creating a .swc - why don't interfaces work, when classes do?

I'm making a game which loads map .swfs at runtime. The maps will contain graphics and code, which can both vary from map to map. I've decided to make all the maps implement an interface, so they can all be used in the same way by the game. I'm using a .swc to contain the interface, like in this page. I can get classes to work in the .s...

How to handle D-n-D to a Sprite?

Hi, I need to detect when a user Drag-n-Drop an object into a sprite. Here's a sample app that illustrates the issue. It never gets to the alert: tks. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com...

Is there a way to monitor/log all internet requests from Flash/AC3 application?

Hello everybody, I have a flash-based (AC3) application which does some network activity. Is there any way to see what requests it generates? Something like network console. Sources are not available and there is no way to modify the application. Im on linux platform (Ubuntu), so dont have any flash developer tools. The only solutio...

Flash AS2 , XML doesn't accept HTML inside?

A simple as2 flash app. that is reading an XML file. Here is the Flash AS2: function loadXML(loaded) { if (loaded) { _root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue; _root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue; name_txt.text = _root.inve...

Hiding Flash timeline layers for preview/publish

When I'm in design mode in Flash Pro, I can selectively hide layers. However, whenever I run the movie for testing the hidden layer inevitably shows up. Frustrating, as I want to be able to test several different layers and not have them all appear. What am I doing wrong? ...

Determine if someone is on with flash?

I want to update a row in mysql when a user uses an application with flash. And when they exit that application, I want to change the row to reflect that the user has left. Is there a way to do this easily? Currently, I'm thinking of writing a connection manager with sockets. ...

How to paste object into all frames of Flash timeline

How do I paste an object into all frames of a timeline layer in Flash CS5? ...

Pass a callback in ExternalInterface

I want to call a Javascript function from Flash, which I can do with ExternalInterface, but the Javascript function takes a callback. Is there a way to give it a Flash callback? I've thought of something like this: ExternalInterface.addCallback("foo", function(){...}); ExternalInterface.call("theFunction", "foo"); But that wouldn't w...

Wny Linux sends unicode keyboard events while Windows sends ANSI

Unde linux, the foreign keys such as ü Ü do not seem to work with this code: String.fromCharCode(e.charCode).toLowerCase(); The output is wrong under Linux, but Windows is Ok. Here is sample page to debug this: the output of foreign keys such as ü with Linux looks same here, totally broken, two chars appear: http://www.bgxcomponents.c...

Flash.text.textfield.ScrollV no more works with newest flash player 10.1

Scrolling textfield is no more working with player 10.1.82 My code is: SCROLLV = SCROLLV +2 text is scrolling down nicely with older players, but now with newest player it never scrolls. scrolling WORKS OK with player: 10,0,12,36 scrolling FAILS with player: 10,1,82,76 ...

How do I install the Flash debug player in Chrome?

Chrome comes bundled with Flash now… Great, but how do I install the Flash debug player? ...

Scalability advice for large game site

I'm building a website where players can play a turn based game for virtual credits (like a Poker site, but different). The setup I came up with: One data server which contains all player accounts with associated data (a database + service). Database and API may be split into two servers, if that helps. One or more webservers which ser...

as3.0 flash: how do i append a string to a variable so flash reads it as a variable?

i'm getting a value from a class that gives me e.g "icon1" as data. i want to use this within a function to control the visibility of an item nested in a movieclip on the stage. the nested movie has the same name as the data being sent. // here's what i want it to do: mymenu.icon1.visible = true; // but i cant append the 2 together as ...

Flash website + google indexing

This question has prolly been asked a zillion times and google is full of it but... I can't find nothing concrete. So I got a Flash website that loads html files. In the html files is the content (text). Google doesn't find the text (tried quoting a line for example to get precise search results). So what must I do? ...

SQLLite with Actionscript (AIR) for all users

Hi I would like to save settings for an AIR application to a local SQLLite database. Wherever i read, it's recommended that you use File.applicationStorageDirectory to save the database file. My problem is that in most cases, the AIR application will be first started by an administrator that configs and setup the application (and save t...

Flash AS3 - Internal namespace modifier

Hi, I am working on a library that I wish to hide the internals of to the outside world. I figured I can use 'internal class' where ever I wanted to hide the class, How ever to my understanding, declaring a class in namespace test.NS1 means it can only access classes defines in test.NS1 and nothing else. For example, (both in the sa...

Adding Actions to Button Symbol frames in Flash CS5

For some reason I can't add ActionScript actions to a timeline frame within a Button Symbol, like I normally would with MovieClip symbols or on the stage. The Actions panel shows this message: "In ActionScript 3.0, code cannot be placed directly on objects. Please select a frame..." even though I definetely have a frame selected! An...

HTML\PHP : Flash Player detection technique

when we place flash files in our websites, it OFF-COURSE requires flash player on client machines, and prompts to install flash player... is there some php code using which i can check weather there is flash player on the client machine and if not then instead of placing\embedding a flash file i place an images over there... cuz in my...

Flash stops my mouseover event at edge of embedded button

Hi All Thanks for reading, I couldn't explain well in my Title. I am working on a simple flash project. In Scene 1 I have a large image above and a long scrolling image below which is a movieclip called image_slider. The Scrolling is set with actionscript 3.0 mouse over event listener. When the user moves the mouse right image_slider mo...

Dynamic MC's path with localToGlobal Problems

I'm adding several instances of an MC (bread_mc) into a container MC (wall_mc). wall_mc has been added to a shop class and that is where i'm called the rest of my functions from. Also the wall_mc is scrolled left and right with mouseX & mouseY values. I've set up a function to add the bread_mc to the wall at different x/y positions. Fu...