swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] version=9 and .action: block, how do I reference vars?


From: David Liebman
Subject: [Swftools-common] version=9 and .action: block, how do I reference vars??
Date: Sun, 23 Jun 2013 11:26:21 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12


I want to do something like this, but I get an error that the 'helloworld' is not recognised. I get an error
"warning: Couldn't resolve 'helloworld', doing late binding"
--------------------------------------------------

.flash filename="awesome.swf" version=9
  .font Sfont filename="somefont.TTF"
  .edittext helloworld font=Sfont text="hello" width=100 height=100
    .action:
        package flyer {
            import flash.display.MovieClip;
        public class Flyer1 extends MovieClip{
                public function getxString():String
                {
                    return new String("xxhello");
                }
            }
        }
        import flyer.Flyer1;
            var greet:flyer.Flyer1 = new flyer.Flyer1();


                helloworld.text = greet.getxString();

    .end
  .include flyer.as
  .put helloworld
.end
----------------------------------------------
How do I reference the text of helloworld in version 9?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]