PDA

View Full Version : loading as2 and as3 apps in player 9 interface


adi235eee
09-24-2009, 08:39 AM
the interface developed in as2. loads as2 and as3 apps. the apps when loaded run independent of the interface both work respectively. but the interface starts to malfunction in the sense its not able to call the _root. based functions.

im unable to understand the change of global control here . can some one help me out.:o

when i do trace(this); from within the loaded swf's i do get the respective
_root for as2 swf loaded
root1 for as3 swf loaded.
Can any one let me know the change of global control taking place here and how to control the root in the interface.

asf8
09-24-2009, 08:03 PM
Curious, are you saying you have...

AS2 (main SWF)
-- loads AS2 sub SWF
-- also loads AS3 sub SWF

?

adi235eee
09-25-2009, 05:27 AM
Curious, are you saying you have...

AS2 (main SWF)
-- loads AS2 sub SWF
-- also loads AS3 sub SWF

?
try it...
loadMovieNum("as3.swf", 0) ;)

yes..... the main as2 swf is deployed in flash player 9. it supports both avm1 and avm2. ... :)
now the loaded swf's work independently well
but the interface loading it doesnt seem to work. which i what i dont get :o.
coz if both as2 and as3 work independently the code works well ensuring proper transition between avm1 and avm2 :eek:.