flash

Finding the correct scale value within a scaled object to maintain the aspect ratio of a video.

Hello, I have a video inside of another movieclip. When I go full screen, I scale up the outer movieclip to fit the screen. So that OuterMovieClip.width is equal to screenWidth etc. How do I maintain the aspect ratio on my video so it does not get distorted? Whats the proper math for that? Thank you. ...

Problem getting variables from Class and passing a reference of that Class

Hi everyone, once again I'm getting plagued by the dreaded Flash error: Cannot access a property or method. I'm building a new video player and I need to send the total width of my progress bar(created in PlayerControls.as) to my VideoPlayer.as class. As well as control the width of the progress bar from an update function inside my Vid...

xspf player - name of object or code that defines current song highlighting?

I'm creating a new look for the xspf player: http://musicplayer.sourceforge.net/ The playlist highlights the current song being played. I'd like to change the color but can't find where that option is listed in the .flv file, or in the actionscript file. Anybody have an idea? ...

Safari WIndows and Transparent Flash

Hi folks, // Edit: The issue now appears to be confined to Safari for Windows. Around the time Safari for Windows 4 came out I started hearing from users that wmode=transparent was no longer working in Safari. I have googled this many times but have not come up with any answers. I have tried reducing interference by using tags as op...

RGB gradient based on percentage of file loaded

I'm working on my first Flash project, and for my preloader I'd like to do a really simple gradient based on the percentage loaded. The preloader says "77% loaded...", where the number 77 is a dynamic text instance called percentLoaded. I'd like the textColor of percentLoaded to change on a gradient from #000000 to #FFFFFF, in gray-sca...

Loading .bmp and .tiff file in Flash 10 using loader

Hi, I am developing a Image uploader using Flash 10. I am using Filereference object to browse images and Loader to show the image: Sample code: var tempFileRef:FileReference = FileReference(ev.target); var oLoader:Loader = new Loader(); oLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoad); oLoader.contentLoaderInfo...

Problems passing functions in flex / actionscript 3

I'm new to flex and I am building a wrapper class for the WebService object to make my main code mxml cleaner. I am trying to pass a function to a class method to set as the result event handler for the soap call and it is not working as expected. Here is the class: package { import mx.rpc.events.ResultEvent; import mx.rpc.soap...

Flash - Button control

I am doing a simple Flash button that controls the playing of a moving clip. I want the movie to go to frame one and play when I mouse over the button and I want it to go to frame 12 and play when I mouse out. I have stop(); at frames 1, 12 and 25 to prevent looping. The mouse_over part works fine, but the mouse_out part is unresponsi...

Can you increase the visual size of a flash cs3 Checkbox Component?

I want to use the checkbox component in my flash app, but it's really tiny. According to this article 1, the size and scale parameters only affect the invisible bounding box. Does anyone know of a quick solution on how to scale up (enlarge) the visual area of the checkbox component in flash CS3? ...

Flash (AS3) doesn't like draw method, but only when swf is run on server?!

I have a swf (AS3) that runs fine locally, but when I put the swf on a server and run it in a browser, it crashes when it tries to use the draw method: var bmp:BitmapData=new BitmapData(ldr.width,ldr.height,true,0x00FFFFFF); bmp.draw(ldr); ldr is a Loader that has at this point successfully loaded a jpg from some other server. I can a...

Returning a byte string to ExternalInterface.call throws an error

I am working on my open source project Downloadify, and up until now it simply handles returning Strings in response to ExternalInterface.call commands. I am trying to put together a test case using JSZip and Downloadify together, the end result being that a Zip file is created dynamically in the browser, then saved to the disk using Fi...

Using a extended movieclip

Hi, I created a movieclip and extended it with my user defined class. Now if I want to use that movie clip and use the properties from the class how do i go around doing that? ...

Memory leak in Flex Charts

Hi All, I have created a UI that displays 3-4 charts in the UI. I notice the following As soon as these charts load up the IE memory shoots up to around 400 Mb which is understandable because some of these charts are like tables displaying upto a thousand rows. I notice the more I refresh these charts the more IE memory increases. ...

PDF to flash book

Hay Guys, i need to convert a PDF to like a flash magazines? Is there any applications that allows you to convert these and export them into standalone flash magazines? Thanks ...

How to make them all the sam speed (AS3)

I currently have an animation that rotate infinitely but it's just too fast to begin with... I tried lowering the fps to 12 but it would just be skip.... Is there a possibility to make the animation slower by this code: //Import TweenMax import com.greensock.TweenMax; //Save the horizontal center var centerX:Number = stage.stageWidth /...

Easy Flash question - use ems for width?

Can I use ems for the width tag when embedding a flash object? I've done some googling and it looks like it's just pixels and percentages but I want to double check with the stack overflow community. ...

Flash AS3 for loop query

I was hoping for a way that I could save on code by creating a loop for a few lines of code. Let me explain a little, with-out loop: icon1.button.iconLoad.load(new URLRequest("icons/icon1.jpg")); icon2.button.iconLoad.load(new URLRequest("icons/icon2.jpg")); icon3.button.iconLoad.load(new URLRequest("icons/icon3.jpg")); icon4.button.ico...

Placing a div in front of a flash embed

I need to place a div tag above literally everything else on the page. I've read that setting wmode param to opaque will do it, but also heard that that will only effect IE. Is this true? How do you do it? ...

Streaming Flash Video Problem - Clipping

I have a simple flash video player that streams the video from a streaming media server. The stream plays fine and I have no problems with playing the video and doing simple functions. However, my problem is that on a mouse over of the video, I have the controls come up and when I do a seek or scrub on the video, I get little weird box...

Displaying Flash output window data into text field

Hi, is it possible to display the output window's contents into a textField so it can be seen in the SWF? Has anyone tried this? ...