0

I have this code in the beginning of my SWF witch is a banner ad.

var id:String = root.loaderInfo.parameters.id;
var r:URLRequest = new URLRequest("javascript:expandEaFloating(" + id + ")");
navigateToURL(r,'_self');

So this code is calling a java script function witch is opening the floating banner so it can be visible.

Then when the animation is over it has to be closed with this code :

var id:String = root.loaderInfo.parameters.id;
var r:URLRequest = new URLRequest("javascript:collapseEaFloating(" + id + ")");
navigateToURL(r,'_self');

I've put this code in frame 500 where my animation stops, and shows me : "there is an conflict exist with definition "id' and "r" in namespace internal.

4

1 に答える 1

1

idと異なるr名前を付けます。

var targetID:String = root.loaderInfo.parameters.id;
var jsRequest:URLRequest = new URLRequest("javascript:expandEaFloating(" + targetID + ")");
navigateToURL(jsRequest,'_self');
于 2013-01-27T13:42:02.257 に答える