flash

Get MovieClip in another frame

I'm in frame 1 of a movie, and I want to use getChildByName("mc_movieclip"); to get a reference to mc_movieclip. The problem is that mc_movieclip does not exist in frame 1 but only in frame 5. How can I get a reference to this MovieClip, even though it's in another frame? ...

how to solve zindex issue with flash

Hi, In a webpage I need to show a div layer over the flash banner which is not using wmode=transparent setting. How to solve it? ...

Flex - AS3 vs. MXML - Is there a compilation speed difference, and how does the mxml compiler work?

Does MXML get compiled down to as3 and then converted to flash bytecode? Also, is there a significant performance penalty to compiling mxml vs compiling as3? ...

flash loading external swf and change child input text field value

Hi Guys and girls, Running into a wall here. I'm working with Flash AS2 and I have the following problem hope you can help. I have a holder swf and a form swf. The holder loads the form swf _level0.myMC1.createEmptyMovieClip ("vaCell", _level0.myMC1.getNextHighestDepth ()); _level0.myMC1.loadMovie('form.swf'); The form contains input ...

How can I call an Actionscript function when the .swf is referenced by jQuery?

I have an .swf that I am embedding into HTML using the jQuery SWF Object plugin (http://jquery.thewikies.com/swfobject). I have a number of functions within the .swf that I need to call from within javascript functions. I've made these actionscript functions accessible to javascript by calling flash.external.ExternalInterface.addCallback...

Flash Texture Mapped Triangles look horrible

I have a 3D cube made with PaperVision3D. Each "side" is made of 2 triangles. I have a different texture "material" mapped to each side. When I rotate the cube the texture is skewed like '/\' an upside down v between both triangles. When looking at a face straight on it looks ok but start to rotate and it starts to skew the textures....

Batch Downloader- Flash, Java, Air?

I have a store that I maintain and we sell CD's. When customers purchase an album, they have to go through and then click to download each and every song (zipping the files is not an option). Needless to say, this is a pain. Does anyone know of a solution to use iTunes-style downloading (will download a few at a time, and once those a...

Flash : Load random movie clips into animation

I'm using AS2, but I could also do it in AS3. I'm making a simple animation with about 10 "coins" on screen. I have a movie clip that animates another movie clip flipping over. I want to pull a random movie clip from the library into the nested clip so that on each "flip" a random coin face comes up. I've put all the clip names into an...

Secure swf using flash obfuscator?

In order to protect swf files, prevent decompile and reading the action script CODE, now I am looking for best/popular(being used by big companies) flash obfuscator. Could you recommend some of the best flash obfuscators that you know? (I am not sure if its an appropriate question to ask here. But its very important for action script p...

jQuery Tools library flashembed and sifr

Hi, I'm using the flashembed method of jQuery Tools library to set up a sifr, but can't seem to get it to work. I've followed their example: http://flowplayer.org/tools/demos/flashembed/jquery2.htm For me all it shows is a flash movie with a white background showing the text: Rendered with sifr3 revision 436. I think I might be missing ...

Physic engine for sandy 3d

Hello guys, I develop a small game to learn AS and sandy 3D. I want to include a physic engine in my 3D scene. I wanted to use WOW like the sandy tutorial say but the WOW web site is down so it's difficult to develop something without doc. I search a new physic engine that I can use with sandy 3D. Do you now that ? Thanks. ...

Actionscript 3, addChild from library then access it's children by instance names

So I successfully added a movie clip from the library using addChild(), but now I want to access some movieclips that were in that dynamically added movieclip. I've used standard dot notation and also getChildByName passing it the instance names. What am I missing here? ---- EDITED ---- I tried the suggestion of looping through and c...

Can't figure out why video is not playing

I used the longtail flv player setup wizard to embed a video on a web page. It worked on the wizard but not after I copied and pasted into my page. Does anyone see anything obvious? The thumbnail for the screenshot works and is in the same location as the flv file. ??????? Link is here ...

How to open file dialog in Flash 10 "without" user interaction

I want to open a file dialog via FileReference.browse() but I get #2176 error which means that this action can only be invoked upon some user interaction. I'm aware of security considerations but in my scenario I have a thin flash movie which merely displays an image and the whole UI is in javascript (I heavily use javascript <-> actions...

FlowPlayer: Display video description from database when user clicks that playlist item

Hello I have setup FlowPlayer and a playlist using the jquery plugin. The items on the playlist are generated in a php while loop as the file names come from a database. I want to grab the video 'description' from the database and display it in a div, but only when the user clicks that playlist item. I have tried using the onStart even...

AS3 - preloader occasionally won't load images, or external swf

Hello! First question here; hope you can help. I'm completely flummoxed. I created a flash slideshow which preloads the images. After preloading the images, it proceeds to load an external flash file and then the images. The problem is, very very occasionally, it will fail to actually load the images into view, and I'll just see the pre...

Is there a way to detect whether Flash is above the browser fold?

I'm looking for a way to determine if a Flash movie is visible within the browser viewport. Unfortunately there's a big caveat here: it must be done without JavaScript. Is there a native method, in Flash or Flex, that can detect when the movie becomes visible? I was thinking that the only way to do it would be some kind of low-level rend...

Can I get vector data back out out of a Graphics object?

In the Flash 10 player, suppose I've loaded a Sprite that's just a dozen random lines. Is there any way to inspect that Sprite's graphics object and find out the positions of those lines? Currently I have a crazy work around where I draw the lines to a bitmap and inspect the bitmap, but this is crude and expensive. ...

How to shift audio track without delay in AS2

Hi, I have written an application that plays 2 audio tracks in Flash. Now is my problem: how to make so, that after user have pressed a key, second track would be shifted(forwards/back)? This action and then playing should be without additional caching and delays. ...

Actionscript PNGEncoder performance and UI blocking.

I'm trying to use PNGEncoder to encode a bitmapData object into a png ByteArray so I can send the data to the server. Everything would be peachy except the bitmapData is 4000x4000px and when I run the PNGEncoder.encode function on it the whole app stops (UI is blocked) for 5-8 seconds while it runs. Does anybody have any suggestions on...