Ultrashock Forums > Flash > Data Communication
Browser Targets, with XML Web 2.0 Dropdown Menu

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
Browser Targets, with XML Web 2.0 Dropdown Menu
Old 2009-03-02

Hi,
Sorry as I'm a bit new to the XML with Flash thing, and I'm not fully sure I understand how to customize the tag to make a more specific kind of browser target.

This is in relation to the FLA set I downloaded on Ultrashock, "XML Web 2.0 Dropdown Menu" by the user named Webwax...

Inside the XML file, URL parameter in the item calls out an external navigational link as follows:
<item label="The One-Woman Show!" link="external:html/spinning_the_globe.shtml" thumb="icons/blinklist_16.png"/>

My question is, how would I include the correct syntax which would produce the HTML equivalent of:
target="_top" or target="(framename)"
so that the link targeted does not automatically pop open a new window? I would like the target to remain in the same window, or possibly even target an HTML based <IFRAME> once in a while.

Thanks,
Eric
postbit arrow 3 comments | 963 views postbit arrow Reply: with Quote   
Registered User
day4night is offline
seperator
Posts: 2
2003-08-21
Age: 10
day4night lives in United States
seperator

Ultrashock Member Comments:
Isocase's Avatar Isocase Isocase is offline Isocase lives in United States 2009-03-02 #2 Old  
In the XML you could probably just add in a new attribute of target
Code:
<item label="The One-Woman Show!" link="external:html/spinning_the_globe.shtml" thumb="icons/blinklist_16.png" target="iFrame or whatever"/>
Then in your code however it is calling the link attribute in your getURL method pass in the attribute. Not sure if you are using AS3 or AS2, but in AS2 it could look something like

Code:
getURL(link, target)
Without seeing how things are being passed in it is hard to get anymore specific.
Reply With Quote  
day4night day4night is offline day4night lives in United States 2009-03-07 #3 Old  
Hi again,

Thanks, but still no luck here...
I've actually tried the very thing; adding a simple target="_top" attribute, but it still seems to pop open a new window no matter how I phrase the target window... "_top", "top", "self", "_self" ... none of these seem to work...

Perhaps does the attribute: link="external:html/spinning_the_globe.shtml" take on an additional argument to include the target as part of that string... maybe? I'm not too familiar with XML syntax to know if that's the norm or not...
Reply With Quote  
Nutrox's Avatar Nutrox Nutrox is offline Super Moderator Nutrox lives in United Kingdom 17 Creative Assets 2009-03-08 #4 Old  
Quote: Originally Posted by day4night View Post
I've actually tried the very thing; adding a simple target="_top" attribute, but it still seems to pop open a new window no matter how I phrase the target window... "_top", "top", "self", "_self" ... none of these seem to work...
It doesn't matter if you add the target attribute to the XML elements, it won't work unless you modify the ActionScript code to read/store/use that new attribute.
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: