xml + flash + target_self
- Started
- Last post
- 12 Responses
- 67nj
I bought a small app in flash that works with a xml document; I can't figure out how to maint the link to open in the same window:
<image>01vinJewel.jpg</image>
<imageLink>01.html</imageLink>and also here:
<text><![CDATA[text sample text <a href="http://www.w3schools.com/">THIS IS LINK</a>. more sample text]]></text>-------
I tried to ad the target inside the link tag but it didn't work
- flashbender0
you need to find + post how the how the xml <imageLink> is fed into the button action: getURL(....)
- cuke4260
on the urlrequest (as3) do "_self"
oh i see someone else just replied to this and pushed it to the top of the list...
- cuke4260
yeah if it's getURL(as2) you still add the "_self" in there, i guess it's the same either way.
- flashbender0
yeah, but mine is old school.
You're right - it is probably written is as3 if he bought it recently
- 67nj0
ok, i'm not a programmer but i think i found where that line is (sort of):
for (i=0; i<myXML.childNodes.length; i++) { // reading all xml nodes
news[i]=new Array();
news[i][0]=myXML.childNodes[i].a... // text title
news[i][1]=myXML.childNodes[i].c... // image path
news[i][2]=myXML.childNodes[i].c... // link
news[i][3]=myXML.childNodes[i].c... // link target
news[i][4]=myXML.childNodes[i].c... // content text
}
- 67nj0
i'm going to post the entire script somewhere where I can paste everything
- 67nj0
as2 in the flash file
http://www.67nj.org/ntHelp.htmlexample of xml link:
<data title="Title">
<image>01.jpg</image>
<imageLink target="_blank"></imageLink>
<text><![CDATA[Sample text here, <a href="http://www.w3schools.com/">THIS IS LINK</a>. More sample text here.]]></text>
</data>
- 67nj0
noody can hekp me?
- thebottlerocket0
That code is horrible in there and I am not going to read through it all, but try here:
target.onRelease=function() { // image release actions
getURL(target._parent.link, target._parent.itarget);
}try changing to _self
- BTW: my help usually confuses more than it solves.thebottlerocket
- it doesn't work... still67nj
- flashbender0
have you tried removing the _blank from this:
<imageLink target="_blank"></imageLink>
- thebottlerocket0
so did any of that work?
- 67nj0
i tried everything but nothing changed... still not working...
I know sent a note to the guy that designed the whole thing...
it's a small app I bought from ultrashock....