4wheel
asked on
inserting a hyperlink in xml file with flash components
All I want to do is to insert url links in the xml code below. In other words, I need the XML
equivalent to the HREF tag in html. I have tried several solutions without any luck so far.
here is the original XML file I want to work on (named "structure.xml") :
<?xml version="1.0" encoding="utf-8"?>
<menu>
<item name="HOME PAGE" type="home" componentPath="dynamic_new s" componentSWF="" visible="true"/>
<item name="XML ACCORDEON" type="component" componentPath="accordeon" componentSWF="accordeon.sw f" visible="true"/>
<item name="3D CAROUSEL" type="component" componentPath="carousel" componentSWF="carousel.swf " visible="true"/>
<item name="EVENT PLANNER" type="component" componentPath="event_plann er" componentSWF="event_planne r.swf" visible="true"/>
<item name="BOOKMARKER" type="component" componentPath="bookmarker" componentSWF="bookmarker.s wf" visible="true"/>
<item name="PHOTO GALLERY" type="component" componentPath="images_gall ery" componentSWF="img_gallery. swf" visible="true"/>
<item name="VIDEO GALLERY" type="component" componentPath="video_galle ry" componentSWF="video_galler y.swf" visible="true"/>
<item name="AUDIO GALLERY" type="component" componentPath="audio_galle ry" componentSWF="audio_galler y.swf" visible="true"/>
</menu>
I would like to add a link in HOME PAGE item above to an external website (for example: www.google.com)
I have tried a solution I saw posted in this blog but it did not work for me:
<item name="HOME PAGE" visible="true" componentPath="dynamic_new s" componentSWF="intro.swf"/> <link>"http://www.google.com"</link>
Does anyone have a solution?. Thanks a lot..
ps: i tried uploading the whole list of files but the upload program rejects .mp3 files.
equivalent to the HREF tag in html. I have tried several solutions without any luck so far.
here is the original XML file I want to work on (named "structure.xml") :
<?xml version="1.0" encoding="utf-8"?>
<menu>
<item name="HOME PAGE" type="home" componentPath="dynamic_new
<item name="XML ACCORDEON" type="component" componentPath="accordeon" componentSWF="accordeon.sw
<item name="3D CAROUSEL" type="component" componentPath="carousel" componentSWF="carousel.swf
<item name="EVENT PLANNER" type="component" componentPath="event_plann
<item name="BOOKMARKER" type="component" componentPath="bookmarker"
<item name="PHOTO GALLERY" type="component" componentPath="images_gall
<item name="VIDEO GALLERY" type="component" componentPath="video_galle
<item name="AUDIO GALLERY" type="component" componentPath="audio_galle
</menu>
I would like to add a link in HOME PAGE item above to an external website (for example: www.google.com)
I have tried a solution I saw posted in this blog but it did not work for me:
<item name="HOME PAGE" visible="true" componentPath="dynamic_new
Does anyone have a solution?. Thanks a lot..
ps: i tried uploading the whole list of files but the upload program rejects .mp3 files.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you friends.
Bardobrave, unfortunately there is no documentation about how to post links. I do see however another XML document that posts links to external URLs and they work fine (see attached xml code). In reference to programming something in the back to read the url, are your talking about modifying the .fla files?. The package I have did not include any .fla files
Quizengine, I am working with a flash-xml template that is rather old and has no longer any tech support. There are no .fla files either to edit, and I would not know how to modify them anyway since I don´t know flash.
If you wanted I could email you the whole package for you to test. Please let me know if you would like that. I can´t upload them here because of this site´s restrictions. cgal.xml
Bardobrave, unfortunately there is no documentation about how to post links. I do see however another XML document that posts links to external URLs and they work fine (see attached xml code). In reference to programming something in the back to read the url, are your talking about modifying the .fla files?. The package I have did not include any .fla files
Quizengine, I am working with a flash-xml template that is rather old and has no longer any tech support. There are no .fla files either to edit, and I would not know how to modify them anyway since I don´t know flash.
If you wanted I could email you the whole package for you to test. Please let me know if you would like that. I can´t upload them here because of this site´s restrictions. cgal.xml
I'm not sure what to say...
If the swfs don't have the ability to launch links, then nothing in the XML file can give the swf that ability - it's the swf that would need changing, and yes, you would need to know Flash, or recruit someone who does, to be able to edit the behaviour of the swfs.
The HREF tag in HTML is a feature of HTML. XML doesn't have that feature, and swfs can only be made to launch webpages by creating Actionscript 'links' in them (e.g. using the getURL() actionscript instruction).
If the swfs don't have the ability to launch links, then nothing in the XML file can give the swf that ability - it's the swf that would need changing, and yes, you would need to know Flash, or recruit someone who does, to be able to edit the behaviour of the swfs.
The HREF tag in HTML is a feature of HTML. XML doesn't have that feature, and swfs can only be made to launch webpages by creating Actionscript 'links' in them (e.g. using the getURL() actionscript instruction).
ASKER
Thank you very much quizengine... I will search for a flash expert.. thanks again.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Bardobrave. That did not work unfortunately. If you can please take a look at the template i have uploaded to a server for testing purposes. Menu item HOME PAGE has your link suggestion. I also added a new menu item called PRIVACY POLICY just for testing links to google.com, but no luck.
I even tried creating a transparent button the size of the screen with a link to google.com, but that doesn´t work either.
the test template can be seen at;
http://scottsdale.servershost.net/~inmueble/prueba/website/2644.html
Thanks again...
I even tried creating a transparent button the size of the screen with a link to google.com, but that doesn´t work either.
the test template can be seen at;
http://scottsdale.servershost.net/~inmueble/prueba/website/2644.html
Thanks again...
Mmmm... your original xml structure is
<component>
<items>
<item>
<icon></icon>
<link></link>
</item>
</items>
</component>
While your current trys are:
<menu>
<item>
<link></link>
</item>
</menu>
You can try reproducing the original structure and see what happen.
<component>
<items>
<item>
<icon></icon>
<link></link>
</item>
</items>
</component>
While your current trys are:
<menu>
<item>
<link></link>
</item>
</menu>
You can try reproducing the original structure and see what happen.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thnaks for your help. Problem couldn´t be solved. But suggetsions were very helpful
Reading your post I think you're using some sort of automated back content generator. In it's documentation should be info about how to post links to it.