You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by lizhi <sl...@qq.com> on 2016/09/13 03:09:02 UTC

flexjs ,pack full folder in a js.

i gen js file
http://codepen.io/matrix3d/pen/mAZmVy
it is work,but miss some file,sound.as etc.
i do not know all of the missing file.
and how pack all as file in a floder.pack in the js file?
thanks



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
can you give the closure cmd used by mxmlc?



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55132.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
thanks a lot.
but i get this error.
D:\proj\git\spriteflexjs\test>java -jar
d:/sdk/flexjs\js\lib\google\closure-comp
iler\compiler.jar --js bin\js-swc --js
d:/sdk/flexjs\frameworks\js\FlexJS\genera
ted-sources
ERROR - Circular dependency detected: org.apache.flex.html.Slider ->
org.apache.
flex.html.beads.controllers.SliderMouseController ->
org.apache.flex.html.Slider


1 error(s), 0 warning(s)

is it not work with compc of the -remove-circulars?
it is work with mxmlc



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55136.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
thanks.
can you look at the 2 code?

1 . create by mxmlc
http://codepen.io/matrix3d/pen/jrARaX
http://s.codepen.io/matrix3d/debug/jrARaX

2. create by compc
http://codepen.io/matrix3d/pen/XjKQVW
http://s.codepen.io/matrix3d/debug/XjKQVW

and the mxmlc version have this code.why compc not have
'use strict';
var $$S_ = '', $$S_$9 = '\t', $$S_$a = '\n', $$S_$a$2f$2f$23$20sourceURL$3d
= '\n//# sourceURL\x3d', $$S_$a$3breturn$20_exports$7d$29$3b$a_d8616c1a =
'\n;return exports});\n//# sourceURL\x3d', $$S_$20 = ' ',
$$S_$20onreadystatechange$3d_fa389f22 = "
onreadystatechange\x3d'goog.onScriptLoad_(this, ",
$$S_$20out$20of$20_bounds$20$5b_0$2c$20$2e_3c443509 = ' out of bounds [0,
..., 3]', $$S_$20requires$20transpilat_9f215c27 = ' requires transpilation
but no transpiler was found.', $$S_$22 = '"', $$S_$22$2c$20 = '", ',
$$S_$22$3e$3c$2fscript$3e =
	'"\x3e\x3c/script\x3e',
$$S_$28$28$29$3d$3e$7b$22use$20strict$22$3b_c_a0ce3419 = '(()\x3d\x3e{"use
strict";class X{constructor(){if(new.target!\x3dString)throw
1;this.x\x3d42}}let q\x3dReflect.construct(X,[],String);if(q.x!\x3d42||!(q
instanceof String))throw 1;for(const a
of[2,3]){if(a\x3d\x3d2)continue;function f(z\x3d{a}){let a\x3d0;return
z.a}{function f(){return 0;}}return f()\x3d\x3d3}})()',
$$S_$28$28$29$3d$3e$7b$22use$20strict$22$3bl_e7222c4b = '(()\x3d\x3e{"use
strict";let a\x3d{};const X\x3dclass{constructor(){}x(z){return new
Map([...arguments]).get(z[0])\x3d\x3d3}};return new X().x([a,3])})()',
$$S_$28_a$3d = '(a\x3d', $$S_$28redMultiplier$3d = '(redMultiplier\x3d',
$$S_$28x$3d = '(x\x3d', $$S_$29 = ')', $$S_$29$27$20 = ")' ", $$S_$29$3b =
');', $$S_$2c = ',', $$S_$2c$20 = ', ', $$S_$2c$20_alphaMultiplier$3d = ',
alphaMultiplier\x3d', $$S_$2c$20_alphaOffset$3d = ', alphaOffset\x3d',
$$S_$2c$20_b$3d = ', b\x3d', $$S_$2c$20_blueMultiplier$3d = ',
blueMultiplier\x3d', $$S_$2c$20_blueOffset$3d = ', blueOffset\x3d',
$$S_$2c$20_c$3d = ', c\x3d', $$S_$2c$20_d$3d = ', d\x3d',
$$S_$2c$20greenMultiplier$3d = ', greenMultiplier\x3d',
$$S_$2c$20greenOffset$3d =
	', greenOffset\x3d', $$S_$2c$20h$3d = ', h\x3d', $$S_$2c$20redOffset$3d =
