Groups | Blog | Home
all groups > flash (macromedia) > march 2005 >

flash (macromedia) : problem to load var from_level0 to _level1



ritpas
3/27/2005 9:06:04 PM
Hi, I have 2 movies movie1.swf and movie2.swf. movie1.swf contains an array
called 'commune' with 10 items. Movie2.swf is loaded into moie1.swf.
movie2.swf contains a listbox called 'liste' and the following code :
liste.setDataProvider(_level0.commune); trace(_level0.commune); What I want :
I want the listbox 'liste' to display the items contained in the array
'commune'. The problem I encounter : - the trace action displays the items of
my array properly whereas the listbox doesn't, though there is a scrollbar and
there seems to be 10 blank linefeeds. There is no green highlight when rolling
over an item. Can anybody help me ? Thanks very much in advance
urami_
3/28/2005 7:19:26 AM


[quoted text, click to view]

you will need to build preloader for your second movie.
when flash loads it build component dynamically based on given data,
you most
probably have not yet loaded your variable while the component needs it
and therefor it get build w/o out. Try to load the variable and once variable
are loaded, load the movie.


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
ritpas
3/30/2005 2:31:57 PM
Thanks Urami, I 've got it.
ritpas
3/30/2005 2:32:03 PM
Thanks Urami, I 've got it.
AddThis Social Bookmark Button