Solved

populating smart menu clip with processed xml data

Posted on 2002-05-28
5
175 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get text from a text entry 13 276
Flash movie or gif/animation? 3 867
Youtube video error 30 741
Adobe Flash Player won't install on Windows 7 3 225
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now