flash

Sound Object position bytes

Hi All! I use Sound object http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/media/Sound.html from my player. It method play get first param startTime in milliseconds. How i can get position in bytes by the time. ...

is there any way to handle "ALT" key in flex?

is there any way to handle "ALT" key in flex? When I press alt ley the KeyboardEvent.KEY_DOWN event is not fired and focus moves to browser's main menu(IE, Opera, Firefox) ...

Chrome: flash video players doesn't work properly...!!

hi, I can watch the videos but i can't control the volume,seek,play or pause just watch n leave....and that happens only on facebook ...

TextField multiline + wrap get text height

I have a TextField with multiline and word wrap enabled, and a fixed width. I want to calculate the total height of the text inside it. I tried using TextField.textHeight, but that gives me the height of one line. Because of the wrapping, I can't easily calculate the number of lines to multiply it with the line height. TextField.height ...

URL encoding when downloading a file in Flash

I have a flash app that needs to download a file, whose name contains UTF-8 characters. Internally, the filename is read from a UTF-8 XML file, e.g. "my filé.pdf". The code goes something like this: url = get_filename_from_XML(); req = new URLRequest( url ); ref = new FileReference(); ref.download( req ); The problem is that the UR...

AS2 Flash Input Text Problem

Hi, Well I've big problem and no idea how to sort it out. I've made a form in Flash using input text fields. The point is i'm Polish so our customers expect so they can put a polish character inside the input text field ( ex. źćż etc ). The problem occurs on WebKit Engine Browsers ( Safari, Chrome ) which just put normal characters ( l ...

Read Flex/Flash URL which has Transfer-Encoding chunked

I have a problem reading from Flex a url which has Transfer-Encoding: chunked because the FLex waits for the server to send terminate signal which in chunked transfer isn't sent... ...

KEY_UP event of ctrl key blocks KEY_UP event of 'c' key

I am trying to capture ctrl-c. I have noticed that many times, there is no KEY_UP event for 'c' key. I believe it happens in cases KEY_UP event for 'c' key should be thrown just before or after KEY_UP event for ctrl key. Why it happens? how can i catch the KEY_UP for 'c' key? ...

Actionscript 3: playing sound from library with name from string

I am trying to write some actionscript 3 code to play short sounds from the library, using a dynamically created string to load it. In AS2, I could do something like this: mySound = new Sound(); mySound.attachSound("any concatenated string" + foo); In AS3 however, the identifier is a class whose name, it seems, must be already known....

How can I tell Flash Builder 4 where to look for FlashPlayer.exe

I uninstalled Flash Builder Beta 2 and installed the Flash Builder 4. I tried to import my new projects, but I keep getting a popup that says: " [path/to/Adobe Flash Builder Beta 2/FlashPlayer.exe] Flash Builder cannot locate the required version of Adobe Flash Player. Do you want to try to run your application with the current versio...

How to check for html5 video support?

Is there any JavaScript or any other way of checking for html5 video support? ...

Calling ActionScript (Flash) method via mshtml from C#

Hi, I use the WebBrowser component from WPF. I load there a page from Internet and I access the Document property to call my scripts. Unfortunately calling scripts don't work as I need. When I am calling JavaScript methods which exist in JavaScript so it works great but when I need access some methods which are available through Flash s...

Programatically Mixdown of audio tracks (no playback)

Hi, I've found some excellent demos of how to mix together sound objects together for live playback. See the working example bellow... But can it be done programatically without any playback so I can just output the mixed file? Also I'll be adding some volume change info along the way so it'll need to be added in small chunks like how ...

Show video via flash. If failed, show it via html5.

Would you please suggest how I embed a html5 video player only if there's flash in the browser? If there is flash in the browser I want to use it instead. ...

How to create a pattern randomly without overlapping? Flash AS3

Hi, I am still a newbie to flash....still trying to learn AS3 atm I got some movie clips with different shapes and I would like to make a pattern from those movie clips. I have assigned the x y co-ordinates of those movie clips with the Math.random function. However, the shapes overlap all the time, what can I do to avoid it? Someone ha...

Need help about choosing the right way to support multiple players to play videos.

I will try to be brief here.... I am working on a project where i need to support multiple players and platforms to play videos. Major Platforms will be: Windows PC,Mac PC,Apple Devices and Android. This is the precedence i will be following. First it will check browser support for Silverlight 3 or later then Flash then HTML5. If not ...

Disabling the flash player security question to access cam and mic

Hi everyone, does anybody know if disabling the security question in the flash player is ok? I need to know the exact facts by reference whether it is ok or not. I found some answers to this but they were assumptions but nor rigid. for instance a reference to Adobe's documentation that says any workaround is illegal. Thank you all, ...

How to get email address from a string

Hi I am searching for a way to retrieve all emails addresses from a given string. For example: if i have the string "AB CD [[email protected]]" i want to receive only "[email protected]". I guess i should use RegExp and String match function, but i am not sure how. Any ideas? ...

Faking progress bar

Hello everyone. As a total beginner in Flash, I am on an assignment where I should create a fake progress bar that should go from 0% - 98%. Right now I have my line of progress with a total white tween over it that goes from left to right to indicate the fake download. See picture. While the tween is running I want to increase the ...

Website printing and flash

I have a client who has a flash gallery on most of her pages. When the page loads the gallery starts fading in images in a loop. Now, when someone decides to print the page, browsers other than IE7/8 will print the blank space before fade in instead of the first image, IE7/8 will print the current state of flash regardless. I have trie...