How to [Inject] custom component in View?

pingale.indrajit's Avatar

pingale.indrajit

29 Oct, 2012 12:13 PM

Hi,

I am trying to reuse a custom component (MXML) in my application. But I need to know if there is any way to Inject my custom component into multiple views?

Thanks,
Indrajit

  1. 1 Posted by neil on 29 Oct, 2012 01:22 PM

    neil's Avatar

    Confused! your component is a view itself? Why inject it into another view?
    add it to its display list

  2. 2 Posted by pingale.indraji... on 29 Oct, 2012 01:27 PM

    pingale.indrajit's Avatar

    Hi Neil,
    Actually its a keyboard component and wants to use it in multiple screens (Views). But it creates multiple instances of single keyboard and stacking up into memory.

    I tried mentioning it in Context as Singleton, but it didn't helped.

    Thanks

  3. 3 Posted by neil on 29 Oct, 2012 07:58 PM

    neil's Avatar

    Add it as a popup to the stage.

  4. Ondina D.F. closed this discussion on 09 Nov, 2012 02:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac