• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa and flash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa and flash


  • Subject: Re: Cocoa and flash
  • From: Ian was here <email@hidden>
  • Date: Mon, 8 Aug 2005 19:18:03 -0700 (PDT)

You can play your flash movie through QuickTime, and
pass variables back and forth using QuickTime APIs

http://developer.apple.com/documentation/QuickTime/APIREF/AlphabeticalIndexofFunctions.htm


Here is some sample code for getting a variable from a
flash movie:


// Mouse down event inside of an NSMovieView subclass.

- (void)mouseDown:(NSEvent *)theEvent
{
	[super mouseDown:theEvent];

	Movie		theMovie = [flashMovie QTMovie];
	Track		theTrack = GetMovieIndTrack( theMovie, 1 );
	Media		theMedia = GetTrackMedia( theTrack );
	MediaHandler	mediaHandler = GetMediaHandler( theMedia
);
	char			path;
	char			name = "name of desired flash variable"
	Handle		variableCStringOut;


	FlashMediaGetFlashVariable( mediaHandler, &path,
&name, &variableCStringOut);


	NSLog(@"%@", [NSString
stringWithCString:variableCStringOut]);

	DisposeHandle(theVariableCStringOut);
}


This is from memory, I don't have my flash project in
front of me, but hopefully this will give you the
general idea.

The variableCStringOut points to a string that
contains your flash value.


Hope this helps.




--- Brad Stephens <email@hidden> wrote:

> Has anyone here embedded flash swfs in thier Cocoa
> app
> and have the Cocoa app recieve fscommands from the
> swf. I am just getting started with trying to do
> this, but I can not seem to find any sample code or
> any resources at all for  that matter. Perhaps
> trying
> to use Cocoa is the wrong direction. Can someone
> point me in the right direction.
>
> Thank you,
> Brad
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>  _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Cocoa-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>




__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Cocoa and flash (From: Brad Stephens <email@hidden>)

  • Prev by Date: Help with MoreAuthSample
  • Next by Date: NSDatePicker help
  • Previous by thread: Cocoa and flash
  • Next by thread: Core data memory leak?
  • Index(es):
    • Date
    • Thread