Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Making you swf scaleble

$
0
0

Hi

 

I have a .as class file with hard coding and scaleble.

 

When I place a mc on the stage and publish my swf

 

1.  I can see the mc if it is coded like this: this.x = 600; //the page width it 1200

 

if I replace if with scalable code

 

2.  I can not see : this.x = (stage.stageWidth-this.width)/2;

          

Why does #2 not work?

 

Thanks

Charine

 

 

Here is the complete file:

 

package 

{

    import flash.display.MovieClip;

    import flash.text.TextField;

    import flash.events.Event;   

   

    public class wordText extends MovieClip

    {

        public function wordText()

        {

            this.x = 642;

            //this.x = (stage.stageWidth-this.width)/2;     //does not work when I uncomment it

            this.y = 743;

        }

    }

   

}


Viewing all articles
Browse latest Browse all 13519

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>