ActionScript 3.0 :: ExternalInterface And Wmv Player?

Jan 28, 2009

I have a problem in the communication between as3 and javascript: simply I want to use a flash movie in the same page where I included an wmv object player. When I try to invoke a function on JS (from as3) I note that all the normal playstate and commands to handle the wmv player are inverted. (for example the movie is playing the variable document.Player.playstate is set to 2-paused and so on). Even further I figured out I have big problems in fullscreen/set volume commands. Does anyone face this problem too? Where can I find useful links?

View 0 Replies


Similar Posts:


ActionScript 3.0 :: JS ExternalInterface Calls Crashes Flash Player

Jun 11, 2009

We build a flash application in ActionScrip 3 which provides JS external interface calls. We load another swf on our swf. If we don't enable external swf, any JS calls through external interface works fine. However, if external swf is active, at some points when there is any JS calls through external interface, Flash player plugin crashes which also bring down the whole browser, I see that on IE and FF.

what may cause external interface call to crash Flash plugin?

View 3 Replies

Javascript :: Hide And Show Flash Video Player With ExternalInterface?

Mar 1, 2011

I'm trying to create an overlay containing a flash player that is shown when a user clicks on a link. The div containing the player starts with display:none in CSS. Upon clicking, the div will be shown, and JS will use ExternalInterface to configure and start the player. The JS configures the player when it catches a "flash ready" event, which is fired by Flash on ADDED_TO_STAGE.All this works, except that the ExternalInterface callbacks are never created. The JS and AS3 work fine if the player is shown upon page load, or is hidden with visibility:hidden instead of display:none. I am aware that Flash will not be initialized with display:none, and this works as expected: when the Flash is unhidden, it fires its events and correctly initializes everything else (eg. GUI, other internal stuff). The only thing that doesn't happen as expected is that my ExternalInterface callbacks are not added.

ExternalInterface.available is true. It's not a timing problem, because even after several minutes the callbacks are still not present. The strangest bit is that the flash is able to call JS, fires JS events fine, and the code to fire the events comes after the code to add the callbacks. There are no errors thrown by any of the AS3 code. I'm seeing this problem in both Chrome and Firefox.

View 2 Replies

ActionScript 3.0 :: Force Flash Player To Lose Focus (probably By A Hack) Without Using ExternalInterface?

May 21, 2010

I need to be able to make the flash player lose focus to the browser by actionscript alone (when the user clicks a button) or whatever, but from within the flash player, not from the user actually clicking outside of the flash player.These are embedded flash files with allowScriptAccess="never", so I can not use ExternalInterface at all to call browser js to window.focus or whatever.

View 0 Replies

ActionScript 3.0 :: Flash StageAlign.BOTTOM, A BUG In Fl Player 9 When Calling ExternalInterface For Resizing?

Nov 23, 2010

