Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Dan Efergan

I'm working with the ExternalInterface Class right now,

It seems to be working ok, but I am having a particular problem. Can  
anyone who's used both point out any differences between the  
ExternalInterface Class and the Integration Kit? Or was it just a pre  
Flash 8 solution?


My problem, in case you can also help with this (Should I be posting  
this in a separate post?):


My first call from Flash to Javascript (using ExternalInterace)  
initiates a Javascript Object, this works happily and returns it's  
name to prove it's existence.


The second call tries to refer to a method within that Object, using  
the same interface.  This fails from Flash, but works when called  
from a HTML link (which invokes a Javascript call).


Does ExternalInterface allow you to make method calls to an Object?  
If not does the JS/Flash Kit?


basic calls made are:

(First Call -Working, creates a JS Object)
var javaObj:String = "jsHistory"
var attempt:Object = ExternalInterface.call("initSubscriber", javaObj);

(Second Call - Not working, attempts to call JS Object method)
var attempt:Object = ExternalInterface.call 
("jsHistory.loadNextBookmark")


Thanks

On 12 Jun 2006, at 16:29, Mike Britton wrote:


I recommend going with ExternalInterface.  No external files needed:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/ 
html/wwhelp.htm?context=LiveDocs_Parts&file=2200.html


However the kit is good and definitely works!

Mike


Dan Efergan
[EMAIL PROTECTED]



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Mike Britton

I recommend going with ExternalInterface.  No external files needed:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=2200.html

However the kit is good and definitely works!

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Ian McGregor
I would recommend looking at the Mustard Lab js integration tutorial as a start:

http://www.mustardlab.com/developer/flash/jscommunication/

Similar to the MM one, but much more simple and very easy to get working.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rick Root
Sent: 12 June 2006 15:29
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash and Javascript Interaction


Josh Santangelo wrote:
> Tried the integration kit yet?
> 
> http://weblogs.macromedia.com/flashjavascript/

No I hadn't because I didn't think all that was necessary.. but trying 
it now.

I don't understand part of the installation instructions ... it says to 
copy the libraries to my flash authoring classpath.

But I don't have a clue as to where that is.

W:\public_html\cfopenchat\demo\flashjs\FlashJavascriptGateway\docs\readme.html

Where should I put those files?  Where is my "class path"?

Rick

> On Jun 9, 2006, at 6:55p, Rick Root wrote:
> 
>> I posted this to cf-talk but decided this was probably a better  place 
>> to post it...
>>
>> I'm trying to "play" a flash movie with javascript.  This *SHOULD*  
>> work but it does not.  Can anyone tell me why?
>>
>> http://www.opensourcecf.com/cfopenchat/demo/door.html
>>
>> When you go there you'll hear the sound of a door opening (if you  
>> have flash and sound enabled).
>>
>> When you click "Play Door Sound" the javascript should replay the  
>> flash movie, but it doesn't and I can't figure out why.
>>
>> Rick
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Rick Root

Dave Mennenoh wrote:

Where should I put those files?  Where is my "class path"?



Edit > Preferences > Click the ActionScript 2.0 Settings... button


Thanks, I'll put that somewhere for future reference =)

Rick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Dave Mennenoh

Where should I put those files?  Where is my "class path"?


Edit > Preferences > Click the ActionScript 2.0 Settings... button



Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Rick Root
Oh I figured it out (I guess).. I added an import statement and it works 
now.


http://www.opensourcecf.com/cfopenchat/demo/sounds.html

Rick
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-12 Thread Rick Root

Josh Santangelo wrote:

Tried the integration kit yet?

http://weblogs.macromedia.com/flashjavascript/


No I hadn't because I didn't think all that was necessary.. but trying 
it now.


I don't understand part of the installation instructions ... it says to 
copy the libraries to my flash authoring classpath.


But I don't have a clue as to where that is.

W:\public_html\cfopenchat\demo\flashjs\FlashJavascriptGateway\docs\readme.html

Where should I put those files?  Where is my "class path"?

Rick


On Jun 9, 2006, at 6:55p, Rick Root wrote:

I posted this to cf-talk but decided this was probably a better  place 
to post it...


I'm trying to "play" a flash movie with javascript.  This *SHOULD*  
work but it does not.  Can anyone tell me why?


http://www.opensourcecf.com/cfopenchat/demo/door.html

When you go there you'll hear the sound of a door opening (if you  
have flash and sound enabled).


When you click "Play Door Sound" the javascript should replay the  
flash movie, but it doesn't and I can't figure out why.


Rick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash and Javascript Interaction

2006-06-10 Thread Josh Santangelo

Tried the integration kit yet?

http://weblogs.macromedia.com/flashjavascript/

-josh

On Jun 9, 2006, at 6:55p, Rick Root wrote:

I posted this to cf-talk but decided this was probably a better  
place to post it...


I'm trying to "play" a flash movie with javascript.  This *SHOULD*  
work but it does not.  Can anyone tell me why?


http://www.opensourcecf.com/cfopenchat/demo/door.html

When you go there you'll hear the sound of a door opening (if you  
have flash and sound enabled).


When you click "Play Door Sound" the javascript should replay the  
flash movie, but it doesn't and I can't figure out why.


Rick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash and Javascript Interaction

2006-06-09 Thread Rick Root
I posted this to cf-talk but decided this was probably a better place to 
post it...


I'm trying to "play" a flash movie with javascript.  This *SHOULD* work 
but it does not.  Can anyone tell me why?


http://www.opensourcecf.com/cfopenchat/demo/door.html

When you go there you'll hear the sound of a door opening (if you have 
flash and sound enabled).


When you click "Play Door Sound" the javascript should replay the flash 
movie, but it doesn't and I can't figure out why.


Rick

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com