Skip to main content
Participant
August 2, 2013
Question

Can anybody help me with this?

  • August 2, 2013
  • 1 reply
  • 573 views

I'm trying to insert a external SWF file into an existing fla. presentation, I can insert the swf, but when I try to change location I can't change it.. and also after the external swf loses the interaction it has!

import flash.display.*;

import flash.net.URLRequest;

var rect:Shape = new Shape();

rect.graphics.beginFill(0xFFFFFF);

rect.graphics.drawRect(0, 0, 100, 100);

rect.graphics.endFill();

addChild(rect);

var ldr:Loader = new Loader();

ldr.mask = rect;

var url:String = "360ProductViewerFX.swf";

var urlReq:URLRequest = new URLRequest(url);

ldr.load(urlReq);

addChild(ldr);

thanks in advance!

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
August 2, 2013

What code were you trying for changing location?

Participant
August 2, 2013

Hi Ned,

I'm trying to change the position of the swf object loaded on the rectangle generated by the code!

Ned Murphy
Legend
August 2, 2013

You can change the location of the Loader.