Javascript :: Flex - Works On Bin-debug, But Not On Deployed Server?

Feb 18, 2010

My Flex application is successfully calling functions in a JavaScript file through the ExternalInterface class when these are in the bin-debug folder and the JS file is located in the same directory as the Flex app.But when I test the Flex app on the server, it is not interacting with the JavaScript. The only difference I can find is that on the remote server the JS file is being pulled in from a URL, instead of locally. The JS file URL is in the same domain as the Flex application, therefore I don't think this is a cross-domain issue. What am I missing?

View 2 Replies


Similar Posts:


Actionscript :: Adobe Air Native Process Only Works In The Flash Environment But When Deployed Get Error #3219

Jul 30, 2011

I've been trying to use ffmpeg with an air app that I made in flash cs5.5. I have it so that ffmpeg.exe needs to be located in the directory where the air app is installed (File.applicationDirectory.nativePath). For some reason this only works when I run the program through the flash dev environment. But when I actually deploy the app, I get error #3219:The NativeProcess could not be started. ffmpeg.exe is located in the same folder.

I actually don't know the full message that it gives...not sure what the property of the error that will give me that message when I catch it. All I know is that it's error 3219. Would this be a profile issue? If i didn't have the extended desktop desktop profile, I don't think I would be able to get this error, I'd get a profiling error wouldn't I? I've disabled user access control as well...I'm using windows 7.

View 2 Replies

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

FLV / F4V Video Player Not Appearing When Deployed On Server

May 26, 2011

I've imported a video into Flash and have selected a skin for the video player.When I test on my local machine the video controls (skin) display and function as they should.But when I load the upload the .flv to the server, then re-import into Flash and select video deployed on server, publish, upload to server and and test the movie, the video plays fine but the video controllers are not appearing.I am using the html that Flash(CS5) created in the Publish Settings. I've different player skins with the same result.I've tried importing both .flv and .f4v's with the same result.

View 1 Replies

Flash - OSMF Player Stops Working When Deployed Onto Apache Tomcat Server?

Dec 28, 2010

I downloaded OSMF Sample player and opened osmf.html, (C:playerosmf.html)it worked perfectly without any problem.The same file when I deployed onto tomcat server,[URL] I get the error "The specified capability is not currently supported" while debugging.

View 2 Replies

ActionScript 3.0 :: Debug Stops Works?

Nov 24, 2008

I use Flash debug local and remote without any problem.Today I update Flex and I deselected the options "update flash 9".Then I go to debug a project in Flash CS4.But now debug doesn't works.I reinstall flashplayer_10_ax_debug.exe and nothing change.When I run in browser the menu option "Debugger"(right-click) doesn't appears.

View 1 Replies

ActionScript 3.0 :: Flash App Works In Debug, But Not Swf?

Jul 27, 2009

When the loader finishes, it send the data to a plotter function. the plotter function clears the graphics in a shape called graphLine.It then draws a line from one plot point to another using the lineTo function.Basically ever 3 second it makes this request and redraws the screen and updates the value of a textfield to the current y value. In flex builder 3, it works great in debug mode. The screen updates just fine. However, when I make the release build and test it out in a browser, it loads the data fine, but will not draw it until I stop the graphing process.Here's the code for the graphing function

