[Flashcoders] Degrade AS2 code to AS1 - how to?

2005-12-02 Thread Gregory Nikolaev
Hello Flashcoders,

  I have a client who wants to make significant improvements to their
  flash site (quite big).
  However, as site currently uses Flash 6 (or even 5) style
  programming, even (!) with NO external files, they insist that all
  should be done in the same manner.
  Mean no classes, no ext. files. Hope I'll be able  to avoid
  distributing code to clips ... :-(

  All you know how non-convenient this approache seems now, after 2
  years of class-based OOP in AS2.
  So, as there's a lot of coding, I'd like to use AS2 where possible
  during development.

  Question:
  Is there a way to automatically (or semi-automatically) convert AS2
  code (with or w/o external classes) to AS1-styled code w/o ext.
  files?

  Any ideas appreciated.
  

-- 
Best regards,
 Gregory

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Degrade AS2 code to AS1 - how to?

2005-12-02 Thread Pete Hotchkiss
Why would using external files make any difference to the performance.
The As is added to the swf at compile time so the client would never
need know ?

Other way to address this is to provide two costs. One for the way you
wish to do it, and one for his way which should be 2-3 times more
expensive. That way he/she has no choice.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
Nikolaev
Sent: 02 December 2005 11:45
To: Flashcoders mailing list
Subject: [Flashcoders] Degrade AS2 code to AS1 - how to?


Hello Flashcoders,

  I have a client who wants to make significant improvements to their
  flash site (quite big).
  However, as site currently uses Flash 6 (or even 5) style
  programming, even (!) with NO external files, they insist that all
  should be done in the same manner.
  Mean no classes, no ext. files. Hope I'll be able  to avoid
  distributing code to clips ... :-(

  All you know how non-convenient this approache seems now, after 2
  years of class-based OOP in AS2.
  So, as there's a lot of coding, I'd like to use AS2 where possible
  during development.

  Question:
  Is there a way to automatically (or semi-automatically) convert AS2
  code (with or w/o external classes) to AS1-styled code w/o ext.
  files?

  Any ideas appreciated.
  

-- 
Best regards,
 Gregory

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Degrade AS2 code to AS1 - how to?

2005-12-02 Thread erixtekila


Le 2 déc. 05, à 12:45, Gregory Nikolaev a écrit :


Hello Flashcoders,

  Question:
  Is there a way to automatically (or semi-automatically) convert AS2
  code (with or w/o external classes) to AS1-styled code w/o ext.
  files?


Yes there are.

But 1st, FYI, AS2 is compiled in AS1.
So why not decompile your stuff after having done it ?

Beware of special flash7 opcode though like :
extends, throw…

Some tools are free and opensource.
Some not.
If you are in a hurry, I'd recommend KineticFusion :
http://www.kinesissoftware.com/index.php

This tool is able to extract swf opcode to xml representation (rvml)
As this tool is alive from the early days of flash MX, it still 
available to output actionscript in version 1.


Go and get the trial version, you'll be amazed.


HTH

---
erixtekila
http://blog.v-i-a.net/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Degrade AS2 code to AS1 - how to?

2005-12-02 Thread Gregory Nikolaev
 == Pete Hotchkiss wrote:
 
 Why would using external files make any difference to the performance.
 The As is added to the swf at compile time so the client would never
 need know ?
 
 Other way to address this is to provide two costs. One for the way you
 wish to do it, and one for his way which should be 2-3 times more
 expensive. That way he/she has no choice.

The matter is he is accessing FLA source and probably even trying to
do something himself.
As for 2 costs, I'm afraid it's not a solution in this case.

But I spent an hour telling him about obsolete code and how it
affects performance/security etc. So, he's thinking now.


 == erixtekila wrote: 
 
 But 1st, FYI, AS2 is compiled in AS1.
 So why not decompile your stuff after having done it ?
 
 Beware of special flash7 opcode though like :
 extends, throw┘
 
 Some tools are free and opensource.
 Some not.
 If you are in a hurry, I'd recommend KineticFusion :
 http://www.kinesissoftware.com/index.php
 
 This tool is able to extract swf opcode to xml representation (rvml)
 As this tool is alive from the early days of flash MX, it still 
 available to output actionscript in version 1.
 
 Go and get the trial version, you'll be amazed.

I'll try it tomorrow. I had a similar idea and tried Flare (
http://nowrap.de) .   It outputs where instead of for loops and...

But I hope I'll manage to change his mind ;-)

Thanks a lot to all.


-- 
Best regards,
 Gregory

http://GOusable.com
Flash components development.
Usability services.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders