Hi Doug, Great to hear about your progress. My responses in-line.
On 3/6/18, 7:35 PM, "doug777" <doug777...@gmail.com> wrote: >I have almost finished converting my old Flex browser app to FlexJS (js >only), but I have 4 problems left that I can't find a way to convert. Can >anyone help to suggest a way to go with these items? > >1. Application.parameters - I need to pass variables into the app on >creation. I don't think we have a generic bead for this, but ASDoc is using the EscapedFragmentBead because it is looking for a particular pattern in the parameters. You can probably copy it and tune it for your needs and even contribute the results back to the framework. > >2. container.stage.stageWidth/stageHeight - I need to find the browser >window's size. I think you can use BrowserResizeListener. > >3. [Embed(systemFont ... etc)] What is your goal with embedding the font for JS? What benefit did it give you in Flex? > >4. This one I'm sure is straightforward but I can't work out how to do it >- > Convert a skin for ButtonBar. I assume I need to create a renderer for >the >firstButton, middleButton and lastButton that are specified in the >existing >skin. But how do I connect the renderers to the individual buttons in the >js >ButtonBar? We haven't created a Factory for having a different renderer for first and last items. ButtonBar is a List. Lists use a DataItemRendererFactory* class depending on the data type. The DataItemRendererFactory classes currently only take one itemRendererFactory. I suggest copying the one you want, adding two more itemRendererFactories and modifying the code inside that to create the right renderer at the right time. That would also be a great thing to contribute back to the framework. Let us know if you need help or have questions. HTH, -Alex > > >-- >Sent from: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy >ale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Cccd8f >ffc20a440ff7f4908d583dc8555%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6 >36559905520366798&sdata=RWf%2FRdzo1uguwXOFjt102DcXJj9Oi6iPUC2MXmaX8O8%3D&r >eserved=0