protected function getRandRange(minNum: Number, maxNum: Number):Number { |
Wednesday, June 30, 2010
Random Range
Optimizing Performance for the Adobe Flash Platform
Tuesday, June 15, 2010
Unload content from SwfLoader Flex
Use:
To remove the content loaded into SwfLoader
(swfLoader.content.parent as Loader).unload(); |
To remove the content loaded into SwfLoader
Friday, June 11, 2010
jQuery Plugin Structure
Main Structure
Plugin with Options:
Example: The animateMenu Plugin
* animatePadding : Set the padding value for the animate effect
* defaultPadding : Set the default padding value
* evenColor : Set the color this color if index value is even number
* oddColor : Set the color this color if index value is odd number
#$(document).ready(function() {
# $('#menu').animateMenu({animatePadding: 30, defaultPadding:10});
#});
# ul id="menu"
# li>Home
# li>Posts
# li>About
# li>Contact
# ul
Ref link: http://www.queness.com/post/112/a-really-simple-jquery-plugin-tutorial
//You need an anonymous function to wrap around your function to avoid conflict |
Plugin with Options:
(function($){ |
Example: The animateMenu Plugin
* animatePadding : Set the padding value for the animate effect
* defaultPadding : Set the default padding value
* evenColor : Set the color this color if index value is even number
* oddColor : Set the color this color if index value is odd number
(function($){ |
#$(document).ready(function() {
# $('#menu').animateMenu({animatePadding: 30, defaultPadding:10});
#});
# ul id="menu"
# li>Home
# li>Posts
# li>About
# li>Contact
# ul
Ref link: http://www.queness.com/post/112/a-really-simple-jquery-plugin-tutorial
Wednesday, June 9, 2010
Common gesture and touch descriptions
Pan
Move a finger left-to-right or right-to-left. Some devices require two fingers to pan.
Rotate
Touch two fingers down, then move them around in a circle (as if they’re both simultaneously tracing an imaginary circle on a surface). The pivot point is set at the midpoint between the two finger touch points.
Swipe
Move three fingers left-to-right or right-to-left, top-to-bottom, or bottom-to-top, quickly.
Zoom
Touch two fingers down, then move them away from each other to zoom in and toward each other to zoom out.
Press-and-tap
Move or press one finger, then tap the surface with another.
Move a finger left-to-right or right-to-left. Some devices require two fingers to pan.
Rotate
Touch two fingers down, then move them around in a circle (as if they’re both simultaneously tracing an imaginary circle on a surface). The pivot point is set at the midpoint between the two finger touch points.
Swipe
Move three fingers left-to-right or right-to-left, top-to-bottom, or bottom-to-top, quickly.
Zoom
Touch two fingers down, then move them away from each other to zoom in and toward each other to zoom out.
Press-and-tap
Move or press one finger, then tap the surface with another.
Subscribe to:
Posts (Atom)