flash

How can I copy a masked bitmap maintaining the masking transparency in actionscript?

Hi all - I need to find a way to copy a masked bitmap. I have a bitmap on stage, and a user drawn sprite that acts as a mask. I need to capture/copy the masked area bitmap, maintaining the transparency created by the masking to eventually encode as a png. I could find no documentation on how to accomplish this using copyPixels(), or an...

Flash. Prevent mouse drag on child

Hi, I have a movieclip with a child button in it. The movieclip can be dragged and dropped. I want to disable dragging and dropping of the movieclip when I press/drag on the child button. mouseChildren=false and mouseEnable=false don't work, since I want to keep my mouse events for the button. --------------------------------- | Movie...

How to user Frames with ASP.NET 2.0 / OR AJAX ??

Hi, I would like to use a flash menu in Asp.net 2.0. However, I have two problems: How do I keep the menu static so the animations do not refresh with page clicks? Example would be like a 'frames' but within ASP.NET 2.0... Do I use the old HTML Iframes approach?? Or can I use something more contemporary using AJAX or something like ...

How to get a file generated by SWF from URL?

so I have a SWF file. It can generate Jpeg images. I want to get that images by url (for ex www.my.com/file.swf#image.jpeg) I want to get just clean image (no flash no sign of flash). So as if i was just calling my apache server to give me that image. So how to do such sing with AS? I need Libs Tutorials or anething. ...

Casting a subclass into a parent variable as3

Hi all! I am calling on different types classes from within a loop. The objects can be of different types so therefore I am using the getDefinitionByName method. here is a piece of my code: for(var y = 0; y < mapH; y++) { brickHolder[y] = new Array(); for(var x = 0; x < mapW; x++) ...

Nested Functions, how are they garbage collected in flash actionscript 3?

Hi, I have a very complex function in as3. The function is composed of many other functions which are nested inside of it. The main function has variables and all it's nested functions also have their own variables. Some of the nested functions are called by events that were added in the main function or in another nested function. Now...

How do I access a MovieClip on the stage from the Document Class?

I have a "box_mc" movieclip on the root of my stage and I need to select it from within my Document Class. I thought Stage.getChildByName("box_mc") would work, but it just returns null. Thanks in advance. ...

Find clickable world maps

Can I get something like this http://myffi.biz/ , which selects the continents when I hover on the languages? I have searched a lot for this kind of map but have not been able to find any. ...

[as3] denied due to lack of policy file permissions

I can't get my Yahoo! Application Platform to run I keep getting denied access even though their policy file accepts requests from any domain. OK: Policy file accepted: http://social.yahooapis.com/crossdomain.xml Error: Request for resource at http://social.yahooapis.com/v1/user/&lt;user id>/profile?oauth_signature_method=HMAC-SHA1&lang...

Flash AS2.0 and JavaScript/jQuery (ExternalInterface) Communication

Hi there, Im trying to use JS to send data to my Flash AS2.0 music player with ExternalInterface, except there are no good tutorials or guides on ExternalInterface that I can find. I want to be able to change the current song in the player by clicking a JavaScript link, and on page / window load without clicking, play a default song. ...

Creating flash slideshlow c#

Hi We have a few flash files f1.swf, f2.swf .... fn.swf. We would like to be able to display a slide show of these different files in c# using winforms. Each flash file is a slideshow by itself. At the end of slideshow for f1 we need to display a message and ask the user to repeat it or continue. Just wondering if anyone has any suggest...

Need a jquery/flash carousel

Help, I'm getting desperate now. I've been searching the web high and low, but I can't find thats close to what I'm looking for. I need a flash or jquery module that will display X number of images (3 in my case) and hide the rest. The center image is the focus image, to the right would be your next image and to the left would be the p...

Very strange issue with ScrollPane

This is driving me crazy. It seems I cannot use ScrollPane ANYWHERE in my AS3 code without it crashing every dropdown box in the program. Here is the error message I get when clicking a dropdown box: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::BaseScrollPane/drawBackground()...

Developing SEO friendly Flash Site

Hi, Is there some ways to develop a SEO friendly flash site? I read in an article that flash sites are not SEO friendly one. But my friend said that there must be some techniques. Please let me know, if it's possible. ...

How to match Away3D camera to Flash CS4 IDE 'camera'

I am trying to match a setup the designer did in the Flash CS4 IDE: I'm using Away3D for this project. I wrote a little as3 snippet that spits out the Location(x,y,z) and Rotation(rotationX,rotationY,rotationZ) of the planes, keeping in mind that in the IDE, top left is 0,0, not the centre of the stage and y increases in the opposite ...

SWF Loader & Flex's SWFLoader: child SWF sandboxing policy

REF: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html With regards to a parent SWF loading a child SWF via the Loader class, is it possible to prevent the loaded child SWF from: Making any network calls, or Making calls to specific domains Basically, I'm looking for a programmatic version of allowN...

Destroy Flash Objects Completely

When I destroy my objects that are on the stage. I usually just removeChild(this) and I remove event listeners of the object. is this all I need to do to completely remove the object ?? ...

My drawRoundRect is not drawing a rounded rectangle :( [Flash]

Hi everyone, I just wrote a Background class for a new project. The background is basically going to be 2 rounded rectangles with a simple stroke and fill color laid on top of each other. Anyways right now I'm just trying to draw out 1 rounded rectangle, but for some reason I don't see it anywhere on stage :( No errors and my traces tra...

Perfect line rendering in as3

I'm making an arcade game in as3 and I want to draw pixely(unsmoothed by flash) lines. I'm drawing the pixels 'by hand'(not with flash's lineTo or anything) onto a bitmapdata object. The lines don't appear quite right though, when zoomed out the line is rendered 2 pixels thick at some parts. However by zooming it its apparent that t...

Flash with Div or HTML overlay and mootools Fx.Slide

I've tried a bunch of different variations of CSS to try and overlay HTML over SWF objects but I've had a couple of hitches. Safari 4.0.3 PC: SWF Object always render above HTML. Firefox 3.5.6 PC: Rendering apprears fine but when animating HTML over SWF'S the divs slightly flicker. I'm using the Fx.Slide class from mootools-more-1....