Simple PHP Socket Server for Flash

AS3/Flash/Flex, Programming

Kommentare deaktiviert

Simple PHP Socket Server for Flash

These days i was looking for a really small socket server to send messages between flash movies. All i found doesn’t fits good so i made my own one.
Example download:
socketServerExample

Upload snapshot image from flash to server

AS3/Flash/Flex, goodToKnow

Kommentare deaktiviert

Upload snapshot image from flash to server

Today i wanted to upload a captured image from a movieclip in a flash movie to a rails server. there are some task to complete to to this.
1. Flash Upload
I found a really nice und usefull class this morning. you can capture a bitmap image from a movieclip or from webcam and send it t [...]

Flex 4 sample themes don't work

AS3/Flash/Flex

Kommentare deaktiviert

Flex 4 sample themes don’t work

Today i was playing with the different themes shipped with the FlexSDK. The original spark theme is so ugly. The good thing is – there are some more themes for us, like Arcade, Cobalt, Graphite and Zen. Also there are some CSS-Styled Spark-Themes like spark_cobalt and spark_desert.
For using another theme you have to add a [...]

Flex Bug: swapChildren() doesn't work on UIComponents

AS3/Flash/Flex

Kommentare deaktiviert

Flex Bug: swapChildren() doesn’t work on UIComponents

today i found another weird bug. i wanted to change the order of 2 elemente of a mx.containers.Canvas with swapChildren() but i got the following error:

[Fault] exception, information=ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
bzw.
[Fault] exception, information=ArgumentError: Error #2025: Das angegebene DisplayObject muss ein untergeordnetes Element des Aufrufers sein.

the error [...]

Flex Bug: smoothBitmapContent doesn’t work for reloaded images

SmoothBitmapContent works only for first loaded image. After changing the source of an image smoothing becomes false.
The Solution: attach a loading complete listener and change the smooth property of the loaded image by yourself.

<mx :Script>
< ![CDATA[
 
/**
* Flex Bug: after reloading the image smoothing is false. smoothBitmapContent works only for first loaded image.
* Solution: [...]

AS3 Code Libraries

Hier mal eine super Liste mit OpenSource AS3 Code Libraries
http://www.adrianparr.com/?p=83

AS3 Stolpersteine

Frame rate
Loaded movies also, in most cases, inherit the parent movie’s frame rate. For example, a SWF file whose frame rate is 12 fps, when loaded into a movie whose frame rate is 24 fps, will play back at 24 fps. The only exception is if the movie being loaded contains a sound on the [...]