.
component categoriescomponent categories
overview
features
help & support
downloads
buy now

Awaiting 3 votes.
Report this file Ask author
Posted by : zerofractal 10 purchases
Package includes: MXP
Opens with: Flash CS3
AS Version: ActionScript 3.0
Viewable with: Flash Player 9 and above
Flash knowledge required: N/A
Documentation: N/A


spotlightXML Live Example



Purchase a bundle of Tree3D, Spotlight XML and Spotlight Dataprovider and save $20! Click here

spotlightXML is a Flash component for ActionScript 3 that allows you to easily filter any data component based on attribute based XML objects for example Zerofractal tree3D or Yahoo! Astra Tree.

This is an ideal companion for our Tree3D component available here

Our component acts as a Middleware between your data an the component you intend to bind it to:



Usage
Implementing spotlightXML is done by simply adding the following code (taking a tree3D as an example):
spotlight.sourceXML = myXML;
function onChange(e:Event){
tree3D.loadXMLData(spotlight.destinationXML);
}
spotlight.addEventListener(spotlightEvent.SPOTLIGHT_CHANGE, onChange, false, 0, true);


Other components by Zerofractal

Tree3D



Tagstags
Please « login » to add tags.

mindspike mindspike
 
Has bought the file

Alejandro,


Thank you very much for your help and advice.


The spotlight component works perfectly.


As you pointed out, it was the Yahoo Astra Tree and now everything is functioning great.

zerofractal zerofractal Component author
 

Hi, as I wrote you via email, the text cutting of has nothing to do with the spotlight component but rather with Astra?s tree. To point it out I sent you a vainilla fla file without the component and it still is cut off.


I?ll kindly go through the web to see how others go around this issue in yahoo?s tree and write back at a later time.


All the best,


Alejandro.

mindspike mindspike
 
Has bought the file

Hi,


I’m using Spotlight XML with the Astra tree and the tree’s text width is very limited showing only a small amount of characters before cutting off the rest of the text.


The tree’s text is not cut off just using the yahoo astra tree by itself without the spotlight attached.


The code below works but only after you rollover each item, the text then being revealed.


Is there any way to to have a function extend the width of all the text at start?


myTree.addEventListener(ListEvent.ITEM_ROLL_OVER, rollOverItem);


function rollOverItem (evt:ListEvent) {
// Get the cell renderer for the item we just rolled over
var cr:TreeCellRenderer = myTree.itemToCellRenderer(evt.item) as TreeCellRenderer;
cr.textField.width = 300;
}

acy acy
 
Has bought the file

Hi Alejandro.
Thanks my tree and spotlight function.
One more thing.
I’m trying to connect myTree with the soundPlayer (the yahoo or other), but not function. do u have any help?.


thansk a lot.


acy

zerofractal zerofractal Component author
 

Please send me your email and I’ll send you a working example. But its failsy simple, just add the following code wonce your loader has loaded the xml:

	spotlight.sourceXML = new XML(e.target.data);

acy acy
 
Has bought the file

Hi Alejandro, thanks.
The problem was that i bought the other spotlight(dataprovider), now i download the correct(xml).
The example is clear (astra tree) and function. but in my specific case I want to load an external xml. The xml loads correctly, but when pass trough the spotlight don’t function when publish the tree is in blank.
please any sight thanks a lot.
acy

zerofractal zerofractal Component author
 

Acy, Please look in the examples zip. You should find an example called Using with Astra Tree.fla This example uses Yahoo’s tree.
Best,
Alejandro.

acy acy
 
Has bought the file

Hi,
Im trying to connect the spotlight to a yahoo tree. I cant. how I do this?
help please.

Dose this component support Chinese(Traditional) ?


 
featured componentsfeatured components