kamcknig
May 25th, 2008, 11:33 AM
I have two class files. One is called MP3Player.as, and the other is InfoBox.as.
Both have "package com.kyle.mp3player" as their pacakge. I am creating an InfoBox inside of the MP3Player class, and I tried declaring InfoBox as internal instead of public. My understanding is that because they are in the same package that should work, but it only works if I make it public. Do the classes have to be PHYSICALLY defined in the same .as file in order for internal to work?
And if that is the case, then a second question.
InfoBox is actually a MovieClip symbol in my library, with the linkage set to the InfoBox class... if I have to put the InfoBox definition inside of the MP3Player.as file, then how do I link that symbol to that definition?
This all might not be necessary, because I can get it to work with the public keyword, I'd just like to know these things for my own information!
Thanks!
Kyle
Both have "package com.kyle.mp3player" as their pacakge. I am creating an InfoBox inside of the MP3Player class, and I tried declaring InfoBox as internal instead of public. My understanding is that because they are in the same package that should work, but it only works if I make it public. Do the classes have to be PHYSICALLY defined in the same .as file in order for internal to work?
And if that is the case, then a second question.
InfoBox is actually a MovieClip symbol in my library, with the linkage set to the InfoBox class... if I have to put the InfoBox definition inside of the MP3Player.as file, then how do I link that symbol to that definition?
This all might not be necessary, because I can get it to work with the public keyword, I'd just like to know these things for my own information!
Thanks!
Kyle