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



Thanks for the message. I think my problem is not
know much about Quicktime (I'm a java programmer).
For my current project, I need to get QT for java and
Flash to interact (i.e. click on a button in flash and
have the java program do something).

I'm about ready to look at flash and see if I can come
to understand both 'worlds.' Thanks for the message.
I need to look up those constants to see what they
are.

Looks like my work is cut out for me ;)

Peace,

Dave.
--- Michael Hopkins <email@hidden> wrote:
> Dave,
>
> If you look at the Java doc, each execute method
> should list which action
> events will call that method to be invoked. For
> example, the execute method
> with the following signature:
>
> Public boolean execute (MovieController mc, int
> action);
>
> Is called for the following events:
>
> mcActionIdle
> mcActionActivate
> mcActionDeactivate
> mcActionDraw
> mcActionSetColorTable
> mcActionForceTimeTableUpdate
> mcActionMovieChanged
> mcActionControllerSizeChanged
> mcActionSuspend
> mcActionResume
> mcActionMovieEdited
> mcActionMovieFinished
>
> You need to override the appropriate execute method
> based on the message you
> expect to be sent by QuickTime. These constants are
> documented in the QT
> documentation which you can find at:
>
> <http://developer.apple.com/quicktime>
>
> The reason why Ryan told you to override the
> specific execute signature he
> did was because that is the message that QuickTime
> will send when a debug
> string is sent from QuickTime . So it really helps
> to know a little about
> how QuickTime works in this case.
>
> Hope this helps!
>
> -Michael
>
> On 1/23/02 1:29 PM, "David Mullens"
> <email@hidden> wrote:
>
> > Thanks! That does help out quite a bit. I'm now
> able
> > to do a println when someone clicks a dropdown box
> in
> > a Flash animation (BTW, the drop down was suppose
> to
> > load in a URL).
> >
> > I was wondering if there was somewhere I could
> look to
> > find more information about the ActionFilter
> class.
> > There's quite a few execute methods and I don't
> know
> > where to look to find out what all the
> mcActionXXXXXs
> > are.
> >
> > Any insight is appreciated!
> >
> > Peace,
> >
> > Dave.
> > --- Ryan Francesconi <email@hidden> wrote:
> >> ok, this is what you do :
> >>
> >> tools you will need :
> >> - a way to 'wire' your flash button. IE :
> >> LivestagePro (
> >> http://www.totallyhip.com )
> >> you're going to be attaching DebugStr actions to
> >> your flash button - you can
> >> do this programatically, through java, or you can
> >> save yourself weeks of
> >> effort and just get a hold of a copy of
> livestage.
> >> (RECOMMENDED)
> >> note : there are other actions that work as well
> for
> >> this, but i've found
> >> DebugStr to be the simplist and most appropriate
> for
> >> all tasks.
> >>
> >>
> >> you need to use a QTPlayer() because you're going
> to
> >> be capturing mcAction
> >> events from its MovieController in a class that
> you
> >> will subclass from
> >> ActionFilter. Also to preserve your interactivity
> in
> >> your swf, you need to
> >> use the QTPlayer().
> >>
> >> _mc = new MovieController(_m);
> >>
> >> _mc.setKeysEnabled(true); // let key events
> into
> >> the movie -- optional...
> >> _mc.setControllerKeysEnabled(true);
> >>
> >> // this is the event trap
> >> _filter = new MyActionFilter(kMCActionEvent,
> >> (Object)_movieName);
> >> _mc.setActionFilter(_filter, false); //don't
> do
> >> idle events
> >> _mc.setVisible(false); // up to you
> >> _player = new QTPlayer(_mc);
> >>
> >> .....
> >>
> >> public class MCActionFilter extends ActionFilter
> {
> >>
> >> /**
> >> * This method will receive the following
> actions:
> >> * mcActionLinkToURL mcActionShowMessageString
> >> mcActionGetNextURL
> >> *
> >> * DebugStrs sent via QuickTime will arrive here.
> >> */
> >> public boolean execute (MovieController mc, int
> >> action, StringHandle string)
> >> {
> >> String thisIsWhatYouWant =
> >> string.toJavaString();
> >> }
> >>
> >> }
> >>
> >>
> >> that's basically it -- as far as getting a
> template
> >> project for you - i'd
> >> recommend starting with the PlayMovie code in the
> >> SDK, then add this stuff
> >> to it. if you need a simple flash button wired up
> -
> >> i'd be happy to send you
> >> an example for you to test with. it would just
> take
> >> a sec to make, and could
> >> save you tons of frustration.
> >>
> >> rf
> >>
> >>
> >>
> >>> I'm new to QTJava and this list. I've been
> >> through
> >>> the zoo tutorial. What I want to do is click on
> a
> >>> button in a flash movie and be able to listen
> for
> >> that
> >>> event in Java.
> >>>
> >>> When I try to play a flash movie that has
> buttons,
> >> the
> >>> movie doesn't react to the mouse clicks or
> >> anything.
> >>> I guess I'm missing something somewhere. If
> >> someone
> >>> has suggestions on how to do this, I would
> really
> >>> appreciate it!
> >>>
> >>> (btw, I am not a flash animator, just a java
> >>> programmer trying to get the connection between
> >> flash
> >>> and QTJava to work).
> >>>
> >>> Thanks!
> >>>
> >>> Dave.
> >> _______________________________________________
> >> quicktime-java mailing list |
> >> email@hidden
> >> Help/Unsubscribe/Archives:
> >>
> >
>
http://www.lists.apple.com/mailman/listinfo/quicktime-java
> >> Do not post admin requests to the list. They will
> be
> > ignored.
> > Send FREE video emails in Yahoo! Mail!
> > http://promo.yahoo.com/videomail/
>
=== message truncated ===
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


References: 
 >RE: QTJava and Flash interactivity (From: Michael Hopkins <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.