HTMLPopup redirect on click

4569
1
02-17-2015 02:56 AM
NatashaManzuiga
Occasional Contributor

Hi, I'm using a HTMLPopup in my application.

I want that when I click on the button ... instead of closing the Popup I want to go to a specific URL.... like a redirect...

How can I configure the HTMLPopup to do this?

Thanks,

Naty

Tags (1)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Naty,

  There is not configuration for this. You would have to modify the HTMLPopup.mxml code.

Find the close function and replace the second line (dispatch(new CloseEvent(CloseEvent.CLOSE));) with something like this:

u = new URLRequest('this is your redirect url');
navigateToURL(u,'_parent');

And add these imports

import flash.net.URLRequest;
import flash.net.navigateToURL;
0 Kudos