This is definitely a huge BUG in flash player 9.Here is some info if someone had run into similar problem?If I try to align flash to: StageAlign.BOTTOMorStageAlign.BOTTOM_RIGHTr
StageAlign.BOTTOM _LEFT and then if I try to resize my flash using externalinterface which will call outside JS that resize div around it, you`ll get flicker effect on your flash.However, if I align Flash to: StageAlign.TOPorStageAlign.TOP_RIGHTorStageAlign.TOP_LEFTand then use external script for resize, everything works fine.

View 1 Replies

ActionScript 3.0 :: Control A Flash Video Player With External Javascript Commands Using 'ExternalInterface.addCallback'

Mar 26, 2009

I'm trying to control a Flash video player with external Javascript commands using 'ExternalInterface.addCallback' but I'm not having any success. Here is the HTML code:

[Code]...

View 1 Replies

CS4 - ExternalInterface & FireFox V3.013?

Aug 19, 2009

I've spent about a day on this... Publishing a swf for AS3/FP9, following the example in the ActionScript 3 documentation to get two-way communication between a SWF and javascript. Works great in IE.

I've sifted through what seems like a million posts on the subject, with people getting the same result... the function I/they are attempting to call doesn't exist.

In the documentation example, there's a function to find/return either the SWF as an object or embed tag depending on which browser you're viewing the page in.

[Code]...

View 1 Replies

ActionScript 3.0 :: ExternalInterface On IE?

Dec 1, 2009

I'm trying to use ExternalInterface to expose functions of my as3 code to javascript. It is working very well, following the Flash CS3 help on Firefox and Chrome browsers, however on IE 8 things are getting hard...
 
At my HTML page I used the help-suggested functions to confirm the connection between js and as:

[Code]...

View 3 Replies

ExternalInterface To Work With VB.NET?

Apr 15, 2012

I just had this conversation with a colleague and I am now turning to the SO community to provide evidence based on fact, not opinion, as to which tool would be ideal to grow into in the current programming environment. Director or Flash?I am deciding if I should stick with Flash or bother learning Director 11.5. He want to know if he should stick with Director or learn Flash. No, we don't work together. Hehe..

EDIT:

I've gotten ExternalInterface to work with VB.NET, hence the need for Director in the context of its ability to do File System IO and "non-flv" video are eliminated. No if only VB could do the kinds of animation that Flash could do, I could turn towards being a "real" programmer...

View 4 Replies

ActionScript 1/2 :: ExternalInterface With Grabbing URL?

Nov 13, 2009

I have a flash menu that needs to play a different scene depending on which page it is embedded into. So I need the it to grab the URL of the html page it is on and do some simple test on it to figure out what scene it should be on. *For the record, I tried to do it without scenes but the frame jumping started doing some cracked out things

Code: (on a single empty frame in Scene 1) import flash.external.ExternalInterface; var urlPath; urlPath = ExternalInterface.call("window.location.href.toStr  ing()"); getURL("javascript:alert('"+urlPath+"');"); if (urlPath == "http://www.awesome.com/Portfolio/portfolio.html"){ gotoAndPlay("Scene 3", "portfoliopage"); } else if (urlPath ==

[code]....

Somehow, my urlPath isn't getting the correct value, and therefore the if-else latter isn't functioning appropriately. I am posting the website on my test server, so the http addresses are correct, and the if-else latter functions perfectly when I just change the conditions to 'true'/'false', so neither is the problem. The problem is that the alert shows me that the value of urlPath is undefined, and so then all conditions in the latter evaluate to false.

View 5 Replies

ActionScript 3.0 :: ExternalInterface Not Working?

Jul 21, 2011

I'm using Flash Professional CS5 with AS3. I have this line of code:ExternalInterface.call("alert", ev.target.data);Nothing happens. I've tried IE7, FF5, Opera and Safari. Nothing.My import is: import flash.external.ExternalInterface;If I use trace(), I get the proper feedback (but only in my test movie, NOT my swf).

View 10 Replies

Flash ExternalInterface.call In IE

Feb 21, 2010

I am having an issues with ExternalInterface.call to return a value in IE. It is working fine in Firefox. Eventhough I changed the "allowscript access" to "always", still it is not working. Is there any thing that I need to change in Flex or the HTML to make this work? or this is a security setting in IE?

View 1 Replies

Javascript :: Flash - Get A VAR With ExternalInterface?

Nov 5, 2010

I am trying to use the ExternalInterface.call function in my ActionScript(2.0) to get a javascript var value set in the wrapping document. The following seems to work in FireFox and in Chrome but, naturally, it does not work in IE(8). getting the value stored at this variable?

var linkPath = ExternalInterface.call("function(){return window.customLinkLocation;}", null);

[Code].....

View 5 Replies

Flash :: Way To Use ExternalInterface Locally

Oct 11, 2011

The problem is this: I have an swf embedded in an html. I must call a js function in the page from the swf via ExternalInteface. Ok. But it must work locally, for any user, without doing nothing. That's because this thing must be distributed in cdroms.

View 4 Replies

Javascript :: ExternalInterface Not Working In Ie9

Feb 6, 2012

I am having problems with External interface and IE9. The swf objects play fine but none of the information input is transferred to the cookies that should be set. I have seen that there are other questions similar to this but have not been able to solve my problem using them. THis is the html we are using

<div id="flashcentre">
<object type="application/x-shockwave-flash"data="http://workingflashlink" width="600" height="450">

[Code].....

View 1 Replies

ActionScript 3.0 :: ExternalInterface.addCallback?

Feb 11, 2009

I have been trying to get this working for a while now and am at the end of any ideas or samples.In 2.0 it was setVariables and was not problem.But now I'm trying to get ExternalInterface.addCallback to work and just can't seem to get it to work.Just want to send a variable from javascript to actionscript class.Ok, here is the javascript:

Code:
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];[code]....

I have been trying to get this to work but with no luck.It's in a .Net aspx page. Even stripped the page of everything but this with no luck. And no master page either or ajax.

View 3 Replies

ActionScript 2.0 :: Get Browser URL Using ExternalInterface?

Nov 10, 2009

I am going to use ExternalInterface to get the url from the browser and I wanted to know before I implement it, if there are known issues using this before I implement it?

Here's an example from Adobe but I want to make sure there are no issues as I am on a super tight deadline and cannot afford to come back to this.[url]...

View 0 Replies

ActionScript 3.0 :: ExternalInterface And AC_FL_RunContent?

Jun 25, 2010

ernalInterface in an application to insert data into the swf using javascript.But, I have a problem and I dont know how to face it.The only way that ExternalInterface works is if I use "<object classid=" etc...But I need a way to detect the users flash player, because my app need at least Flash Player 10Flash Player CS4 has an option called "Detect Flash Player". It is perfect. Do what I need but if I use it ExternalInterface doesn't work, because the swf file is embed to the page using the code bellow.

Quote:
AC_FL_RunContent(
'codebase',

[code]......

View 3 Replies

ActionScript 3.0 :: ExternalInterface Not Working In Ie9

Sep 15, 2011

I have a very simple ExternalInterface.call in my flash that isn't working in IE9. I have ever simplified it is just call a javascript alert and it still isn't working. It works great in every other browser. I have IE 9.0.8. Does anyone know if this is this a known bug in IE9, or if there would be a good alternative to ExternalInterface? I can't find anything on the internet that is working.

View 2 Replies

ActionScript 3.0 :: Use ExternalInterface Without Server?

Jan 18, 2012

I'm doing a simple flash application. I'm going to run my swf in an sdk. the sdk doesn't have apache server.. So i've to call javascript using externalInterface without server (even local server).

View 9 Replies

ActionScript 2.0 :: ExternalInterface.addCallback?

Jan 8, 2007

i have a flv movie and i need to be able to stop it through javascript. so i found out that i need to use ExternalInterface.addCallback

View 3 Replies

ActionScript 2.0 :: Closing Swf From ExternalInterface?

Sep 3, 2008

[URL]..Above is a link to a component I'm working on. I've overlayed one swf with another swf which is going to display a sort of advertisement slide. What I'm trying to achieve is that when the adbanner (id="mediabanner") reads an xml file and reads "false", it then calls the ExternalInterface function "hideFlash" and in turn closes the swf so that the swf beneath it can be seen.

Could someone view the page source and let me know what I am doing wrong? The hideFlash function is being called, but its not actually hiding the swf.

View 2 Replies

ActionScript 2.0 :: ExternalInterface.addCallback In IE?

Jan 30, 2009

This is so frustrating...I'm going to do my best to be concise here, so forgive me if I leave too much out.I'm also going to try to simplify so I don't get bogged in details. I have a set of html pages that guide you through a tutorial. The different pages are REALLY just one big page that has divs hide and unhide as you go through the flow via previous and next buttons.

There are 4 pages which play a video clip. Each video clip .swf contains an FLVPlayback component that plays an .flv, and uses an .swf skin file. All these things play fine. If you're watching a video and you click "NEXT" the sound is still playing because of course you're still on the same page. So we looked into it and found out about the whole ExternalInterface.addCallback thing.

[Code]...

View 1 Replies

ActionScript 3.0 :: ExternalInterface.objectID?

Jun 2, 2009

Code:
ExternalInterface.call('alert', 'objectID: ' + ExternalInterface.objectID);
the alert says "objectID: null" --

[code].....

View 8 Replies

ActionScript 2.0 :: Log Every ExternalInterface Call?

Nov 20, 2011

I'm wondering if you guys know a way to log every data coming to a flash 8 swf from its container?

I know that it is a bit weird, but I'm trying to figure this one out. Maybe one of you already faced a similar situation?

View 3 Replies

ActionScript 2.0 :: CS4 ExternalInterface Passing Variable

Mar 4, 2010

i send variables to flash inside the html document:[code]inside flash i can print the variables as dynamic text, its working fine. but now i want to use one of this variables to be sent inside a "ExternalInterface.call" after pressing a button. [code]i tried many ways, but nothing works. i realy wonder how i can pass my variables.is there anyone who could tell me how to set the variables in the right way? in another forum they said its not possible?

View 5 Replies

ActionScript 2.0 :: ExternalInterface And Ajax, Old Xml Loads Not New?

Mar 23, 2010

I've used ExternalInterface.call for an onclick flash event to load some xml with XMLHttpRequest. the xml loads. but if i change the xml file on the server, the old xml file loads for the client, not the new one. i believe the problem is that the browsers are caching the results. i heard that this could usually be fixed by returning false from ur JavaScript onclick handler. but i dont have a JavaScript onclick handler, i have a flash onclick handler.

View 6 Replies

ActionScript 3.0 :: ExternalInterface Always Return Null From IE?

Jun 12, 2009

I copied following code from the ExternalInterface example to my flash:
 
if (checkJavaScriptReady()) {
console.appendText("Javascript is ready.
");
} else {

[Code]....

View 6 Replies

ActionScript 3.0 :: Call C++ Functions Using ExternalInterface?

Oct 20, 2009

I am trying to call a C++ function from actionScript3. using Programming ActionScript 3.0 > Using the external API > Using the ExternalInterface class > Calling external code from ActionScript,  I could call function from JavaScript .
 
it will be good if i could call C++ functions directly from Action Script.

View 2 Replies

ActionScript 3.0 :: ExternalInterface Made Available Offline?

Feb 23, 2010

I am developing a Flash application that will be made available for both online and offline (via DVD).Opening the HTML through the web presents no issues. However, if the HTML file is opened locally, Flash Player security stops the application from communicating with local HTML files unless the Flash Global Security Settings is set.How can I allow the Flash application to run properly locally without setting the Security Settings of the FP.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved