Search  

FLASH/XML, HOW TO HIDE URL?

HomeForumsHelp Neededflash/xml, how to hide url?
Default-profile missmai27
7 posts
Bought between 1 and 9 items

Hi, I purchased this excellent file yesterday: FlashDen

...its all but perfect for my needs bar one little thing, I dont know how to hide the url. I would like to use the words: “View this project” instead of the url in the display boxes but I am a bit new to this and am not sure how to do it.

The xml file reads: pic title=”Nokia pitch” url=”http://www.flashden.net” description=”This was a great pitch etc etc”>thumbs/nokia.jpg

I’d be happy to past more code but not sure what.

If someone would have time to help, I’d be very grateful indeed!

thanks much, missmai27

Posted about 1 month ago
67919 flashblue
194 posts
Exclusive author Author was featured Referred at least one person Sold between 5 000 and 10 000 dollars Bought between 1 and 9 items

Please, contact the author. He/she can help you. Just needs to delete url textfield.

Posted about 1 month ago
68202 michaelhejja
334 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 10 and 49 items

You need to find the place in actionscript where the text is being set, something like: myTextField.text = XMLdata.firstchild.attributes.url

Change this to load the string you want instead: myTextField.text = “View this project”;

Posted about 1 month ago
Default-profile missmai27
7 posts
Bought between 1 and 9 items
Please, contact the author. He/she can help you. Just needs to delete url textfield.

hey, tried that ysterday but no reply : (

Posted about 1 month ago
Default-profile missmai27
7 posts
Bought between 1 and 9 items
You need to find the place in actionscript where the text is being set, something like: myTextField.text = XMLdata.firstchild.attributes.url

Change this to load the string you want instead: myTextField.text = “View this project”;

OK, so I found this:

item.url_txt.text = tempxml[i].attributes.url; // And this one a url i to our item

.... and I changed it to:

item.url_txt.text = “View this project”

and so far so good : )

Thanks a million, I’m really happy to have discovered this site…it’s brilliant : )

Posted about 1 month ago
3113 geoken
570 posts
Author was featured Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

item.url_txt.text = tempxml[i].attributes.url;

Instead of hardcoding the value like you did, you can change that line to pull a different value from the XML file. For example, If you wanted it to generate the text based on the “title” attribute you could just change it to;

item.url_txt.text = tempxml[i].attributes.title;

Basically, the last word on that line (the one after ‘attribute’ ) will allow the file to pull the name from any of the attribute tags (i.e. title, url, description).

Posted about 1 month ago
Default-profile missmai27
7 posts
Bought between 1 and 9 items
item.url_txt.text = tempxml[i].attributes.url;

Instead of hardcoding the value like you did, you can change that line to pull a different value from the XML file. For example, If you wanted it to generate the text based on the “title” attribute you could just change it to;

item.url_txt.text = tempxml[i].attributes.title;
Basically, the last word on that line (the one after ‘attribute’ ) will allow the file to pull the name from any of the attribute tags (i.e. title, url, description).

hey there, I think this would be great. Then I could vary the CTAs from “View this project” to “Play video” to whatever. However when I just tried it what happens is that the command points me not to the url but it tries to find page under my site with that title, not the actual url.

Bit confused ….

Posted about 1 month ago
3113 geoken
570 posts
Author was featured Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

What did you change? The Flash file or the actual XML file?

Posted about 1 month ago
Default-profile missmai27
7 posts
Bought between 1 and 9 items
What did you change? The Flash file or the actual XML file?

...the flash file. Was that wrong?

: ( sorry to so dumb about this!

Posted about 1 month ago
Default-profile missmai27
7 posts
Bought between 1 and 9 items

Hi, still haven’t figured this one out.

what happens is when i change the ‘url’ of ‘attributes.url’ to anything else it does not find the actual url anymore. So yes, it pulls in e.g. the title but it also thinks the title is the url. I would like the visible link to say ‘View this project’ but clicking on it it should go to the link. Does this make sense?

Thanks a million to anyone who can help me do this : )!

As in flash: item._x = (item._width+space)*i; // This places our items on y axis item.title_txt.text = tempxml[i].attributes.title; // item.descr_txt.text = tempxml[i].attributes.description; item.url_txt.text = tempxml[i].attributes.url;

Xml: thumbs/nokia.jpg Posted about 1 month ago