Fun with External Interface
So I finally had some time to start playing around with Flash 8. Here's a demo I built that shows the potential power of the ExternalInterface feature. One of the limitations of Flash has always been that the developer is "boxed into" the flash area of the page. There have always been tools to work around this problem, but ExternalInterface makes things so much easier because you can call ActionScript functions directly from JavaScript, and even pass parameters.
My demo sets up a mouseMove event handler, and passes the current x,y coordinates into Flash. Flash, in turn, uses the coordinates to adjust the rotation of the arrow clip so it's always pointing at the cursor. I was impressed by how smooth the animation is, which suggests that communications via ExternalInterface are very fast. (It would be interesting to do a comparison using "old school "data exchange techniques like SetVariable.)
There are a couple of limitations in the current demo. First of all, when you actually move the cursor into the flash area, callbacks stop working. Also, the movement of the arrow is restricted to a 90 degree slice. It would take some additional calculation to create 360 degrees of rotation.
I'll try to post the code later this week.
Credits
There's a nice tutorial on actionscript.com that helped me figure out how to set up a callback to ActionScript.
Codelifter.com has good (if slightly dated) code for determining the x-y position in JavaScript.
Finally, the original inspiration for this project came from reading Chapter 3 of Foundation Actionscript Animation by Keith Peters.
My demo sets up a mouseMove event handler, and passes the current x,y coordinates into Flash. Flash, in turn, uses the coordinates to adjust the rotation of the arrow clip so it's always pointing at the cursor. I was impressed by how smooth the animation is, which suggests that communications via ExternalInterface are very fast. (It would be interesting to do a comparison using "old school "data exchange techniques like SetVariable.)
There are a couple of limitations in the current demo. First of all, when you actually move the cursor into the flash area, callbacks stop working. Also, the movement of the arrow is restricted to a 90 degree slice. It would take some additional calculation to create 360 degrees of rotation.
I'll try to post the code later this week.
Credits
There's a nice tutorial on actionscript.com that helped me figure out how to set up a callback to ActionScript.
Codelifter.com has good (if slightly dated) code for determining the x-y position in JavaScript.
Finally, the original inspiration for this project came from reading Chapter 3 of Foundation Actionscript Animation by Keith Peters.
9 Comments:
In case anyone wants the code from this demo, I've posted it here.
By
adampasz, at 1:42 PM
wow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro goldwow power leveling
wow powerleveling
world of warcraft power leveling
ffxi power leveling
ffxi powerleveling
ffxi
ffxi gil
age of conan
lotro powerleveling
lotro power leveling
lotro gold
By
wow power leveling, at 12:56 AM
all internal -
asian sex trip -
ass traffic -
backseat bangers -
bang boat -
barely legal -
big naturals -
big sasuage pizza -
black ass busters -
black cocks white sluts -
bondage planet -
boys first time -
cam crush -
captain stabbin -
coeds need cash -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
mature belle -
8th street latinas -
all internal -
asian sex trip -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
bondage planet -
boys first time -
cam crush -
captain stabbin -
coeds need cash -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little apriil -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
8th street latinas -
all internal -
asian sex trip -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
bondage planet -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
horny spanish flies -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
petite goddess -
8th street latinas -
all internal -
asian sex trip -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
fetish planet -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
horny spanish flies -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
pure group sex -
8th street latinas -
all internal -
asian sex trip -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
fetish planet -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
i spy camel toe -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
shemales paradise -
8th street latinas -
all internal -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
fetish planet -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
mr chews asian beaver -
my sex tour -
nude beach house -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
sinful facials -
8th street latinas -
all internal -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
fetish planet -
first time auditions -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
please bang my wife -
porn stud search -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
slutty transxuals -
8th street latinas -
all internal -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
fucking huge -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf crusier -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
pump that ass -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
teen erotica club -
8th street latinas -
all internal -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
cam crush -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
fucking huge -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
pump that ass -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
the amateur lounge -
8th street latinas -
all internal -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
fucking huge -
gangbang squad -
gay blind date sex -
girls hunting girls -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
reality pass plus -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
xxx teen tease -
8th street latinas -
all internal -
ass traffic -
backseat bangers -
bang boat -
big naturals -
big sausage pizza -
black ass busters -
black cocks white sluts -
boys first time -
captain stabbin -
cum fiesta -
euro bride tryouts -
euro sex parties -
exploited black teens -
exploited moms -
first time auditions -
fucking huge -
gangbang squad -
gay blind date sex -
her first anal sex -
her first ass to mouth -
her first big cock -
her first lesbian sex -
his first gay sex -
his first huge cock -
hustler -
in the vip -
just facials -
little april -
mike in brazil -
mikes apartment -
milf cruiser -
milf hunter -
milf seeker -
my sex tour -
nude beach house -
porn stud search -
reality pass plus -
round and brown -
street blowjobs -
teen hitch hikers -
teens for cash -
tranny surprise -
twinks for cash -
we live together -
big boobs galore -
all reality pass -
bigboobsgalore -
big boobs galore -
big boobs galore pics -
big tits patrol -
black bros white hoes -
blacks do whites -
bookworm bitches -
border bangers -
brave girls -
butt machine boys -
chick trick -
college fuckfest -
cummy feet -
dirty latina maids -
easy drunk girls -
fast times at nau -
fucking machines -
fun tit -
glory hole station -
hogtied -
horny spanish flies -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milk my cock -
mommy loves cock -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
plumper facials -
real fucking couples -
reality pass plus -
rectal rooter -
so cal coeds -
sweet creampie -
teeny bopper club -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx proposal -
xxx soul -
yank my crank -
cartoon sex online -
all reality pass -
big boobs galore -
black bros white hoes -
blacks do whites -
bookworm bitches -
border bangers -
brave girls -
bus stop whores -
butt machine boys -
chick trick -
college fuckfest -
dirty latina maids -
facial humiliation -
fast times at nau -
fucking machines -
fun tit -
glory hole station -
hogtied -
horny spanish flies -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milk my cock -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
public ass pics -
public peek -
real fucking couples -
rectal rooter -
so cal coeds -
sweet creampie -
teeny bopper club -
the big swallow -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx proposal -
xxx soul -
yank my crank -
ebony arousal -
all reality pass -
big boobs galore -
big tit patrol -
black bros white hoes -
blacks do whites -
bookworm bitches -
border bangers -
brave girls -
bus stop whores -
butt machine boys -
chick trick -
college fuckfest -
dirty latina maids -
ebonyarousal -
ebony arousal -
facial urge -
fast times at nau -
femdom abuse -
fucking machines -
fun tit -
glory hole station -
hogtied -
horny spanish flies -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milk my cock -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
public thongs -
real fucking couples -
rectal rooter -
so cal coeds -
sweet creampie -
teeny bopper club -
the big swallow -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx soul -
yank my crank -
explicit lesbians -
all reality pass -
big tit patrol -
black bros white hoes -
blacks do whites -
bookworm bitches -
border bangers -
brave girls -
bus stop whores -
butt machine boys -
chick trick -
college fuckfest -
dirty latina maids -
ebony arousal -
fast times at nau -
filthy cheerleaders -
first time twinks -
fucking machines -
fun tit -
glory hole station -
hips and thongs -
hogtied -
horny spanish flies -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milk my cock -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
real fucking couples -
rectal rooter -
schoolgirl cherries -
so cal coeds -
sweet creampie -
teeny bopper club -
the big swallow -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx soul -
yank my crank -
first time twinks -
bare foot maniacs -
black bros white hoes -
blacks do whites -
bookworm bitches -
border bangers -
brave girls -
bus stop whores -
butt machine boys -
chick trick -
college fuckfest -
dirty latina maids -
ebony arousal -
fast times at nau -
firsttimetwinks -
first time twinks -
fucking machines -
fun tit -
glory hole station -
hogtied -
horny spanish flies -
jizz lickers -
latex amateurs -
leg addiction -
little april -
men in pain -
milk my cock -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
please bang my wife -
real fucking couples -
rectal rooter -
schoolgirl pain -
so cal coeds -
By
Anonymous, at 1:44 AM
sweet creampie -
teeny bopper club -
the big swallow -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx soul -
yank my crank -
gay black hardcore -
bare foot maniacs -
black bros white hoes -
blacks do whites -
bookworm bitches -
border bangers -
brave girls -
butt machine boys -
chick trick -
college fuckfest -
dirty latina maids -
fast times at nau -
first time twinks -
fucking machines -
fun tit -
glory hole station -
hogtied -
horny spanish flies -
i spy camel toe -
jizz lickers -
lingerie sins -
little april -
massive racks -
men in pain -
milk my cock -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
please bang my wife -
real fucking couples -
rectal rooter -
secretary sin -
so cal coeds -
sweet creampie -
teeny bopper club -
the big swallow -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx soul -
yank my crank -
gay xxx archive -
big tit patrol -
black bros white hoes -
blacks do whites -
blind date bangers -
bookworm bitches -
border bangers -
brave girls -
butt machine boys -
chick trick -
college fuckfest -
dirty latina maids -
fast times at nau -
fucking machines -
fun tit -
gayxxxarchive -
gay xxx archive -
glory hole station -
hogtied -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milf whore -
milk my cock -
moms creampie -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
pump that ass -
real fucking couples -
rectal rooter -
sinful stockings -
so cal coeds -
sweet creampie -
teeny bopper club -
the big swallow -
tinys black adventures -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx soul -
yank my crank -
hardcore sex shack -
all about satin -
black bros white hoes -
blacks do whites -
blind date bangers -
bookworm bitches -
border bangers -
brave girls -
butt machine boys -
chick trick -
coeds need cash -
college fuckfest -
dirty latina maids -
fast times at nau -
fucking machines -
fun tit -
gay xxx archive -
glory hole station -
hogtied -
i spy camel toe -
jizz lickers -
little april -
men in april -
milk my cock -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
my white dicks -
nasty grannies -
naughty office -
pump that ass -
real fucking couples -
rectal rooter -
so cal coeds -
sweet creampie -
the big swallow -
tinys black adventures -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx proposal -
xxx soul -
yank my crank -
hottest anal sex -
black bros white hoes -
blacks do whites -
blind date bangers -
bookworm bitches -
border bangers -
brave girls -
butt machine boys -
chick trick -
coeds need cash -
college fuckfest -
dirty latina maids -
fast times at nau -
fucking machines -
fun tit -
gay xxx archive -
glory hole station -
hogtied -
hottestanalsex -
hottest anal sex -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milk my cock -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
pantyhose peek -
pantyhose plumpers -
please bang my wife -
pump that ass -
real fucking couples -
rectal rooter -
so cal coeds -
sweet creampie -
tinys black adventures -
tranny hunt -
vaginal cumshots -
water bondage -
whipped ass -
wired pussy -
xxx proposal -
xxx soul -
yank my crank -
interracial paradise -
black bros white hoes -
blacks do whites -
blind date bangers -
bookworm bitches -
border bangers -
brave girls -
butt machine boys -
chick trick -
coeds need cash -
college fuckfest -
dirty latina maids -
fast times at nau -
fucking machines -
fun tit -
glory hole station -
hogtied -
hottest anal sex -
i spy camel toe -
jizz lickers -
little april -
men in pain -
milk my cock -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
my white dicks -
naughty office -
pantyhose teen -
please bang my wife -
real fucking couples -
reality pass plus -
rectal rooter -
so cal coeds -
sweet creampie -
tinys black adventures -
tranny destruction -
tranny hunt -
water bondage -
whipped ass -
wired pussy -
xxx proposal -
xxx soul -
yank my crank -
mature belle -
amateur nest -
anal destruction -
anal suffering -
bad office girls -
big shoes and boots -
black bros white hoes -
bookworm bitches -
border bangers -
bus stop whores -
butt machine boys -
cheating lesbians -
college fuckfest -
cummy feet -
dirty latina maids -
dirty plumpers -
dirty schoolgirl -
easy drunk girls -
euro fuck trip -
facial humiliation -
fast times at nau -
fucking machines -
hogtied -
horny spanish flies -
hottest anal sex -
little april -
men in pain -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
naughty office -
please bang my wife -
real fucking couples -
rectal rooter -
so cal coeds -
teeny bopper club -
tiny teen skirts -
tranny hunt -
vanilla teens black cream -
water bondage -
whipped ass -
wired pussy -
xxx proposal -
yank my crank -
mature xxx archive -
all reality pass -
bad office girls -
big shoes and boots -
black bros white hoes -
bookworm bitches -
border bangers -
bus stop whores -
butt machine boys -
college fuckfest -
cummy feet -
dirty latina maids -
easy runk girls -
euro fuck trip -
facial humiliation -
facial urge -
facial whore -
fast times at nau -
femdom abuse -
filthy cheerleaders -
fucking machines -
hips and thongs -
hogtied -
horny spanish flies -
latex amateurs -
little april -
men in pain -
mr chews asian beaver -
my first sex teacher -
my friends hot mom -
naughty office -
please bang my wife -
real fucking couples -
rectal rooter -
so cal coeds -