I am working on from action script 3.0 to javascript -converter.
I tried to find out how to circumvent this problem with the definition of definitions, because it does not matter in AS, which package has been defined previously A A to A of A of A Hr /> javascript (example output)
function. Prototype AIRHART = function (base) {var empty = function.protitip.heart.meta; Empty.prototype = base.prototype; This.prototype = new blank (); } Function.prototype.hyrat.mp = function () {}; // command does not matter (function (undefined) {function ba () {} ba. Hirat (a); ba. Protototype.f1 = function (return) {return "success";} function a () {} a Prototype.f = 1 function () {return "unsuccessful";} aprototype.f2 = function () {return "success"} var ba = new ba; console.log ("test1:% s;% s", b .f1 (), BAF2 (); Console.Esert (BA Instance BA); Console.Esert (BA InstanceA);});
Javascript (example output)
// command plays a decisive role (function (undefined) {function CBA () {} CBA.inherit (BA); CBA. Prototype.Constructor = CBA; CBA.protipip.f3 = Function () {Return "Success";) BA (H) (A); BA Prototype. Constructor = BA, BA .prototype.f1 = Function () {return "success";} function A () {} aprottipip.f1 = function (return) {return "unsuccessful";} aprototype.f2 = The function () {return "success";} var cBA = new CBA; // This will not work. The compiler claims that cBA.f1 is a function console.log ("test2:% s;% s,% s", CBA.f1 (), CBA.f2 (), cBA.f3 ());}) ();
How can I stop this problem? Note that I am not using any library that provides inheritance.
This will also be a big help, if someone says that ActionScript 3.0 supports access to cross-related import / packages such as:
APCG1 (Class A {} Class B Extension my.pkg2.C {} package my.pkg2 {class C {} class D my.pkg1 extends. A {}}
thanks.
Uly
Comments
Post a Comment