View Single Post
  #6 (permalink)  
Old May 5th, 2008, 21:51
ahwell ahwell is offline
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Re: xml & external link

Quote:
Originally Posted by marSoul View Post
hi
Like this :

Code: Select all
url[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
then you can create a button and put a dynamic text box into it which reads this url[i] value

I did like you said. I made a textfield,named it url_txt and put it inside a button. I put this on it:
Code: Select all
on(release){getURL(url,"_blank");}
so far so good (I think)
I put your script in the flashfile.
I put this in the xml
Code: Select all
<images>
    <pic>
        <image>http://www.gotoandflash.com/xavier/1.jpg<links>http://www.google.com</links></image>
  <description>mooi!!</description>
  <url>'http://www.google.com'</url>
    </pic>
blabla and so on
then when I try run it I get :
1. all the 5 urls I put in the xml load in at once
2.*** Security Sandbox Violation ***pops up

I have no idea what I did wong since i dont know what im doing in the first place..I put the files online for you to have a look at,maybe then its more clear.
Attached Files
File Type: fla header.fla (128.0 KB, 2 views)
File Type: xml images.xml (1.0 KB, 3 views)
Reply With Quote