Crapatscript
11-29-2001, 05:26 PM
this only leaves me with one problem...
i want to assign more than one .as file to a movie clip... external action script as you know (just being thorough in explanation, lol)
well anyway, i want to have two buttons above a text scroller... when i click one, the relevant text appears in the scroller... this is how i have it set up to work...
i have a movie clip that contains text scroller and two buttons... 5 frames on time line, 1 and 5 have objects in the others between are empty...
text box in 1 has the variable Story
text box in 5 has the variable Traits
i have two buttons, one is gotoandstop (5) and the other is gotoandstop (1)
i'm probably going about this wrong but you can see the initiative right??? lol
now for the text scroller in frame 1 to work, it needs to access Story.as, that is very simple... but when i click the button to go to frame 5 the text box can't access the Traits.as
i placed the movieclip on main stage, and add these actions to it:
#include "Traits.as"
#include "Story.as"
now obviously it accesses Traits.as, but wont access Story.as... now that is what i am trying to find out... am i wrong in my approach? is there an easier way? or could i use a way to access both or more .as files and carry on the way i am going...
think i explained that properly... thanx if you can help...
i want to assign more than one .as file to a movie clip... external action script as you know (just being thorough in explanation, lol)
well anyway, i want to have two buttons above a text scroller... when i click one, the relevant text appears in the scroller... this is how i have it set up to work...
i have a movie clip that contains text scroller and two buttons... 5 frames on time line, 1 and 5 have objects in the others between are empty...
text box in 1 has the variable Story
text box in 5 has the variable Traits
i have two buttons, one is gotoandstop (5) and the other is gotoandstop (1)
i'm probably going about this wrong but you can see the initiative right??? lol
now for the text scroller in frame 1 to work, it needs to access Story.as, that is very simple... but when i click the button to go to frame 5 the text box can't access the Traits.as
i placed the movieclip on main stage, and add these actions to it:
#include "Traits.as"
#include "Story.as"
now obviously it accesses Traits.as, but wont access Story.as... now that is what i am trying to find out... am i wrong in my approach? is there an easier way? or could i use a way to access both or more .as files and carry on the way i am going...
think i explained that properly... thanx if you can help...