XML &; amp; Link to mx:label
HelloI'm looking to bind entires of XML (see the XML file below) to < mx:Label / > (see code below). It seems that I see any child nodes in the XML file. Were do I know how this is done, or can someone tell me how?
"Jim Daniel"
When you refer to this XML file, you must not refer to adopted children HTH; Amy
News:gdtfpk$S41$1@forums. Macromedia.com...
> Hi,.
>
> I'm looking to bind entires of XML (see the XML file below)
>
> (see code below). It seems that I see no children in knots
> the
> XML file. Were do I know how this is done, or can someone tell me
> How?
>
>
>
>
>
> assets/foxone.png
>
>
> Red Fox
>
>
> Common
>
>
> Most of the map locations
>
>
>
>
> assets/foxtwo.png
>
>
> Forest Fox
>
>
> Regional
>
>
> South America
>
>
>
>
> assets/foxthree.png
>
>
> Artic Fox
>
>
> Regional
>
>
> North America
>
>
>
>
> assets/foxfour.png
>
>
> Japan: Kitsune
>
>
> Rare
>
>
> Asia
>
>
>
node. Which IS the XML. Instead
{AFData.Fox1.header}
Tags: Flex
Similar Questions
-
I have a script that calls a page xml via cfhttp. When I output a link from the xml, the link seems ok. When I try to go out as a viable link like this:
< cfoutput > < a href = "#myxmldoc.response.legislators.legislator.link #" > link < /a > < / cfoutput >
the output looks like this:
No idea where I am going wrong?
You try maybe output the xml node that confuses the browser. Try xmlText at the end of your node to tell him that you want the text of the node.
Link -
Hi all
I am trying to add a html link within a parapgraph of the text which is loaded by an xml document. I did some research and it seems that I have to put my actionscript to read the html code. When I add the href attribute in the text it literally reads like the code instead of create a hyperlink in the paragraph. My problem is that I have not configured the original flash document and I have little course where add the htmlText = true; and so on.
Here is the link. The problem is in the section "press." last line of the paragraph of text. You can see the aref code does not.
http://atelierdelalain.com/index_test.html
Thanks in advance for any help!
Sandra
XML data:
<? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
< images >
< pic >
< image > http://atelierdelalain.com/press/01.jpg < / image >
< title > <! [CDATA [WHAT IS JAMES WEARING?]] > < / title >
< desc > <! [CDATA [as you know by now, I like to integrate the work of the people of artisans and crafts fine inside I create for my clients and myself, a craft object individually can really make a space.]]
This brings me to the cabinetmaker Emmanuel Delalain and its society Delalain workshop that make the most wonderful things in wood and metal. Elegant clean lines, highly regarded as feature and a rich sensual poetry in his work, he does not surprise us to learn Delalain has perfected his art as a young man in the workshop of coastal South of his French father and his grandfather, construction of sailboats.
" To view the full article click here. < a href =" http://www.strutdenver.com [[ "target ="_blank"> < /a > of Strut]] > < / desc >
< darkens > <! [CDATA []] > < / dark >
< Comment > <! [CDATA []] > < / note >
< miniature > http://atelierdelalain.com/press/thumbs/01.jpg < / thumbnail >
< width > 600 < / width >
< > 47 thumbwidth < / thumbwidth >
< subpics >
< / subpics >
< / pic >
< / images >
ActionScript code:
Mx.transitions import. *;
Import mx.transitions.easing. *;
displayWidth = Stage.width;
function loadXML (loaded) {}
If {(responsible)
xmlNode = this.firstChild;
image = [];
title = [];
DESC = [];
If stump = [];
Note = [];
thumbnails = [];
imageW = [];
subimage = [];
subthumb = [];
subW = [];
Subarray = new Array();
Total = xmlNode.childNodes.length;
for (i = 0; i < total; i ++) {}
image [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [0].firstChild.nodeValue;
title [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [1].firstChild.nodeValue;
DESC [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [2].firstChild.nodeValue;
DIMS [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [3].firstChild.nodeValue;
Note [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [4].firstChild.nodeValue;
thumbnails [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [5].firstChild.nodeValue;
imageW [i] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [6].firstChild.nodeValue;
If (i == 0) {}
thisX = 0;
w = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [7].firstChild.nodeValue;
} else {}
thisX = Number (w) + Number (2);
thisW = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [7].firstChild.nodeValue;
w = (thisX) Number + Number (thisW);
}
number of subpics
total_subpics = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [8].childNodes.length;
If (total_subpics! = undefined) {}
Subarray [i] = new Array();
for (x = 0; x < total_subpics; x ++) {}
Subarray [i] [x] = new Array();
Subarray [i] [x] [0] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [8] Sublst.ChildNodes(1).ChildNodes(0) [x] Sublst.ChildNodes(1).ChildNodes(0) [0].firstChild.nodeValue;
Subarray [i] [x] [1] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [8] Sublst.ChildNodes(1).ChildNodes(0) [x] Sublst.ChildNodes(1).ChildNodes(0) [1].firstChild.nodeValue;
subArray [i] [x] [2] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [8] Sublst.ChildNodes(1).ChildNodes(0) [x] Sublst.ChildNodes(1).ChildNodes(0) [2].firstChild.nodeValue;
Subarray [i] [x] [3] = xmlNode.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [8] Sublst.ChildNodes(1).ChildNodes(0) [x] Sublst.ChildNodes(1).ChildNodes(0) [3].firstChild.nodeValue;
}
}
thumbnails_fn (i, thisX);
}
firstImage();
} else {}
Content = "file not loaded! ';
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("flash/press.xml");
/////////////////////////////////////
Listen = new Object();
listen.onKeyDown = function() {}
If (Key.getCode () == Key.LEFT) {}
prevImage();
} ElseIf (Key.getCode () == Key.RIGHT) {}
nextImage();
}
};
Key.addListener (listen);
previous_btn.onRelease = function() {}
prevImage();
};
next_btn.onRelease = function() {}
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {}
size of the file = picture.getBytesTotal ();
load = picture.getBytesLoaded ();
Preloader._visible = true;
If (load! = filesize) {}
Preloader.preload_bar._xscale = 100 * load/size of the file.
} else {}
Preloader._visible = false;
If (picture._alpha < 100) {}
Picture._alpha += 10;
subHolder._alpha += 10;
}
}
};
function nextImage() {}
If (p <(total-1)) {}
p ++ ;
If (load == filesize) {}
void thumbs.
subHolder.removeMovieClip ();
If (subArray [p]! = undefined) {}
createEmptyMovieClip ("subHolder", 10);
subHolder._x = 800;
for (z = 0; z < subarray [p] .length; z ++) {}
subthumbs_fn (p, z);
}
createEmptyMovieClip ("line", 1);
lineLen = z * 60 + z * 5;
Line.lineStyle (1, 0x492F92, 100);
Line.moveTo (795, 0);
Line.lineTo (795, lineLen);
createEmptyMovieClip ("line 2", 2);
Line2.LineStyle (1, 0x492F92, 100);
Line2.MoveTo (895, 0);
Line2.lineTo (895, lineLen);
} else {}
Line._alpha = 0;
Line2._alpha = 0;
}
subHolder._alpha = 0;
EndSub thumbs.
Picture._alpha = 0;
picture.loadMovie (image [p], 1);
displayWidth = Stage.width;
imageWidth = imageW [p];
RES = displayWidth-imageWidth.
place = res/2;
Picture._x = place;
title_txt.htmlText = true;
title_txt.htmlText = title [p];
"desc_txt.htmlText = desc [p] + ' ' + fades [p] + '. "+ note [p];
picture_num();
}
}
}
function prevImage() {}
If (p > 0) {}
p-- ;
void thumbs.
subHolder.removeMovieClip ();
If (subArray [p]! = undefined) {}
createEmptyMovieClip ("subHolder", 10);
subHolder._x = 800;
for (z = 0; z < subarray [p] .length; z ++) {}
subthumbs_fn (p, z);
}
createEmptyMovieClip ("line", 1);
lineLen = z * 60 + z * 5;
Line.lineStyle (1, 0x492F92, 100);
Line.moveTo (795, 0);
Line.lineTo (795, lineLen);
createEmptyMovieClip ("line 2", 2);
Line2.LineStyle (1, 0x492F92, 100);
Line2.MoveTo (895, 0);
Line2.lineTo (895, lineLen);
} else {}
Line._alpha = 0;
Line2._alpha = 0;
}
subHolder._alpha = 0;
EndSub thumbs.
Picture._alpha = 0;
picture.loadMovie (image [p], 1);
displayWidth = Stage.width;
imageWidth = imageW [p];
RES = displayWidth-imageWidth.
place = res/2;
trace("DW:"+DisplayWidth+"IW:"+ImageWidth+"x:"+place);
Picture._x = place;
title_txt.htmlText = true;
title_txt.htmlText = title [p];
"desc_txt.htmlText = desc [p] + ' ' + fades [p] + '. "+ note [p];
picture_num();
}
}
function firstImage() {}
If (load == filesize) {}
void thumbs.
subHolder.removeMovieClip ();
If (subArray [p]! = undefined) {}
createEmptyMovieClip ("subHolder", 10);
subHolder._x = 800;
for (z = 0; z < subarray [p] .length; z ++) {}
subthumbs_fn (p, z);
}
createEmptyMovieClip ("line", 1);
lineLen = z * 60 + z * 5;
Line.lineStyle (1, 0x492F92, 100);
Line.moveTo (795, 0);
Line.lineTo (795, lineLen);
createEmptyMovieClip ("line 2", 2);
Line2.LineStyle (1, 0x492F92, 100);
Line2.MoveTo (895, 0);
Line2.lineTo (895, lineLen);
} else {}
Line._alpha = 0;
Line2._alpha = 0;
}
subHolder._alpha = 0;
EndSub thumbs.
Picture._alpha = 0;
picture.loadMovie (image [0], 1);
displayWidth = Stage.width;
imageWidth = imageW [0];
RES = displayWidth-imageWidth.
place = res/2;
Picture._x = place;
title_txt.htmlText = true;
title_txt.htmlText = title [p];
"desc_txt.htmlText = desc [p] + ' ' + fades [p] + '. "+ note [p];
picture_num();
}
}
function picture_num() {}
current_pos = p + 1;
pos_txt. "Text = current_pos +" / "+ total;
}
function thumbNailScroller() {}
the thumbnail code!
this.createEmptyMovieClip ("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {}
If ((_root._ymouse > = thumbnail_mc._y) & & (_root._ymouse < = thumbnail_mc._y + thumbnail_mc._height)) {}
If ((_root._xmouse > =(hit_right._x-60)) & & (thumbnail_mc.hitTest (hit_right))) {}
thumbnail_mc._x = scroll_speed;
} else if ((_root._xmouse < = (hit_left._x + 60)) & & (thumbnail_mc.hitTest (hit_left))) {}
thumbnail_mc._x += scroll_speed;
}
} else {}
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn (k, xpos)}
thumbnail_mc.createEmptyMovieClip ("t" + k, thumbnail_mc.getNextHighestDepth ());
tlistener = new Object();
tlistener.onLoadInit = {function (target_mc)}
target_mc._x = xpos;
target_mc.pictureValue = k;
target_mc.onRelease = function() {}
p = this.pictureValue - 1;
nextImage();
};
target_mc.onRollOver = function() {}
This ._alpha = 80;
thumbNailScroller();
};
target_mc.onRollOut = function() {}
This ._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl. AddListener (tlistener);
image_mcl.loadClip (thumbnails [k], "thumbnail_mc.t" + k);
}
function scrollLeft() {}
the thumbnail code!
this.createEmptyMovieClip ("tscroller", 1000);
If (thumbnail_mc.hitTest (hit_right)) {}
thisX = thumbnail_mc._x;
Dist = hit_right._x - thumbnail_mc._x;
r = thumbnail_mc._width - dist;
If (r > = 200) {}
Agree = thumbnail_mc._x - 200;
} else {}
Agree = thumbnail_mc._x - r;
}
new Tween (thumbnail_mc, "_x", Regular.easeOut, thisX, agree,.5, true);
}
}
function scrollRight() {}
the thumbnail code!
this.createEmptyMovieClip ("tscroller", 1000);
If (thumbnail_mc.hitTest (hit_left)) {}
thisX = thumbnail_mc._x;
Dist = hit_left._x - thumbnail_mc._x;
If (dist > = 200) {}
Agree = thumbnail_mc._x + 200;
} else {}
Agree = thumbnail_mc._x + dist;
}
new Tween (thumbnail_mc, "_x", Regular.easeOut, thisX, agree,.5, true);
}
}
buttonRight.onRelease = function() {}
scrollLeft();
};
buttonLeft.onRelease = function() {}
scrollRight();
};
function subthumbs_fn (d, z) {}
subHolder.createEmptyMovieClip ("sub" + z, subHolder.getNextHighestDepth ());
sublistener = new Object();
sublistener.onLoadInit = {function (targ_mc)}
targ_mc._x = 800;
targ_mc._y = 60 * z + 5 * z;
////
thumbWidth = subarray [p] [z] [3];
thumbRes = 90-thumbWidth;
thumbPlace = thumbRes/2;
targ_mc._x = thumbPlace;
trace (targ_mc._x);
targ_mc.onRelease = function() {}
p = this.pictureValue - 1;
nextImage();
Picture._alpha = 0;
picture.loadMovie (subarray [p] [z] [0], 1);
displayWidth = Stage.width;
imageWidth = subarray [p] [z] [2];
RES = displayWidth-imageWidth.
place = res/2;
Picture._x = place;
This ._alpha = 30;
picture_num();
};
targ_mc.onRollOver = function() {}
targ_mc._alpha = 80;
trace (targ_mc);
};
targ_mc.onRollOut = function() {}
This ._alpha = 100;
};
};
sub_mcl = new MovieClipLoader();
sub_mcl. AddListener (sublistener);
sub_mcl.loadClip (subarray [p] [z] [1], "subHolder.sub" + z);
}
Try this
title_txt.html = true; title_txt.htmlText = title[p]; desc_txt.html = true; desc_txt.htmlText = desc[p]+" "+dims[p]+". "+note[p];
-
create link to a label image in AS2
Hi, I need to create a link to a particular frame that uses a label image in AS2, so the code AS would be in the line of time on another frame. I can either do this with a hyperlink if possible or I can create a button and convert to a MC. restraint way is easier.
Create a button or a movieclip, assign it an instance name and assign code in the timeline panel to post a link on the frame... If you call it 'btn' you will use...
btn.onRelease = function() {}
gotoAndStop ("yourLabelInQuotes");
}
-
buttons that links do not label in the framework
Hello
I have buttons in a video called navigation which is then put in scene 1. In scene 1 I frames with labels and I want the buttons to link to the scene as a single, label whatever. Seems the value OK but when I click on the link it seems to just reload the film of navigation instead of going to the frame in stage 1. I can't understand what I'm doing wrong.
Thanks for any help. Furthermore, I use Flash 8 Professional
(about 1 meg) Here is a link to the flash fileAndrew Pearce wrote:
> Urami thanks for your response. I tried to change it and also tried to change the
> label image name to the anchor, but the two did not work. I've updated the flash
> file. My apologies if you had a glance to this cause, I forgot that I removed actions
> and added another layer in a scene to manipulate buttons. (which works but)
(> covers animated buttons etc) I have returned now.OK, got it.
Just as before, go play at the stop to add _root and remove the stage nameexample:
on (release) {}
_root.gotoAndStop ("tower");
}see the main timeline, _root continuation of action and target.
You might as well use _parent instead of _root, he pulled UP
Bungalow on the clip.Don't use the stage names. The scenes are just empty frames, giving an end to one
and the beginning of another delay. They are not included in the final SWF files,
Think of it more as convenience of creation. That's why you can't target the
with actions. Now, you can get away sometimes, but on complex projects usually
do not in order to better learn to not use it.
I guess that's it, change the actions to the foregoing and you good to go.--
ConcerningUrami
--
Happy new year guys - all the best there is in the 2006 :)
-
Using XML dynamic link navigation bar
Hey Flash gurus.
I¹m finishing a flash of the project where I need to convert my static text links
in dynamic links that pull a simple external XML text and links
file.
After some research, I found some legal examples online that I could
twist to my needs. I did a single SWF "NavBar.swf" which correctly
pulls the data out of "links.xml". In itself, it works fine. See this:
http://Halmac.com/downloads/NavBar.html
But I need to include 'NavBar.swf' in my MAIN Flash project. I made a simple
example of a SWF encompassing, but the file embedded inside (imported)
does not work. I wonder if he can not find the referenced XML file or
something. See the example. Nothing happens:
http://Halmac.com/downloads/embeddedSwf.html
If anyone has any advice for me I would be very happy. My resource. FLA
the files are available for download. They are very simple. See here:
http://Halmac.com/downloads/
List of files:
NavBar.fla
NavBar.html
NavBar.swf
embeddedSwf.fla
embeddedSwf.html
embeddedSwf.swf
Links.Xml
Here is the ActionScript code in "NavBar.swf":
If you can, remove any referance to _root, in your code. It is a good way to break your movies. When you embed a swf in another, the root is changed.
Thus, when you embed your swf of menu, in this line
duplicateMovieClip (_root.baseLink, newObj, depthCount ++);It will look baseLink in the root of your main movie, not the menu.
-
XML '&; amp;' analysis
I use the w3c dom parser and noticed the method getNodeValue() on a node object doesn't seem to be able to parse & correctly. The used xml is as follows:
name with ampersand & and other stuff The result returned on appeal getNodeValue() was: 'name with ampersand '.
It is to truncate the string with the '& '. Everyone knows about this problem? If so, you know a solution for this?
Thank you.
Try to call setCoalescing (true) on your DocumentBuilderFactory
-
You can link buttons with labels in a separate movieclip?
I'm pretty new to Flash so please excuse my lack of knowledge... using AS3
Basically, I had a situation where organized when a button was clicked and flash would then display a certain image by jumping on a label on the timeline, and by clicking on a button different would have shown a different picture. This worked pretty well, but for reasons of page layout, I had to divide these buttons and the timeline that they relate to a maximum in separate video clips.
of course the buttons do nothing now,but I hope to know how I can connect these elements to the top despite them being separate video clips. is this possible?
I am just wanting to do the same thing, that they did when they were both in the same movieclip.any help is very welcome
Thank you
Try...
MovieClip (parent.parent).bigchap.kiltclip.gotoAndStop ("label string");
replacing the labels and the names of the actual instance (if they aren't already). And try to see what the code trying to achieve based on the schema that you have demonstrated... that way, if it is different from what you have demonstrated, you might be able to adjust the code yourself.
What really suits you see is this arrow calls you on a journey through half superior arrangement to find its way to the other side... it is the only available way so he can get there.
-
Problem with the button 'next' sideshow &; amp; Links
Hello
I am trying to create a slide show that has a 'next' and 'previous' button that allows you to see the next or previous movieclip when you click one of the buttons, and each movieclip contains a link to a Web site. Please see an example of what I've done so far - http://abwebsitedesign.co.uk/flashtest/
The code I used for the links doesn't work, when you click a clip he only takes you the first url (which is the "Greenfield" in this case, but when you're on the image of "Millstock" do not you on 'Millstock' site, still need you to "Greenfield" one). Also, when getting to the last image, then click on 'previous', the 'next' button should appear, but is not, it shows that when you click on the "back" button 2 times. Please let me know if anyone can help with this! Attached, is what my code looks like.
Thank you very much.Hello
I think that your table indexing and counting is a bit off. If you change your managers of button for the code below, you should see your URL works correctly and your next and previous buttons works as it should.
-
How to change the xml link?
First a few words about my background:
I got a page on a version of InDesign CS3 layout. Now, I'm creating a procedure to automate the production of several pdf based on this provision. Manually process would be to open the page layout; change the xml with each xml source link and create a file pdf corresponding...
First question:
In CS4 when I want to manually edit the xml link, the open dialog box prevents me (xml files are grey) to select xml files, it is a well known problem? How can I avoid it?
Second question:
How to change the script xml link?
Last question - applescript question -:
How to skip application dialog boxes? As "this document is missing a few links, would continue you?
If you want to be able to help me, thanks in advance!
There is a piece of code found on the net:
tell document 1 of application "Adobe InDesign CS3"relink thisItemLink to someFileReferenceupdate thisItemLinkend
-
Not drop-down list values in the XML that is generated after completing the form
Hello
I have a form that has a drop-down menus of the filling of an XML file, the items in drop-down list to a text and value associated with it.
The problem is when I generate the XML of the form value labels are coming in instead of the text in the drop-down list.
Pls help. How can I get the text of the value of the dropdown list selected in the XML file?
Thank you
Ludovic
Hello
I would recommend going to the object > linking the palette and deselecting 'specify values ". In this way, the display values will be included in the XML, as the display value will be the same as the .rawValue from the drop-down list.
However, this means that any script that references the drop down menus will use the values to display for the items and not the previous related values.
Hope that helps,
Niall
-
parts of XML in hierarchical data (like a tree)
Hi all
I have a potential, big enough XML file, I need to present only parts in a tree structure. The XML is something like:
< scenes >
< scene id = "1" label = "label" >
< actors >
... stuff ...
< / actors >
< snapshots >
< instant label = "label" >
... content of the node.
< / snapshot >
< instant label = 'other label' >
... content of the node.< / snapshot >
... maybe more instant...
< / snapshots >
< / scene >
< label scene = 'a' >
< actors >
... stuff...
< / actors >
< snapshots >
< instant label = "label" >
... content of the node.< / snapshot >
< instant label = 'other label' >
... content of the node.< / snapshot >
... maybe more instant...
< / snapshots >
< / scene >
... more scenes...
< / scenes >
I would like to have a tree-like representation of it so that only the labels 'scene' and the 'snapshot' labels are displayed.
I can't figure out how to ignore all subnodes without actually creating a copy of the XML file and the exhibitionist somehow. That I prefer not to do, because the link between the actual data and its visualization (tree) has more or less disappeared.
Suppose I am a little confused by all the possibilities... Maybe I can use a stripped XML but link selections or changes (node labels should be possible to be renamed and reorganized) the original data?
Can someone point me in a right direction?
Thanks in advance.
Manno
See ITreeDataDescriptor
-
Hello
I try to use the framework (function). I'm having a problem with the script action. He won't go to the next section.
Can someone please help me on this. It sounds simple, but I'm missing something.
Thank you
Tom
ActionScript
Code menu_mc.onItemClick = function (node: XMLNode, level: Number)
{my_movie_clip.gotoAndStop (number (.frame node.attributes))
XML DATA:
< menu >
< item label = 'Home' frame = "1" / >
< label element = 'About Us' frame = "2" / >
< item label = "Aesthetic" / >
< item label = "Cosmetic surgery" / >
< label element = 'Dermatological Services' / >
< item label = "New Patient forms" / >
< item label = "quality medical products" / >
< item label = "Contact" / >
< label element = "Monthly specials" / >
< / menu >I found this link to a very similar problem: http://forum.oxylusflash.com/2-levels-accordion-menu/3197-links-not-working-no-idea-why.ht ml
Have a read over there and see if it helps solve the problem.
-
5 elements in XML. 1 does not.
Hello
IM my XML there are 5 elements. Name, author, Image, Link and time. All the items are displayed via Item Renderer, but when I click on the image, the page relavent does not open. Any suggestion?
Thank you
Here are my 3 files.
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical".
backgroundGradientColors = "[#eeeeee, #eeeeee].
Initialize = "titleService.Send ()" >
< mx:Script >
<! [CDATA]
Import mx.collections.ArrayCollection;
Import mx.rpc.events.ResultEvent;
import flash.events.Event;
import flash.events.MouseEvent;
[Bindable]
private var myData:ArrayCollection;
private void resultHandler(event:ResultEvent):void {}
myData = event.result.titles.title;
}
[]] >
< / mx:Script >
< mx:HTTPService id = "titleService".
URL = "" Data / NewTitles.Xml ""
result = "resultHandler (Event)" / >
< mx:Label text = 'New technologies' fontSize = "20" / >
< mx:TileList id = "myList" dataProvider = "{myData}.
itemRenderer = "view. MyRenderer.
width = "720" height = "600" verticalScrollPolicy = "off" / >
< mx:Label text = "{myList.selectedIndex}" / >
< mx:Label text="{myList.selectedItem.name}"/ >
< / mx:Application >
Here is the item converter
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:HBox xmlns:mx = ' http://www.adobe.com/2006/mxml '
width = "700" height = "100".
"25" paddingLeft = verticalScrollPolicy = "off" horizontalScrollPolicy = "off" >
< mx:HBox >
< mx:Image source = "assets / {data.image} ' buttonMode ="true"useHandCursor ="true"click ="{data.link}"/ >" "
< / mx:HBox >
< mx:VBox >
< mx:HBox >
< mx:Text text = "{data.name} '"
textAlign = "left" fontWeight = "bold" fontSize = "10" / >
< / mx:HBox >
< mx:HBox >
< mx:Text text = "{data.author} '"
Width = "650" condenseWhite = "true" textAlign = "left" / >
< / mx:HBox >
< / mx:VBox >
< / mx:HBox >
Here's the XML file
<? XML version = "1.0"? >
< title >
< title >
< name > the future of Windows < / name >
< author > successor Vistas may be the real winner for Microsoft. What Windows 7 has in store? Here is what we have learned so far < / author >
< link > http://www.pcmag.com/article2/0, 2817,2314409,00.asp </link & gt;
< runningtime > 9 < / runningtime >
VSTA.jpg < image > < / image >
< /title >
< title >
< name > QUARKXPRESS 7 new FEATURES < / name >
< author > Jay Nelson < / author >
< link > http://www.pcmag.com/article2/0, 2817,2314409,00.asp </link & gt;
< runningtime > 5 < / runningtime >
PCs < image > < / image >
< /title >
< title >
< name > PODCASTING WITH GARAGEBAND 3 < / name >
< author > Scott Bourne < / author >
< link > http://www.pcmag.com/article2/0, 2817,2314409,00.asp </link & gt;
< > 4.75 runningtime < / runningtime >
AMD.jpg < image > < / image >
< /title >
< title >
< name > iWEB ESSENTIAL TRAINING < / name >
< author > Garrick Chow < / author >
< link > http://www.pcmag.com/article2/0, 2817,2314409,00.asp </link & gt;
< runningtime > 3.5 < / runningtime >
charger.jpg < image > < / image >
< /title >
< title >
< name > EMAIL EFFECTIVE < / name >
< author > Jeff Van West < / author >
< link > http://www.pcmag.com/article2/0, 2817,2314409,00.asp </link & gt;
< > 6.5 runningtime < / runningtime >
gadgts.jpg < image > < / image >
< /title >
< title >
< name > MAC OS X SERVER 10.4 TIGER ESSENTIAL TRAINING < / name >
< author > Sean Collins < / author >
< link > http://www.pcmag.com/article2/0, 2817,2314409,00.asp </link & gt;
< > 9.25 runningtime < / runningtime >
GPS.jpg < image > < / image >
< /title >
< / title >
Use navigateToURL() on the click event of your image in the itemRenderer.
TS
-
[SOLVED] Property of the label of the box = MySQL column name
Hello!
I'm trying to get the value of a column in a MySQL database to link to the label of a checkbox property.
I use a Repeater to retrieve all records in the database - but what I really need, but the names of column to a table and not the lines/records.
So, is it possible to get the values of the column names in a MySQL via a PHP request directly, or I have to create a
an XML file separate that contain manually entered values?
Thanks for your help!
Kind regards
Christo
This has been resolved.
See the code below
KenwioTHE FLEX AND PHP CODE:
Maybe you are looking for
-
I try to open firefox, and briefly, it shows the home page then turns off. the tab flashes just to connect tab for new tab above and more. It takes forever to not even down to the bottom of the help, tools, etc. I 16.0.1 it was working fine 2 days ag
-
To the Satellite A200-23d HARD drive recovery
Here is someone who knows if the Satellite A200-23d has a HARD drive recovery integrated?
-
Number of the homescreen on ICS
Hello After the update to ICS I am facing a problem regularly. When I spend more than a few minutes in an application, and then return to the screen of welcome, all widgets and shortcuts have disappeared. They appear in a few seconds. Also applicatio
-
VAIO Update for Windows 8.1
Hi Sony supports, Quick question... When you come out Vaio Update that can be installed directly in Windows 8.1 instead of through the Windows 8 first, then upgrade to 8.1 Windows the path is published on your support site? If I have an own Windos 8.
-
I'm set up XP for automatic updates, but I also received several updates that are not install
no error code says just failed