In a simple case you can access parent iframe global variables/functions like:
parent.window["myGlobalVar"] += 1;
postMessage. There are examples on the forums; the code for this method isn’t simple. The Hype GlobalBehavior extension makes use of it, so may be the best option still!