Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Play multiple scenes

Status
Not open for further replies.

NYFlasher

MIS
Jul 1, 2009
3
US
How do you play multiple scenes at the same time with one scene superimposed on top of another?
Reason being:
I have a camera zooming in on one scene and wanting to maintain an animated text scale in another scene...any thoughts?
I also tried exporting the scene as a movie and then edit it but the action script in the flash version is incompatible as a movie file?....
NYFlasher....
 
Hi thanks for the response.
I tried that but my camera function stops working when I import the SWF into a new stage. Do you think it's the script problem or the version of flash I'm working with? It's Macromedia Flash Pro 8.
My camera scripting are as follow:

function camControl()
{
parentColor.setTransform(camColor.getTransform());
var _l4 = sX / this._width;
var _l3 = sY / this._height;
_parent._x = cX - this._x * _l4;
_parent._y = cY - this._y * _l3;
_parent._xscale = 100 * _l4;
_parent._yscale = 100 * _l3;
} // End of the function
function resetStage()
{
var _l2 = {ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0, aa: 100, ab: 0};
parentColor.setTransform(_l2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
} // End of the function
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;


Thanks
NYFlasher
 
I just import the swf file into a new flash document.
Do I have to load the script as well?
How do you do that?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top