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


Similar Posts:


URL Of Servlet In AC_FL_RunContent?

Nov 16, 2009

The instructions I read for using AC_FL_RunContent, say to leave off the file extension of the swf file, e.g.: AC_FL_RunContent(..., 'movie', 'some'); So that it will embed some.swf. However, I need to serve the swf from a servlet, e.g. /blah/SomeServletName. How can I do that? I tried changing the javascript of AC_RunActiveContent.js, so it doesn't manipulate the file extension. In other words, so I could use:

AC_FL_RunContent(..., 'movie', 'some.swf'); But, it displays nothing if I use the servlet path, instead of a path that looks like a file name, e.g.: AC_FL_RunContent(..., 'movie', '/blah/SomeServletName');

View 1 Replies

ActionScript 3.0 :: Passing Arguments With AC_FL_RunContent()?

Jun 9, 2009

I need to pass some value, say 'name=john', from html to actionscript.I am now using AC_FL_RunContent as;

AC_FL_RunContent(
"src", "newFile",.... );

here the movie is mensioned as 'newFile'.. how do pass the value 'name=john' to the actionscript code.what I need is something equivalent to "newFile.swf?name=john".

View 1 Replies

ActionScript 2.0 :: Passing Query String Using AC_FL_RunContent?

Feb 3, 2009

How you pass a query string using the AC_FL_RunContent? in the old days you would do something like move.swf?isOn=something;How is that done today using the AC_FL_RunContent.

View 1 Replies

ActionScript 1/2 :: AC_FL_RunContent Playing SWFs Fine On One Server But Not Another

May 14, 2009

I have a web site with HTML files playing SWF movies using AC_FL_RunContent. ALL the SWFs play correctly on one server and my local PC, but only SOME of the SWFs play on another server.  The files are exactly the same, as I copied them from a working server to the partially working server.
 
why the one server will only play some of the SWFs?

View 7 Replies

Asp.net :: Unable To Set Relative Path For Flash File In MVC Using AC_FL_RunContent

May 6, 2010

I have a website using asp.net mvc in which I need to embed a flash file in view. I am unable to set the relative path for the flash file. Given below is the code I am using:

AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
'width', '487',

[Code].....

where I copied butterfly.swf in a directory called images. images directory resides in the views folder.

If I use code behind( default.aspx default.aspx.cs) in a different solution with the same folder strucuture, browser is able to load the flash file.

View 1 Replies

Actionscript 3 :: Embedding Flash Using AC_FL_RunContent Slighlty Crops In IE8 Only

Aug 18, 2010

Has anyone encountered a bug when using AC_FL_RunConten to embed flash? In IE8 it seems that the flash is slightly cropped on all 4 sides.

View 1 Replies

Javascript :: Make Video Auto-start With AC_FL_RunContent On IE?

Mar 21, 2011

I'm using the following code to run a video on our website. Example: [URL]

how to make the video autostart on IE?

It works on Firefox and Chrome.

<video width='500' height='282' autoplay="autoplay" controls="controls" preload="none">
<source src='$h264' type='video/mp4' />

[Code].....

View 1 Replies

ActionScript 2.0 :: Assign A Color Those Labels In The "AC_FL_RunContent" Script In The Html Page

Feb 4, 2009

1. I have a collection of text input fields and each one has a label next to it. Right now those labels all appear in black. How do I get them to display in white so they are readable on a dark blue background. Can I assign a color those labels in the "AC_FL_RunContent" script in the html page or does it have to be done in the fla? If it has to be done in the fla can you describe the steps I need to take.

2. I have to pass a URL with getURL which is functioning BUT, I need to append a series of parameters so it looks something like this

Code:
getURL("http://mymail.playourvideo.net/forwardvm.php?acct=the valuse of the acct textfield instance");

I've tried doing this for each parameter in the function that fires when I click the Send Button it's obviously the wrong approach.

Code:
function doSendButton()
{
_root.acct.text = acct;
_root.sname.text = sname;

[code]...

View 11 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 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

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 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







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