Solved

populating smart menu clip with processed xml data

Posted on 2002-05-28
5
185 Views
Last Modified: 2010-04-03
Hi

I have a flash movie with a smart menu clip. At a point, I get xml information from server, then call a function by using "someXML.onLoad = functionName;". In the function, I did a lot of things and call "tell target" to output the processed data in the display area. It worked well on this.

My question is, I also want to extract some data from that piece of xml and use it to populate a smart menu clip. I've tried to save the data in a variable "options" and use also "tellTarget(_root.clipname){ this.items = options.split(",");}" but it did nothing for me. For smart clip, I know it can be populated by loadVariables to load external source, however, my source has been processed internally.

Is there anybody who can help?
0
Comment
Question by:francesluk
5 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 7040484
Try changing the 'tellTarget to 'with'
telltarget is only targeting the path to (_root.clipname)
'with' will target the movie as an object.

Z
0
 
LVL 6

Expert Comment

by:rootdir
ID: 7040615
I need to see your fla file upload somewhere
0
 
LVL 6

Expert Comment

by:rootdir
ID: 7040636
Use XML.addListner you will get what you are looking for

see this example XML:FLEM i_a from bellow url

http://flashexperiments.insh-allah.net/AS-downloads.html

Cheers
RootDir
0
 
LVL 5

Accepted Solution

by:
stef4s earned 100 total points
ID: 7041976
Yeah zeffer has a good point. telltarget is old Flash 4 syntax.
Instead of using telltarget(_root.mc){
gotoAndPlay(2)
}

use _root.mc.gotoAndPlay(2)
0
 

Author Comment

by:francesluk
ID: 7042960
Excellent answer! Thanks!
I've tried to use "with" but it didn't help.
_root.movieClip.XX can work fine.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question