flash

Domain restrictions for swfloader

I have a swf movie player located in http://www.a.com/a.swf. Normally this a.swf is used by a html page, the swf file is embedded in a http://www.a.com/a.html. The website is not built by me but I know there is a restriction that only the html in http://www.a.com can play the video . Now what I want to do is embed the a.swf into a c# pro...

Ruby server and Flash client

I want a Flash file to load external movies. Later, I want to add tags to the XML document to control the movies. I have a policy server file "to open a port for Flash client. I also have a file to load, but I don't have a Flash client built to receive the file. Ultimately, I can control Flash from a Ruby server and talk to it with an X...

Flex Panel doesn't call focusInHandler() when it gets focus.

I want to be notified when a FLex Panel gets or loses focus. I've overridden the focusInHandler() and the focusOutHandler(), but they don't get called when I click on the panel. The panels style changes indicating that it has the focus, but the handler doesn't get called. What am I missing? ...

How can I change this code into an array?

Any suggestions would be appreciated tocProduction.alpha = 0; tocWardrobe.alpha = 0; tocMakeup.alpha = 0; tocIllustrators.alpha = 0; tocSpecialfx.alpha = 0; tocAssisting.alpha = 0; tocContact.alpha = 0; tocProduction.x = 400; tocWardrobe.x = 400; tocMakeup.x = 400; tocIllustrators.x = 400; tocSpecialfx.x = 400; tocAssisting.x = 400; to...

My flash video object works fine in Mozilla browsers but not in IE (I'm using IE7)

A simple flash video doesn't appear in IE. I've looked at answers to the same problem by NineBerry, however, I've tried those suggestions without luck. You can see the page at http://sunscreenwear.com/children/media/mulholland_intro_slideshow.html. The media folder contains the following files: mulholland_intro_slideshow.flv, mulhollan...

Font Embedding in Flexbuilder Vs. CS4

I have an all-AS3 Flex project in which I embed fonts. I'm trying to run this project from CS4. However, for some reason the text isn't showing up at all. The code in the Flex AS3 looks like this: [Embed(source='C:/WINDOWS/Fonts/ArialBD.TTF', fontWeight = 'bold', fontName='ArialBold', unicodeRange='U+0020-U+0020,U+0021-...')] //a ...

Document Viewer- which one? Brava or Snowbound or Adeptol?

We have been looking for a document viewer for our application and have narrowed down to the three IG Brava, Snowbound and Adeptol AJAX Document Viewer Any help / past experiences on these would be helpful. ...

stopping on the last frame (flash)

I want my movieclip to play once and stop on the last frame. I use the following code in the loop of my movieclip class. (this is as3) if(currentFrame == 120) stop(); 120 is the last frame. It plays once. but the problem is it goes back to frame 1 again. is there a better method of stopping a movieclip on a particular frame. ...

How do you get Haxe to play sound files when compiling to Flash 8?

I'm having some trouble getting Haxe to play audio files in Flash 8. At the top of my hx file, I have: import flash.MovieClip; import flash.Sound; and, within the class itself, I preload a lot of image files along with the names of the audio files. The idea is to do a slideshow with audio content. Basically, display the first slide ...

Capture the browser screen as JPG/PNG/etc with Flash?

Hi, Is there a way to create a screenshot of the browser in Flash? I know that in Java this is possible, and it will popup a dialog asking for trusting the signed Applet, but is there a way to do this in Flash? ...

Actionscript 3 - load and library image on increment / counter

Hi, I have a very simple flash movie. 24 png images in the Library The image properties are set to 'Export for Actionscript' and the class named 'image1', 'image2' etc Single frame in the timeline I need to dynamically load 'image1' on the stage at the start of the movie. I have been able to do this using BitmapData ojects. On clic...

problems generating ASDoc

Hi I am using ASDocr, which is an Adobe AIR application GUI interface for the command-line Flex asdoc documentation generator. My class uses several external libraries and it is generating a 1046 error when creating the documentation: /Users/mga/Documents/FDT Workspace/vgline/src/com/pingpongestudio/timeline/Timeline.as(1569): col: 39 ...

Json communication between flash and javascript

Hi, note: using django/python/javascript/flash So its been two days since I'm stuck at the error. I did the things you told me to and found a couple of ways around it but nothing worked. These are the results. Javascript does not receive the normal string it has to be a json object so. in views.py somestring = json.dumps("HELLO WORL...

how to block http requests to some web-pages from adobe air.

Is it any way to prevent user to go to specific web-pages using Adobe AIR framework. I want this software to run at startup and not allowing user to surf some web parts. I want to use Adobe AIR beacause of its crossplatform capabilities. ...

Progress bar in a Flash MP3 Player

Hi I have coded a simple XML driven MP3 player. I have used Sound and SoundChannel objects and method but I can´t find a way of make a progress bar. I don´t need a loading progress I need a song progress status bar. Canbd anybody help me? Thanks. UPDATE: Theres is the code. var musicReq: URLRequest; var thumbReq: URLRequest; var ...

Time-Scaling Movies in Flash

Time scaling movies in After Effects is easy, but how would I do that in Flash? Equations or actionScript would be appreciated. Example My movie's 60 seconds. I want to play the entire movie in 30 seconds. I want to play the entire movie in 120 seconds. How do I rescale my movie using actionScript 3.0. My movies are probably going to a...

Adding Flash Components to Stage Dynamically from AS3 File

When I attempt to create a new flash list component from my as3 file (FrontEnd.as) and add it to the stage, I get the following error: "1046: Type was not found or was not a compile-time constant: List". Below is the code: package { import flash.display.MovieClip; import fl.controls.List; public class FrontEnd extends MovieClip { ...

ActionScript: Draw a border around a masked image?

I'm trying to write some ActionScript which will accept a mask and an image, then mask the image and put a border around the result (assuming that the mask is always 100% opaque). For example, if my mask is a poorly drawn star, and my image is a bunch of flowers, I want the result to be a poorly drawn star with flowers inside it and a b...

Differences between Sound.length and SoundChannel.position in ActionScript 3

Hi Can anybody tell me why or what I have to do to fix the following issue? I load a song and when I get the length the song never reach this value. Here is issue document by another guy AS3 – SoundChannel.position never reaches Sound.length And here is my code import flash.display.Sprite; import flash.net.URLRequest; import flash....

Can I start or seek to sub-second intervals with NetStream?

I am working on a Flash Video player and am implementing the ability to start a video at x time within the span of an FLV (served from FMS). I am able to start it x seconds into a stream without any issue using netStream.play(source, startTime); but as far as I can tell, it only supports seconds. I am looking to be able to give a star...