mc.onLoad flash
mc.onLoad flash
- Started
- Last post
- 7 Responses
- bk_shankz
I can't get this to work in flash
mc.onLoad = function () {
trace("yowsa");
}this works fine though
mc.onEnterFrame = function () {
trace("yowsa");
}Anybody know why?
- bk_shankz0
Maybe its...No...
- bk_shankz0
Unfittoprint where ya at?
- Mick0
I thinka MC will load at runtime (ie when the stage content is loaded) which may be before the onLoad action itself is run.
- versa0
use fooMC.onClipEvent(load){....
instead
should work fine
- bk_shankz0
I get this error when I try it that way:
Expected a field name after '.' operator.
mc.onClipEvent(load) {
- versa0
well you've got to complete the syntax of the handler, and make sure to put the action ON the mc instance
- ozhanlion0
onClipEvent(load) {
trace("foo")
}on your mc.