Archive for the ‘ Flex ’ Category

GestureIcons

Fantastic icons for wireframe our multitouch projects.

Website:http://www.gesturecons.com/
Download:Gesturecons.zip

innerHTML removes attribute quotes in Internet Explorer

After losing 2 hours for an unknown XML parsing error, I have discovered that the results of innerHTML in Internet Explorer are wrong.

1
2
3
4
5
6
7
8
// Original Source code of document
<div id="container">container</div>
// Result of innerHTML in document.getElementById('content')

//Firefox
<div id="container">container</div>
//Internet Explorer
<DIV id=container>container</DIV>

The solution: innerXHTML

1
2
var container = document.getElementById('container');
var code = innerXHTML(container);

Download innerxhtml

Disable all button events in AS3

In old AS2 days, whe use a simple big button in the top of the scene to avoid user iteraction while by example posting data and waiting result from server.

In AS3 is more simple:

1
2
3
4
// Disable all button events
stage.mouseChildren = false;
// Also Disable tab events
stage.tabEnabled = false;