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


Similar Posts:


Javascript :: ExternalInterface. Addcallback Works Locally, But Not On Server?

Nov 9, 2010

Mainly because I have it ALWAYS working locally, when I test in a browser, but the moment I deploy to a server it stops working.

I've added trace commands and confirmed that ExternalInterface is in fact available before adding the callback, and an alert command in the javascript method correctly identifies the flash object. I also checked and allowscriptaccess is set to 'always'.

Could it have something to do with the flash being served on a remote server?

View 1 Replies

Actionscript :: ExternalInterface.addCallback Only Working Locally, Not In Production

Jan 15, 2011

In my Flex app, I need a Javascript control to call one of my Actionscript methods. Simple enough, according to the Flex/Actionscript documentation, I wrote this in my Actionscript code:

if (ExternalInterface.available)
ExternalInterface.addCallback("setName", setNameInActiveWindow);
In the Javascript control I wrote:
document.getElementById('FlexAppId').setName(name);

Works great. Exactly as expected, so I went to production. But it doesn't work in production :(. Same exact code... I can't figure it out. The above Javascript code is run, but the callback is not executed in the Actionscript code.

[Code]...

View 1 Replies

ActionScript 3.0 :: Save Flash Data Locally From Locally Running .swf?

Jun 10, 2009

I want a user running a Flash game on his machine (not from a server) to be able to save some game data locally.From what I've read, there still isn't any way to do this, but I thought I'd throw it out there in case anyone knows a sneaky xml or php work around.

View 2 Replies

Flash :: Project Not Playing Locally

Dec 21, 2010

I have started a new fulltime job doing flash work (yay) and on my first two projects I keep running into a weird situation. For some reason the projects I create work just fine when tested on my development machine, but as soon as we try them on another machine in the office they will not work unless, we upload them to a webserver and view them from there.

I am working on and saving my files to a network drive on the server and can run them fine, but whenever anyone else with the same version of flashplayer and browser tries to run them off the same network drive they don't work? Now, I don't remember the exact error or problem with the first project, but on this second one I'm calling a function in a swf on a web page from javascript using AS3 ExternalInterface. On the other computers the browser reports a javascript error of "Object doesn't support this property or method" when once again, on my machine (and once posted online) works just fine. Also, before you start thinking it's a problem with ExternalInterface and  javascript my first project was not using ExternalInterface or javascript calls.

View 1 Replies

Cannot Load Flash On Server But Locally Fine

Jul 11, 2009

I'm converting a several-years-old all-Flash site for a friend. I can activate the site in any browser if all the files are stored on my local drive but when I FTP the files to a server and try to launch, I get an error indicating either that the server has timed out or that the process is taking too long. I suspect the problem is in the index.html file which refers to some very old locations where the Flash Player is probably no longer obtainable, but I'm not sure.
[Code] .....

View 1 Replies

ActionScript 3.0 :: XML Flash Works Locally But Not Online?

Aug 11, 2010

I made (or copied) this XML 3d Carousel: [URL]

I changed some settings, just what I needed like stage size, thumbnail size and so it doesn't spin too fast when mouse rolls over.

I replaced the images with my own, so I have like four now spinning around. It works fine when I hit Ctrl + Enter to test my movie and aswell the carousel.html works in the browser.

I uploaded all files (four images named c_img(number).png, carousel.xml, carousel.swf and the AC_RunActiveContent.js) all in the same folder to my website through FileZilla but the god damn movie doesn't work on the web. It just shows the background so it must be the images are not loading in correctly, but I can't find what's wrong. I've checked the file paths and they are correct, I don't use any cross-domains. Honestly I can't find the problem, it works on the tutorial site so why not on mine? I basically just copied all, nothing more.

I did notice a strange thing though. If I write the direct address in the browser address field [URL] so it loads in full screen, the image carousel shows but very far outside to the right of the screen. I used Firebug and changed the size of the flash movie so I could see far beyond, it's very f'ed up..

Direct link to it: [URL]

If you have Firebug, use it and change the size of the flash and you'll see the carousel to the right of the screen, outside the main flash content area. :/

View 5 Replies

ActionScript 3.0 :: Embeded Flash Only Works Locally?

Jul 4, 2010

I am new to flash and have created my first flash video, a simple set of fading photos for my website front page.I am using Flash, Dreamweaver and Fireworks all CS3, The flash video is embeded in the webpage and works fine in preview mode in Dreamweaver but does not appear at all in the uploaded webpage.The flash video works fine through the link on the webpage.I have uploaded the AC_RunActiveContent.js script to a scripts folder and to the folder where the webpage is and also the folder containing the flash video file.

