actionscript-3

Flex/AS3 multiple state itemrenderers question

I have created a module with 3 states as an itemrenderer. The states are called Movies, Songs and TvShows. The base state is empty. The itemRenderer consists of Hbox, Vboxes and labels. And I have created a List component. What I want to do is to populate data in my List component and make it visible using my ItemRenderer. Depending o...

understanding rtmp buffer size

When streaming an flv to flash, I am not sure I understand the feedback from the NetStream buffer events listed here. This article from Adobe suggests that the files are never cached to disk: "When RTMP-based video streams into the Flash Player, the audio and video data is only stored in the Flash Player's memory buffer" Spe...

Relative URLs in Actionscript 3

I have a flash movie using Actionscript 3 with some buttons that open links to new pages. Here is the code I have for redirecting to the new page: myButton.addEventListener(MouseEvent.CLICK, function(e:MounseEvent) { var request:URLRequest = new URLRequest('http://www.example.com/page2.html'); navigateToURL(request, "_top"); });...

Extra Characters in Trace Function @#$%#$@%

Can someone please tell me where these extra characters are coming from? This is the output: "MECHEL OAO ADS"21.1921.7021.88"+0.84%"4736975 1 "MECHEL OAO ADS"21.1921.7021.88"+0.84%"4736975 1 "MECHEL OAO ADS"21.1921.7021.88"+0.84%"4736975 1 Notice the space and then the 1? Those should not be there... Here's the script, should...

Hide default options in right click context menu in flex

I'm developing a flex application and I want to add it a context menu. I got it with this code: var myMenu:ContextMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var defaultItems:ContextMenuBuiltInItems = myMenu.builtInItems; defaultItems.print = false; var item:ContextMenuItem = new ContextMenuItem("Go to google"); myMenu.customI...

Validate Xml in Flex3 Air

Hi, I am opening xml in air application . i need to validate opening xml(Xml need to have specific node), for this some of them telling there is XSD validation on vb and .net , but i need to know, likewise any validation tool is available in Air ?. Thanks in Advance ...

Flex 3 color picker no color value

I need "no color" value in flex 3/4 color picker component. Here are some options I've investigated: 1) External componet. Searched a lot but didn't managed to find a suitable one. There is a great color picker that meets my needs completely, but it is in action script 2 format. I need as3. 2) Enhance the existing built-in color picker...

Templates for AS3 (like c++)

How do I define C++-like templates in AS3?; I have a map class (2d array) that I want to re-use across projects but the cell data is a different class depending on the project or implementation; There are a bunch of other reasons regarding sharing code accross different implementations, but I'd hope for somthing like: map = new MyMap<M...

IOErrorEvent Eluding Capture

I'm working on a Flex application that processes and displays small amounts of HTML, sometimes including images. I'm getting the HTML out of third-party RSS feeds. Sometimes, I see this in a pop-up window: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. The RSS URL is just fine, but there's apparently something...

Q:achieve effect similar to jibjab cards

I have a good understanding of everything up until the actual embedding in the video. Anyone know the best way of doing this? http://sendables.jibjab.com/ecards ...

How do you handle live video streaming in Flash AS3?

I've been dabbling with socket servers in Java and now I'm ready to get my feet wet with an idea I had. I would like to use python for my socket server and obviously AS3 for my client. I'm able to create a full chat using my own python socket server but I'm almost clueless what to do now that I want to add in LIVE video (want to make i...

Any particular advantage to using json over xml with Flash

Well is there? From everything I've read, it seems like the answer is no,but was wondering if anybody has a differing opinion. ...

ActionScript 3 Specification as PDF?

I see the ActionScript language specification, however, the online format is awkward. Has anyone converted this to a PDF? ...

Fail-safe way of round-tripping Flash swf files to text-representation and back

I'm looking for a fail-safe way to round-trip between a Flash swf file and a text representation and back again. One strict requirement is that the resulting round-tripped Flash swf file is exactly functionally equivalent to the original Flash swf file as long as the text representation is left unchanged. Furthermore, the text represen...

Persist a Hyperlink's Style after mouse has moved away

Is it possible to persist the look of a 'hovered' hyperlink even after the mouse has moved away from it? I want to keep the user's attention on the hyperlink -- or at least have them able to see what it was, standing out from the rest of the text -- for a few seconds after they've left it. Ideally it would fade slowly back to normal. A...

Can anyone help with the collision detect for my platformer? (Actionscript 3.0)

Im currently working on making a flash platformer engine...but my collision detect needs some serious help. Whenever my character 'jumps', and lands on the collision object, he goes about halfway through it for a split second, then goes back to the top (where I want him to be). If I continue to jump multiple times, the shadow of him, if ...

Function executing as constructor, but not as function

I have the following code in my displayandmove.as file: package { import flash.display.MovieClip; public class FigureConstruct extends MovieClip { public function displayandmove() { this.height = stage.stageHeight/5; this.width = stage.stageWidth/5; } } } And I have the following on frame 1 of m...

How to avoid this error "A conflict exists with inherited definition "?

Hi, i have 3 mc : category1, category2, category3 in library, in each of them i have mc with the same instance names : _background, _picture, but with totally different contend. What i wanted to do is to create a SuperCategory class that would do the same things on _background, _picture. So in library i did Export for Actionscript Categ...

Create a text with drop shadow in AS3

I'm trying to create a simple text with a drop shadow in ActionScript 3.0; for example: _tf = new TextField(); _tf.autoSize = TextFieldAutoSize.CENTER; _tf.selectable = false; var format:TextFormat = new TextFormat(); format.font = "Arial"; format.bold = true; format.color = 0xffffff; format.size = 12; _tf.text = "Drop shadow"; _tf.defa...

Flash Won't Load in IE

Can someone tell me why this http://hupcapstudios.com/projects/calendar.html won't load in IE? The error message: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://hupcapstudios.com/projects/calendar.swf cannot load data from http://www.hupcapstudios.com/projects/getWeather.php?zip=9...