Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to center gif on streching banner (Adobe Flash Pro, Action script 2.0)?

New Here ,
Dec 22, 2014 Dec 22, 2014

Hello,

I try to center my gif image on streching banner.

What i make:

1. Click F8 on image layer and transform into symbol ("img1"). Registration is centered.

2. Add a name for this copy in properties ("img2")

3. On the layer "Action Script" i got a code:

Stage.scaleMode = "noScale";

Stage.align = "LT";

var obResize:Object = new Object();

Stage.addListener(obResize);

obResize.onResize = function() {Resize()};

function Resize(){

    back._width=Stage.width;

    img2._x=Stage.width/2;

};

Resize();

-------------------------------

Gif image is not centered. When i use static image, for ex. JPG, that's ok.

Please, help me if you know how to solve this problem.

Thank you!

TOPICS
ActionScript
272
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 23, 2014 Dec 23, 2014

how is your banner stretching?   is that javascript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2015 Jan 21, 2015
LATEST

Thank you, i have solved this problem!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines