flash

ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

In my game, I encapsulate my addChild so that I can have an array of all the objects that are on stage for later garbage collection. this is how I do so public function addGameChild(object:gameObject,isDisplay:Boolean = true):void { if(isDisplay) addChild(object); gameStage.push(object); ...

Simple animation - Flash or jQuery?

I have some animation I would like to try, kind of a shopping cart/checkout action animation. wanted to know if flash or jQuery (JavaScript) would be best? The backend is all in PHP and I was thinking of using AMFPHP (If Flash) or jQuery (Any frameworks???) but wanted to know the drawbacks/features of each approach. Thanks for any advi...

Using Enter_Frame as a timer Flash

I am trying to save memory and space. So instead of using the Timer for my application, I was thinking about using my main loop (ENTER_FRAME) to keep track of time that passes. Is there anything wrong about this ?? ...

How do you create flash images on the fly at the server side?

The question just came up! I have seen in web apps we get flash images generated on the fly how is it achieved? Any api for programming languages (Java Python)? PS: It's adobe flash movie / image or swf ...

How can I modify my code to line through the bezier control points?

HI all - I am using anchor points and control points to create a shape using curveTo. It's all working fine, but I cannot figure out how to get my lines to go through the center of the control points (blue dots) when the line is not straight. Here is my code for drawing the shape: // clear old line and draw new / begin fil...

How to hide Print and Download buttons in Flash Paper 2.0

Does any one have any idea about how to disable or hide print and download buttons in Flash paper. We have to show and hide those buttons according to the permissions assigned to the users based on the roles assigned to them.Can you please help me out in solving this mystery ? I have embedded the below code for showing swf adobe flash p...

Doesn't the wmode set to opaque work in Safari on Windows?

No html content appear in front of the flash player. It works well in other browsers, but not in Safari (run on Windows). Do you know anything about the matter? ...

Make an object react to a sound in Flash

Hello! I have a speaker and I need this speaker moves with a sound. I need to simulate the real world speaker vibration generated by the low and mid frequencies. Does not have to be soo realistic what I whant to know is how I can play a sound and get son mumerical value usefull for apply numerical size transformation to the speaker. C...

only plays one key frame

I hope I explain this well. But in my game I have 3 keyframes for my bullet Movieclip. 1 to display its normal state. 2 to show it Blown Up, and 3 to remove it from the stage. A total of 3 frames. When the bullet hits an object, I go to and play the 2nd frame. then when frame 3 hits, I remove it. Here is my code private function blowUp(...

Fast forwarding Flash Video

Is it possible to use Actionscript to speed up (or slow down) a video playing? Say, having it play at twice the normal speed? If possible, can you also make it that the sound does not get all squeaky? Some Videoplayers can do that, I was wondering if it is possible to do in Flash. ...

How would I create a music player in Flash that creates a waveform of the audio file?

I have got three screenshots below of Flash-based audio players on various websites that draw a waveform of the clip it is going to play and moves along while it is playing and also allowing the user to click on a point on the audio file and it jumps to that point. DJ Download music player from http://www.djdownload.com SoundCloud mu...

How to change the coordinate origin in Flash's stage with Actionscript?

I think I did this before but can't find the code. Flash as many other graphical frameworks use the top-left corner as the coordinate origin (0,0) because it's how the underlying memory model is by convention. But it would be really simpler for my calculations if the origin was in the center of the stage, because all the game revolve...

[Actionscript] Drag and drop into the collect slot?

For eg you have three boxes: A, B and C. Then you also have 3 balls: A, B and C. You are supposed to drop ball A into box A and etc. If you drop the right ball into the right box, you get 1 point; else you get zero points and the ball returns to the original position. I am supposed to use an image instead of A, B and C. How to detect if...

Flowplayer flash component plays sound but not video.

Okay, I've been researching this all day and it's driving me nuts. The flow player will play the audio of a *.flv, but doesn't play the video and I've no idea why. The initial example page using the default flowplayer flv url works fine. When I change the url to my godaddy site, it doesn't work. I've searched Stackoverflow, googled, and...

fonts not being embedded Flash CS4 AS3

Hi Maybe you can help me with a problem I am having. The URL of the project is: http://www.mauriciogiraldo.com/vgline/beta/ It is a Drupal-powered, AMFPHP-connected AS3 web app. The data goes through to Flash with no problems, I have verified that UTF-8 is fine and all. The problem can be better seen in these URLs: http://www.maurici...

Quality of flash object

I have embedded a flash object in my html page. But the clarity is not as good as expected. http://www.saraswaticlasses.net/trimax/ I used Camstudio to generate it and it shows correctly if played from within that software. ...

extending AS3's Array access operators to 'wrap' out-of-bound index values

I'd really like to be able to make Flash's array access syntax 'wrap' over the array's bounds. Lengthy explanation - var array:Array = ['a','b','c','d','e','f']; To keep things simple, the first index is 0, and its value is the first letter, 'a'. To get that value, we'd do this - array[0]; // returns 'a' As long as the index you'...

Flash Videos "Bleeding" above Lightbox Video

Have a video in a lightbox on a page that has some other Flash content (banners, animation, etc. in SWFObject). I guess Flash has it's own window that's essentially on top of the document window (although I'm not sure I understand this in it's entirety). Tried setting wmode to transparent, and also tried several lightbox libraries (JQuer...

What's the best way to wrap Flash in a windows app that forces a specific screen resolution?

Can someone recommend a good solution for a Windows based wrapper around a Flash application(or even IE, in which I can call Flash), that would launch as an executable and force the screen to a specific resolution and then render the Flash in that (full screen) window? ...

Referencing other movieclips within actionscript class

I have externalized the actionscript code of a movieclip into a separate class files. This movieclip requires references to some other clips on the stage. What I am currently doing to reference those clips is by using Movieclip(this.parent).otherclip but somehow that feels wrong. Is there a better way to pass in the required references ...