Groups | Blog | Home
all groups > flash (macromedia) > november 2003 >

flash (macromedia) : Window component contents



POC
11/10/2003 10:00:28 PM
Hello,

Can someone provide the syntax that allows us to access the elements contained in a pop-up window?

I'm using the PopUpManager.createPopUp method to create the window, and it properly displays the contents from the movie clip identified in the contentPath - except I can't set the values of the dynamic text fields.

I've tried this syntax -

myWindowInstance.content.textfield.text = "value";

But it doesn't work...

Thanks,
Paul





davidwoos
2/7/2004 5:31:43 AM
Paul,

I'm having the same problem. Did you find a solution?

Thanks,

David Woosley
thesalt
3/21/2004 3:26:41 PM
Hi,

I can't believe that nobody can give an answer to that... I spent hours to
access a simple text field in the pop up window but couldn't set it... I had
the same idea as Paul had and tried exactly the same. Unfortunately without any
success...

Please help!

Thanks
Daniel
MatteoSanchez
3/25/2004 9:20:10 PM
You refer to it as "myInstance.content.text_txt.text"...


http://livedocs.macromedia.com/flash/mx2004/main/wwhelp/wwhimpl/common/html/wwhe
lp.htm?context=Flash_MX_2004_Documentation&file=04_co947.htm#2188298
mocaloca
5/18/2004 3:19:58 PM
I have the exact same problem and have searched the forums and read teh
documentation several times. I have no luck. I was able to set the value of a
variable within my win comp. but I cannot access my button component or any
other component inside that popup.

lo = new Object();
lo.handleEvent = function(evtObj){
// check if content is loaded
if(evtObj.type == "complete"){
// this works
_root.myTW.setSize(myTW.content._width, myTW.content._height + 25);
// this works too
myTW.content.status = "test";
// noooo this does NOT work
_root.myTW.content.loginBtn.label = "test2";
}
}
myTW.addEventListener("complete", lo);

N[e]RD
6/3/2004 3:52:02 AM
I don't mean to complain cause these guys do some amazing work at
macromedia...but there should be a simple fix to this...and I have noticed
there are people asking this question on Ultrashock, Kirupa, AS.org all the big
ones and no one has an answer...please fix this bug!
N[e]RD
6/3/2004 3:52:02 AM
I don't mean to complain cause these guys do some amazing work at
macromedia...but there should be a simple fix to this...and I have noticed
there are people asking this question on Ultrashock, Kirupa, AS.org all the big
ones and no one has an answer...please fix this bug!
jfb00
6/10/2004 4:57:03 PM
Hi,
Is june 10, Does anyone get an answer on this issue?
Please help.
Tks in advance.
www_amirrocker_de
10/11/2004 8:16:12 AM
Hi guys,

the ' WindowComponent.content' variable as well as ' WindowComponent._child0
' is supposed to return a MovieClip
which actually should be the content Clip , however, if you look through the
"Window.as" class, you will find that both variables are defined but NOT
initialized, at least not in "Window", nor in "ScrollView", nor in "View".
No matter what you try you will always get "undefined".

I have been sitting on this the whole weekend, boy does that suck....
I definitely agree with the folks at macromedia doing a superb job, but this
one must have been forgotten or something.

So, what i tried is extending Window.as and overriding get / set content --->
what i get is
a movie that recurses more than 256 times and shuts down...whats going on ?
Once you remove get/set content ( by the way -- get / set as implicit getter /
setters )
the movie works again, but the var stays undefined.

I am trying to build my own window component, so if someone needs help or
wants to get involved please mail me
to: info@amirrocker.de
I am currently extending UIComponent, but maybe it ought to be better to
extends ScrollView ? Is there a View Interface I dont know about??? This window
component raises more questions and problems than recreating a Window
MovieClip, but it would be nice to be able to provide all developers with a
working windowe component.

I will be bookmarking this page and
broadcastMessage(WindowComponent.ready.for.download@someDomain.com ;)
once the Component is done....

if anybody wants to help, it'd be greatly appreciated

FPrototyper

AddThis Social Bookmark Button