actionscript-3

Flash - Full Screen Image fx

Hi, I am wondering about the image effect seen on this site http://www.daffys.com/ I'm referring to the dotted / grid-like effect on the images. Do you think it's a simple Photoshop treatment or is it an effect done in Flash, related to the fact that the images scale full screen. I've seen this on many other sites and would be very int...

Flex: HTTP request error #2032

In Flex 3 application I use HTTPService class to make requests to the server: var http:HTTPService = new HTTPService(); http.method = 'POST'; http.url = hostUrl; http.resultFormat = 'e4x'; http.addEventListener(ResultEvent.RESULT, ...); http.addEventListener(FaultEvent.FAULT, ...); http.send(params); The application has Comet-architec...

Arcball Implementation for Papervision3D

Is there an arcball implementation for Papervision3D? There are many arcball implementations for Flash/ActionScript but none specifically for Papervision3D. Here's an example of an arcball implementation for flash: http://www.unitzeroone.com/blog/2009/09/08/source-better-flash-10-3d-interaction-arcball/ I have taken to writing my own...

Can't get XML node info to trace out :(

Hi again guys, this should be a very simple trace out... but I have no idea why it's not working. My XML <col id1="Photography"> <vid flv="video1.flv" thumb="thumb1.jpg">This is test video 1.</vid> <vid flv="video2.flv" thumb="thumb2.jpg">This is test video 2.</vid> <vid flv="video3.flv" thumb="thumb3.jpg">This is test video 3.</vid...

Force-directed graphing

Hello, I'm trying to write a force-directed or force-atlas code base for a graphing application I'm building for myself. Here is an example of what I'm attempting: http://sawamuland.com/flash/graph.html I managed to find some pseudo code to accomplish what I'd like on the Wiki Force-atlas article. I've converted this into ActionScript ...

Workaround for AS3 language bug?

Does anyone know how to fix the bugs in Actionscript / Flash regarding keyboard input of European characters? Entering, for example portuguese characters, works fine on PC, but not MAC, this bug is on both Flash 9 and 10. These does not work: Á, Â, Ã, À, Ç, É, Ê, Í, Ó, Ô, Õ, Ú. Works sometimes (but typically only the first time): ç ...

AS3 Untyped Variable Efficiency

I'm (still) trying to solve an issue in my 2D Flash game where my framerate is dropping to unacceptable lows. I have a class with the following member variable and method: protected var value:*; public function getValue () :* { return this.value; } Right now, that method is being called seemingly a few hundred times per frame and ...

Solutions for compiling C# to SWF/Actionscript

Are there any good solutions out there for compiling C# code to an SWF or to actionscript? ...

Flash Animation

I want to create a construction page for one of the site with a glass filling with water.... now the concept is the site is going to be launched next year.... So I need the glass to be filled by next yr... with the countdown timer... is there any good example or a way of doing this.... I'm not that good in actionscript ...

Flex: Display Alert object once only. Inheritance?

Hi! I am writing a simple application which communicates with web services a lot. So I am listening for success and fault events very often. When service returns a fault, I show an alert to a user saying something like: "Sorry there was a problem with a service, we will try to call it later" But there is a problem. When user didn't no...

stage.addChild and layering

I have a simple function that, when you click on a button, adds a movie clip to the stage in a random x and y position. The issue I am having is that the new movie clips eventually cover up the button. I tried to change the z-index of the newly created mc to be below the z-index of the button, but that doesn't solve the problem. How does...

Adobe Flex - LinkBar font size does not appear to change!

I have a LinkBar which is linked to a viewstack. However, as I change the fontsize of my LinkBar, when I run it, the font size does not change at all! I've tried changing the font using CSS and it doesnt change the font size! Any ideas? Here is the code: <mx:Canvas x="0" y="0" width="30%" height="100%"> <mx:Label x="10" y="10" text...

How do I make sure the text of an ActionScript TextInput is updated when the Object property defining that text is updated?

Not an easy question to decipher, so let me boil it down. I'm trying to convert an MXML component to an ActionScript Class. The component consists of a Form with a TextInput, TextArea, and two buttons - Save and Cancel, and a Validator for the TextInput, and other logic to handle events that occur. This component is currently extended by...

Persist row order in Flex AdvancedDataGrid

I have an AdvancedDataGrid that I allow the user to drag/drog the rows to reorder them and also allow them to sort on columns. I want to save the row ordering so that the next time I load up the data, the row ordering is preserved. I have a bindable array collection to the data grid. The array is a collection of a custom AS object. I...

error insert text in papervision typography class

hi evryone , i am encounter with a small problem i want to make a 3d rtl text animation with papervision this code generet a problem to this : [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference. but when using a english text this error dont genereta my code : p...

Any Tips For Serializing UIComponent

I am trying to serialize an extended UIComponent (com.esri.ags.layers.GraphicsLayer) to send and store in a MSSQL Server database using WebOrb. Apparently, these types of objects aren't meant to be serialized, and I haven't had much serializing/deserializing using the flash byteArray. I have also tried several other libraries(FlexXB,as...

as3 - Preloading XML Image Gallery

I have an image gallery class that loads thumbnails and full images one-by-one in a loop. Then I push then into an array and create one movie clip with each bitmap. It's working good. In witch part of this process I can preload all images, before display the entire gallery? Thanx! ...

How to pass a reference of a movieClip made in one class to another?

Hello friendly Flashers... I have a movieClip with a button that I created inside of my display class Thumbnail.as and I have a button function that interacts with it inside of my ui class ThumbnailController.as. The current problem I'm having is that; in my ui class I can't target the movieClip playGlow which was created inside of m...

Adobe AIR - Weird Framerate / Memory Issue (Maybe startAtLogin issue? )

Hi All, I am creating a slideshow application where it loads all the slide data from xml and external images / text files and dynamically creates the slides. The problem that I am having is that when I test the app on my machine it works perfectly fine, every time, however when I place them in the clients machines (the presentation is ...

Change Titlewindow close button

I'm working with Flex 3.4 SDK. I need to change the default close button image from a TitleWindow. So what I'm doing is defining a CSS selector, like this: TitleWindow{ close-button-skin: Embed('assets/close.png'); border-color: #FFFFFF; corner-radius: 10; closeButtonDisabledSkin: ClassReference(null); closeButto...