ActionScript 2.0 :: Get The Nodevalue Summary And Description In Tag OBJECT?
Nov 5, 2009Please, anyone can help me to parse this xml sample. I want get the nodevalue summary and description in tag OBJECT? I need actionscript code.
[Code]...
Please, anyone can help me to parse this xml sample. I want get the nodevalue summary and description in tag OBJECT? I need actionscript code.
[Code]...
Above is a pic of a combo box loded with values. Id like to have it so when you mouse over the dropdown, a hover descripition of the value the mouse is currently on appears on the screen. I have it complete for the most part...but as you can see, the description displays behind the dropdown. Ive tried this.setChildIndex(textDescription, this.numChildren - 1)" and no luck.
View 6 RepliesI want to add the required information to the 'Summary' tab when looking at the properties of an SWF file.Could somebody tell me how to do add the required informations .
View 5 RepliesIn Flex, how do I create a summary(say total of various domains) from the data provider and display in chart? Say this is my dataprovider.. I want to display the total estimate of each territory as a slice in piechart
private var dpFlat:ArrayCollection = new ArrayCollection([
{Region:"Southwest", Territory:"Arizona",
Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000}, [code].....
I have a AdvancedDataGridColumn with custom itemrenderer which displays undefined in the group summary field. How do I get rid of it? I have included the code and a screenshot
[Code]...
I have created an XML list that feeds a TreeView component, with AS2 I am able to get to this point:
This is my XML statement :
Code:
<menulist>
<node label="Products">
<node label="Tryout">
[Code]....
At this point I when I run the movie I get the index which is basically a number, but I want the label associated with that number.
In the XML file, there's an attribute called data, I want the segment2.swf to load when the user selects the option. I have a loader component also on stage, I just want the user selection to be as input to the content path of the loader.
I want to display my XML data in flash and I managed to display this:
Code:
<title>My Title</title>
with this:
[code].....
I have to access every node value of an XML file via some for loop.But it doesn't workEvrything is in the FLA and XMl file attached.
View 3 RepliesDoes anyone know where I might be able to find a list of all HTML (and XHTML) tags that are supported with externally loaded CDATA text? I have a client who's running into rich text editor issues using a <strong> tag instead of, say, <b> tags, and I'd like to have a solid list of supported tags they can use.
View 0 RepliesCompletely at a loss for words...it is there in the xml file. The XML throws no errors. And yet when I try to access the CDATA section it says that its null. What does that mean? Here is my test source, and the link to the location of the XML doc (its a hard coded link in the AS).
View 5 Repliesso i have ignoreWhite set to true and am trying to get textual data out of an xml node. my node looks like so:<description>this is a description</description>so i navigated to the node with the following variable:var descriptionNode:String = newsXML.firstChild.firstChild.childNodes[i].childNodes[2];and it gives me the output when i trace it with the node and the description in it. but i don't need the node, i need the text only, so i tried to add a nodeValue at the end of that and it output as null. why am i brainfarting right now and can't figure out how to output just the text and not the text AND the node?
View 3 RepliesI'm building a gallery under flash mx 2004. I use an xml file to store the description about each painting that has to be displayed with the picture related to it.
Here is my xml file :
Code:
<description>
<painting ref="01">
<title>Guernica</title>
[Code]....
I can get the node names but the node value is "null", and the nodeType of my node "<title>" returns "1"...
What's going wrong, it's supposed to be a text node...
How should I acess to the value of my "<title>","<date>", "<technique>", and "<size>" node values ?
Having to do some as2 with an ancient system, and am far from fresh on it. I've managed to bungle my way through most of it, but I've hit a strange logic problem.
Code:
trace(this.firstChild.firstChild.firstChild);
trace(this.firstChild.firstChild.firstChild.nodeName);
trace(this.firstChild.firstChild.firstChild.nodeValue);
produces:
[Code]...
When I try to get some text from a node into a textfield by using .nodeValue I get 'null'. When I use nodeType on that node the result is "1". I understand that a textnode should result in value "3". But how come this isn't the case here?
My xml looks like:
[code]...
I read Senocular's tutorial on XML and found it really useful. But I still have a problem: When I try to get some text from a node into a textfield by using .nodeValue I get 'null'. When I use nodeType on that node the result is "1". I understand that a textnode should result in value "3". But how come this isn't the case here? My xml looks like:
[Code]....
i am having with xml being displayed in flash mx.the tutorial on this site works fine, but when i write my own xml file and modify the as, i encounter the problems. ideally, i wolud like to be able to load text files and urls of images to be loaded into flash, flash recognises the xml file fine and actually loads it, however, when i try to use the nodeValue action, i am always given the value "null." this is because flash thinks the node is an element rather than a text node (type 1 rather than 3, when you use nodeType.) i don't know why it does this when it is obviously a text node.
View 3 RepliesHow to add description tag.I have an xml file that loads the pictures, but I want to add a description tag for each picture. Below is the xml file for this.add a description tag that would work?
<?xml version="1.0" encoding="UTF-8"?> <galleries> <!-- **    Please read this information to learn how to add more galleries to your website. **    **    Here are all the galleries that you can use for the website pages. Each gallery has **    an index or ID. With the help of index the gallery can be connected with the definite
[code]....
I have an xml file that loads the pictures, but I want to add a description tag for each picture. Below is the xml file for this.
<?xml version="1.0" encoding="UTF-8"?>
<galleries>
<!--
** how to add more galleries to your website.
** Here are all the galleries that you can use for the website pages. Each gallery has
** an index or ID. With the help of index the gallery can be connected with the definite
** website page with gallery type.Also this page must have galleryID which should be equal
** Each gallery consists of the list of images. Each image has and url parameter and also
** width and height parameters that define dimensions of the box for the image.**
** It is recommended to use an XML editor to make changes to this file because it�s less
** possible to make an error in the markup which can cause a not working website.
** The recommended size for image_icon=333x333 px.
-->
<gallery id="1" name="nature">
<image image_icon="22598_nature_icon_15.jpg" image="22598_nature_b_15.jpg"/>[code]....
I have the 3dwall feature - but i don't know how to add a title/description to the image. I have followed the instructions, - I don't understand what it is asking me to do.
View 3 Replieshow can I make a windows popup when I put my mouse cursor over a item? The popup should display the item name and it's characteristics. When the cursor rolls out fo the item, the popup windows disappears.
Is there a function in as 3.0 that does this?
I've modified a flash movie that displays images in a slider control. When the user mouses over the image I display a tooltip. The problem is I cannot figure out how to parse the Description(desc) out of the image tag in XML to display as the tooltip text. Heres what I want the image tag to look like:[code]In the actionScript how could I simply parse out the description to pass in as the tooltip text?
View 1 RepliesI am new to flex and am using flex builder 3 , many a times code assist shows a lot of function but i am not sure what these functions do. How can i configure flex builder so that it also shows descriptions of the methods like the one we get in java.
View 1 RepliesI'm having a hard time finding a way to get the html page description into my flash, using the ExternalInterface. I'v tried this:
ActionScript Code:
var pageDESCRIPTION:String;
var metas:Array = new Array(ExternalInterface.call('window.document.getElementsByTagName("meta")'));
[Code].....
how to create a rollover description whereby when i rollover a button a description box pops up at the bottom which either scrolls information or shows shows some text.
I've created my buttons and have used "hover captions" which have worked perfectly, however i would like a description box at the bottom of my button so when i rollover the button some text scrolls or just displays a box where i could put a lot of text.
in the if statement below ? I'm looking to add a description for each picture in a text field... something like: if picture1 selected, text="", else if picture2 selected, text="", else text="";
[Code]...
I bought an xml flash template and i am trying to modify it.In main.fla file there is a layer named functions. At this layer there is actionscript code where i saw this part:[code]When i push the image gallery from the main menu, then the image_gallery.swf loads. There, i have 2 categories with photos, each of whom loads title and description of images from website_xml_imagegallery_xml/category1.xml and website_ xml_ imagegallery_ xml/category2.xml. My problem is that whether i open a photo from one category or from the second category, the title and the description remain the same as the first category's. I figured out that the title and the descrption of the first photo of the second category is the same as the title and the description of the first photo of the first category and this depends of what i am using at the last line of the attached code:images.load ("website_xml_imagegallery_xml/category1.xml");So, if i write category2.xml instead of category1.xml, then the first photo of the first category will have the same title and same description as the first photo of the second category.It seems like each category cannot read from its category.xml. Look at the xml files as well.
View 2 RepliesI am creating an Autorun for CD using flash CS4 in which Tilelist will show product image and slider will slide across images. when slided, product Title and Description should be shown.But instead of showing, Text field goes blank and nothing is shown.
View 5 RepliesI bought a template, made some changes, published it and upload it on FTP. But each time I do a search, one one the search results is one of the orignal page names. Any tips on how to change it?
View 2 RepliesI want a combo box to display a description of the information in the combo box. The name property is a good way to do this in my opinion "comboBox.name = This is what I named this Box". I have a text field ("textDescription") set to display the name of the comboBox on MOUSE_OVER, but only on the edges does the actual name of the comboBox appear. When in the middle, the textDescription displays "instance #" where # is an actual number. Is there some kind of container placed over the combo box or something??
View 5 Replies I want to create a URL link for the description text. Everything works fine until I get to the actual link - it's displaying the HTML. I've clicked on the HTML button in the properties inspector for the text field (see the attached photo); I've also added the following in the AS:
Code:
desc_txt.html = true;
desc_txt.multiline = true;
No luck; it's still displaying the HTML.
Code:
function nextImage() {
if (p<(total-1)) {
p++;
[code]....