You could conceivably have more than one Create.js canvas in an application. 
(Very likely in fact.)

For example, I have an (Angular) app which uses Easel.js for positioning and 
cropping of images. This is within a popup window. Easel.js could easily be 
used elsewhere in the app for other purposes.

I think we need a CreateJSCanvas (or something similar) which could be included 
in an app.

There also needs to be the ability to size it, position it relative to other 
elements, etc.

On May 12, 2016, at 5:48 PM, Peter Ent <[email protected]> wrote:

> I have thought about that and we might have a <cjs:CreateJS> element that
> was a Canvas and then its children could be the same things you would be
> into a <cjs:View>. I think it is a possibility.
> 
> And now that I've written that statement, a thought occurs me:  What if
> cjs:Application did not create a Canvas and CreateJS Stage, but instead
> extended core.Application for the only purpose of injecting the HTML
> needed to load in CreateJS and TweenJS JavaScript? THEN, eliminate
> cjs:View altogether and just had cjs:CreateJS so you could put the
> CreateJS anywhere you wanted in your HTML document. Makes me think, "HmmmŠ"
> 
> <cjs:Application Š>  <!‹ just to get the CreateJS.js and TweenJS.js code
> injected into index.html ‹>
>   <js:initialView>
>      <js:ViewBase>
>        <!‹- put FlexJS Basic components here ‹>
>         <cjs:CreateJS>
>              <!‹ put CreateJS stuff here ‹>
>         </cjs:CreateJS>
>     </js:ViewBase>
>   </js:initialView>
> </cjs:Application>
> 
> Further thoughts? Not 100% sure it is possible, but seems likely.
> 
> Peter Ent
> Adobe Systems/Apache Flex Project
> 
> On 5/12/16, 9:46 AM, "OK" <[email protected]> wrote:
> 
>> From the wiki page:
>> 
>> "...The FlexJS CreateJS Application tag creates the HTML5 Canvas
>> automatically...
>> Components from the FlexJS Basic framework cannot be used with components
>> from the
>> FlexJS CreateJS framework...."
>> 
>> I understand that there's no way to place FlexJS HTML components on the
>> Canvas but I wonder how we could embed a "FlexJS CreateJS Canvas" inside a
>> FlexJS app.
>> 
>> Thanks,
>> Olaf
>> 
>> 
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-CreateJS
>> -with-FlexJS-tp52630p53000.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
> 

Reply via email to