Search…

X3 Photo Gallery Support Forums

Search…
 
torvadevelopment
Topic Author
Posts: 4
Joined: 03 Feb 2010, 04:36

direct folder access through swf GETurl

03 Feb 2010, 04:57

Hey,

I'm having trouble accessing folders from a textpage with IE through a swf.
I have a swf loaded in the text page with some links to some folders, but in IE the pages are not loaded. I see the url change but not the content.
This works in FF. In IE when I use a text link It works but links within the swf do noting. The text link 'test' works as expected.

This is my textpage content:
Code
<a href="#/content/Luchtfotografie/">test</a> <img  src="http://www.ijdock.nl/swf/ijdock_iv_module_start.swf" height="250" width="490">
http://fotomodule.i-tool.nl/#/content/start/
Click on 'Luchtfotografie'
http://fotomodule.i-tool.nl/#/content/Luchtfotografie/

Is there something done with the text link, which can not be done with the links within the swf?

Kind regards,
Youri
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

03 Feb 2010, 05:35

Yo say your links are actually inside your custom SWF? What happens if you add your link as normal text in a textpage - Does it work then?

I am almost certain it will help if you read this post and change your links to use the secondary method mentioned:
viewtopic.php?t=5348

This was created because of some issues with Internet Explorer, and is automatic when added as links to textpages, but not for your custom swf.
 
torvadevelopment
Topic Author
Posts: 4
Joined: 03 Feb 2010, 04:36

03 Feb 2010, 12:36

Thx for your reply.

My links are indeed in the swf.
I've added
Code
<a href="asfunction:_root.link,content/Luchtfotografie/">New methology for internal links</a>
as text link and works but the text link 'test' already worked in IE.

The problem is using getURL within a loaded swf to change folder instead of a textlink, why? because of the lack of support of html in flash to get the desired layout, 'the grid'.

The bottom right image 'Luchtfotografie' is called 'six_mc'.
I have put a dynamic textfield over that image ('mytext') and have the following as code attached to it:
Code
six_mc.onRelease=function(){
	getURL('/#/content/Luchtfotografie/');	
	getURL('asfunction:_root.link,#/content/Luchtfotografie');
}

mytext.htmlText ="<A HREF=\"asfunction:MyFunc,#/content/Luchtfotografie \">Click Me!</A>";


function MyFunc(arg){
	getURL(arg);	
	mytext.htmlText = mytext.htmlText+'#';
}
Clicking on the image fails in both FF and IE with 'asfunction:...' as url.
Clicking on 'Click Me!' works in FF, but still not in IE, in IE u can see that the function MyFunc is actually being called because '#' signs are added to the text field, but 'getURL(arg);' in MyFunc results in nothing.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

04 Feb 2010, 08:33

ok, its a little confusing with all this external SWF with links ... However, if you are actually using an external SWF with real actionscript buttons, you should be able to access the function without using getURL. Something like this:
Code
button.onRelease = function(){
   _root.link("#/content/Luchfotografie/");
}
Make sure you get the text 100% correct with uppercase/lowercase, and use a slash/ at the end of the path.
 
torvadevelopment
Topic Author
Posts: 4
Joined: 03 Feb 2010, 04:36

04 Feb 2010, 10:46

Still no luck with your suggestion!

Are U able to change folders with this solution (in your setup), maybe I'm missing/overlooking something!

I can't find anything related to _root.link that you can use it as a function with params like that?

The other links (film) do change the url, so some part of swfaddress does work in ie8 (vista).

thx
Youri
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

11 Feb 2010, 04:50

Well, I am not sure if maybe there is some reason why your loaded SWF is not able to access functions in the parent SWF. All I know is that there is a function "link" that is used for all internal parsing ... Ultimately, the getURL commands are parsed out to use this function, and they work for the main SWF.

Now, why they don't work for your external SWF I am not sure. I could do some testing later on ...
 
torvadevelopment
Topic Author
Posts: 4
Joined: 03 Feb 2010, 04:36

15 Feb 2010, 05:25

I've come up with a js solution, so that's done!

Now i've got something else I don't understand:

http://fotomodule.i-tool.nl/#/content/Parkeergarage/
http://fotomodule.i-tool.nl/imagevue/im ... eergarage/

The second link doesn't work, I'm using it in a loadmovie call:
Code
//does work
loadMovie("http://fotomodule.i-tool.nl/imagevue/imagevue2.swf", test_mc);

//doesn't work
loadMovie("http://fotomodule.i-tool.nl/imagevue/imagevue2.swf?startpath=content/Parkeergarage/", test_mc);
What am i missing?


Thx.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

16 Feb 2010, 02:05

Now, I am not sure why your first LoadMovie call works, because when loading the SWF like that, you need to refer the globalpath usually. Try THIS