Skip navigation
Currently Being Moderated

Open URL and prevent reload

Aug 9, 2012 9:25 AM

Tags: #jquery #as3 #html #button #ajax #reload #open_url #refresh #prevent_reload #prevent_refresh

Hello.

 

I'm integrating a swf-file into a Wordpress environment, where requests are made by Ajax-Calls via jQuery (v1.7.2).

 

In HTML I'm able to submit a link which doesn't reload the entire page when clicking it, but just parts of it.

 

I want to be able to do the same from within the Flash file. But 'navigateToURL' automatically reloads the entire page.

Is there a way of passing a regular HTML URL request to the browser or anything similar?

 

I didn't find anything on the web about this. I'm new to Actionscript.

 

button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);

 

function fl_ClickToGoToWebPage(event:MouseEvent):void

{

          navigateToURL(new URLRequest("/dienstleistung/entwurfsplanung/"), "_self");

}

 

Any help would be great.

 

Felix

 
Replies
  • Currently Being Moderated
    Aug 9, 2012 9:33 AM   in reply to Felix555555

    You can probably use the ExternalInterface class an have your Flash file submit the requests to a function in your html page/javascript and let that deal with it just like you have now.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points