Without understanding your situation in detail, given the scenario you suggest I would approach it by validating the login in the MIAW, and calling a handler in the stage movie to populate data and close the MIAW.
-- MIAW on closeWindow -- validate login, and if valid call a #movie handler in the stage window("stage").movie.mPopulateData() end -- stage on mPopulateData -- grab whatever from your DB and place it in text fields -- or however you wish to present it -- also, you can now (asynchronously) forget your MIAW t = timeout().new("forget MIAW", -1, #mForgetWindow) end on mForgetWindow pad, timer if ilk(timer, #timeout) then timer.forget() window("MIAW").forget() end
Ah didn't know you could call a handler of another movie like that. Neato.
Unfortunately what's to get filled is a bunch of flash components so even tho I run a function to scale them before I open the LogIn MIAW he gives me the following error message as soon as I close the MIAW (Skriptfehler = script error):
If there are any questions or details you need to find a solution I'll be happy to deliver.
The weird thing is that the code right before it seems to work. Well actually they all worked before I tried to do the MIAW thing.
sprite("lblTag1").locH = klocH + 25
sprite("lblTag1").locV = klocV - 13
sprite("lblTag2").locH = sprite("txtTag1W1").locH + kWidth + 23
sprite("lblTag2").locV = klocV - 13
And so if you open the debugger, what is the VOID value that Director expects to find is an object?
I fear I don't understand your question.
One of the buttons presented on the dialog screen shot you posted says "Debuggen..." If you click that button it will show you the debugger window with a whole lot of useful information about the current situation. Mainly the call stack and the state of all the local and global variables. Open the debugger and take another screen shot and post it back if you struggle to understand what you see there.
When Director goes to execute the line of code posted in the error dialog it encounters a VOID value whereas it expects to find some sort of object. If you can use the debugger to understand which value is VOID you can hopefully progress your understanding of how to fix the error