Link to home
Create AccountLog in
Adobe Flash

Adobe Flash

--

Questions

--

Followers

Top Experts

Avatar of ibone
ibone

Acces Global variables in ActionScript 3.0
I need to declare a global variable in Flash CS3 using ActionScript 3.0. I looked around the internet and the only solution that I found was to declare it in an external Class file, however, when I do this my flash animation won't work in MOST computers.

Does anyone know how to access global variables inside the flash animation? WITHOUT using an external class file?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of Aneesh ChopraAneesh Chopra๐Ÿ‡ฎ๐Ÿ‡ณ

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of iboneibone

ASKER

Thank you! Works like a charm! :-)

1119: Access of possibly undefined property bal through a reference with static type Class.

Avatar of Aneesh ChopraAneesh Chopra๐Ÿ‡ฎ๐Ÿ‡ณ

as mentioned in line no.3 "if you implement it properly, you should get desired results"

so you only need to crosscheck what you have missed in the suggested implementation..

make sure, "glo.as" must be in the FLA folder..

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Thanks so much, this is a very handy tip!
Adobe Flash

Adobe Flash

--

Questions

--

Followers

Top Experts

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.