actionscript

Links to control Flash Navigation

I am trying to create a link on a page that mimicks the existing flash navigation and get it to work as expected, meaning that when you click the link, the site navigation reflects the change. The problem I'm having is that I don't understand the hierarchy since I'm working from outside the navigation system itself. I can get the anima...

Flex component lifecycle, order of events

Dear friends, I am confused about the order of systen events. As per the book, 'childAdd' event of parentcontainer should be triggered after triggering of 'PreInitialize' and 'Initialize' event of childcontianer while as per the program out put it seems otherwise. Please help. What I found in books is as below: \ Container----------C...

Flex 4: How to get actual width of a group when using 100% and top/bottom/left/right?

I have an application with width/height of 100%. I have several nested groups within and their measurements are all not set, instead being defined as top=5 or left/right=10, etc. I'm trying to get the actual with of a group that should be 390. I've set the swf object size to be 400 from the html embed code, and the group is inside ano...

Recording video with flash and send videofile to server.

Everyone knows that recording a video with the user's webcam is possible with flash in the browser - but all the solutions I found until now involve a rmtp server that accepts a stream from the flash app. Is there a way to use webcam recording without such an extra media server? The usecase I want to implement is the following: Show ...

Does Flash Media Server support audio?

Can some illustrate how to stream audio to fms with actionscript? ...

Flex HTTPServices and valid xml

Hi guys, I'm currently attempting to communicate with an API using Flex as the client. I'm using Flash Builders HTTPServices to do so, bit of a noob to all this. All works correctly if the accessed XML files elements are formatted correctly however if I add a hyphen to the element name I get flex warning me to the fact ie. The returned o...

call shell command inside of a flash file

Hi! I want to create a basic GUI for a touchscreen panel running linux grml with fluxbox so I'm very restricted. The Gnash player is also available. Is there a way to call shell/bash commands inside a Flash file (swf)? I want to create a GUI to control the mplayer and volume with the touchscreen... If it's not possible with Flash, what ...

Flex 4: How to override the default button functionality in a skin class?

I have a videoplayer with a custom skin class. I want to override the functionality of the fullscreen button. When I add an click event, the player still goes into fullscreen mode. How can I prevent the fullscreen event from firing? ...

Check if control is on screen

How do I check if a control/DisplayObject is on screen? This means it is displayed on screen so no scrolling needs to be done. Example: I have several controls on a form. The size of the form exceeds the screen length/width. As a result I need scrollbars. How do I check if a control is on screen? ...

How to get the size/coordinates of the content area of Container objects?

How do I get the size of the content area of Container objects? One non generic solution is checking for styles I suppose but I am looking for some code that works generic for all standard flex Container objects. Edit: The controls are Flex 3 ...

Sending Email from Flash / Actionscript 2.0

Complete Flash / AS Noob here. Friend wanted a change in Email address and I'm assisting. I notice at the bottom it posts to a formmail.php file but I was wondering if there was an easier way or perhaps someone could help me understand what exactly it POSTS and how AS handles POST methods so I can rewrite a script. As formmail.php is som...

Flex's FileReference.save() can only be called in a user event handler -- how can I get around this?

I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an ...

Can I add a disabledIcon to a Flex Menu for use in PopUpButton

I am using the Flex PopUpButton & data binding a Menu object to the popup. I successfully added an icon to a menu item; however, it does not look like Menu supports the disabledIcon property common in many other elements for use when enabled: false for that menu item. Is it possible to extend the Flex Menu class to use disabledIcon? Sho...

Referactoring code in Action Script and php to optimize runtime memory usage

I used to write programs in the android sdk for google phone. One of the android developers guide that I read says that it is more efficient to declare a const public static const NO:String = "no"; var1 == NO; var2 = NO; than to do this var1=="no"; var2="no"; For Java, when you write "no" each time, a new variable is create...

disable datagrid header rollover color and selection collor

how could i remove these two colors for the header.... i could override rollover for the columns and leave the selection, but i want to remove these two effects from the header and i couldn't find a way to do that.... ...

flex 4: creating a group that slides off stage during fullsize mode

I have no problems getting this to work in smaller sizes, but as soon as the application goes to full screen it throws off all of the layout. Any suggestions? here's the effects (stageWidth is updated on resize and I've checked that it contains the correct value). <s:Bounce id="bounceEasing"/> <s:Parallel id="panelIn"> ...

How do i know if the request came from flash swf?

I have an application developed in flash, and I need to access some php files. so the php file return some data if the access is came from swf. How can i identify if the request came from flash or not? without passing get/post variables to php. ...

"this" is undefined

I am a java/php developer helping someone with actionscript. I don't understand why "this" is undefined in the below code. this is only a snippet of the code, but hopefully it's gives an idea of where i'm trying to reference "this". I'm trying to find out which movie the tween is moving so that i can load the next movie. Tweens are u...

Is it possible for multiple clients to modify the same stream synchronously with FMS in flash?

Like what we see in a web conference software, is it possible with Flash Media Server? ...

Is there something like session id or cookie in flash?

How can I distinguish different users with actionscript, or is that possible? ...