get specific object from specific scene

Before 2.62, i was using 2.5 (i think, though it might have been 2.4), and i had a dialogue system program that worked for it, however, with the new blender, the system no longer works at all, so i decided to go back and start from scratch. Unfortunately, i hit a snag almost right away:


import bge

for n in bge.logic.getSceneList():
        getScene = {}
        getScene[n.name] = n

#sets up the dialogue boxs.
scene_dialogue = getScene['Dialogue'].objects
dialogue1 = scene_dialogue['Text001']

dialogue1.Text = "1343" # this was just to make sure it was getting the object and changing the text in it

I don’t know what is wrong with it, but it’s either not getting the scene, or not getting the object, and now i’m a little confused, because i’ve been told that it should work…

Edit: Never mind, i figured out what was wrong.