Skip to main content
Known Participant
July 21, 2009
Question

Swf Comunication

  • July 21, 2009
  • 2 replies
  • 1907 views

Could anybody suggest that how to work on the properties of swf made on action script 1.0 & 2.0 in actionScript 3.0 ?

I have series of swfs in flash old versions action script 1.0 & 2.0, and i want those to run on the action script 3.0. Those are loaded on the flash as3 and playing fine but i cann't access the time line property of those because those are avm1movie objects and as3 is avm2movie. So is there any way to access timeline properties of avm1movie in avm2movie like current frame annd toltal frames like wise.

Thanks in advance..

Chandrakantab

This topic has been closed for replies.

2 replies

Known Participant
July 24, 2009

To solve communication between two swfs in different versions, there are several ways, but the specs should be cleared first.

Craig Grummitt
Inspiring
July 26, 2009

what 'specs' are you talking about?

Known Participant
July 27, 2009

specs like the swfs ' versions ', their ' domain '. these are...

Craig Grummitt
Inspiring
July 22, 2009

All three versions of ActionScript have access to the LocalConnection object and can use this for communication between them by listening for and sending messages.

If you have a series of AS1 & 2 movies, probably the easiest thing would be to set up one AS2 communicator movie which sends and listens for instructions from the AS3 controller. the AS2 movie would load the appropriate AS1/2 movie as instructed by the AS3 controller. It can be a little complicated to set up but it is possible.

The alternative would be to convert all your AS1&2 movies to AS3. Only you could judge how much work that would be, in converting any actionScript inside these files, but I am aware of a batch process that will update the player version to AS3 and compile all fla's in a folder.

Known Participant
July 22, 2009

Thanks a lot Craig

Might be you are suggesting to create a middle layer file ( swf ), that will be the listener for all the AS2 and AS3 files and by LocalConnection establich the communication between them. OK. But I mean to ask is, I don't have AS2 ( AVM1Movie) files those I need to load and access in my AS3 file at my side. Those files are coming in a link from some other party, so I don't have access to those. But I need to control those files in my applicationion. So I can't create any function in that AS2 swf. So is there any way to access the timeline property of AS2 swf in my AS3 application ?ion

Again is there any way, to convert those AS2 swf to AS3, after loading in my AS3 application ?

Thanks

Chandrakanta

Craig Grummitt
Inspiring
July 22, 2009

If you don't have the original FLA files, then you won't be able to convert them to AS3.

Obviously also you won't be able to add any functionality in them to listen to the LocalConnection object for instructions. However, you won't need to, if you follow my previous advice and use an AS2 communicator movie which sends and listens for instructions from the AS3 controller. This AS2 movie would have access to the timelines of AVM1Movies, and would be able to listen for instructions from the AS3 controller movie.