Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  IMG Loop >  Targets?
Targets?
Date: Apr 22, 2007   Views: 1347  
Question:
I need my loop to "target" _self where would I write that? in the xml or can I make a swf button with the action script targeting my target window?!?
Answer:

andreit (Admin)
You need to add a event listener to the loop that captures onClick event and opens a new window.

var eventListener = new Object();

eventListener.mouseClick = function (evnt){
 trace(evnt.description);
 trace(evnt.path);
 trace(evnt.data);
 trace(evnt.number);

 getURL(evnt.data, "_self");
}
myLoop.addEventListener("mouseClick", eventListener);
Component Info