Namespace in as3
January 22nd, 2010 . by SajeevCheck my new article on namespace @ click here
example also provided.
Check my new article on namespace @ click here
example also provided.
you can see some as3/flash/flex interview questions answered here
check it out click
Below code show how to load external swf into as3 code and load its classes.
Below code show how to load external swf into as3 code.
"An error exist on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."
The pdf that I created in iText using PdfContentByte popup this error. Not sure why this is happening!. Tried to resolve this a lot.. blogs, sites, forums etc.. noting worked! The source that i used is as below -
I found an alternative for this, by using PdfPTable
iText is a free Java library for generating PDF documents inside your own applications. Really eazy/simple to create great results.
The surprising factor is that, in iText, PDF coordinate system has the origin in the lower left corner of the page. This means, if u place PdfContentByte at x=0, y=0 u can see that at lower left corner :O. This really was surprising!!!. In most of the software that i worked top left was the origin position. So please keep this in mind if your are working on iText and absolute positions.
Try to use onkeypress rather than onkeydown, this is because, the event codes for each key can be different for different browsers for onkeydown event and will be same for onkeypress irrespective of the browsers. In order to understand the difference between keydown and keypress, it is useful to understand the difference between a "character" and a "key". A "key" is a physical button on the computer's keyboard while a "character" is a symbol typed by pressing a button. In theory, the keydown and keyup events represent keys being pressed or released, while the keypress event represents a character being typed. The implementation of the theory is not same in all browsers. The event codes can be tested using the URL given below by just typing the key you want to know the event code,
help
The @cc_on statement activates conditional compilation in the scripting engine.
It is strongly recommended that you use the @cc_on statement in a comment, so that browsers that do not support conditional compilation will accept your script as valid syntax:
/*@cc_on*/
...
(remainder of script)
Alternatively, an @if or @set statement outside of a comment also activates conditional compilation.
It is strongly recommended that conditional compilation code be placed in comments
/*@cc_on @*/
/*@if (@_jscript_version == 4)
alert("JavaScript version 4");
@else @*/
alert("You need a more recent script engine.");
/*@end @*/
Basically, if you do a synchronous call on an XMLHttpRequest object, the onreadystatechange function is not called.
For example :
This code wont work.
Instead you must assume that the synchronous send has completed and instead check the status and process the response immediately.
This means you do not need to define an onReadyStateChange function at all.
Change the above code to
One more app with flex. Cover your htc using flex app :O
really interesting
check link below.
HTC Tattoo