How to include .as (actionscript file) in frame in as3

i have include an asctionScript file syntax is   #include "filename.as" when publishing comming syntax  error.

In AS3 do not use the "#" character

Similar Messages

  • How to include assigned .as files in MXMLC ant task ?

    When i use mxmlc ant task, i found that
    the tag <include-sources/> doesn't support !
    ( described by http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html )
    neither SDK version 3.x nor 4.x
    Are they lying?!
    How to include assigned .as files ?
    Thank you !

    My understanding is that mxmlc will use all available resources in the source path, as needed. Instead of giving it individual resources to include, you simply need to give it the source-path that contains those resources. This is different from a library project, which may need to include individual classes that are never used in that library.

  • How to include a dynamic file

    Hi,
    The following syntax does not work:
    <%@ include file="htmls/mydocs/<%=dynamicFileName%>.htm" %>
    could you tell me how to include a dynamic file?
    thanks,
    peterzhu

    The include directive <%@ include ... does not work with dynamic file names, because it is evaluated at compile time.
    You have to use the include standard action <jsp:include page=... This is executed during runtime, and hence a dynamic file name can be used.

  • ANT how to include NetBeans Jar  files in my script of ANT ??

    ANT how to include NetBeans Jar files in my script of ANT ??

    I mean the library say swing layout ...
    which is SwingLayOuts1.0.jar ...
    in side this there is folder org.jDesktop....
    I want this folder in my jar file ...
    also ....
    My question ... i know the path of the jar file of NetBeans .... i can copy that ...dirctly ... but if m using Netbeans editor ... can i give NetBeans class to my jar command for ANT...........

  • How to put all actionscript in one frame instead of on buttons themselves?

    so i have a simple project where I have my actions script on each button itself.
    I'd like to have one actionscript file on the main timeline controlling everything instead of having to drill down to change the AS for a button.
    I have two scenes. Scene none has a button forcing to scene 2. When i put code on main timeline it broke my button that is on Scene 2 that allows me to jump around in that timeline to different frame labels.
    what did I do wrong?
    Original AS on Button instance bldg1_thumb1:
    on (release) {
        _parent.gotoAndStop ("Building 1 Big 1");
    New AS on Controlling Frame in Main Timeline:
    bldg1_thumb1.onRelease=function () {
        _parent.gotoAndStop ("Building 1 Big 1");

    try:
    var tl:MovieClip=this
    bldg1_thumb1.onRelease=function () {
    tl.gotoAndStop ("Building 1 Big 1");

  • How to include a .class file in a jsp page

    hi everyone,
    i know the syntax as:
    <%@ include file = "filename.class" %>
    then at run time the server could not find the class file
    if i use,
    <%@ page import = "FileName.class" %>
    then also the same problem persists
    & if i use
    <jsp:include page = "Relative address"/>
    the problem still remains as it is...
    please help me out...i am working on developing an EJB application in which client interacts with server's Stateful session bean through a jsp page...it is necessary for me to include the home interface class file in my jsp page.
    P.S. do not suggest me to include the class file in a package & then use
    <%@ page import = "packageName.ClassFileName" %>
    i
    Edited by: Ankit_JIITU on 6 Jul, 2008 1:55 AM

    Ankit_JIITU wrote:
    i have already included the remote interface class file by <%@ page import = "University.RemoteInterfaceName" %>in my jsp page ...
    if i try to make a new package called test & then include my home interface in that package...i need to import University.*to generate the class file of my home interface ; but the class file generation is not taking place as i am getting the error..
    "package University does not exist".How can i overcome this problem. The package University, which you are trying to import, must be in the classpath. If you removed it then you will have to add it back.
    i have tried my best..but tell me if there's any possible way of including a class file in the jsp page without involving a package.No, there isn't.
    If not,then pls help me to generate the class file of my home interface within a package called test.Read the New To Java Tutorial and understand how packages work.
    >
    i am assuming that u have a deep knowledge of developing EJB applications.

  • How to include external JavaScript files

    Hello All,
    i'm wondering haow can i include externel JavaScrip files, there is an clip-example with a function in the same JSP file
    but not how to include a file?
    <body>
    <script language='JavaScript' src="menu/menu.js'></script>
    If some one has a clip i would appreciate.
    Thanks
    Gino

    <script src="resources/myscript.js"></script>
    I did this exact thing in my jsp but it did not work, nothing popped up.
    When I tried replacing it with:
    <script language="JavaScript" type="text/javascript"><![CDATA[
    function postMessage(message) {
    alert(message);
    ]]></script>
    It worked. Can someone tell me why? Can't i refer to javascript files this way?

  • How to include a .js file into .jsp file.[.js file resides in a package]

    Hi,
    How do i include an external .js(JavaScript) file into a JSP file?My .js file is located in some package(lets say abc.jar). Below is my application structure:-
      jsp
       |
       ->MyJsp.jsp
      lib
       |
       |
    abc.jar
        |
        |
        ->com.abc.test
                     |
                     |
                     ->Test.java
                     ->abc.jsHow do i include "abc.js" file in "MyJsp.jsp" file?
    Please help.
    Thanks,
    Kiran
    Edited by: Adimulam on Jun 2, 2008 1:22 PM

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • How to include external .js file into .ear file using NetBean 5.5.1?

    is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
    I am using JBOSS 4.2.2 GA as server
    thx!!

    Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

  • [SOLVED]How to include a .Changelog file in a package?

    I want to include a .Changelog file in a package I'm building. But in the wiki, it only mentions that it could exist, and not how to include it.
    Someone knows how to do it?
    Last edited by mcsilva (2010-02-21 14:39:05)

    just put a file named `ChangeLog` in the same directory as PKGBUILD and makepkg
    Edit: wonder It did take me a minute to validate my assumption.
    Last edited by lolilolicon (2010-02-21 12:46:24)

  • How to include a jsp file in servlets and javabeans

    Hi to all..I have a jsp file which contains some database connections and I would like to include in that file in my servlets and javabeans.What coding can i use?Can show me sample coding.

    Hi to all..I have created a javabean storing the
    database connections. How do i include and call that
    bean in my servlet and javabeans?Can pls show me some
    sample coding?I am new to servlets and beans.The same way you do with normal Java Classes. If you are new to Java, I suggest you go to http://java.sun.com/docs/books/tutorial/index.html and look through the first couple of tutorials.
    As a note, it is best to put all your objects into packages, especially if you use JDK 1.4 or higher.

  • How to include an ActionScript based media player in Flex

    Hi,
    Flex/ AS3 newbie here.
    I'm attempting to port/include the flowplayer (http://flowplayer.org) into a flex project.
    I've included the .swc file for the player in my flex project. While trying to instantiate the player I'm running into an issue where the player code does not know about what seems to me should be important things (such as the stage) -- they are always coming back as null.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:flowplayerView="org.flowplayer.view.*"
        applicationComplete="init();"
    >
    <mx:Script>
         <![CDATA[
              import mx.core.UIComponent;
              import org.flowplayer.view.*;
              public function init(): void
                   var ui:UIComponent = new UIComponent();
                            var sprite:Sprite = new Sprite();
                            var movieClip:Preloader = new  Preloader();
                            ui.addChild(sprite);
                            ui.addChild(movieClip);
                            myPanel.rawChildren.addChild(ui);
         ]]>
    </mx:Script>
    <mx:Panel id="myPanel"
            paddingTop="10"
            paddingBottom="10"
            paddingLeft="10"
            paddingRight="10"
            height="300"
            width="600"       
        >
        </mx:Panel>
    </mx:Application>
         The goal is to start up this preloader code, which will make the flowplayer go in the same way as if I started it via Javascript. However, the marked items below are always null. What do I need to do to propogate these high level flash system variables into this included code?
    public class Preloader extends MovieClip {
              private var _app:DisplayObject;
              private var _percent:TextField;
              public function Preloader() {
                stop();
    // !!null pointer here on loader info
    if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal) {
                     init();
                     return;
                _percent = new TextField();
                   var format:TextFormat = new TextFormat();
                   format.font = "Lucida Grande, Lucida Sans Unicode, Bitstream Vera, Verdana, Arial, _sans, _serif";
                   _percent.defaultTextFormat = format;
                   _percent.text = "Loading...";
                addChild(_percent);
                addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
              private function onAddedToStage(event:Event):void {
                loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadProgress);
                loaderInfo.addEventListener(Event.COMPLETE, init);
              private function onLoadProgress(event:ProgressEvent):void {
                     var percent:Number = Math.floor((event.bytesLoaded*100) / event.bytesTotal);
                graphics.clear();
                 _percent.text = (percent + "%");
                _percent.x = stage.stageWidth / 2 - _percent.textWidth / 2;
                _percent.y = stage.stageHeight / 2 - _percent.textHeight / 2;
            private function init(event:Event = null):void {
                 if (_percent) {
                      removeChild(_percent);
                 nextFrame();
                 prepareStage();
                   var mainClass:Class = Class(getDefinitionByName("org.flowplayer.view.Launcher"));
                _app = new mainClass() as DisplayObject;
                   addChild(_app as DisplayObject);
              private function prepareStage():void {
                   //!!null pointer here on stage
                   stage.align = StageAlign.TOP_LEFT;
                   stage.scaleMode = StageScaleMode.NO_SCALE;

    Were you able to get to work? I would like to include the Flowplayer in a Flex application also.

  • How to include external javascript file in an html

    hello
    i've an html file placed in apache/webapps/test folder this html file includes an external javascript file placed at same level
    i'm includind the file as
    <script src="file1.js"></script>but the file does not gets included
    but when the sam folder "test" is paste outside apache the html file including the external file runs properly.
    Thank You

    flounder wrote:
    cotton.m wrote:
    What's really pathetic is that this is your third cross post on this same stupid off topic topic.
    You are really a dumb f&#117;ck you know that?If they knew that they were a dumb f&#117;ck then they wouldn't be a dumb f&#117;ck!That's a logical and reasonable conclusion. Therefore I very much doubt that the OP is capable of it.
    Hmmm this is interesting. It now shows the entity escapes rather than their values when you quote.

  • How to Include a ZUL file in another ZUL file

    Hi
    I need to Include a ZUL file in another ZUL file
    which is not in same JAR. Both are in different JAR.. but i want to Include that...!
    Thanks...!

    You want to include a ZUL file, whatever that is, that's in one JAR inside another ZUL file that's in another JAR? I don't even understand the question. Get it out of the first JAR and include it inside the 2nd ZUL file ???

  • How to include a property file in ear

    I have a weblogic integration application inside which I have created java control project and processes. I am packaging the entire application using ant script (wlwBuild).
    My requirement is to include a text file inside this ear and access it from any of the java classes inside the java control project.
    Is there any way to do that?

    You can add a java project in the workshop. In that java project you can have properties files, XML files or any other file.
    These files get boundled with the application EAR and you can access them as if they are available in your classpath.
    Hope that answers your question.

Maybe you are looking for