openURL and absolute URLs

I was unable to get openURL to work at all... at first.

I couldn't find any documentation on openURL so I started experimenting, especially after poking around in the source code for a few minutes (I'm not a C programmer, but I figured it out). I thought about things for a minute and realized that the ":" after openURL was a delimiter, and the software was probably seeing the ":" in http:// as another delimiter.

Sure enough, I discovered that I COULD get it to work for relative URLs in the same folder, like this:
onClick="openURL:index2.html,_self"

Any other use choked on the http://. I tried unsuccessfully to escape the : by means of a backslash, but no change.

Probably need to tweak it to handle fully absolute URLs, or provide some other means to open absolute URLS.

I didn't test to see if it could handle a relative URL with slashes in the title.

__________________

--Brandon
Split Infinity Music

re: absolute urls

The relevant code looks for the first instance of a colon, I just checked to make sure I wasn't crazy (a concern sometimes!). So I am not sure why you are seeing that problem. But I don't think it is parsing. Just in case, I uploaded a new PanoSalado to the repository, rev. 130, which should trace out the url and window specified in the call to the flashlog file, so that you can test this.

I think that it is more likely to be a security error: This comes straight from the flash docs pertaining to the navigateToURL method:

You cannot navigate the special windows "_self" , "_top" , or "_parent" if your SWF file is contained by an HTML page that has set the allowScriptAccess to "none" , or to "sameDomain" when the domains of the HTML file and the SWF file do not match.

And I see that you are using the _self window. Just for debugging purposes, you might try changing _self to _blank and see if it works with absolute URLs. This would prove or disprove my thought. And if it does prove it then you would need to modify the embedding tag in html....

Let me know.

Zephyr

__________________

Zephyr Renner

Still testing with v128... I

Still testing with v128...

I did try to omit the "_self" and see what happened; there was no change.
onClick="openURL:http://mywebsite.org/tours.php"

I also did try "_blank". This didn't work:
onClick="openURL:http://mywebsite.org/tours.php,_blank"

I'll run more tests later.

__________________

--Brandon
Split Infinity Music

I'm having the same problem

I'm having the same problem with rev128...

Any use of openURL or even explicitly inserting an AS3 command like navigateToURL(etc)... doesn't work for me either...

What's the correct syntax?

-DJ

rev131 too...

I don't see anything in the trace output with an onClick set to an openURL() function even with rev131...

Looking at the source, the navigateToURL looks fine, so I'm not sure what the problem is...

Hmmm....

openURL Question...

OK... so after parsing the XML, an event listener gets loaded for any onClick events as defined in the XML...

Upon firing, it calls the interactionScene3DEventHandler method which then parses the loaded XML data to actually do something as follows:

execute( settings..*.(hasOwnProperty("@id") && @id == name).attribute( interactionEquivalents[e.type] ).toString() );

If I read this correctly, it assumes that the XML would follow the generic form of ACTION:WHO.WHAT....

For openURL calls, there isn't a WHO in the schema, only a WHAT...

It doesn't look like that listener is even firing for those events OR the openURL method is never getting called. I've added traces all over and it doesn't look like anything is even happening with openURL statements in the XML...

I'm not sure how the statement above would need to change just yet, but I think this may be the culprit...

Or am I out in left field somewhere (which is usually the case!)?

-DJ

Re: absolute URLS

I've been toying around with PS and I like the hotspots feature but, I need to be able to click on a hotspot and have an IE window pop up in a separate window. Is this possible?

I'm working on a pano for a business and I need to be able to load websites up from within the flash pano.

Re: absolute URLS

Okay,

I been having fun playing around with the XML. After reading posts on this forum, I understand that relative URLS work from the openURL command. With that said,I can use a simple redirect page to go to the website I want by clicking on the hotspot. The only problem I found when I tried this was that my flash pano stopped panning. Is there a way to keep it moving? Is there a better way? this doesn't seem like an efficient way to do this.

Thanks,

Steve

Re: absolute URLS and autopanning

Hi Steve:

Hmm... The expected behavior for autorotation is for it to stop or pause when the user interacts with the panorama. Clicking on a hotspot would fall into that category. If autorotation is in effect when the hotspot is clicked, it will pick back up again after a short delay.

Cheers,

Patrick

__________________

Patrick Cheatham
Forum Administrator

XML and openURL calls...

With regard to my question above - am I doing something wrong, or is there an issue with the code that's been fixed?

When running flashtracer in Firefox and adding a trace command to the openURL method - it never appears to even get called, even though I have it defined in the XML...

Is this a known issue that just hasn't gotten worked out yet?

DJ

I may be a noob.. but

I may be a noob.. but  onClick="openURL:index.html,_self" does keep the the link within the same browser window.

If during your testing, make sure you clear the cache/cookies (ctrl + F5) in IE7 (ctrl + shift + R) in Firefox 3.