Can anyone help me with this problem I have.
I have a gfx which I have created 6 shapes and converted them into simple buttons. I have urls sat inside an xml file. How can I get the buttons to use the urls set from within the xml file?
Also how can I change the current external photo that is being loaded to load the url from a setting in the same xml file.
I hope you arnt as confused as I am right now.
I have packaged up the flash file which includeds the xml aswell.
If anyone could help me out with this I would be very greatful.
Remove the code from all btns, as below paste it on main timeline
Also no need to load xml twice as dome in image container...
give an instance name to the outer container of btns - menumv
use following method to openURL, use same for all the btns..
var myLoader:URLLoader = new URLLoader();
|myXML = new XML(e.target.data);|
I have added your code to care just get one button working.
I ran a preview and it worked.
Published it and the button dont work.
I tried also uploading it to another test server on an external host and it also does not work.
test server http://www.onlineaddicts.co.uk/test
This is with me using IE 9
You need to update the files, you are linking your local links...
Also you need to replicate this line for all your btn
And this function as well
Not an optimized solution as you need to right 5 functions, but should work.
I have removed the double xml load and moved it all to the root.
added the code to run all the buttons
moved code to display text from xml to root.
Buttons work via preview mode within flash but do not work once I publish.
I have updated the rar file with the new fla and updated the test url.
I did update all the buttons and created the 5 functions to work off the mouse click events.
Sorry but you should still get a warning saying it couldnt reach the url..
I dont get anything after I publish it.
Is it a security setting I need to alter?
Dont know whether apache will block the page request, it should not. Check out if there is some explict settings...
Just as a QC, try a simple one btn click opens a html file in a separate file and test whether your setup works on apache...
I changed the link url in the xml file from
file:\\10.0.0.5\sdp$\ so on to http://www.google.co.uk and that worked.
So after that I tried it without the file:\\ protocal
\\10.0.0.5\sdp$\ and that works..
Thank you guys for all the hard work in helping a complete nub on this.