The Daily Click ::. Forums ::. Klik Coding Help ::. Communication with Sub-Application and Main program
 

Post Reply  Post Oekaki 
 

Posted By Message

ffomega



Registered
  05/04/2005
Points
  216
29th October, 2010 at 14:41:52 -

I have a sub-application, hich redirects to another frame within the main. In the sub-application, I have some counters which are all made global. The sub-application object is set to share everything. I want to change an object's ink effect via this counter and cannot get the object to interact with the counter from the other frame.

I tried adding this same counter to the object's frame. I also tried putting the conditions and actions in global events.

What will I have to do to get the counter in my sub-application to change the ink effect of its corresponding object in the main application?

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
29th October, 2010 at 14:52:52 -

can you post the mfa?

 
n/a

ffomega



Registered
  05/04/2005
Points
  216
29th October, 2010 at 20:25:23 -

I made a crude .mfa file which shows what I want to do.

http://wlo-koori.comoj.com/sub-app%20test.mfa

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
29th October, 2010 at 22:35:53 -

I don't think what you are trying to do is possible at runtime. Which ink effect are you trying apply/change?

EDIT - The only ink effect that i think is changeable at runtime is the Semi Transparency effect, if that is what you are trying to change i can knock up a quick mfa to do that for you.

Edited by lembi2001

 
n/a

ffomega



Registered
  05/04/2005
Points
  216
30th October, 2010 at 01:48:07 -

I am trying to use monochrome...which I checked and can be changed at runtime within the same frame. The problem is getting the counter to do the work from within the sub-application so I don't end up with 500 counters in one frame.

The example I uploaded is for just one object-counter interaction, I have several active picture and active objects in the main frame, all of which have their own counter to change ink effects and load necessary images from external files. In frame 1 alone there are 382 objects, counters, system boxes, etc. If possible, I'd like to separate parts of this into sub-applications so the program won't be so cluttered and it might load a bit faster (on my computer it takes up to 20 seconds to load). Since the majority of the information is external I should see minimal lag.

I found an object which claims to utilize 'inter-frame' and/or 'inter-application' interactivity, called the Associative Array, but I don't know how to use it or if it would even help me out.

The (confusing) example file provided shows a large database with a 'cloned' frame used as a sub-application...so in essence what it looks like is that in order for AssArray to function multiple instances of the same program must be running. I'd like to avoid that if I can.

Edited by ffomega

 
n/a
   

Post Reply



 



Advertisement

Worth A Click