flash

Arial Font Missing using Flash CS4

hi guys, I have a (old) Flash Document ".fla" file created in Flash 8. It just has a static textbox with "Hello World"(many more text boxes) in it . (just for the question. ) The font set is Arial 12pt Bold (thr. the Flash 8 IDE). When i open the same file in Flash CS4 IDE i get the Missing Font Dialog and then it asks to Map "Arial...

Retrieving Local Files Flash Player 9

Hi there, I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash. FileReference.load(); This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve...

as2: __FILE__ equivalent in flash (how to find the file name of the current running application)

Hi. i wrote an swf application using action script 2, i want to be able to know the file name of the current running swf file. i know that in php i have __FILE__ to get current running php file, is there something like that in flash? ...

flash as2: how do i load an external text into a variable? (not loadvars)

Hi. I want to be able to load an external text from an http request to a string in my flash application. i know that with loadvars i can load variables, when the output is as: key=value&key=value.. but this is not the case here. i get in return a string with several random characters. how can i properly retrieve them ? ...

Hide a Button in AS3?

I have a button called myBtn In my actions in Frame 1 I have tried both: myBtn.visibility = false; myBtn.enabled = false; Both give me the error: 1120: Access of undefined property myBtn. ...

How do I dynamically add Image objects to the display and then interact with them?

Below is sample code from a Module I have in my Flex app. I want to dynamically create mx.controls.Image objects and add them to the display. I want the user to be able to move them (this works as below) and be able to change their z-index as well as record new X and Y coords after moving back to the database. How do I determine which ob...

hyperlinks in Flash file open 2 ff/ie windows instead of 1

in a .swf file - we have hyperlinks that for some people (myself included) the hyperlink opens up 2 IE/FF windows when you only click on it once. however some other people only have 1 IE/FF window open.. any suggestions on how to get it to only open up 1 window would be greatly appreciated! ...

Debugging Visual Studio and Adobe Flash together

Most of my applications are a combination of VB.NET and Adobe Flash, such that the VB application is displaying a Flash file inside the main form (using Adobe's COM object). The VB application is communicating with the Flash file via the ActionScript ExternalInterface and FSCommands (using XML strings). I'm having a hard time debugging ...

2 objects following each other but distance pulls them apart

Basically I am making a game where the enemy comes after the hero when He is in sight. What I do to achieve this is var distx = hero.px - px; var disty = hero.py - py; moveX += distx * .00005; moveY += disty * .00005; Now I had to multiply it by .00005 because anything higher, makes him come up on the hero pretty quick. I want the ...

How to obtain URL that Flash movie is embedded on?

Hello everyone, today I'm trying to get the URL where my Flash movie is sitting on. I found a similar question here, which was answered with a link to Flash's LoaderInfo method, but I'm not sure I'm using it correctly as the textField in my test movie here: http://leongaban.com/stackoverflow/getUrl/ does not display the URL Updated! WO...

different MOUSE_OUT behavior for vertical and horizontal moves?

MOUSE_OUT events are, evidently, handled differently for X and Y mouse moves when leaving a Sprite. How do I fix this or work around it? Where is this documented? MOUSE_OUT occurs when x==0, but not y==0 (you need to go to y==-1): private var _sp:Sprite; public function test( ):void { stage.align = StageAlign.TOP_LEFT; sta...

What is the best (performance) way to animate 55 png images in Adobe Flash?

We are using Adobe Flash to produce software for an interactive touch screen kiosk. I have 55 1024x768 24 bit PNG images. I want to play them (fairly regularly...once every 5 minutes or so) without them stuttering but can't find a good dependable way, main problem is I think Flash GC's them after an arbitrary idle period. Reason I'm d...

URLRequest with DELETE method

Need to find a way to send a delete method from Flash Player (Flex). Currently it's not done by default (except for from AIR), but I am sure someone has augmented the URLRequestHeader to get it to work properly. I've tried this, it isn't working: request.requestHeaders = [new URLRequestHeader("X-HTTP-Method-Override", DELETE_REQU...

How to embed a Flash application into trac Wiki

How to embed a Flash application into trac Wiki Some PLUGIN or what? ...

Is there a Java to Flash compiler?

GWT is pretty cool: write in Java, we build an Ajax app. Is there something similar for Flash? Code in Java, we convert it to Actionscript? Thanks! ...

How to get the Flash object within HTML?

In order to communicate with ActionScript from JavaScript, we have to get a reference to the Flash object within the document the Flash movie is embeded in. It would be like so: function getFlashObject(flashMovieId) { var isIE = navigator.appName.indexOf("Microsoft") != -1; return (isIE) ? window[flashMovieId] : document[flashMovieI...

Flash MP3 player with javascript controls.

While the question may seem fairly basic I seem to be at a loss to actually find anything that fits my needs, which are: Skinnable (although not 100% required) Controllable through javascript (start, stop, change track) Event triggers for custom functions (on track finish mainly) Actual documentation - rather that 'it can do this, but ...

How to record voice files using PHP, FLASH

Hi I am developing an application where I need to record voice(for those who does not have a webcam so they can use only microphone to record voice) or video(those who have a a webcam - like laptop or external) files and save them on server, thereafter save the file name and logged in users id on database for later access. I know I ne...

connection via an XML socket cannot connect Flash movie on same domain to website

Hi, I'm creating a Flash movie which uses an XMLSocket as one of the methods it connects to the server. At the moment I am trying to test this movie and check that the connection works. The problem I'm having is that I cannot establish a connection between the movie and the website via the XMLSocket. I am testing this on my local machi...

Flash interactivity with button over background

Hi everybody! For an ongoing project i have to implement a Flash-"Welcome" screen similar to this. I know how to create these two buttons (left and right with the two hotels on them) but i don't know how to make this smooth transition when hoovering over a hotel from one state (mouse not over button) to the other (mouse over state) WIT...