Welcome To Snipplr


Everyone's Recent Snippets Tagged flash



Gets the loaderInfo of the top-most parent. For example, if you load an external swf, placing this code within that external swf can access the loaderInfo and FlashVars for the parent SWF (the SWF that has loaded this external SWF) from within the ch...
1 165 posted 11 years ago by sandropadin
0 254 posted 11 years ago by jrobinsonc
Also we can use HTTP_ACCEPT
0 173 posted 11 years ago by kossmoss
demo: http://www.adamcoulombe.info/lab/as3/360-spin-hover.html FLA: http://www.adamcoulombe.info/lab/as3/360-spin-hover.fla requires tweenlite
1 324 posted 11 years ago by adamcoulombe
Spotlight Navigation effect using AS3 and Tweenlite Demo: http://www.adamcoulombe.info/lab/as3/spots_test.html FLA: http://www.adamcoulombe.info/lab/as3/spots_test.fla
2 296 posted 11 years ago by adamcoulombe
Add the code at the first frame.
0 177 posted 11 years ago by nalmeida
This implementation of the singleton pattern provides a way to enforce singleton usage. There are numerous Singleton implementations for AS3 (due to the lack of private constructor) this method, is the cleanest I've seen so far.
1 202 posted 11 years ago by jasonm23
Handy function for converting milliseconds to video timecode
1 376 posted 11 years ago by nate63179
A simple class and event which can be used to load external assets
1 179 posted 11 years ago by nate63179
note t0 self - place inside class declaration with vars - include Flex SDK swc (flash CS4)
2 208 posted 11 years ago by obsessivejosh
note to self - Basic settings for clean text in as3 flash project assuming fonts are embedded.
0 164 posted 11 years ago by obsessivejosh
0 207 posted 11 years ago by m-pokrovskii
base css for flash 100% width min size that works in ff3+, safari3+, google chrome 1+ Remember to use a reset.css: the margin / padding of html and body must be zero.
1 234 posted 11 years ago by mcarneiro
0 235 posted 11 years ago by njhamann
On a new layer, add the following Actionscript to the frame requiring to be paused. 1000 represents the delay in milliseconds, being 1 second.
0 283 posted 11 years ago by hotdiggity
1. Create button that covers the entire ad. 2. Create an instance of the button on the main timeline and name it "buttonClip" in the properties palette. 3. On a new layer add ActionScript to the timeline as follows:
0 267 posted 11 years ago by hotdiggity
On a new actions layer, add the following script to frames requiring to be paused. 10000 represents the delay milliseconds (10 seconds).
1 362 posted 11 years ago by hotdiggity