Thread: [Actionscript 3] loading extern .swf
View Single Post

  #5 (permalink)  
Old 09-07-08, 20:05
iphone747 iphone747 is offline
Junior Member
 
Join Date: Jul 2008
Location: Germany
Posts: 6
Rep Power: 0
iphone747 is on a distinguished road
Re: loading extern .swf

Thanks a lot.
If i used your code i have the same problem, but if i used the idea with the download file with this code it works.

HTML Code:
import flash.display.*;
import flash.net.URLRequest;
var rect:Shape = new Shape();
rect.graphics.beginFill(0xFFFFFF);
rect.graphics.drawRect(0, 0, 1024, 768);
addChild(rect);
var ldr:Loader = new Loader();
ldr.mask = rect;
var url:String = "chat.swf";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
but now i have the next Problem. The Chat appears in his full widh. Is it possible to change the widh?
Reply With Quote

Flash Multi Gallery