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
Paul, I'm having the same problem. Did you find a solution? Thanks, David Woosley
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
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);
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!
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!
Hi, Is june 10, Does anyone get an answer on this issue? Please help. Tks in advance.
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
Don't see what you're looking for? Try a search.
|