', redOffset\x3d', $$S_$2c$20tx$3d = ', tx\x3d', $$S_$2c$20ty$3d = ',
ty\x3d', $$S_$2c$20w$3d = ', w\x3d', $$S_$2c$20y$3d = ', y\x3d', $$S_$2d =
'-', $$S_$2e = '.', $$S_$2e$2e = '..', $$S_$2f = '/', $$S_2d = '2d',
$$S_$3c$2fscript$3e = '\x3c/script\x3e',
$$S_$3cscript$20type$3d$22text$2fj_8baade59 = '\x3cscript
type\x3d"text/javascript" src\x3d"',
$$S_$3cscript$20type$3d$22text$2fj_7a250e04 = '\x3cscript
type\x3d"text/javascript"\x3e', $$S_$3e$3c$2fscript$3e =
'\x3e\x3c/script\x3e',
$$S_$3f = '?', $$S_BY$5fWHOLE = 'BY_WHOLE', $$S_Error$2c$20Column$20 =
'Error, Column ', $$S_Event = 'Event', $$S_JavaScript = 'JavaScript',
$$S_KeyboardEvent = 'KeyboardEvent', $$S_MouseEvent = 'MouseEvent',
$$S_SCRIPT = 'SCRIPT', $$S_SpriteFlexjs = 'SpriteFlexjs',
$$S_SpriteFlexjsMain = 'SpriteFlexjsMain', $$S_TEXTURE = 'TEXTURE',
$$S_TouchEvent = 'TouchEvent', $$S_Type$20Coercion$20_failed = 'Type
Coercion failed', $$S_Vector3D$28 = 'Vector3D(',
$$S_$5b_1$2c$5d$2elength$21$3d_1 = '[1,].length!\x3d1',
$$S_$5bobject$20Array$5d = '[object Array]',
$$S_$5bobject$20Function$5d = '[object Function]', $$S_$5bobject$20Window$5d
= '[object Window]', $$S_$5f$5f_dispatchmouseevent = '__dispatchmouseevent',
$$S_$5f$5f_enterFrame = '__enterFrame', $$S_$5f$5fmouseevent =
'__mouseevent', $$S_$5f$5fupdate = '__update', $$S_$5f_currentTarget =
'_currentTarget', $$S_$5f_doubleClickEnabled = '_doubleClickEnabled',
$$S_$5finterpolationMethod = '_interpolationMethod', $$S_$5fmouseChildren =
'_mouseChildren', $$S_absolute = 'absolute', $$S_altKey = 'altKey',
$$S_always = 'always', $$S_array = 'array',
$$S_attribute$20vec2$20va0$3b_a_a2d1ef5f = 'attribute vec2 va0;attribute
vec4 va1;attribute vec2 va2;varying vec4 vColor;varying vec2 vUV;uniform
mat4 vc0;uniform mat4 vc4;void main(void)
{vColor\x3dva1;vUV\x3d(vc4*vec4(va2,0.0,1.0)).xy;gl_Position
\x3dvc0*vec4(va0, 0.0,1.0);}', $$S_attribute$20vec2$20va0$3b_a_daeb94f0 =
'attribute vec2 va0;attribute vec4 va1;varying vec4 vColor;uniform mat4
vc0;void main(void) {vColor\x3dva1;gl_Position \x3dvc0*vec4(va0,
0.0,1.0);}', $$S_base$2ejs = 'base.js', $$S_bat$20new$20index =
	'bat new index', $$S_bat$20new$20pos = 'bat new pos', $$S_boolean =
'boolean', $$S_bubbles = 'bubbles', $$S_buttonDown = 'buttonDown', $$S_call
= 'call', $$S_cancelable = 'cancelable', $$S_canvas = 'canvas',
$$S_canvas$5fkeyevent = 'canvas_keyevent', $$S_canvas$5fmouseevent =
'canvas_mouseevent', $$S_canvas$5ftouchevent = 'canvas_touchevent',
$$S_charCode = 'charCode', $$S_clear = 'clear', $$S_click = 'click',
$$S_clone = 'clone', $$S_complete = 'complete', $$S_contextmenu =
'contextmenu', $$S_copyColumnFrom = 'copyColumnFrom', $$S_copyFrom =
'copyFrom',
$$S_createPath = 'createPath', $$S_ctrlKey = 'ctrlKey', $$S_cubicCurveTo =
'cubicCurveTo', $$S_dblclick = 'dblclick', $$S_delta = 'delta', $$S_dispose
= 'dispose', $$S_draw = 'draw', $$S_drawTriangles = 'drawTriangles',
$$S_es6$2dimpl = 'es6-impl', $$S_evenOdd = 'evenOdd', $$S_eventPhase =
'eventPhase', $$S_experimental$2dwebgl = 'experimental-webgl', $$S_fc =
'fc', $$S_flash$2e$5f$5fnative$2eBaseR_89cdacc3 =
'flash.__native.BaseRenderer', $$S_flash$2e$5f$5fnative$2eBitma_944b420b =
'flash.__native.BitmapTexture', $$S_flash$2e$5f$5fnative$2eGLCan_7f6a8d2f =
	'flash.__native.GLCanvasPattern', $$S_flash$2e$5f$5fnative$2eGLCan_218048c3
= 'flash.__native.GLCanvasRenderingContext2D',
$$S_flash$2e$5f$5fnative$2eGLDra_cde55487 = 'flash.__native.GLDrawable',
$$S_flash$2e$5f$5fnative$2eGLGra_66c0b564 = 'flash.__native.GLGraphicsPath',
$$S_flash$2e$5f$5fnative$2eGLInd_944be3ee =
'flash.__native.GLIndexBufferSet', $$S_flash$2e$5f$5fnative$2eGLPat_63ba747a
= 'flash.__native.GLPath2D', $$S_flash$2e$5f$5fnative$2eGLVer_83f32a24 =
'flash.__native.GLVertexBufferSet',
$$S_flash$2e$5f$5fnative$2eIRend_18cbca1c =
	'flash.__native.IRenderer', $$S_flash$2e$5f$5fnative$2eMemAr_2c5e1476 =
'flash.__native.MemArray', $$S_flash$2e$5f$5fnative$2eWebGL_44c18485 =
'flash.__native.WebGLRenderer', $$S_flash$2e_display$2eBitmap_62bdfe98 =
'flash.display.BitmapData', $$S_flash$2e_display$2eDispla_b269e4a3 =
'flash.display.DisplayObject', $$S_flash$2e_display$2eDispla_d6cc4042 =
'flash.display.DisplayObjectContainer',
$$S_flash$2e_display$2eGradie_92c0408a = 'flash.display.GradientType',
$$S_flash$2e_display$2eGraphi_97fb9897 = 'flash.display.Graphics',
$$S_flash$2e_display$2eGraphi_df65cbe5 = 'flash.display.GraphicsBitmapFill',
$$S_flash$2e_display$2eGraphi_650fa05c = 'flash.display.GraphicsEndFill',
$$S_flash$2e_display$2eGraphi_c7b2e1be =
'flash.display.GraphicsGradientFill', $$S_flash$2e_display$2eGraphi_e1d22af5
= 'flash.display.GraphicsPath', $$S_flash$2e_display$2eGraphi_4cf0ea02 =
'flash.display.GraphicsPathCommand', $$S_flash$2e_display$2eGraphi_ebfc4479
= 'flash.display.GraphicsSolidFill', $$S_flash$2e_display$2eGraphi_46c82bbd
= 'flash.display.GraphicsStroke',
$$S_flash$2e_display$2eGraphi_9671d9bb =
'flash.display.GraphicsTrianglePath', $$S_flash$2e_display$2eIntera_706dd468
= 'flash.display.InteractiveObject', $$S_flash$2e_display$2eLoader_29861e7f
= 'flash.display.LoaderInfo', $$S_flash$2e_display$2eSprite =
'flash.display.Sprite', $$S_flash$2e_display$2eStage =
'flash.display.Stage', $$S_flash$2e_display$2eStage3_43abc85e =
'flash.display.Stage3D', $$S_flash$2e_display3D$2eCont_67f04fea =
'flash.display3D.Context3D', $$S_flash$2e_display3D$2eCont_3fb16e0b =
'flash.display3D.Context3DBlendFactor',
$$S_flash$2e_display3D$2eCont_cf0b8f85 =
'flash.display3D.Context3DCompareMode',
$$S_flash$2e_display3D$2eCont_8ad79a86 =
'flash.display3D.Context3DProgramType',
$$S_flash$2e_display3D$2eCont_4427fadd =
'flash.display3D.Context3DTextureFormat',
$$S_flash$2e_display3D$2eCont_6aa66c9c =
'flash.display3D.Context3DTriangleFace',
$$S_flash$2e_display3D$2eCont_f7adc811 =
'flash.display3D.Context3DVertexBufferFormat',
$$S_flash$2e_display3D$2eInde_79f36651 = 'flash.display3D.IndexBuffer3D',
$$S_flash$2e_display3D$2eProg_da10a55d =
	'flash.display3D.Program3D', $$S_flash$2e_display3D$2eVert_cf2d1d3d =
'flash.display3D.VertexBuffer3D', $$S_flash$2e_display3D$2etext_ab5e8c81 =
'flash.display3D.textures.CubeTexture',
$$S_flash$2e_display3D$2etext_df9dd641 =
'flash.display3D.textures.RectangleTexture',
$$S_flash$2e_display3D$2etext_b63cbd69 = 'flash.display3D.textures.Texture',
$$S_flash$2e_display3D$2etext_badfebd3 =
'flash.display3D.textures.TextureBase',
$$S_flash$2e_display3D$2etext_5cfcc338 =
'flash.display3D.textures.VideoTexture', $$S_flash$2e_events$2eEvent =
	'flash.events.Event', $$S_flash$2e_events$2eEventDi_7ae4e8ba =
'flash.events.EventDispatcher', $$S_flash$2e_events$2eKeyboar_aae31eb5 =
'flash.events.KeyboardEvent', $$S_flash$2e_events$2eMouseEv_f042edde =
'flash.events.MouseEvent', $$S_flash$2e_events$2eTouchEv_f0b9c8ec =
'flash.events.TouchEvent', $$S_flash$2egeom$2eColorTran_384b2b75 =
'flash.geom.ColorTransform', $$S_flash$2egeom$2eMatrix =
'flash.geom.Matrix', $$S_flash$2egeom$2eMatrix3D = 'flash.geom.Matrix3D',
$$S_flash$2egeom$2eOrientati_3b1c8c8d = 'flash.geom.Orientation3D',
$$S_flash$2egeom$2ePoint = 'flash.geom.Point', $$S_flash$2egeom$2eRectangle
= 'flash.geom.Rectangle', $$S_flash$2egeom$2eTransform =
'flash.geom.Transform', $$S_flash$2egeom$2eVector3D = 'flash.geom.Vector3D',
$$S_flash$2eutils$2eByteArra_e412f008 = 'flash.utils.ByteArray',
$$S_flash$2eutils$2eEndian = 'flash.utils.Endian', $$S_float4 = 'float4',
$$S_fs = 'fs', $$S_fullScreen = 'fullScreen', $$S_function = 'function',
$$S_get = 'get', $$S_getCssColor = 'getCssColor', $$S_gldraw = 'gldraw',
$$S_goog = 'goog', $$S_goog$2eloadModule$28 = 'goog.loadModule(',
$$S_goog$2eloadModule$28_func_e9ff1cd = 'goog.loadModule(function(exports)
{"use strict";', $$S_goog$2eretrieveAndExec_2c876d25 =
'goog.retrieveAndExec_("', $$S_gpu = 'gpu', $$S_gpu$20_batch = 'gpu batch',
$$S_instance = 'instance', $$S_isPrimaryTouchPoint = 'isPrimaryTouchPoint',
$$S_keyCode = 'keyCode', $$S_keyLocation = 'keyLocation', $$S_keydown =
'keydown', $$S_keyup = 'keyup', $$S_lineTo = 'lineTo', $$S_linear =
'linear', $$S_localX = 'localX', $$S_localY = 'localY', $$S_m$5f_altKey =
'm_altKey', $$S_m$5f_ctrlKey = 'm_ctrlKey',
$$S_m$5fisPrimaryTouchPoin_f97a622 =
	'm_isPrimaryTouchPoint', $$S_m$5fisRelatedObjectIna_26917de5 =
'm_isRelatedObjectInaccessible', $$S_m$5frelatedObject = 'm_relatedObject',
$$S_m$5fshiftKey = 'm_shiftKey', $$S_m$5ftouchPointID = 'm_touchPointID',
$$S_mousedown = 'mousedown', $$S_mouseenter = 'mouseenter', $$S_mouseleave =
'mouseleave', $$S_mousemove = 'mousemove', $$S_mouseout = 'mouseout',
$$S_mouseover = 'mouseover', $$S_mouseup = 'mouseup', $$S_mousewheel =
'mousewheel', $$S_moveTo = 'moveTo', $$S_native$20_code = 'native code',
$$S_never = 'never', $$S_no$2drepeat = 'no-repeat',
$$S_none = 'none', $$S_normal = 'normal', $$S_null = 'null', $$S_number =
'number', $$S_object = 'object', $$S_org$2e_apache$2e_flex$2eutil_6fc7de25 =
'org.apache.flex.utils.Language', $$S_pad = 'pad',
$$S_precision$20lowp$20_float_1dcb2fff = 'precision lowp float;varying vec4
vColor;varying vec2 vUV;uniform sampler2D fs0;void main(void) {gl_FragColor
\x3d texture2D(fs0,vUV)*vColor;}', $$S_precision$20lowp$20_float_2991e49e =
'precision lowp float;varying vec4 vColor;void main(void) {gl_FragColor \x3d
vColor;}', $$S_pressure =
	'pressure', $$S_px = 'px', $$S_relatedObject = 'relatedObject',
$$S_removeAttribute = 'removeAttribute', $$S_renderGraphics =
'renderGraphics', $$S_renderImage = 'renderImage', $$S_renderText =
'renderText', $$S_repeat = 'repeat', $$S_resize = 'resize', $$S_rgb = 'rgb',
$$S_rgba$28 = 'rgba(', $$S_round = 'round', $$S_script = 'script',
$$S_shiftKey = 'shiftKey', $$S_sizeX = 'sizeX', $$S_sizeY = 'sizeY',
$$S_splice = 'splice', $$S_stageX = 'stageX', $$S_stageY = 'stageY',
$$S_stage$5fresize = 'stage_resize', $$S_string = 'string',
$$S_text$2fjavascript = 'text/javascript',
$$S_toString = 'toString', $$S_top = 'top', $$S_touchPointID =
'touchPointID', $$S_touchcancel = 'touchcancel', $$S_touchend = 'touchend',
$$S_touchmove = 'touchmove', $$S_touchstart = 'touchstart', $$S_tripath =
'tripath', $$S_type = 'type', $$S_updateAfterEvent = 'updateAfterEvent',
$$S_updateTransforms = 'updateTransforms', $$S_uploadCompressedText_2424bfda
= 'uploadCompressedTextureFromByteArray', $$S_uploadFromBitmapData =
'uploadFromBitmapData', $$S_uploadFromByteArray = 'uploadFromByteArray',
$$S_uploadFromVector = 'uploadFromVector',
$$S_utf$2d_8 = 'utf-8', $$S_va = 'va', $$S_var$20 = 'var ',
$$S_var$20$5f_evalTest$5f$20$3d$20_1$3b = 'var _evalTest_ \x3d 1;', $$S_vc =
'vc', $$S_webgl = 'webgl', $$S_window$5fresize = 'window_resize', $$S_write
= 'write';
function JSCompiler_emptyFn() {
	return function () {}

}
function JSCompiler_set(a) {
	return function (b) {
		this[a] = b
	}
}
function JSCompiler_get(a) {
	return function () {
		return this[a]
	}
}
function JSCompiler_returnArg(a) {
	return function () {
		return a
	}
}



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55205.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Peter Ent <pe...@adobe.com>.
This latest email is a really good explanation of how things work. Do we have this captured in a wiki page?

Peter


On Sep 19, 2016, at 11:51 AM, Alex Harui <ah...@adobe.com>> wrote:



On 9/19/16, 12:09 AM, "lizhi" <sl...@qq.com>> wrote:

and my code not the same as createjs.
my code is baseon "flash api",so need remove-circulars.

IMO, if your code is a library that is eventually compiled into an
application via MXMLC, then you only need -remove-circulars when MXMLC is
run.  That's because the remove-circulars needs to understand the
dependency order.  For example if you have:

Class A
{
 Var foo:B;
}

Class B
{
 Var bar:A;
}

That is a circularity, but you can't remove the goog.requires("B") from
A.js, nor can you remove the goog.requires("A") from B.js until you
compile these into an app.  Otherwise you would remove both and then B
wouldn't load or A wouldn't load depending on which one got loaded first.
Now if you are concatenating all files, you should be able to remove all
goog.requires as long as you have concatenated in static dependency order.
But otherwise, MXMLC will see that your customer's app used A directly as
in:

Class Main
{
 Var a:A;
}

And then -remove-circulars will remove the goog.requires("A") from B.js
since it knows that main.js will have a goog.requires("A").

-Alex


Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/19/16, 12:09 AM, "lizhi" <sl...@qq.com> wrote:

>and my code not the same as createjs.
>my code is baseon "flash api",so need remove-circulars.

IMO, if your code is a library that is eventually compiled into an
application via MXMLC, then you only need -remove-circulars when MXMLC is
run.  That's because the remove-circulars needs to understand the
dependency order.  For example if you have:

Class A
{
  Var foo:B;
}

Class B
{
  Var bar:A;
}

That is a circularity, but you can't remove the goog.requires("B") from
A.js, nor can you remove the goog.requires("A") from B.js until you
compile these into an app.  Otherwise you would remove both and then B
wouldn't load or A wouldn't load depending on which one got loaded first.
Now if you are concatenating all files, you should be able to remove all
goog.requires as long as you have concatenated in static dependency order.
 But otherwise, MXMLC will see that your customer's app used A directly as
in:

Class Main
{
  Var a:A;
}

And then -remove-circulars will remove the goog.requires("A") from B.js
since it knows that main.js will have a goog.requires("A").

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
and my code not the same as createjs.
my code is baseon "flash api",so need remove-circulars.

and the createjs is pure js project.so not have the bug.




--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55225.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
maybe i will try not use the compc.
and use the mxmlc.and try include all class in main file. 

the cmopc,and gcc ,can not get the js file i want.



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55223.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/19/16, 12:01 AM, "lizhi" <sl...@qq.com> wrote:

>so,can not get the js file ,as createjs.

I haven't looked at what CreateJS really does.  You may want to contact
them and ask.  They may simply be removing headers and concatenating
files.  GCC has a "WHITESPACE_ONLY" optimization.  Not sure if that is
what you want or not.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
so,can not get the js file ,as createjs.




--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55222.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/18/16, 11:46 PM, "lizhi" <sl...@qq.com> wrote:

>maybe pack the js need some option.it is the diff of mxmlc use and my
>custom
>option
>
>java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
>bin\js-swc --js
>%FLEX_HOME%\frameworks\js\FlexJS\generated-sources\org\apache\flex\utils\L
>anguage.js
>--js %FLEX_HOME%\js\lib\google\closure-library\closure\goog\base.js
>--compilation_level SIMPLE_OPTIMIZATIONS --js_output_file
>SpriteFlexjsMain.js
>
>
>but i can not get the option,i have look at the flexjs code
>JSClosureCompilerWrapper.java and MXMLFlexJSPublisher.java.
>but i can not debug it,and get the full string.
>can you give me the closure-compiler "full string" of this mxmlc
>
>set ARGS=-remove-circulars -js-compiler-option="--compilation_level
>SIMPLE_OPTIMIZATIONS"
>start %FLEX_HOME%/js/bin/mxmlc %ARGS%
>-external-library-path="%FLEX_HOME%\js\libs\js.swc"
>-compiler.source-path=../src src/%main%.as -define=CONFIG::as_only,false
>-define=CONFIG::js_only,true

I think it would pretty much be what you have.  I think you might get the
JSCompiler output when you use SIMPLE_OPTIMIZATIONS.  Remove-circulars is
a feature of the FalconJX compiler, not the GCC compiler.

The difference between MXMLC and COMPC is that MXMLC is trying to take the
one main file you give it, chase all dependencies, and build an
application with an entry point.  COMPC is just trying to build a SWC of
pre-compiled and un-optimized code.

HTH,
-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
maybe pack the js need some option.it is the diff of mxmlc use and my custom
option

java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
bin\js-swc --js
%FLEX_HOME%\frameworks\js\FlexJS\generated-sources\org\apache\flex\utils\Language.js
--js %FLEX_HOME%\js\lib\google\closure-library\closure\goog\base.js
--compilation_level SIMPLE_OPTIMIZATIONS --js_output_file
SpriteFlexjsMain.js


but i can not get the option,i have look at the flexjs code
JSClosureCompilerWrapper.java and MXMLFlexJSPublisher.java.
but i can not debug it,and get the full string.
can you give me the closure-compiler "full string" of this mxmlc

set ARGS=-remove-circulars -js-compiler-option="--compilation_level
SIMPLE_OPTIMIZATIONS"
start %FLEX_HOME%/js/bin/mxmlc %ARGS%
-external-library-path="%FLEX_HOME%\js\libs\js.swc"
-compiler.source-path=../src src/%main%.as -define=CONFIG::as_only,false
-define=CONFIG::js_only,true



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55220.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/18/16, 12:03 AM, "lizhi" <sl...@qq.com> wrote:

>function JSCompiler_emptyFn() {
>        return function () {}
>
>} 
>function JSCompiler_set(a) {
>        return function (b) {
>                this[a] = b
>        } 
>} 
>function JSCompiler_get(a) {
>        return function () {
>                return this[a]
>        } 
>} 
>function JSCompiler_returnArg(a) {
>        return function () {
>                return a
>        } 
>}
>
>This code is generated by mxmlc , this code is not included in any of my
>code , I do not know where they come from , then this code is also very
>important , can solve the problem .

I don't see this in my output.  JSCompiler is part of Google Closure
Compiler so maybe you are using a different version than I am.  CompC will
not send the output to Google Closure Compiler.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
function JSCompiler_emptyFn() { 
        return function () {} 

} 
function JSCompiler_set(a) { 
        return function (b) { 
                this[a] = b 
        } 
} 
function JSCompiler_get(a) { 
        return function () { 
                return this[a] 
        } 
} 
function JSCompiler_returnArg(a) { 
        return function () { 
                return a 
        } 
}

This code is generated by mxmlc , this code is not included in any of my
code , I do not know where they come from , then this code is also very
important , can solve the problem .

About one minute you can not load because not too big, but being given . The
question now is why the error. Because less than mysterious codes



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55215.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
I have no idea what the source is.  The output is very difficult to read.
The third link you sent did not load after 1 minute.  Please make small
test cases.

Thanks,
-Alex

On 9/17/16, 10:45 PM, "lizhi" <sl...@qq.com> wrote:

>it is not too much to analyze.
>
>i simple remove some block.and the jsCompiler_set,_get etc,can not find in
>the compc version.pls search in the 2 file.
>
>the JSCompiler_set can find a lot in mxmlc version.
>and can not find in compc version
>
>'use strict'; 
>var $$S_ = '', $$S_$9 = '\t', $$S_$a = '\n',
>$$S_$a$2f$2f$23$20sourceURL$3d
>= '\n//# sourceURL\x3d',
>.............._write = 'write';
>function JSCompiler_emptyFn() {
>        return function () {}
>
>} 
>function JSCompiler_set(a) {
>        return function (b) {
>                this[a] = b
>        } 
>} 
>function JSCompiler_get(a) {
>        return function () {
>                return this[a]
>        } 
>} 
>function JSCompiler_returnArg(a) {
>        return function () {
>                return a
>        } 
>}
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55211.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
it is not too much to analyze.

i simple remove some block.and the jsCompiler_set,_get etc,can not find in
the compc version.pls search in the 2 file.

the JSCompiler_set can find a lot in mxmlc version.
and can not find in compc version

'use strict'; 
var $$S_ = '', $$S_$9 = '\t', $$S_$a = '\n', $$S_$a$2f$2f$23$20sourceURL$3d
= '\n//# sourceURL\x3d', 
.............._write = 'write'; 
function JSCompiler_emptyFn() { 
        return function () {} 

} 
function JSCompiler_set(a) { 
        return function (b) { 
                this[a] = b 
        } 
} 
function JSCompiler_get(a) { 
        return function () { 
                return this[a] 
        } 
} 
function JSCompiler_returnArg(a) { 
        return function () { 
                return a 
        } 
}



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55211.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
and f12 this code
http://s.codepen.io/matrix3d/debug/XjKQVW

have a error



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55206.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
Compc does not remove circulars because you don't have circularities until
you ask GCC to optimize the code.  Compc just compiles it.

The output you are sending is too much to analyze.  Please break it down
into simple test cases.

Thanks,
-Alex

On 9/17/16, 10:01 PM, "lizhi" <sl...@qq.com> wrote:

>maybe the -remove-circulars of mxmlc not work with compc?
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55208.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
maybe the -remove-circulars of mxmlc not work with compc?



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55208.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
Mxmlc will generate a subclass of the main class and add hooks that the
index.html will call to start up the app.  It will only output JS files it
finds via class dependency analysis.

Compc does not generate any subclasses or index.html.  It just compiles
the AS files you asked it to.

So yes, the output will be different.

-Alex

On 9/14/16, 9:05 AM, "lizhi" <sl...@qq.com> wrote:

>yes ihave gen the js file.but it is have diffrent of mxmlc ,so maybe the
>mxmlc have some option,can i show you the 2file?help me why diffrent
>
>发自我的iPhone
>
>------------------ Original ------------------
>From: Alex Harui [via Apache Flex Development]
><ml...@n4.nabble.com>
>Date: 周三,9月 14,2016 23:12
>To: lizhi <sl...@qq.com>
>Subject: Re: flexjs ,pack full folder in a js.
>
>
>
> COMPC is for building libraries.  It does not generate an entry point.
>MXMLC is for building applications.
>
>So, IMO, you would use COMPC to compile all of your library code and GCC
>to generate a single file, then you will have to build your own
>index.html 
>and main.js that calls into that single file.  You can try using MXMLC to
>generate the index.html and single file, but it will want to output
>goog.requires.  I suppose you can manually edit the results.  You are not
>using the kind of workflow we support, so you will have to manually
>perform some of the steps.
>
>-Alex 
>
> 
> 
> 
>  If you reply to this email, your message will be added to the
>discussion below:
> 
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55145.html
>  To unsubscribe from flexjs ,pack full folder in a js., click here.
> NAML
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55147.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
yes ihave gen the js file.but it is have diffrent of mxmlc ,so maybe the mxmlc have some option,can i show you the 2file?help me why diffrent

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 23:12
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 COMPC is for building libraries.  It does not generate an entry point. 
MXMLC is for building applications. 

So, IMO, you would use COMPC to compile all of your library code and GCC 
to generate a single file, then you will have to build your own index.html 
and main.js that calls into that single file.  You can try using MXMLC to 
generate the index.html and single file, but it will want to output 
goog.requires.  I suppose you can manually edit the results.  You are not 
using the kind of workflow we support, so you will have to manually 
perform some of the steps. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55145.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55147.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
COMPC is for building libraries.  It does not generate an entry point.
MXMLC is for building applications.

So, IMO, you would use COMPC to compile all of your library code and GCC
to generate a single file, then you will have to build your own index.html
and main.js that calls into that single file.  You can try using MXMLC to
generate the index.html and single file, but it will want to output
goog.requires.  I suppose you can manually edit the results.  You are not
using the kind of workflow we support, so you will have to manually
perform some of the steps.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
and it is not the have error,build with mxmlc.
it is diff compc and mxmlc? 



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55143.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
oh yes,need add --js goog\base.js

but.

SpriteFlexjsMain.js:formatted:656Uncaught TypeError: Cannot read property
'prototype' of undefined
indexjsmin.html:11 Uncaught TypeError: SpriteFlexjsMain is not a constructor



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55142.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
thanks agine.

i have gen the js file success.

but runing get this error

SpriteFlexjsMain.js:5 Uncaught ReferenceError: goog is not defined
indexjsmin.html:11 Uncaught TypeError: SpriteFlexjsMain is not a
constructor.

and i see the js file,not find the goog.

how ememd the goog cdoe



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55141.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
We don't call GCC on the command line, we use the Java APIs.  The exact
set of options depend on MXMLC and/or COMPC arguments.
You can see some of the options in the flex-falcon repo in
JSClosureCompilerWrapper.java and MXMLFlexJSPublisher.java.  But yes, we
do turn off deprecation warnings.

-Alex

On 9/13/16, 11:35 PM, "lizhi" <sl...@qq.com> wrote:

>thanks agine.
>and can you give me the option bat used by mxmlc.
>i get a lot of error
>bin/js-swc/flash/media/SoundMixer.js:80: WARNING - The @expose annotation
>is
>dep
>recated. Use @nocollapse or @export instead.
>useSpeakerphoneForVoice: {
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55139.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
thanks agine.
and can you give me the option bat used by mxmlc.
i get a lot of error
bin/js-swc/flash/media/SoundMixer.js:80: WARNING - The @expose annotation is
dep
recated. Use @nocollapse or @export instead.
useSpeakerphoneForVoice: {



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55139.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
Yes, there will be circulars in the framework code.  Instead of specifying
all of the framework sources, just specify Language.js

On 9/13/16, 11:18 PM, "lizhi" <sl...@qq.com> wrote:

>this is my bat
>java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
>bin\js-swc --js %FLEX_HOME%\frameworks\js\FlexJS\generated-sources
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55137.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
this is my bat
java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
bin\js-swc --js %FLEX_HOME%\frameworks\js\FlexJS\generated-sources



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55137.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 10:13 PM, "lizhi" <sl...@qq.com> wrote:

>thanks a lot.
>
>jsout/flash/utils/setTimeout.js:11: ERROR - required
>"org.apache.flex.utils.Lang
>uage" namespace never provided

Yes, you may need to add the Language.as file/folder.
>
>and how add this lib %FLEX_HOME%\frameworks\js\FlexJS\generated-sources
>
>this is my cmd
>java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
>jsout
>

I think you can have more than one --js

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
thanks a lot.

jsout/flash/utils/setTimeout.js:11: ERROR - required
"org.apache.flex.utils.Lang
uage" namespace never provided

and how add this lib %FLEX_HOME%\frameworks\js\FlexJS\generated-sources

this is my cmd
java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js jsout



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55131.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
Don't use "char" as a parameter name.

On 9/13/16, 9:51 PM, "lizhi" <sl...@qq.com> wrote:

>it is work,but the bytearray.as class use mxmlc work.
>
>and compc get error.
>'''
>set FLEX_HOME=d:/sdk/flexjs
>set main=SpriteFlexjsMain
>start %FLEX_HOME%/js/bin/compc %ARGS%
>-external-library-path="%FLEX_HOME%\js\libs\js.swc"
>-include-sources=../src
>-include-sources=src/%main%.as -define=CONFIG::as_only,false
>-define=CONFIG::js_only,true -output jsout
>java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js
>jsout
>'''
>
>'''
>jsout/flash/utils/ByteArray.js:186: ERROR - Parse error. identifier is a
>reserve
>d word
>  var /** @type {Function} */ __localFn0__ = function(char) {
>                                                      ^
>
>jsout/flash/utils/ByteArray.js:187: ERROR - Parse error. identifier is a
>reserve
>d word
>    return char.charCodeAt(0);
>           ^
>'''
>
>what diffrent of mxmlc and compc?
>
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55129.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
it is work,but the bytearray.as class use mxmlc work.

and compc get error.
'''
set FLEX_HOME=d:/sdk/flexjs
set main=SpriteFlexjsMain
start %FLEX_HOME%/js/bin/compc %ARGS%
-external-library-path="%FLEX_HOME%\js\libs\js.swc" -include-sources=../src
-include-sources=src/%main%.as -define=CONFIG::as_only,false
-define=CONFIG::js_only,true -output jsout
java -jar %FLEX_HOME%\js\lib\google\closure-compiler\compiler.jar --js jsout
'''

'''
jsout/flash/utils/ByteArray.js:186: ERROR - Parse error. identifier is a
reserve
d word
  var /** @type {Function} */ __localFn0__ = function(char) {
                                                      ^

jsout/flash/utils/ByteArray.js:187: ERROR - Parse error. identifier is a
reserve
d word
    return char.charCodeAt(0);
           ^
'''

what diffrent of mxmlc and compc?




--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55129.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
Looks like you are still using mxmlc.

On 9/13/16, 8:09 PM, "lizhi" <sl...@qq.com> wrote:

>see this
>https://rawgit.com/matrix3d/matrix3d.github.io/master/assets/html5/flexjss
>tage3d/bin/js-release/SpriteFlexjsMain.js
>http://codepen.io/matrix3d/pen/mAZmVy
>thanks
>this js i build with
>%FLEX_HOME%/js/bin/mxmlc %ARGS%
>-external-library-path="%FLEX_HOME%\js\libs\js.swc"
>-compiler.source-path=../src src/%main%.as -define=CONFIG::as_only,false
>-define=CONFIG::js_only,true
>
>it is include the graphics api,but not include the sound api,
>so how include all?
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085p55126.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
see this
https://rawgit.com/matrix3d/matrix3d.github.io/master/assets/html5/flexjsstage3d/bin/js-release/SpriteFlexjsMain.js
http://codepen.io/matrix3d/pen/mAZmVy
thanks
this js i build with
%FLEX_HOME%/js/bin/mxmlc %ARGS%
-external-library-path="%FLEX_HOME%\js\libs\js.swc"
-compiler.source-path=../src src/%main%.as -define=CONFIG::as_only,false
-define=CONFIG::js_only,true

it is include the graphics api,but not include the sound api,
so how include all?



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55126.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
not this,i just want find a option include all src in a js

发自我的iPhone

------------------ Original ------------------
From: Justin Mclean [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 05:19
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 Hi, 

At I guess I think lizhi is using wildcard import “import flash.*” but he not seeing all of the JS files in the flash package included. 

Justin 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55118.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55124.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

At I guess I think lizhi is using wildcard import “import flash.*” but he not seeing all of the JS files in the flash package included.

Justin

Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
thanks iwill try the compc ,inow use the mxmlc。itis diff?https://github.com/matrix3d/spriteflexjs/blob/master/test/buildmain.bat

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 01:01
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 9:39 AM, "lizhi" <[hidden email]> wrote: 

>I want all as file in flash.*.but it is just get the used as file.the 
>Sprite.as I used it is get.but the sound.as,I not used so it is not get 
>js.it is good to some app.but it is lib not app. 

If you use compc, there are various options to include files.  I'm still 
not sure what you want, but maybe you want the include-sources option. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55109.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55110.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 9:39 AM, "lizhi" <sl...@qq.com> wrote:

>I want all as file in flash.*.but it is just get the used as file.the
>Sprite.as I used it is get.but the sound.as,I not used so it is not get
>js.it is good to some app.but it is lib not app.

If you use compc, there are various options to include files.  I'm still
not sure what you want, but maybe you want the include-sources option.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
I want all as file in flash.*.but it is just get the used as file.the Sprite.as I used it is get.but the sound.as,I not used so it is not get js.it is good to some app.but it is lib not app.

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 00:36
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 9:29 AM, "lizhi" <[hidden email]> wrote: 

>but flexjs not gen all js in the debug folder。 

Any JS files referenced in the build should be in the output.  How are you 
specifying the set of files to the compiler?  Please show the entire set 
of options. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55106.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55108.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 9:29 AM, "lizhi" <sl...@qq.com> wrote:

>but flexjs not gen all js in the debug folder。

Any JS files referenced in the build should be in the output.  How are you
specifying the set of files to the compiler?  Please show the entire set
of options.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
but flexjs not gen all js in the debug folder。

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 00:30
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 9:22 AM, "lizhi" <[hidden email]> wrote: 

>simple,i have a lot of flash runtime api,stage3d,sound,loader,etc.i want 
>pack all of them in a js file.see the code pen link. 

I still don't understand. 

FlexJS supports libraries via CompC where each class has its own JS file 
for debugging.  We don't support packing.  MXMLC will call 
GoogleClosureLibrary to pack all of the JS files into the final 
application JS.  Is this not working for you? 

If you want something different, you may need to write it yourself or use 
Google Closure Library in your build script. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55102.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55103.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 9:32 AM, "lizhi" <sl...@qq.com> wrote:

>and i think this useful。if it is support by flexjs,the user do not need
>study the goo。

I'm still unclear what you want.  If you want a -combined.js like CreateJS
has, I think Google Closure Compiler can do that for you.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
and i think this useful。if it is support by flexjs,the user do not need study the goo。

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 00:30
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 9:22 AM, "lizhi" <[hidden email]> wrote: 

>simple,i have a lot of flash runtime api,stage3d,sound,loader,etc.i want 
>pack all of them in a js file.see the code pen link. 

I still don't understand. 

FlexJS supports libraries via CompC where each class has its own JS file 
for debugging.  We don't support packing.  MXMLC will call 
GoogleClosureLibrary to pack all of the JS files into the final 
application JS.  Is this not working for you? 

If you want something different, you may need to write it yourself or use 
Google Closure Library in your build script. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55102.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55105.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 9:22 AM, "lizhi" <sl...@qq.com> wrote:

>simple,i have a lot of flash runtime api,stage3d,sound,loader,etc.i want
>pack all of them in a js file.see the code pen link.

I still don't understand.

FlexJS supports libraries via CompC where each class has its own JS file
for debugging.  We don't support packing.  MXMLC will call
GoogleClosureLibrary to pack all of the JS files into the final
application JS.  Is this not working for you?

If you want something different, you may need to write it yourself or use
Google Closure Library in your build script.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
simple,i have a lot of flash runtime api,stage3d,sound,loader,etc.i want pack all of them in a js file.see the code pen link. 

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 00:21
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 9:04 AM, "lizhi" <[hidden email]> wrote: 

>yes,it is.but i also have e.as .a lot of than.and i can not hand code all 
>of tham 

I still don't understand.  Are you trying to have classes added to the 
output that are not referenced by any other classes?  There is the 
-includes compiler option for something like that, but it requires that 
the Application support the info() structure in IFlexInfo. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55099.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55100.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 9:25 AM, "lizhi" <sl...@qq.com> wrote:

>if en not ,i try cn。我想把整个src 文件夹里面所有的文件,打包到单独的js文件中。就
像creaejs等提供的单独文件。

I would try using Google Closure Compiler directly with most optimizations
turned off.

HTH,
-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
if en not ,i try cn。我想把整个src 文件夹里面所有的文件,打包到单独的js文件中。就像creaejs等提供的单独文件。

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 00:21
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 9:04 AM, "lizhi" <[hidden email]> wrote: 

>yes,it is.but i also have e.as .a lot of than.and i can not hand code all 
>of tham 

I still don't understand.  Are you trying to have classes added to the 
output that are not referenced by any other classes?  There is the 
-includes compiler option for something like that, but it requires that 
the Application support the info() structure in IFlexInfo. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55099.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55101.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 9:04 AM, "lizhi" <sl...@qq.com> wrote:

>yes,it is.but i also have e.as .a lot of than.and i can not hand code all
>of tham

I still don't understand.  Are you trying to have classes added to the
output that are not referenced by any other classes?  There is the
-includes compiler option for something like that, but it requires that
the Application support the info() structure in IFlexInfo.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
yes,it is.but i also have e.as .a lot of than.and i can not hand code all of tham

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周三,9月 14,2016 00:04
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 

On 9/13/16, 8:34 AM, "lizhi" <[hidden email]> wrote: 

>a.as b.as c.as ......  etc all pack in d.as 

Still not sure I understand. 

If d.as references a.as and b.as, in the bin/js-release they should all 
get packed in. 

-Alex 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55096.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55097.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.

On 9/13/16, 8:34 AM, "lizhi" <sl...@qq.com> wrote:

>a.as b.as c.as ......  etc all pack in d.as

Still not sure I understand.

If d.as references a.as and b.as, in the bin/js-release they should all
get packed in.

-Alex


Re: flexjs ,pack full folder in a js.

Posted by lizhi <sl...@qq.com>.
a.as b.as c.as ......  etc all pack in d.as

发自我的iPhone

------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml...@n4.nabble.com>
Date: 周二,9月 13,2016 23:23
To: lizhi <sl...@qq.com>
Subject: Re: flexjs ,pack full folder in a js.



 I'm not sure I understand the problem.  Are you asking for assets to be 
copied into the destination folder or into a .js file? 

-Alex 

On 9/12/16, 8:09 PM, "lizhi" <[hidden email]> wrote: 

>i gen js file 
>http://codepen.io/matrix3d/pen/mAZmVy
>it is work,but miss some file,sound.as etc. 
>i do not know all of the missing file. 
>and how pack all as file in a floder.pack in the js file? 
>thanks 
> 
> 
> 
>-- 
>View this message in context: 
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085.html 
>Sent from the Apache Flex Development mailing list archive at Nabble.com. 

 
 
 
  If you reply to this email, your message will be added to the discussion below:
 http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55094.html 
  To unsubscribe from flexjs ,pack full folder in a js., click here.
 NAML



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-folder-in-a-js-tp55085p55095.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ,pack full folder in a js.

Posted by Alex Harui <ah...@adobe.com>.
I'm not sure I understand the problem.  Are you asking for assets to be
copied into the destination folder or into a .js file?

-Alex

On 9/12/16, 8:09 PM, "lizhi" <sl...@qq.com> wrote:

>i gen js file
>http://codepen.io/matrix3d/pen/mAZmVy
>it is work,but miss some file,sound.as etc.
>i do not know all of the missing file.
>and how pack all as file in a floder.pack in the js file?
>thanks
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-pack-full-fold
>er-in-a-js-tp55085.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.