View 8 Replies

Professional :: Can't Play Flash Movies Locally On Mac?

Oct 26, 2011

Im creating a website and when I test flash content in an html page locally on my mac, I get this annoying message

"Adobe® Flash® Player has stopped a potentially unsafe operation. The following local application on your computer or network: /Users/myname/Documents/Websites/mysite/version 1/site/Scripts/expressInstall.swf

is trying to communicate with this Internet-enabled location:fpdownload.macromedia.com

To let this application communicate with the Internet, click Settings.You must restart this application after changing your settings." 

Ive tried following the settings button and adding "/Users/myname/Documents/Websites' to local storage settings by site but no joy the content still wont play and every time I refresh or test the page I get the same message. I want to add the whole websites directory so I don't get this message again, when testing other sites pages and content.

View 1 Replies

Actionscript 3 :: Flash Record Sound Locally?

Apr 11, 2012

Using flex,As can we record sound from microphone and store locally and and upload later?

View 2 Replies

Flash :: Possible To Put The Flex Sdk Onto A Web Server And Reference It Locally?

Mar 8, 2011

I want to try and build a project locally with my project pointing to an external sdk (via webserver.)

View 1 Replies

Xml :: Flash As3 Open A File Locally (with FlashPunk)

May 8, 2011

Okay, so at the moment I am making a game in as3 with the FlashPunk framework. I have managed to set up ogmo editor to work with it, and the results have been good! I intend to send the ogmo project to some friends, so that they can make some levels for my game themselves. But I have run into a problem. I wanted my friends to be able to test the levels they make, so I set about trying to find a simple open file dialog solution, Sp that they can select the generated XML file (.oel), and then load it in to the actual game.

View 1 Replies

Flash :: AIR, Load Image Stored Locally?

Oct 4, 2011

I package an IPA file including some assets (images). Once installed, I want to load an image in my swf: which is the path of this image? How can I load it?

View 1 Replies

Flash :: Swf Plays Locally But Not From Ubuntu Web Server

Oct 17, 2011

I have an issue with swf file on ubuntu web server. I built my whole site locally and everything was fine. When I upload my site on my Ubuntu server and tried to see my site from my local browser, the swf file not loaded properly. It just shows the main image and is like AS3 don't runs.

View 1 Replies

Networking - Hosting Games Locally With Flash?

Jun 6, 2011

Is it possible to use Flash (or a Flash compatible service) to allow players in a game to host their own games (using their own bandwidth), through a web browser? In a way, to run their own game servers (for a Flash in-browser game) from their computer, but through a web browser using Flash?

View 2 Replies

Flash :: IDE - File Works Locally But Not On Other Computers

Jul 16, 2009

