www.webdeveloper.com
Results 1 to 4 of 4

Thread: What I should do if I would like to use "import" function?

  1. #1
    Join Date
    May 2010
    Posts
    7

    What I should do if I would like to use "import" function?

    Hi, I am new to javasript and HTML. I have a simple question here.

    I would like to use Loader object from ActionScript 3.0. But before I use Loader object, I have to import some packages. So it would like:

    import flash.display.*;
    import flash.net.*;
    var load:Loader = new Loader();

    However, the "import" function is not defined, I would like to know if I want to use function "import", what I should do? If I should load some js file, please tell me the url of that js file, since I haven't find anyone.

    PS: I guess If I want to import the packages of flash.display.* and flash.net.*, I should also download then from somewhere, please tell the url of then. Thanks!

  2. #2
    Join Date
    May 2010
    Location
    Brazil
    Posts
    50
    Remember to put the code tags! Also, this isn't the correct place to post ActionScript questions.
    "Scripting is the future of the development languages" --Nathan Paulino Campos(me)

  3. #3
    Join Date
    May 2010
    Posts
    7
    Thanks for your reminding. I was thinking actionscript is a part of javascript.
    Now I know the difference of them. Thanks!

  4. #4
    Join Date
    May 2010
    Location
    Brazil
    Posts
    50
    You're welcome.
    "Scripting is the future of the development languages" --Nathan Paulino Campos(me)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles