Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9218437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:51:47+00:00 2026-06-18T02:51:47+00:00

I want to ask how can I make an external script .as can be

  • 0

I want to ask how can I make an external script .as can be moved to the timeline??
i dont understand about as3..
plis help me 🙁

this is the script that i want to move to timeline

    package {
    import flash.display.*;
    import flash.events.*; 
    import flash.text.*;
    import flash.net.URLRequest;

    //import fl.display.ProLoader;

    dynamic public class bismillah extends MovieClip
    {
        public var ba:MovieClip;
        public var scorebox:TextField;
        public var alif:MovieClip;
        public var dal:MovieClip;
        public var tong:MovieClip;
        public var book:MovieClip;
        public var objArray:Array;
        public var targetArray:Array;
        public var objek:MovieClip;
        public var original_x:Number;
        public var original_y:Number;
        public var score:int;
        public var i:int;
        public var tombol1:MovieClip;
        var singleLoader:Loader = new Loader();

        public function bismillah()
        {
            stop();
            addFrameScript(0, frame1);
            tombol1 = Object(root).tombol1 as MovieClip;
            tombol1.addEventListener(MouseEvent.MOUSE_UP, tes);
            return;

        }// end function

        public function tes(param : MouseEvent) : void
        {
            var req:URLRequest = new URLRequest("dragdragon.swf");
            //singleLoader.unload();
            singleLoader.load(req);
            addChild(singleLoader);

        }

        public function down(param1:MouseEvent) : void
        {
            objek = MovieClip(param1.target);
            original_x = objek.x;
            original_y = objek.y;
            addChild(objek);
            objek.startDrag();
            stage.addEventListener(MouseEvent.MOUSE_UP, stageUp);
            return;
        }// end function

        public function stageUp(param1:MouseEvent) : void
        {
            stage.removeEventListener(MouseEvent.MOUSE_UP, stageUp);
            objek.stopDrag();
            if (objek.dropTarget)
            {
                if (objek.dropTarget.parent.name == "book")
                {
                if ((objek == alif) || (objek == ba)){  //yg perlu diganti
                    objek.x = objek.dropTarget.parent.x;
                    objek.y = objek.dropTarget.parent.y + 50;
                    objek.removeEventListener(MouseEvent.MOUSE_DOWN, down);
                    objek.buttonMode = false;
                    var _loc_2:Number;
                    objek.scaleY = 0.4;
                    objek.scaleX = _loc_2;
                    objek.alpha = 0.6;
                    score+=5;
                    scorebox.text = "Score: " + score;
                }
                else {
                objek.x = objek.dropTarget.parent.x;
                    objek.y = objek.dropTarget.parent.y + 50;
                    objek.removeEventListener(MouseEvent.MOUSE_DOWN, down);
                    objek.buttonMode = false;
                    var _loc_2:Number;
                    objek.scaleY = 0.4;
                    objek.scaleX = _loc_2;
                    objek.alpha = 0.6;
                    score-=2;
                    scorebox.text = "Score: " + score;}
                }

                else if (objek.dropTarget.parent.name == "tong")
                {
                    if (objek == dal) { //yg perlu diganti
                    objek.x = objek.dropTarget.parent.x;
                    objek.y = objek.dropTarget.parent.y + 50;
                    objek.removeEventListener(MouseEvent.MOUSE_DOWN, down);
                    objek.buttonMode = false;
                    var _loc_2:Number;
                    objek.scaleY = 0.4;
                    objek.scaleX = _loc_2;
                    objek.alpha = 0.6;
                    score+=5;
                    scorebox.text = "Score: " + score;
                }
                else {
                    objek.x = objek.dropTarget.parent.x;
                    objek.y = objek.dropTarget.parent.y + 50;
                    objek.removeEventListener(MouseEvent.MOUSE_DOWN, down);
                    objek.buttonMode = false;
                    var _loc_2:Number;
                    objek.scaleY = 0.4;
                    objek.scaleX = _loc_2;
                    objek.alpha = 0.6;
                    score-=2;
                    scorebox.text = "Score: " + score;
                    }
                }
            }
            else
            {
                objek.x = original_x;
                objek.y = original_y;
            }
            return;
        }// end function

        public function returnToOriginalPosition() : void
        {
            return;
        }// end function

        function frame1()
        {
            objArray = [alif, dal, ba]; //yg perlu diganti
            targetArray = [book, tong];
            score = 0;
            scorebox.text = "Score: " + score;
            i = 0;
            while (i < objArray.length)
            {

                objArray[i].buttonMode = true;
                objArray[i].addEventListener(MouseEvent.MOUSE_DOWN, down);
                i++;
            }
            return;
        }// end function


    }

}

Please is it possible someone to help me to move the code to timeline??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:51:49+00:00Added an answer on June 18, 2026 at 2:51 am
    1. Create new MovieClip in the fla library
    2. Select “Export for ActionScript” check box
    3. Enter the name of your as file in the input field “Class”
    4. put the *.as files in the same folder as fla file.

    Don’t forget to create all nested clips in your new MovieClip – ba, scorebox, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you help me on this one? Just want to ask on how to
I'm new with jquery and want to ask a question, can jquery make something
I want to ask that any one can tell me how to make bubble
i would like to ask how can i make a php script which echoes
I just want to ask: Can I use flashdevelop and opensource flex to make
Hello fellow developers... just to make sure, I want to ask this question: How
Just want to ask can netbean IDE get connected to clearcase remote client server
I want to ask how can someone read keystrokes while in a html page
Just want to ask if i can use Custom Validator in client side without
I want to ask if how can I change a color of a specific

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.