I don't know if anyone else has had this problem, but I've created a flash project that works fine on my computer locally. When I take it to another computer(I've tried 3-4), my keyboard events are not working. I used Actionscript 3 to create the file. I've checked to see that the other computers had the latest version of Flash player, but it's still not working on those computers. Does anyone know why my file may not be working? Is there a specific plugin/download I need to have to make my files work?

View 1 Replies

IDE :: Flash - Loads XML URL Images Locally, Not Online?

Jun 6, 2011

I have a flash project that uses an XML doc for data. The URL's in the XML load fine locally, but when published and placed online, they do not load. Is a policy file needed? If so, how do you do that?

View 1 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 :: Video Not Playing On Site But Plays Locally

Nov 26, 2009

So I am relatively new to Flash and After Affects but I managed to make a nice video with Adobe After Effects that my friend wanted to put on his site. After I was done rendering it I used Adobe Media Encoder to make the .avi file into a .f4v file for flash. After opening that flash file with Flash i exported it out into a .swf file. When I opened the .swf it played perfectly, just the way it should. I edited my index.html with Dreamweaver and the coding and everything seemed fine. After previewing the index.html with my browser and Dreamweaver's Live View I was quite satisfied with my results. When I uploaded the files onto my site the flash did not play. It plays locally on my PC but not on the site. I later asked a few more experienced buddies what was wrong and they confirmed that they weren't able to play the file locally nor from the site. At first I thought I may have mixed up the links but they were fine. Here is the code I used for my index.html page.

[Code]....

View 1 Replies

Professional :: Cannot Preview Flash Movie Files Locally?

Oct 27, 2010

I have created many flash video over the years so I definitely know how to embed an flv into flash. Also, it is very hard to screw up the import video wizard in flash so I have eliminated that as a potential problem. I haven't created a movie in quite a few months and yesterday I tried to create one. I used the wizard in flash to import the working flv and when i hit ctrl+enter to preview, a blank white screen showed up. When I right clicked, it said movie not loaded.  So I tried to use AS3 and netconnection to embed the movie. When I previewed it, the same thing happened. I then went to view one of my existing swf's that did not have a video and that did not work either. I searched and found the adobe flash player security preferences and changed settings and NOW I can view swf's that do not have video. I can ALSO view old swf's that have video embedded BUT as soon as I open the original fla file and press ctrl+enter to preview, the swf's DO NOT preview anymore

View 1 Replies

Flash :: Professional - Movie .works Locally But Not On Server

Jul 26, 2011

I created the movie in a new folder, so I owuld have all the files... fss.html, fss.swf and MinimaFlatCustomColorPlayBackSeekCounterVolMute.swf I uploaded all these to the server.....

[Code]....

View 5 Replies

Actionscript 3 :: CS5 Flash App Has Sounds When Run Locally But It's Mute When Run In A Server?

Oct 12, 2010

I'm making this small app in Flash CS5 using AS3. Sounds are being reproduced using flash.media.Sound and flash.media.SoundChannel. Locally , everything sound perfect, but when I run the game from a server it just goes mute.

View 1 Replies

Actionscript 3.0 :: Flash Works Perfect Locally But Not Online?

Jun 29, 2010

Im loading external swf into my main flash, the first two movies loads good but the last movie doesnt? here is my code:

Code: Select all
var swfLoader:Loader = new Loader();
fireworks.addChild(swfLoader);

[code].....

View 4 Replies

ActionScript 3.0 :: Flash - Share Objects Only Working Locally?

Sep 23, 2010

I'm having problems with Shared Objects. They seem to work on my machine but when I put them on a server they're not working anymore.Basically I have a page with a video player and I only want the video to play when the user visits the page for the first time.This is the code:

PHP Code:
var beenVisited:Boolean=false;var shared:SharedObject=SharedObject.getLocal("visited");if (shared.data.visits==undefined) shared.data.visits = 1; beenVisited=fa

[code]......

View 2 Replies

ActionScript 3.0 :: Flash Presentation Loading Locally But Not Online

Mar 21, 2011

I got this sweet minisite built in Flash that I'm going to load onto facebook for the fan page. Problem? I can't get the XML to load. I don't know the first thing about ActionScript, so I'm upp'ing a copy of the Source Files.

View 1 Replies

Javascript :: Linking Flash To OOP Using ExternalInterface?

Dec 6, 2009

I'm looking to call a flash method from a method in javascript and recieve a result:Example:Flash -

ExternalInterface.addCallback("getProgress", getProgress) // Javascript to flash
public function getProgress():void {
ExternalInterface.call("getProgress", progress); // Send progress back to javascript from

[code].....

View 1 Replies

Flash :: Get ExternalInterface Definitions In Script?

Jan 12, 2010

Is there a way to get a list of the exposed functions from a Flash object? For example, you could get a list of all methods in an object by executing[code]...

The only issue is that this won't expose any methods registered through the ExternalInterfaces API. I can try and see if the function exists (object['method']) and it tells me it is a function, but I would have to guess every existing method in this manner..

View 4 Replies

ShowPermissionDialog With ExternalInterface (facebook/ Flash)?

Mar 22, 2010

I trying to pomp showPermissionDialog for allow the user to post something in a friend Wall.I have the flowing javascript code:

<script type="text/javascript">
function showStreamPermissions() {
FB.Connect.showPermissionDialog("publish_stream", doResult);

[code].....

View 1 Replies

C# :: Communication Between Flash And C# Using ExternalInterface Without TLF Text

Jun 15, 2010

I'm communicating from a flash application using a command like the following: ExternalInterface.call("hello", "world") This is handled on the C# end by something like:

[Code]...

The axFlash_FlashCal is called fine, as long as there is a textbox on screen that's set to use TLF text. (any textbox will do, no specific ID). Without the textbox the even will not fire. (Even though ExternalInterface.Avaliable is set to true) I've tried using CS4 and CS5 to publish, using both Flash 10 and 9 as output.

View 1 Replies







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