+1
Answered
Super out of 2 layers of includes
Can you superwire out of 2 includes to perform an action in the main.wire?
For example I have main.wire that includes subwire1.wire and that includes subwire2.wire. I want to instigate an action from subwire2.wire and have it trigger in main.wire.
For example I have main.wire that includes subwire1.wire and that includes subwire2.wire. I want to instigate an action from subwire2.wire and have it trigger in main.wire.
Customer support service by UserEcho
<action name="tomain">
<play action="actioninmain" superwire="yes" target="../.." />
</action>
Right now I am having trouble just getting it to find an action from subwire1.wire to main.wire, even though I can do a superwire from subwire2.wire to subwire1.wire. Not quite sure why it won't let me superwire into the main.wire at all...
../..
The first ../ is the subwire root level (where the block level tags live)
the second .. is the main.wire root level.
The superwire="yes" tells the engine to move past the subwire root level and continue to path the main.wire.
Here's my code:
When I call the action, it's performing (confirmed by other events occurring within the same action) but it's saying the action "swapTab" is not found.
Here's my code in main.wire:
Here's the code in subwire1.wire:
And here's the code from main.wire:
Unfortunately, you can use the play tag to play main.wire actions from subwires, just not the other way around.
subwire1.wire:
main.wire:
Man, apparently it's amateur hour right now...
Depending on your setup, you may just try updating the target to ../../.. and try again. Sometimes there is an extra layer that I miss.