[Flashcoders] Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
So I have a swf that needs to run locally and make an ExternalInterface.call ... I am unable to make settings changes to the users Flash Players ... so as of now it seems unpossible! My thoughts was to see if the javascript can listen for a flash event (the end of a flv in FLVPlayback to be

Re: [Flashcoders] Can Javascript Listen to Flash Events?

2012-05-22 Thread Paul Andrews
I think you're doomed if you don't have the fla. On 22/05/2012 16:43, Ted Lehr wrote: So I have a swf that needs to run locally and make an ExternalInterface.call ... I am unable to make settings changes to the users Flash Players ... so as of now it seems unpossible! My thoughts was to see

[Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Merrill, Jason
You would have to add code to the .swf, but yes, Javascript can listen for Flash events and vice versa. Jason Merrill Instructional Technology Architect II Bank of America Global Learning ___ -Original Message- From:

Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Matt S.
could you load the SWF into a shell, and add the FLV event listeners at the shell level? That would require knowing the name of the flv player within the SWF, but maybe you could figure it out with a decompiler? That's just a random idea, not sure if it would work... .m On Tue, May 22, 2012 at

RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
Oh - yes - I have the .fla... I just am running into issues when I try to have the swf call out to the javascript - I get the security warning from the player - so I am trying to figure out how to, instead of having the swf make a call out - maybe the javascript could just listen to the

RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
Sorry - my original post must have been confusing... This is an original .fla. My issue is that the resulting swf needs to run locally. Now it seems to me that when a swf is run locally on Flash Player that by default - the Flash Player does not like to to make calls outside of itself (i.e.

Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Paul Andrews
Just get a flash event handler to call a javascript function. You probably don't have the security setting for the project set right - network access only. Paul On 22/05/2012 17:06, Ted Lehr wrote: Oh - yes - I have the .fla... I just am running into issues when I try to have the swf call

RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ted Lehr
I cannot change security settings for the player - this will be used by a lot of people and I cannot go to each work station and change that setting... unless you are talking about some other setting... -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com on behalf of

RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Merrill, Jason
I'm assuming you've already read the capabilities and info listed here, but if not, check this out: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html?filter_flash=cs5filter_flashplayer=10.2filter_air=2.6 From that page: From ActionScript,

Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Paul Andrews
On 22/05/2012 17:36, Ted Lehr wrote: I cannot change security settings for the player - this will be used by a lot of people and I cannot go to each work station and change that setting... unless you are talking about some other setting... I was talking about the local playback settings in

Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Nathan Mynarcik
Would allowscriptaccess=always work in this situation? Perhaps the issue is deeper than that? On Tue, May 22, 2012 at 12:15 PM, Paul Andrews p...@ipauland.com wrote: Just get a flash event handler to call a javascript function. You probably don't have the security setting for the project

Re: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Ross Sclafani
Definitely do this Ross P. Sclafani Design | Technology | Creative http://www.neuromantic.com http://ross.sclafani.net http://www.twitter.com/rosssclafani 347.204.5714 On May 22, 2012, at 1:02 PM, Nathan Mynarcik nat...@mynarcik.com wrote: Would allowscriptaccess=always work in this situation?

RE: [Flashcoders] RE: Can Javascript Listen to Flash Events?

2012-05-22 Thread Chris Foster
I've got around the 'local security warning' issue in the past by running the content from a standalone webserver - check out Server2Go. You'll be able to fire off whatever ExternalInterface call you need. You'll have a pause of a few seconds while the server stats up, but otherwise it's a