I guess I don’t understand why you need to drive a bunch of modules directly from HTML. Why not have a single module loader that loads the modules based on commands via ExternalInterface?
-Alex On 9/13/15, 4:11 AM, "mark goldin" <[email protected]> wrote: >What I am not sure of is how I am going to imitate Flex content inside of >the html shell. I am thinking to convert Flex modules into applications >and >them like this from the html: ><body> > <iframe id="ff" style="width:100%;height:100%;" scroll="no" > src="http://localhost/newapp.swf"> > </iframe> ></body> >Then use localStorage to exchange data between. > >On Sat, Sep 12, 2015 at 11:39 PM Dave Glasser <[email protected]> wrote: > >> > > a module is not an application and cannot run without one. >> That's true, At minimum, you'll need a shell application that loads and >> displays the modules. You can reload the shell app each time the module >> changes, and pass the module parameter into it through flashvars. The >> browser caching would mean it wasn't downloaded each time, but you would >> still have to wait for the app to start up and initialize itself each >>time >> you switched modules. It would probably be better to have the shell app >> stay loaded and script it from Javascript like pkumar suggested. Plus, >>you >> could have application state that persists from one module load to >>another. >> If it were me, I would probably alter your current main app to run in >> "shell mode" and not display its menu, and add the ability to control it >> from Javascript. >> >> From: mark goldin <[email protected]> >> To: [email protected] >> Sent: Friday, September 11, 2015 11:12 AM >> Subject: Re: Running flex modules from html shell >> >> But that means I have the load the whole Flex application. How am I am >> going to share the screen between Flex and html? >> >> >> >> On Fri, Sep 11, 2015 at 9:51 AM pkumar.flex <[email protected]> >>wrote: >> >> > You can use ExternalInterface.addCallback(). This function basically >>use >> > for calling Flex function from javascript. >> > you only need to call a javascript function and then java script will >> call >> > Flex function to load module. >> > >> > On Fri, Sep 11, 2015 at 2:06 PM, mark goldin [via Apache Flex Users] < >> > [email protected]> wrote: >> > >> > > I am looking for some ideas if anything to do the following. >> > > The main Flex application screen is constructed as a top horizontal >> menu. >> > > When a menu item is clicked a Flex module is loaded and it's shown >> > > underneath of the top menu. I am trying to replicate the main page >>in >> > html >> > > which would have the same top menu and fire Flex modules. I >>understand >> > > that >> > > a module is not an application and cannot run without one. Any idea >>of >> > > making it work without substantial refactoring? >> > > >> > > Thanks >> > > >> > > >> > > ------------------------------ >> > > If you reply to this email, your message will be added to the >> discussion >> > > below: >> > > >> > > >> > >> >>http://apache-flex-users.2333346.n4.nabble.com/Running-flex-modules-from- >>html-shell-tp11171.html >> > > To unsubscribe from Apache Flex Users, click here >> > > < >> > >> >>http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m >>acro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0 >>MTcyMzE2NA== >> > > >> > > . >> > > NAML >> > > < >> > >> >>http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m >>acro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml. >>namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble >>.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble% >>3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21na >>bble%3Aemail.naml >> > > >> > > >> > >> > >> > >> > -- >> > *Regards,* >> > Prashant Kumar* | *Mob.: +91 8408811225 >> > >> > >> > >> > >> > -- >> > View this message in context: >> > >> >>http://apache-flex-users.2333346.n4.nabble.com/Running-flex-modules-from- >>html-shell-tp11171p11173.html >> > Sent from the Apache Flex Users mailing list archive at Nabble.com. >> > >> >>
