numediaweb
November 21st, 2008, 09:13 AM
It seems a stupid question, but, believe me I searched the last 3 days on the net and guess what; thousends of tutorials but none that works for my case! :h:
what i wanna do is simple; I have 3 movie clips on the timeline, but i don't want to control them from the timeline, but, from a separate class (and also control other movieclips/textfield inside them), i have so far, an AS3 file BST_main.as that is the document class of my flash file BST_main.swf and inside my project I have 3 movie clips index_search_bar and index_criteria_bar and index_menu_bar
my class is:
package {
/*///////////////////////
Importing display class
*///////////////////////
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
/*///////////////////////
Library Movie Clips
*///////////////////////
// Initialising
addMovieFromLibrary(index_search_bar);
addMovieFromLibrary(index_criteria_bar);
addMovieFromLibrary(index_menu_bar);
index_search_bar.y = 100;
believe me I m lost :book: any help?
what i wanna do is simple; I have 3 movie clips on the timeline, but i don't want to control them from the timeline, but, from a separate class (and also control other movieclips/textfield inside them), i have so far, an AS3 file BST_main.as that is the document class of my flash file BST_main.swf and inside my project I have 3 movie clips index_search_bar and index_criteria_bar and index_menu_bar
my class is:
package {
/*///////////////////////
Importing display class
*///////////////////////
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
/*///////////////////////
Library Movie Clips
*///////////////////////
// Initialising
addMovieFromLibrary(index_search_bar);
addMovieFromLibrary(index_criteria_bar);
addMovieFromLibrary(index_menu_bar);
index_search_bar.y = 100;
believe me I m lost :book: any help?