flash

How to set a video play to full-screen mode in a flash web site?

In my flash site there is a video player that I want to have an option of switching into full-screen mode. It's the video player that needs to be set to full screen, not the whole stage. How would I go about this? ...

What functions does Javascript use to modify html?

In a HTML/Javascript webpage, the javascript file takes the body of the html, renders the contents in the tag in Flash, and displays the flash content. The page is not flash, it is still Html, but the javascript must be modifying it to display it in Flash. What i want to know is what functions/methods does Javascript use to modify the ...

Javascript in stand alone Flash / Flash lite app

Hi Can a stand alone flash / flashlite app invoke javascript functions using externalinterface or any other interfacing feature in actionscript ? thanks kunal ...

repeat a Mouse Over event

Hi I have an actionscript that moves a box across the stage when the mouse is over a left or right arrow shaped button . The script below does just that. BUT what I want to do is have the box repeatedly move until the mouse is moved off the arrow button . I have tried all ways can anybody please point me in the right direction .I have re...

Yahoo Astra flash component error BaseScrollPane not found

I'm trying to use the Astra library from Yahoo but I'm getting an error saying the base class BaseScrollPane is not found. It appears to be imported from fl.containers.BaseScrollPane, which leads me to believe it should be a part of the base flash 10 library and therefore should be available, but it appears to be missing. Is this part of...

How to get all the variables in _level0 using ActionScript 2.0

I have a loader loading two files. One can be anything, and the other is the one im working on. It has a textField.text within which it should list the variables in _level0 for both files. I dont mean objects or info like what os im using (which is all i can get now). I mean the vars defined in the AS. Like what you get when you debug yo...

Why am I getting this error? Error #1006: draw is not a function.

I have 2 classes with a draw function in them, my Background class and VideoDisplay class. I'm not done with the VideoDisplay class, but I put simple traces in it to test. I call both the Background and VideoDisplay the same way in my document class, but when I try to call the draw function of the VideoDisplay class I get this error: Er...

Can I use flash in an OpenSocial gadget

I need to create an OpenSocial gadget with a flash object as part of the gadget. Is it doable? Are there and caveats I should be aware of? Where can I find samples to such gadget? ...

Flex - How to count colors in .SWF vector file

Suppose I've converted a vector image file (.AI/.SVG) to .SWF for ease of importing dynamically as the source of an Image in Flex. To count colors now, I have to create a "new BitMap", then ".draw()" and iterate over all pixels and use ".getPixel()" to retrieve the color. Unfortunately, because of anti-aliasing, this seems to return se...

Firefox and Flash change from firebug

I'm trying to write a Playlist for Flash Player. So I have problem with Flash & firefox. The playlist is HTML list where I have file urls for MP3. When I change from firebug object value the firefox doesn't react - disapears. Upd: I have object where I have parameters, when I change for example parameter where is written file path, the...

Using Loader without creating a reference

Ive been using the loader a lot of upload images into my movieclip. But the only way I know how to do it is load the content, add an event listener, wait for it to finish finish the job in the handler using the reference to the loader like this. protected function loadImage(imageDir:String):void { loader:Loader = ne...

Parameter sourceBitmapData must be non-null.

I am trying to copy the pixels of a bitmap data. but I keep getting the following error Parameter sourceBitmapData must be non-null. it happens in the method drawImage. exact after my trace that says "got canvas data". canvasData.copyPixels(image,tileRect,tilePoint); Below is my code package com.objects { import flash.displ...

Porting python app to silverlight or flash

I guess that title is self-explanatory. Is there any such effort been made? Some more info: it's client application (gui intensive) By porting I was thinking of cross-compiling. ...

xml data in actionscript 3.0?

is the target.data, a default structure of whole xml? in as3, should the data of xml loaded through this data itself? function xmlDisplay(e:Event):void { xmlData = new XML(e.target.data); trace(xmlData); } ...

ArgumentError: Error #2015: Invalid BitmapData.

I am having problems loading a bitmapData. I am getting the following error Engine Init //trace loadimage//trace ArgumentError: Error #2015: Invalid BitmapData. at flash.display::BitmapData() Below is my code. it appears it happens after the trace loadimage package com.objects { import flash.display.Sprite; import flash...

Call AS3 MouseEvent function from JS

Is there any way to call MouseEvent function in as3 from JavaScript? I have HTML button and swf object, I need to sent a POST request from swf by clicking on HTML button. ...

flash action script 2: getUrl('url',_mylevel) - when using a specific level, swf is not loaded

Hi. i want to load another swf that i build and use it's functions. but it seems that when i use getURl('url','_mylevel') it doesn't load the flash file and i get no error. only when i use getUrl('url','_blank') it opens the browser with that url. i want to be able to use the functions in that swf like the following example: _root._m...

Drawing in Flash using PHP

Hi, Is it possible to draw shapes in a flash animation at runtime through PHP? If so, how can this be achieved? ...

How to create HTML pages using AMFPHP (on server)

I have AMFPHP installed on my server. I have a flash app that can call it's methods. I want to create some HTML (on server created) pages which will contain HTML code and results of AMFPHP functions. How to create such thing? ...

Send ByteArray to JavaScript

How to send a jpg image as ByteArray from as3 to javescript? And how to convert ByteArray to image in javascript? ...