[FalconJX] extern issue?
I have the following in an extern: /** * Convert the given text to a list of Glyph objects. * Note that there is no strict one-to-one mapping between characters and * glyphs, so the list of returned glyphs can be larger or smaller than the * length of the given string. * @param {string} s * @param {Object=} options * @return {opentype.Glyph[]} */ opentype.Font.prototype.stringToGlyphs = function(s, options) {}; The function returns an array of opentype.Glyph objects. When I try compile a call to this function, I get the following error (in compc): "Implicit coercion of a value of type Glyph to an unrelated type Array." This seems to me like it’s probably a bug. Harbs
Re: [FlexJS] Horizontal list missing scrollbar
On 2/25/17, 8:52 PM, "Justin Mclean"wrote: >Hi, > >Is there anyway to make horizontal and vertical scrollbars allways show? >A overflow:scroll should do it but it looks like you can’t directly apply >styles to the container (positioner?) that has the scroll bars. Adding >this style to the container that has the scrolled content has no effect. Again, probably DAYG (Do As You Go). If none of our examples needed it, nobody has coded it up. In FlexJS, we probably shouldn't have scrollPolicy like we did with Flex. It should just be a choice of ScrollingViewport beads: One with only-vertical, one with only-horizontal, one with both on always, one with some smarts about when to turn them on, etc. > >BTW I recall bringing this up a couple of years back. See for example >https://issues.apache.org/jira/browse/FLEX-34242 and a couple of other >JIRA’s related to scrolling at the some time. Not all bugs will be fixed right away. We just don't have enough people. We need more code contributors. My 2 cents, -Alex
Re: [FlexJS][SpriteFlexJS][Maven] Trying to write some example with FlexJS and SpriteFlexJS
On 2/25/17, 9:10 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"wrote: >> >>a) In. SpriteFlexjsMain.base.js. >. >>goog.inherits(SpriteFlexjsMain, >> flash.display.Sprite); <-- ReferenceError: Can't find >> variable: flash >> >> >>b) In EventDispatcher.js.-> TypeError: >> SpriteFlexjsMain.base is not a function. (In >>'SpriteFlexjsMain.base(this, >> 'constructor')', 'SpriteFlexjsMain.base' is undefined) >> >> >> >> One thing that could be happen is that projects are outside the >>flex-asjs >> folder umbrella. Could this be making some troubles and make the >> spritelfexjs maven artifact not recognized by the sample project? It isn't whether a bunch of code is outside of flex-asjs folder, it is whether that code is using goog.require or not. So look at flash.display.Sprite.js and see if it is or not. If it is, then the issue may be whether flash.display.Sprite.js is in the SWCs or specified via -sdk-js-lib. If it isn't, then it may not be usable as a base class in FlexJS. I think Google Closure expects goog.require. >> >> >> Further problems will be: If I get compilation ok, is that I think I >>will >> need to do some "addChild()" or "addElement()" in mxml in order to >>display >> the example on screen. Right now the object is created, but not added to >> display list. >> How this could be done in FlexJS? Components have to be made into MXML-ready components to be used as the top tag in MXML. Look for components in flex-asjs that have a generateMXMLAttributes method. Components can be child tags in MXML without as much overhead, but I think we currently require children to implement IUIBase. HTH, -Alex
Re: [FlexJS] Horizontal list missing scrollbar
Hi, Is there anyway to make horizontal and vertical scrollbars allways show? A overflow:scroll should do it but it looks like you can’t directly apply styles to the container (positioner?) that has the scroll bars. Adding this style to the container that has the scrolled content has no effect. BTW I recall bringing this up a couple of years back. See for example https://issues.apache.org/jira/browse/FLEX-34242 and a couple of other JIRA’s related to scrolling at the some time. Thanks, Justin
Re: [FlexJS][SpriteFlexJS][Maven] Trying to write some example with FlexJS and SpriteFlexJS
Hi, could someone take a look to this? thanks 2017-02-24 12:03 GMT+01:00 Carlos Rovira: > Hi, > > I created a test project with FlexJS and SpriteFlexJS. I use MDL for > structure the example equally as I did before with MDLExample. > > It's here: https://github.com/carlosrovira/sprite-flexjs-examples > > So, the first thing I'm trying is this example by Lizhi: > https://codepen.io/matrix3d/pen/mAZmVy > > But I found the following problems: > > 1.- If I remove in pom.xml (https://github.com/carlosrovira/sprite-flexjs- > examples/blob/master/pom.xml) the spriteflexjs maven dependency (line 81 > to 86), the project still build successfully > > 2.- Although build succeed, at runtime I find errors: > >a) In. SpriteFlexjsMain.base.js. >. > goog.inherits(SpriteFlexjsMain, > flash.display.Sprite); <-- ReferenceError: Can't find > variable: flash > > >b) In EventDispatcher.js.-> TypeError: > SpriteFlexjsMain.base is not a function. (In 'SpriteFlexjsMain.base(this, > 'constructor')', 'SpriteFlexjsMain.base' is undefined) > > > > One thing that could be happen is that projects are outside the flex-asjs > folder umbrella. Could this be making some troubles and make the > spritelfexjs maven artifact not recognized by the sample project? > > > Further problems will be: If I get compilation ok, is that I think I will > need to do some "addChild()" or "addElement()" in mxml in order to display > the example on screen. Right now the object is created, but not added to > display list. > How this could be done in FlexJS? > > > > > > -- > Carlos Rovira > http://about.me/carlosrovira > > -- Carlos Rovira http://about.me/carlosrovira
Re: [FlexJS]Layout redux
On 2/25/17, 6:33 AM, "Peter Ent"wrote: >Maybe we need a big refactor. Things like effects are pretty advanced and >maybe they should get coupled with more advanced/complex layouts that are >in a different package than HTML. Well, I don't know how to define "big", but we do need to get it right, and I think we have more good real-world use cases to consider. Effects should plug-in and be PAYG like anything else, so sure there might be Effects-knowledgable layouts, or Effects-capable components (where setting x,y,w,h first dispatches a cancelable "changing" event that the Effects system cancels. Or maybe Effects is a completely different API than regular Flex where you use EffectInstances as proxies to change the actual properties on the display objects. Or all of the above since there doesn't have to be only one way to do things. If you can live with visual cruft you can have a smaller, more primitive effects system. I just noticed on my phone that when it is running slowly, that the slide switch that turns on my mobile hotspot actually gets reset back to the off position and animated to on. > >The basic packages could be simpler layouts that do minimal settings. The >HTML package could be JS only and just wrap the HTML elements for use >with ActionScript. In the dual branch, the HTML package only contains the kinds of components. Basic contains the more Flex-like controls. My 2 cents, -Alex
Re: [FlexJS]Layout redux
Maybe we need a big refactor. Things like effects are pretty advanced and maybe they should get coupled with more advanced/complex layouts that are in a different package than HTML. The basic packages could be simpler layouts that do minimal settings. The HTML package could be JS only and just wrap the HTML elements for use with ActionScript. Then another pancake has the SWF and JS components and beads with light layouts and accessories. This seems more PAYG. Peter > On Feb 25, 2017, at 1:46 AM, Alex Haruiwrote: > > > >> On 2/24/17, 10:37 PM, "Yishay Weiss" wrote: >> >> One more thing to consider is how effects will fit in here. I can imagine >> scenarios where items inside of a container need to have an effect >> applied to them. Currently, the move effect relies on changing x, y >> values, which implies absolute positioning. If they’re all part of a >> flexbox I’m not sure how effects would apply. >> >> >> >> I ran into these issues when implementing LayoutTweener and >> EasyCollapseBead for the Accordion component. >> >> >> >> If we’re serious about having swf feature parity, I think we’ll end up >> doing everything with absolute positioning on the swf side anyway, so we >> might as well implement it the same way on the JS side. The only downside >> to this that I see is possible performance issues. >> >> >> >> What are your thoughts on this? > > That's a valid approach, but I'd much rather let the browser do the work > and try to emulate that in the SWF. Leveraging the browser should result > in smaller faster applications. However, if it turns out to do anything > reasonably "nice" in JS requires absolute positioning then, sure it may be > time to give up on the browser and write the code once to run in both SWF > and JS. > > It isn't wrong to have both choices so folks can use the browser when it > works for them and switch to a fatter/slower but perfect- > across-all-browsers version if needed. > > My 2 cents, > -Alex >
Re: Loading external API in flex application
trying to load the apiplayer and getting error in loader.content loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit); loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3;)); ᐧ Best Regards Pawan On Fri, Feb 24, 2017 at 8:29 PM, Harbswrote: > Your code literally loads “url” as a string. That’s probably not what you > want to do… ;-) > > > On Feb 24, 2017, at 3:47 PM, Pawan Yadav wrote: > > > > Hi -- > > > > I am trying to load an external api in flex application > > loader.load(new URLRequest("url")); > > > > and getting this error > > > > player error: Error #2035: URL Not Found. URL: > > > > Any idea, what could be wrong > > > > > > > > > > ᐧ > >
[4.16.0] # Apache Flex SDK 4.16.0 nightly build 241: Successful
flex-sdk_release-candidate - Build #241 - Successful Changes since last build: No changes For more information, check the console output at http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_release-candidate/241/.
Re: [FlexJS] COMPILE::SWF and COMPILE::JS
Hi Chris, Did you have a chance to look into that? Cause I was trying to use COMPILE::JS in my app and it's failed. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-COMPILE-SWF-and-COMPILE-JS-tp59401p59862.html Sent from the Apache Flex Development mailing list archive at Nabble.com.