actionscript 3 - AS3 External .as Class Cannot Access Stage -


i've looked everywhere , me cannot find answer this, i'm sure it's quite simple...

i have file main.fla (download below runner.fla) movie clips floor , runner on stage, , abdomen , legs inside of runner , many more smaller movie clips inside of abdomen , legs. under properties have "core" without quotations typed class field. have file called core.as of source code. every time execute (test build) either file program window opens normal numerous errors how runner , floor undefined. suppose have import them somehow core.as, can't figure out how.

edit: download links: runner.fla: https://www.dropbox.com/s/7rencmi801pwfki/runner.fla core.as: https://www.dropbox.com/s/pt0lnuj2b3jolej/core.as

note code not functional. know doesn't work , going blow up, need in dealing initial undefined errors, can deal other stuff. there's no code in runner.fla except commented out stuff. , vesper, can clarify mean should put code in timeline? mean in stage in runner.fla?

in order class access stage, should inherit displayobject class (movieclip, sprite) or pass stage class parameter.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -