Yes. That bead can help to deal with parameters, but routing is very powerful.

Check out this demo: https://unhurdle.github.io/spectrum-royale/

The code is here: https://github.com/unhurdle/spectrum-royale 
<https://github.com/unhurdle/spectrum-royale>

The hash is automatically routed to the correct component:
https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/BrowserRouter.mxml
 
<https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/BrowserRouter.mxml>


> On Oct 18, 2021, at 12:50 PM, Hugo Ferreira <[email protected]> wrote:
> 
> Thank you Piotr,
> 
> I have solved my problem with ApplicationParametersCaseInsensitive bead.
> It works pretty well.
> 
> Piotr Zarzycki <[email protected]> escreveu no dia segunda,
> 18/10/2021 à(s) 10:07:
> 
>> Hi Hugo,
>> 
>> Try to look into bead ->
>> 
>> <j:beads>
>>    <js:BrowserRouter id="appRouter">
>>          <js:RouteToParameters />
>>    </js:BrowserRouter>
>> </j:beads>
>> 
>> You can extend RouteToParameters and override method stateChanged - to grab
>> params from url. I have above code placed in main application file.
>> 
>> Thanks,
>> Piotr
>> 
>> niedz., 17 paź 2021 o 22:27 Hugo Ferreira <[email protected]>
>> napisał(a):
>> 
>>> I found the solution here:
>>> 
>>> 
>> https://lists.apache.org/api/source.lua/9839ff2317670a972f4e44c73fbe7925b163b1c42923416342defd9e@%3Cdev.royale.apache.org%3E
>>> Thank you.
>>> 
>>> Hugo Ferreira <[email protected]> escreveu no dia domingo,
>> 17/10/2021
>>> à(s) 21:04:
>>> 
>>>> Hi,
>>>> 
>>>> I was beeing 100% focus on supporting my Flex application and now I
>> will
>>>> focus 100% on Apache Royale, continuing where I stopped (a Word Add-In
>>> made
>>>> with Apache Royale).
>>>> 
>>>> For my Word Add-In, I added 2 ribbon buttons that calls a embeded
>> Apache
>>>> Royale Application.
>>>> I want to call with a url variable to know which button was preesed.
>>>> 
>>>> So, how to query a url variable (if is possible) from a Apache Royale
>>>> Application ?
>>>> 
>>>> Regards,
>>>> Hugo.
>>>> 
>>> 
>> 
>> 
>> --
>> 
>> Piotr Zarzycki
>> 

Reply via email to