Hello Anyone with Actionscript Knowledge,
I am trying to learn how to make a simple Flash Movie that loads 7 different MovieClips (starting small to grasp the concept) into the main movie according to the system clock on an end-users pc. For example:
Let’s say I have a flash movie that in one set area is to display a different colored sphere on the change of the day. At 12am, what was once a green sphere now will become a red sphere? Why I choose 7 MovieClips…simply to represent the seven days of the week…Monday, Tuesday, Wednesday, and so forth. Also the colored spheres are individual MovieClips to be loaded in a specific location on the main movie that remains constant.
I want to know how to use Actionscript so that it loads a Movie Clip, rather than advance the timeline inside one MC. I’m after this particular way of going about it so that I cut down on the overall file size. Let’s say I wanted to do this for 1 year, having 365 different colored spheres. Rather than loading one MC with 365 different key frames and a large file size taking longer time to load, I want to instead have actionscript load one unique MC for that particular day. This means having 365 individual MCs. Use Actionscript to load a new MC in a set XY coordinates on the main Movie based on the GetDay Actionscript. Now, it gets interesting too because I also want it to be smart about it, meaning if I open the main Movie that holds the Actionscript that will load these MCs on a Monday…and Monday calls for a green sphere. Tuesday calls for a blue sphere. Wednesday calls for a yellow sphere, and Thursday calls for a Orange sphere, ok? In sequential order it goes:
I want the Actionscript to be written to know that if I design this whole thing on a Monday, and open the main Movie on a Monday which loads the MC of the green sphere because, let’s say the green sphere MC starts the whole thing out by default. Now, suppose I’ve opened the main movie on Monday revealing the green sphere but don’t open it again until Thursday which calls for the orange sphere MC. In a sense, it’ll know to skip Tuesday=Blue sphere, and Wednesday=Yellow sphere. Instead of just going in a row one MC after another no matter when you open the main Movie. Can someone please help me accomplish this? And please make it easy for me to understand it, I’d really appreciate it!. I’m new to Actionscript, go easy on me…