Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTJava and Flash interactivity



as i mentioned in the first email - you're going to be passing strings out
of your interface, catching the strings in the action filter - you're going
to parse that string, then do something based on that. there is no way that
i'm aware of to directly call a java method from within your interface

i would suggest creating an event listener so that your java classes can
register themselves with your action filter to receive events they want --
you will need to parse those strings coming in from your flash interface and
create an event object in that case.

you can use getURL pass the string you want - just remember to return false
at the end of your execute method. use the execute signature that i gave you
for getURL. that's all you need to know - you don't need the other ones,

rf



> That is exactly what we are tryinig to do. My job is
> doing some prototyping..... Right now, I've created a
> button in Flash, but I'm not sure what type of
> "action" to attach to it. I can do a GetUrl and
> handle that event in Java. However, I believe it
> would be beneficial to send something other than a
> getUrl.
>
> So what I'm wanting to do is click a button, handle it
> by having Java do something. So it would be nice to
> be able to send some type of 'command' (or something I
> could interpret as a command in Java).
>
> What I don't understand is what type of filter to use
> for the different Flash actions. I understand how to
> get a GetUrl, but at this point, that is about it.
>
> Thanks for all you help...it has been wonderful. Any
> suggestions are greatly appreciated!
>
> Peace,
>
> Dave.


References: 
 >Re: QTJava and Flash interactivity (From: David Mullens <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.