Showing posts with label Flash. Show all posts
Showing posts with label Flash. Show all posts
Wednesday, May 18, 2011
Wednesday, April 13, 2011
How to install Flex Builder Plugin for Eclipse:
For
a long time I have been switching back and forth on Adobe's Flex
Builder IDE and Eclipse with Flex Builder Plugin. They have similar
interlace and tools, so to me they are basically the same. However, I
have had issues with debugging when using eclipse...
Since
each program only allow you to have one workspace and one project
opened at a time, I would always have both of these program installed on
my computer. This allows me to have my current project open on one and
the other with an old project that I can use for reference or quick
search.
Anyway, below are instructions on how to install Flex Builder Plugin for Eclipse.
Tuesday, March 15, 2011
Flash Error #2048 : Security sandbox violation: %1 cannot load data from %2.
Many Flash AS3 developer have encountered this problem and wondering what the...
The problem is simple. Your swf in domain A is trying to access a swf from domain B, and it does not like it...
The problem is simple. Your swf in domain A is trying to access a swf from domain B, and it does not like it...
Monday, March 14, 2011
Loading files using URLStream:
There are many ways one can load files in Flash Action Script 3, and this is one of the methods to do so. But more importantly, this is one of the ways you can use to by pass the annoying "Flash Error #2048: Sandbox Security Error."
Sunday, March 6, 2011
Unable to resolve for transcoding with embed image
If you have ever get this "Unable to resolve for transcoding with embed image" or something similar to this message and wondering what the effF!?!? is going on, then here is the answer...
it's actually so simple that you just want to punch the guy who wrote the compiler in his newbie face...
okay...so some where in your semi-amateur code you probably have...
Saturday, March 5, 2011
Embedding Fonts
If you noobs are wondering how to embed fonts into your SWF using code, then below is an example on how to achieve it.
Thursday, March 3, 2011
Embedding Resources/Images/JPG/PNG/SWF with AS3
If you are wondering how you can add sexy JPG or fantastic PNG or "copied/borrowed" SWF to your boring SWF without editing the FLA, then below is an example on how to do it.
In this example, I will show you how to add an image to stage after using the embed statement.
Wednesday, March 2, 2011
Flash Error #2048: Sandbox Security Error
This flash action script error 2048 sandbox security error happens when your swf is trying to access an outside website without permission from that website.
Solution:
Add a cross domain xml on the website that your swf is trying to access. A sample of the xml is shown below:
Tuesday, March 1, 2011
Flash Error #1009: Cannot access a property or method of a null
This Flash action script error 1009 "cannot access a property or method of a null" or "null has no properties" usually happens when the object you are trying to access is not on stage or has not been instantiated, yet you are trying to access a method or a property on that object.
Solution:
Monday, February 28, 2011
Flash Error #1090: XML parser failure element is malformed
This Flash action script error 1090 with message such as "XML parser failure" or "element is
malformed" happens when you try to parse or read an XML with mismatching nodes or tags.
Solution:
Check the XML nodes. Each node should end with a matching tag with the terminator "/". For example:
Sunday, February 27, 2011
Flash Error #3000: Illegal path name
This Flash action script error 3000 with message "Illegal path name" happens when you try to access a wrong path.
Solution:
Saturday, February 26, 2011
How to display a message to the console:
To display a message to the console or flash log file, we pass a string to the method trace.
Example:
Example:
Friday, January 28, 2011
Thursday, January 27, 2011
How to use Flash Actionscript to save a MovieClip or Sprite to JPEG file:
Have you ever wonder how you can use Flash actionscript to save images? Well, it is quite easy and below is the code you will need for doing so, more specifically, it will allow you to save MovieClip or Sprite to JPEG.In order to do this, you will need the as3corelib and the save function in FileReference class requires minimum Flash Player 10 or Air 1.5.
Wednesday, January 26, 2011
How to setup Asdoc for Eclipse:
Give me the right tools and I shall build the world...well what happens if they do not come with instructions? And of course, what is the use of the most brilliant code without documentations on what they are for? Having said that, programmers really need to write documentations on the code that they wrote...
After writing the documentation, you would of course want to have it some where online to easily look through it. Ask and you shall receive, so you have AsDoc...
Below are steps to set up your eclipse to generate asdocs for AS3.
Tuesday, January 25, 2011
How to print a MovieClip/Sprite/Image:
Below is the code to send a MovieClip/Sprite/Image to the printer. The minimum requirement is Flash Player 9 or Air 1.0.
Monday, January 24, 2011
How to print a MovieClip/Sprite/Image in landscape mode:
Below is the code to print a MovieClip/Sprite/Image in landscape mode. The minimum requirement is Flash Player 9 or Air 1.0.
Subscribe to:
Posts (Atom)