Code:
public function graphData(data:Array):void
{

[code].....

View 0 Replies

ActionScript 3.0 :: Works Fine In Debug But Not When Published

Jun 7, 2010

I have simple navigation code setup to step through frames (I'm using Flash instead PowerPoint--too many pictures that are PSDs and illustrations that are AIs to do the conversions over to something PowerPoint understands).[code]When I test it using the debug (Ctrl+Shift+Enter) it works fine.When I publish it, the up and down arrows work but the Home and End keys do not work.They do nothing, no error messages, nothing.Using Flash CS4 Pro 10.0.2 ActionScript 3. Windows 7 64-bit.

View 1 Replies

Javascript :: Flex ExternalInterface Not Firing In Safari (works Everwhere Else)?

Aug 7, 2010

I know there have been other questions on getting JavaScript / Flex ExternalInterface to play nicely, but I've what I think is a weird one. It works perfectly in every browser except Safari (on a Mac). Chrome, IE, Firefox - all ok, but Safari, nope it just wont fire.I've copied my code below, can anyone see why it doesn't work in Safari pls ?(the 'are you sure' dialog window appears in Safari but the method in the Flex app just doesn't get called)

Flex code :
if(ExternalInterface.available){
ExternalInterface.addCallback("flexShutdownHandler",flexShutdownHandler);

[code].....

View 1 Replies

ActionScript 3.0 :: Fullscreen Doesn't Work - Fscommand Works Only When Debug Fla

Aug 23, 2011

I prepared a footer for a website and have the following issue:There are two buttons on footer bar that interests us. One is fullscreen - clicked activates fscommand function. But fscommand works only when I debug my fla. Otherwise, nothing happens. There's an additional variable that shows if fullscreen is active - nothing happens.There's also a "coder" info. I wanted to use navigateToURL function for "mailto:..." adress, but nothing happens, even if if changed it to [URL] adress. Also debugger doesn't activate it.I tested it in browser, completely nothing happens. There's the code, works without any "addons":

[Code]...

View 7 Replies

Actionscript 3 :: MouseWheel Trace Works In Debug Mode, Not Test?

Jul 17, 2010

Here is my code in its entirety. It won't trace when I Test Movie, but when I debug, it works fine.

import flash.events.*;
function scrollWheelHandler(e:MouseEvent){
trace(e.delta);
}
stage.addEventListener(MouseEvent.MOUSE_WHEEL, scrollWheelHandler);

I hate flash. This is in a new project btw. wtf is going on?

View 2 Replies

Flex :: Deployed SWF Not Accessible In Firefox?

Nov 15, 2010

I'm using swfobject.js to deploy load my flex applet. Unfortunately, while I'm able to run/debug in Firefox via Flash Builder, I cannot access the deployed applet via its URL -- the applet doesn't load/start. I can access the deployed applet via its URL from both IE 8 and Chrome 7. Below are the swfobject code and the produced object tag:

<script type="text/javascript">
window.onload = function() {
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
var swfVersionStr = "10.0.0";

[code]....

View 1 Replies

Actionscript 3 :: Flex Web Application Resize Method(and Scale X / Y) Not Working On Server But Works On Local Flex Builder

Oct 18, 2011

I have a quite different problem with resizing. I have a Flexbook component which uses the middle part of screen (center) with a html header menu and footer. The problem: The scaling works perfectly when we run in the local machine ( Flexbuilder). But when we deploy it to the server its like scaling never existed.. The requirement: when user maximizes the window or minimizes it, the Flexbook should be resized to fit the screen.

[Code]....

View 1 Replies

Media Server :: Debug Server Side Code?

Nov 15, 2011

I am developing an application using Flash Media Server 4. I am calling some server side methods and response is an error while executing. How can I debug my server side script to watch exactly what is the error? I am unable to access its log also...I have administrator username and password too but everytime it fails to login on administrator due to invalid username or password.

View 1 Replies

Actionscript 3 :: Deployed Flex Applet Not Processing Web Service Results

Nov 20, 2010

When I test my deployed app in a browser the popup window continues to be displayed even after it should be closed. Everything works as expected when debugged in Flash Builder 4.

Following is currently what's happening: the request is sent to my restful web service, which processes the request, (seemingly) the ResultEvent is called which in turn dispatches the profileEvt dynamic event that changes the view state. However, the popup window does not get closed and the applet gets 'stuck.'

Below are the flex applet web service event listeners/handlers:

webService.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void
{
var rawData:String = String(event.result);
var profileEvt:DynamicEvent = new DynamicEvent("profileSaved", true);

[Code].....

View 1 Replies

ActionScript 3.0 :: JavaScript Alert In Debug The External File?

Dec 1, 2011

Is there any way to debug the external AS file as i dont want to use "trace".I have an idea to use the input text field the check the variable/function is working right but this is not enough so is there any process in AS2 or AS3.

View 2 Replies

Flex :: 'Root Folder' Name In Flas Builder 4.5 If Java Web Application Is Deployed In War File?

Nov 13, 2011

I am trying to develop one simple application using Java, Flex and Blazeds. I am using Flash builder 4.5, blazeds 4 and JBoss 6.I have created 'Dynamic Web' application in Eclipse, added blazeds related file in WEB-INF/lib and in WEB-INF/flex folder. I have deployed this web application in JBoss using Eclipse, so this application is getting deployed in war file.Then I tried to create new 'Flex Project' using flash builder 4.5 and I am stuck in 2nd step where we have to configure Root Folder, Root URL and Context Root.As my java web application is deployed in war, there's no folder to which I can set Root Folder.

View 1 Replies

Actionscript 3 :: Flash App Freezes In Production Flash Player 11, But Works As Expected In Debug Version?

Nov 25, 2011

I've just stumbled upon a case when Flash app freezes in production Flash Player and works smoothly in a debug version. It doesn't throw any errors or exceptions. Has anyone ever encountered anything like this? Why is it happening or how one is supposed to debug in such case?And a side question - what exactly is different in debug version from internal point of view? Any good writeup on the topic?

UPDATE:I didn't mention, but the trouble is with Flash Player 11, it probably matters, cause Flash Player 10 doesn't have any problems with the same code.

View 1 Replies

ActionScript 2.0 :: Upload File Which Works In Php4 Server But Dont Work Inphp 5 Server?

Jul 15, 2010

i have used the following code to upload file which works in php4 server but dont work inphp 5 server.The flash code is as follows:

import flash.net.FileReference;
import gs.TransformManager;
//Allow this domain[code]....

i am uploading the php file.

View 1 Replies

ActionScript 3.0 :: Flash Could Not Connect To The Debug Player - Debug Session Will Terminate?

Apr 29, 2011

In CS5 I get the above message. I need to debug so it's very important. Anything I need to do?

View 2 Replies

ActionScript 2.0 :: Javascript Works In Preview Only

Apr 3, 2006

I am using this script for a centered popup-window:

<SCRIPT LANGUAGE="JavaScript">
function Copyright()
{
� �var padding;

[Code].....

When I preview it out of Dreamweaver it works great in all browsers except IE; when I upload the .html file it is not working at all in no browsers.

View 1 Replies

IDE :: Debug Mode No Longer Providing Debug Info?

Dec 21, 2009

When I first downloaded Flash CS3 Professional, I was able to enter an exceedingly useful debug mode by compiling using ctrl+shift+enter instead of ctrl+enter. I could toggle break points, step in, step over and view values stored in variables at a whim.

I must have accidentally toggled some option somewhere, because this interface no longer shows up. Instead, the only extra interface I get is the output menu with the following text "Attemping to launch and connect to Player using URL <file path> [SWF] <file path> - 71984 bytes after decompression" and while the swf does halt if the as3 code reaches a break point, it doesn't tell me which break point nor give me any options to progress the flow (not even through the pull down menu I have to utilize in order to end the so called debug session).

View 2 Replies

Javascript :: Access Flash Movie From JS Works In FF But Not In IE?

Dec 29, 2009

I am setting up a Flash based MP3 player control (The standalone version of WordPress Standalone Player). I have a situation of multiple windows with players open. One window opens the other, so I have the window.opener property available. When the child window is opened, I want to programmatically mute the audio player in the parent window.

This works in Firefox, but not in IE 7 and 8. I know little about Flash/Javascript interaction and I'm stuck. I am not getting any error messages. To do this, the player SWF object has a setVolume() and close() function. These functions are not defined anywhere in Javascript so I guess that those are provided by the Flash object. This is supported by the following lines I found in the Flash source code of the player:

[Code]...

View 1 Replies

Flash :: Javascript - Checking The Version Does Not Works For Mac

Aug 3, 2011

I want to check for a proper flash version installed, if the user does not has it, prompt him/her to do so. My code works fine in Windows platform, but not on mac. explain me what should I do to fix the issue. My code for html is given below:

[Code]...

View 1 Replies

ActionScript 3.0 :: Getting Return Value From Javascript Won't Work In IE - Works In FF

Jul 14, 2009

Whenever I use ExternalInterface to call a Javascript function in Firefox, the Javascript successfully returns a value to Flash. However, in IE, I always get 'null' for the return.

I know Flash is successfully calling the JS because i have an alert in the JS function that is firing. It's just the return that is null.

View 1 Replies

Flash :: Debug An Inner Swf That's Loaded From A Non-debug Outer Swf?

Apr 4, 2009

I have a swf that I need to attach the flex builder debugger to. I have full access to the source code, and can make a debug build of this swf.

However, this swf is being loaded by a non-debug build of another swf which I don't have source code to, and can't make a debug build with.

I've tried mocking this up with two very simple swfs, and while it works fine when both are debug builds, when the outer swf is a non-debug build, while I can get the debugger to connect, I don't get trace messages, breakpoints don't work, and it seems to lock up the flash app.

View 2 Replies

Change Flash Version From Non-debug To Debug?

Jan 3, 2012

I have flash installed on my mac 10.6.7 and it's version is 11.1.102.55 (Non-debug).How do i convert it into debug.

View 1 Replies

Media Server :: Player Debug Output Messages While Out NetStream.Buffer.Empty Will Stop.Screenshot

Jul 2, 2011

dvrcast is a live service.mp4: as the service record and I look over to the dvr sample player debug output messages while out NetStream.Buffer.Empty will stop.Screenshot is shown below. Is it possible to do without stopping the service?

View 6 Replies

Javascript :: SetVariable Works In FireFox But Not Internet Explorer?

Jul 12, 2011

I am building a video player web-app that uses flash for playback and jquery/javascript for UI. By design of the person who wrote the flash component I need to use setVariable to communicate between the javascript and the flash player. I've read all over the internet that a lot of people have had problems gettin setVariable to work in FireFox. I designed my app in firefox because i wanted to use firebug to help me in development. Now that the whole thing has been built, i find that setVariable is not working in IE. The error i get is:Object doesn't support property or method 'SetVariable';Here's a bit of the pertinent code:I construct my html through javascript, so this is how I construct the player:

var player =
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16

[code].....

View 1 Replies

Flash :: Javascript :: ExternalInterface Works With Embed Tag But Not With Object Tag

Sep 19, 2011

The "modern" updated way to embed a flash object, according to Adobe:

[Code]...

Then it works on Firefox and Chrome (the AS function is called and works properly) - (it doesn't work in IE though). How come it doesn't work with an object tag? How "safe" it is to use the embed tag instead of the object tag? Is it not obsolete? Note, that it is definitely not a timing issue - If I call the AS function from JS from an onclick function - then the results are the same.

View 2 Replies







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