flash

Closing a dropdown by clicking outside in AS2 app?

I'm maintaining a ActionScript 2 application which uses createEmptyMovieClip to create dropdown lists (the list items being attached as movieclips). I can close the dropdown directly via removeMovieClip and such, obviously. My problem is this: the dropdown should not only be closed when an item is clicked or the button creating it is tr...

Flash Pdf viewer just like scribd

hi is there any free flash pdf viewer so that i can embeded it in my asp pages,i tried searching google but all in vain.[embedded PDF viewer will also work ] thanks in advance ...

scaling function used by BitmapData.draw function?

What scaling functions are used by the BitmapData.draw function for smooth and not smooth drawing? (Libraries like clevrlib allow for bilinear and bicubic sampling, which suggests that neither is what flash is doing natively.) ...

Django, Flash, Cross Domains, and jQuery.Player.js

I'm writing a site in Django that involves playing music, and so I needed an mp3 player. I don't know Flash, and don't really have a desire to learn it, so when I found http://github.com/breily/jquery.player.js/tree/master I was pretty happy. It worked great. Well on my development server anyway. To serve the static files for my site, ...

Reload current frame in AS2?

What's the sanest way to achieve something along the lines of this.gotoAndStop(this._currentframe)? What I want is that Flash re-loads the current frame as if I was using gotoAndStop (which does nothing if it is given the current frame as target frame). ...

Retrieving SWF / FLV dimensions in VB.net

I'm uploading a flv / swf file and I need to capture the dimensions of those files so I could later retrieve it from a database and embed it into a page. Any suggestions of how I could do it in code behind? ...

convert html characters back to text in Flash - AS3

I need to generate an editable xml file to supply content to a flash website. I am generating my file with a html form, and htmlspecialchars e.g.: $currentItem = htmlspecialchars(stripslashes($currentItem)); This is to prevent xml entries which would produce the error "XML Parsing Error: not well-formed", such as <entry title=...

Flash - Controls fade in and out on rollovers

I've been hacking away at this a while to come up with a good solution, but basically, I have a Flash project that has a set of controls on it. When you roll over the controls, the controls will fade in, then when you roll out, they will fade back out again. I have all the controls on a seperate movie clip that has the tweens to handle...

odd math in actionscript 3?

Duplicate: Why do I see a double variable initialized to some value like 21.4 as 21.399999618530273? Is JavaScript’s math broken? many, many other questions, for every language and platform, all with the same answer. trace( ">> " + (399.6-(Math.floor(399.6))) ); prints out >> 0.6000000000000227 why? ...

[Flash] Loading image in several passes

I know it is possible. I have seen it a couple of times, but it always struck me with: "how did they pull this off?". Those images that build up while loading, it's some kind of progressive image loading. It starts out with a low res version, and then a slightly higher res, and then slightly higher until full quality is loaded. Would any...

How to load image in flash with different dimensions once

I have use the following AS2 code frontLoader = new ImageLoader(object1,"fit",iWidth,iHeight); frontLoader.loadImage(src.Url); frontLoader = new ImageLoader(object1,"fit",iWidth2,iHeight2); frontLoader.loadImage(src.Url); which generate 2 external calls to server, how I can load image once and use it several times in different dim...

Is a .swf file a source file?

I received a .swf (Flash) file and they asked me to modify some things. I don't know (yet) Flash. Is a .swf itself a source file or it is a compiled form of something other. What is the suggested IDE to work with Flash, where to starts? ...

How might I write a Flash app to play snippets from larger videos?

I want to write a Flash applet(or any other possible app) to embed in my website that will play part of a video (for example: from the 0:20 to 0:40). The video is in MPEG format. I'm new to Flash - any suggestions on how to get started on this? ...

Creating a multi-language ActionScript 3.0 site

I am aware of the built-in 'Strings' panel within the Flash IDE, however is this the best way to go about creating a multi-lingual AS3 site/application nowadays? Are there any recommended 3rd party APIs/frameworks available? Ideally I'd like to be able to change language on the fly and support as many character sets as possible, I will ...

Passing youtube video id from video feed to flash

I'm working on a flash web application (Actionscript 2.0) for my honours project but am having trouble embedding youtube videos. Basically the user selects symbols which queries the youtube api with certain tags depending on the symbols chosenand a random video is then picked from the first 30 videos. I have this working using the follow...

Flash overlays thickbox on Internet Explorer

Here's my code: I've got a flash slideshow on my page. I've used thickbox for login but when someone clicks on the login, the flash overlays thickbox. I've managed to solve the problem on Firefox, but nothing seems to work on Internet Explorer. ...

Flash AS3 - how to set Imported textfield movieclip as unselectable

Hey there, I created a graphic in Flash CS4 that contains text. I embedded the appropriate characters then saved it as a MovieClip into my library. I then exported it to an SWC file. In my AS3 code (using Flex SDK/notepad), I then import the movieclip and assign it some mouse events so I can use it as a button. Unfortunately, all the ...

Flex Type Coercion, it's gone mental I think...

I have a class essentially: public class WindowEvent extends Event { public static const WARNEVENT:String = "warnEvent"; public static const TASKREQEVENT:String = "taskRequestEvent"; public static const TASKANNOUNCE:String = "taskAnnounce"; public static const WINDOWCHANGE:String = "windowChange"; public static const...

Flash & Flex SDK/AS3 - How to keep keyboard focus?

I'm writing a flash application in Flex/AS3, and I can't seem to assign keyboard focus to it. I was mindful of this problem early on in development and added a splash screen with a "play now" button, to entice the user to click. However, the user must then click a second time on the application for the keyboard to work! To make matters ...

Place a movie clip on the stage via Actionscript

I have an assignment where at one point, I have to put a movieclip on the stage. I can't just drag it and place it and set it to visible at some point in time, I have to use Actionscript to pull it from the library and make it appear on the stage at certain X/Y coordinates. My assignment says that the function attachMovie() would be use...