Tips
water pumps
Grainger is your source for water pumps, and water pumps for your home , there are two types of swimming pool pump, filter swimming pool pump, A jet pump is a type of impeller-diffuser pump,shallow well jet pump from flotec is ideal for wells.
wowgold
wowgold
investment casting
The investment casting from Wisconsin Precision Casting Corporation reduce the high cost of your machined investment casting parts,Find sand casting,aluminum sand casting, resin sand casting and more,lost wax casting,learn about lost wax casting and how it’s used in professional jewelry making.
water heater
The capacity of a water heater is an important consideration,the most common type of water heater in the us,its first water heater in 1936.heat pump is an air conditioner that the heat pump acts like an air conditioner,the eco swimming pool heat pump is ideal for smaller pools , the competition swimming pool heat pump.
world of warcraft gold
Farming for world of warcraft gold (EVE ISK) isn’t easy, but you can buy cheap FFXI Gil. Buy EVE ISK now, I think you will have your pleasure. Eve online isk on sale. L2 Adena 60-70,purchase eq2 plat online and wow power up your character to the next level.
ball valve
The ball valve definition, words related to ball valve, proper usage and pronunciation of the word ball valve from Dictionary. Buy this book with advanced sheet metal fabrication by Tim Remus today! Ultimate sheet metal fabrication very good for the novice sheet.Rotary vane vacuum pump manufacturer,follow the instructions from your vacuum pump manufacturer…
Include the build version in flash detection
Remember to include the build version in your flash detection. Otherwise you flash might not work on a number of computers.
Flash detection doesn't work on IE7
If flash works in IE but the flash detection doesn’t work then you need to uninstall and re-install flash.
Flipping MovieClips with Actionscript
You can use _xscale and _yscale to flip vertically and horizontally if you use a negative value.
Public classes in Actionscript 3
Remember to declare classes public when necessary in Actionscript 3.
Super constructors are always called
The super constructor of a class is always called. Regardless of whether a super() method is included.
Tip #34
I got the following error from Flex 2 when debugging.
C:\WINDOWS\system32\Macromed\Flash\Flash9d.ocx Flex Builder cannot locate the required debug version of the Flash Player. You may need to install the debug version of Flash Player 9.0 or reinstall Flex Builder. Do you want to try to debug with the current version?
I’m not sure why the problem occured but I had recently installed flash 8 as well as both Firefox and IE7 so it was possibly any of the above. To resolve it uninstall flash and then run ‘Install Flash Player 9 AX.exe’ which you will find in the player folder of your flex installation. For example mine is located at the following address.
C:\Program Files\Adobe\Flex Builder 2\Player\debug
Running this should re-install a debugging version of the flash player and hopefully resolve the problem.
Tip #25
I have noticed some very strange caching issues when using Runtime shared assets. It becomes impossible to clear the cached elements.
It’s generally preferable not to use Stage.width and Stage.height. You are better just using constants as the actual value is often read as 0 in IE(Internet Explorer) .
If you have to use because you are creating a liquid layout that fills the screen you should include a check to ensure that Stage.width and Stage.height aren’t 0.
Test tabIndex in a browser
Disable keyboard shortcuts when testing tab index.
Tip #22
When loading in swf I have found it’s better to have the swf of the same flash player. Not really a firm rule, but from experience somethings stop working for no apparent reason.
Tip #21
When loading in a new line character with XML in flash, flash will automatically substitute the \n to \\n. This will mean it wont used as a newline character and will simply be show as normal text. To overcome this you need to replace all occurrences of \\n with \n.
desc = desc.split('\\n').join('\n');
some_tf.text = desc;
Where desc is the string to be changed.
Tip #20
If you are extending components and it doesn’t appear to be working remember to check whether the export settings are appropriate for the component i.e. if your actionscript classes arn’t exported on the first frame remember to take the ‘Export in first frame’ option off your component.
This proved particularly bothersome for the FLVPlayback component since you wont see the component whether it is included or not. Not unless you load a FLV file onto it.
Don't Rely on Stage.width and Stage.height
Stage.width and Stage.height sometimes return a value of 0 when run in IE(Internet Explorer) .
Tip #16
If you use Flex and SVN you will need to install subclipse or something similar. If you don’t ever time you publish your Flex application the .swn files will all be shuffled about. You need to install version 1.0.5 for Flex. This will mean unchecking “Show the latest version of a feature only”. Otherwise you’ll like get the error “Subclipse (1.2.0) requires plug-in “org.eclipse.core.resources (3.2.0)”, or later version.” or similar.
Tip #15
When using LocalConnection remember that the SWF should be the same player version. Well I found that between 7 and 8 it didn’t work.
Use swapDepths() to remove MovieClips
MovieClips need to have a positive depth to be removed.
Tip #12
The position of MovieClips dragged on to the stage is based on their dimensions. When attached with Actionscript it’s based on the movieClips origin.
For example if I have a simple box shape within a MovieClip. If I open up the MovieClip there should be a box shape. If the position of the shape was _x = -10 and y = 0 so the box is 10 pixels left of the origin(0,0). Were I do drag this MovieClip to the stage and set it’s position to (0,0) it would line up perfectly with stages top left corner despite actually being offset. This being the case I might assume that in order to attach the box movieClip to appear in the same position I would set it’s _x and _y properties to 0. This would wrong since attached MovieClips are attached based on there origin location. In this case the box would appear 10 pixels to the left of stage.
This is why it’s good practice to always have any move clips aligned to the origin so that no content goes beyond the x and y boundaries.
Use this.gotoAndPlay() not gotoAndPlay()
Put ‘this’ in front of gotoAndPlay() methods called within a class that extends ‘MovieClip’.
Careful with package names
Don’t give package names the same name as their class i.e. layout.Layout.
URLs with // wont work in a browser
The flash authoring environment will let you download images and other files with two slashes(//) in the URL. However when the swf is run in a browser it wont load.
Give attached MovieClips unique names and depths
Give MovieClip instances unique depths and unique names to avoid accidentally overwriting other MovieClip instances.
Some useful ASDT and Eclipse shortcuts
Learn the shortcut keys for Eclipses and ASDT. I would recommend you try to learn as many as possible but the following are particularly interesting.
* [ALT]+/ - Auto-complete * F3 - Follow method * [CTRL]+[SPACE]
Don't overwrite _name in MovieClip classes
Careful not to use the property ‘_name’ in any of your movieClip classes.
Embed fonts' styles aren't included
Bold and italic styles are not included with embed fonts. They need to be included separately.
Comment on Page
If anything is unclear or just plain wrong let us know and should ammend it pretty sharpish. If you visited the page with a particular question leave it and if it's flash related I'll try to answer it.