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 60 posted 10 years ago by sandropadin
0 107 posted 10 years ago by jrobinsonc
Also we can use HTTP_ACCEPT
0 73 posted 10 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 134 posted 10 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 128 posted 10 years ago by adamcoulombe
Add the code at the first frame.
0 68 posted 10 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 81 posted 10 years ago by jasonm23
Handy function for converting milliseconds to video timecode
1 149 posted 10 years ago by nate63179
A simple class and event which can be used to load external assets
1 67 posted 10 years ago by nate63179
note t0 self - place inside class declaration with vars - include Flex SDK swc (flash CS4)
2 99 posted 10 years ago by obsessivejosh
note to self - Basic settings for clean text in as3 flash project assuming fonts are embedded.
0 67 posted 10 years ago by obsessivejosh
0 79 posted 10 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 96 posted 10 years ago by mcarneiro
0 110 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 120 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 128 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 145 posted 11 years ago by hotdiggity