Mp3 Player Works On Local But Not On Server?

Jul 7, 2009

I have a mp3 player that i purchased from a site. It works fine on my local drive but when uploaded to a server (and I've tried both Linux & Windows) doesn't work. It loads in setting & the mp3 file names from an XML file. I was able to verify that the XML data is in fact loading. The hitch seems to come when trying to create and load the XML data into an XML object.I added text field & changed the value of the text property at different points of the script to narrow down where the script gets stuck. The exact line of code that doesn't run from the server is:

Code:

var xml:XML = new XML(e.target.data);

I tried adding a crossdomain.xml file that allowed all domains but that didn't seem to help. Below is the code that loads the XML file & calls a function when loaded with the offending line of code.And my test site is here: SWF

Code:

public function MusicPlayer() {
//Security to load music
Security.allowDomain("*");[code]..............

View 1 Replies


Similar Posts:


Flash Works On Local Machine But Not Server?

Mar 23, 2010

flash works on local machine but not server?

View 1 Replies

Actionscript :: Local Loading Of Images In It Fails In A Browser Works In Flash Player

Apr 6, 2012

When I run the flash player (from flashdevelop) the images are loaded and everything is fine.But when I run the swf from a browser the requests are sent (using chrome's tools for programers - network tab) but nothing is loaded. The size/content column shows 0/actual size of the file

View 1 Replies

Media Server :: Stream Works Fine On Local Subnet But Not Over Web?

Dec 30, 2009

I followed Tom Green's tutorials and at this point I can publish a live stream which I can view and interact with just fine on my local LAN.The FMS is NAT'ed to the outside world and I have ports 80 & 1935 open to the server.When I use a browser from the outside world and put in the servers public address I can see & interact with the FMS start page just fine. I can use the "interactive" tab and supply my live stream name and view the stream just fineHowever when I try to launch the Flashplayer that I built all I see is the controls with moving stipes, No video feed above. I can browse to the flashplayer HTML file on my local LAN and it works fine. Interestingly enough I cannot open the flashplayer HTML file directly on the server either (but I can open the start page application and interact with it).

View 1 Replies

ActionScript 2.0 :: .swf News Ticker Works On Local Machine But Not On Server?

Dec 2, 2007

I have a news ticker that I modelled after the kirupa tutorial that was given:
[URL]

When I run it on my local machine it works just fine the way I expect it to. However when I put it on my website, it does not work at all. I have another flash file (.swf) on my webpage which is just a simple countdown timer and that works just fine so I don't think this problem has anything to do with MIME types.

Here is the code I used to embed the .swf file onto my website:

<script type="text/javascript">
var so = new SWFObject("http://428the.calvin.hostingrails.com/XMLParser/sports_ticker1.swf", "headerAnimation", "390", "180", "0", "#FFFFFF");

[Code].....

Neither of these worked. I just have no idea what I am doing wrong. I don't know if there is something I should be coding differently in my actionscript. I am very new to AS programming. how to get the .swf file to appear on my website would be great.

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

Flash :: Execute An External .exe From A Local .swf Using A Local XML Socket Server (C#)

Jan 7, 2012

I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.

I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.

My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."

The only way i know to fix this - is to change the security settings of flash - not very user friendly!

So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.

View 1 Replies

ActionScript 2.0 :: TotalBytes Works Only On Local Machine

Mar 10, 2004

I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading. what i'm doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal all of these things occur within one function.. bytesLoaded works fine both on local machine and from the server

View 2 Replies

IDE :: Socketserver Works From Flash But Does Not On Local Webserver

May 5, 2009

I have followed the tutorial here by obiAdmin (raymond) [URL] on how to connect flash to a php socketserver. The problem is in the development environment it works like a charm but when I put the swf on my local server (wamp) it fails to connect to the socketserver.

View 1 Replies

ActionScript 2.0 :: TotalBytes Works Only On Local Machine?

Mar 10, 2004

I have made a preloader showing the progress of dynamically added images. The code works fine when i play the movie on local machine, but when i play the movie from the server bytesTotal is always 0. It even says 0 after the images has finished loading.what i'm doing is basically: createEmptyMovieClip() , i then use a movieClipLoader to load jpeg into that empty movieclip. the movieClipLoader has a listener attached and with the listener i use the function onLoadProgress() to display bytesLoaded and bytesTotal

View 2 Replies

Flash :: Php Communication - Multiplayer - Local Works - Another Computer Does Not

Dec 19, 2011

I made swf file that sends id to php, than php collects info from mysql by this id, and returns result, than flash does his work with that result. The problem is here, I will try to explain it as clearly as I can: everything works fine when I do that on the computer that has all the source files and of course xampp running.

[Code]...

View 1 Replies

ActionScript 3.0 :: Remote XML Works, Local XML Brings Error?

Sep 8, 2009

Been given the following actionscript

Code:
package menu
{

[code].....

View 1 Replies

ActionScript 3.0 :: Webcamera: Script Works On Local But Not When Upload It?

Feb 28, 2011

I have a webcamera test .swf, html file plus .swfobject file. When I run it on my computer, the webcamera works correctly (i.e. I see my image flipped) however, when I upload it along with the .html and .swfobject file, I see my flash file (with graphics) but my webcamera video isn't showing up? I also am not seeing the "adobe flash player settings" prompt to enable my webcamera (I always see this prompt when testing it on my computer, however it's not showing up now that I uploaded the file) I can tell my camera is on because the light on my iSight is showing up, what gives?

View 1 Replies

ActionScript 2.0 :: Externally Loaded Sound Works On Local Machine - But Not Online

Sep 19, 2006

I'm using loadSound to load in external MP3 files and they load and sound great on the local machine but don't work when I upload the files to the web. I'm pretty stumped. The MP3 files are only like 10k and 60k so it can't be a size issue (I'm on a T1 line here at work too). Here is the site: [URL] Basically when you walk close to the fire you should hear the fire crackling and it will get louder as you get even closer. Everything works on my PC, just not online. Here's the AS code for the fire:

[Code]....

View 3 Replies

Media Server :: Make A Local Streaming (connection) To The Server,by Seting The FME?

Jul 21, 2011

I managed to make a local streaming (connection) to the server,by seting the FME at rtmp://localhost(or my IP)/live.But now i want to make a non local streaming.

View 2 Replies

ActionScript 1/2 :: Font/Text Resize Function Works On Local Machine, Does Not Work On Others?

Apr 6, 2010

I have the fonts embedded (Yet it still prompts me saying missing fonts every time I open flash, but not the fonts that aren't resizing correctly)
 
I have a function that takes in a textfield, resizes the font to fit the text box, works fine on my local machine, does NOT work on other machines.
 
why this doesn't work? here is the function
 
function fontSizeChanger(dtb,myWidth)
{
dtb.embedFonts = true;    
var myFormat:TextFormat = dtb.getTextFormat();

[Code].....

View 8 Replies

Professional :: BitmapData / GetPixel Mystery - Works Perfectly On Local, Failing When Uploaded?

Dec 13, 2010

I'm working with a video in Flash where I am capturing each frame and testing the color of a single pixel. I'm using it to determine when a white/transparent background changes to be a color. The following AS2 code works flawlessly when I preview it in Flash and on my desktop in the browser (the direct SWF and placed inside HTML using SWFObject) but as soon as I upload it to my server it fails and produces "FFFFFF" continuously regardless.

this.onEnterFrame = function()[code]..........

There is no difference in the files; they are both pulling from the same video source (hosted on an Flash FLV server).The only difference is one set of files is hosted on my local computer and the other is hosted on my web server.

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

Professional :: Loader Component Works When Publish To Flash Player 7 But Not In Flash Player 8

Jul 5, 2010

My loader component works when I publish to Flash Player 7 but not when I publish to Flash Player 8, why? The publish setting are for ActionScript 2.0 on both.

View 2 Replies

ActionScript 2.0 :: Code Works For Flash Player 6 Settings But Not For Flash Player 8?

Jul 1, 2007

I'm pretty new to Action script and I have a problem here that I can't seem to figure out.

I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.

It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...

I attached the .fla file and also here's the code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

Jul 4, 2010

I'm trying to load a local xml file:

xmlLoader.load(new URLRequest("../xml/xmlData.xml"));

But I'm getting this security sandbox violation:

#2148: Only local-with-filesystem and trusted local SWF files may access local resources.

I don't get this error when I embed the XML file directly with the EMBED metadata tag.

View 3 Replies

IDE :: SWF Works In Player But Not Browsers?

Jan 8, 2009

I have been using CS3, and publishing v8 AS2 files using swfobject for years with no dramas. I am certainly no expert, but have created at least 10 sites this way.My personal site for some bizarre reason has stopped working in all browsers (and I am sure the file hasn't changed). My SWF works in Flash Player perfectly but comes up blank in any browser... yet other SWFs work fine.

[URL]

I have tried republishing, reloading site, different hosts, recreating the file... I am absolutely stumped! :-) I just cannot get it to work.

View 8 Replies

Flash :: Player 11 - Can't Play Local Swf Files?

Nov 30, 2011

in older versions of flash player if I opened a swf file in a web page locally it would bring up a security settings box where I could allow files to play locally - but this doesn't seem to happen in flash player 11 - how do I enable my swfs to play locally?

View 3 Replies

IDE :: Retrieving Local Files With Flash Player 9?

Jan 8, 2010

I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash.

[code]...

This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve a local jpg from the users computer and temporarily display it in my flash application. So to clarify, uploading to the server isn't required unless this is the only way to do this with Flash Player 9?

View 1 Replies

ActionScript 3.0 :: Is There Youtube Player That Actually Works?

May 18, 2011

i am trying to create a AS3 youtube player... and after i searched online and followed tutorials, i couldnt make any of them work due to errors.i always get this error [code]is it because i am testing it locally?

View 1 Replies

ActionScript 3.0 :: Youtube Player That Actually Works?

May 18, 2011

i am trying to create a AS3 youtube player... and after i searched online and followed tutorials, i couldnt make any of them work due to errors..

[Code]...

View 6 Replies

ActionScript 3.0 :: Flash Local Connection Incorporating Into A Mp3 Player

Mar 22, 2010

I have an mp3 player(AS3) loads in external mp3. I am trying to attach the flash local connection script to the mp3 script so that I can have the mp3 pop up in a smaller browser and it be controlled by the main homepage.

here is an example, [URL] select track 4, you will see it starts playing but also another small window pops up but its behind the main browser. this is then controlled with a 'Stop' and 'Play' function on the main home page.

thats what I am trying to create:

ok;
 
I have an example working for the flash local connection where you can drag a ball and it also moves in the smaller pop up window, see here: [URL]
 
So I have that working and I have the mp3 working, but I need to put both togther and cross over the flash local connection script and incorporate into the mp3 script.

What is the best way for me to send script information, I don't want to flood the thread with AS. You can download the flash lconnection files and the mp3 player from here!
 
[URL]

View 7 Replies

ActionScript 3 :: Retrieving Local Files Flash Player 9

Jan 13, 2010

I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash.
FileReference.load();
This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve a local jpg from the users computer and temporarily display it in my flash application. So to clarify, uploading to the server isn't required unless this is the only way to do this with Flash Player 9?

View 2 Replies

Flash :: Play A Local Video With YouTube Player

Jan 31, 2011

Is this posible? Can I play a local video with YouTube player? Where can I download the code?

what i really want is a player similar to YouTube's, i need to look the same, so i can play the videos of my web that are going to be locally stored

View 1 Replies

Actionscript 3.0 :: Local FLV Player - What Class Should I Use To Play The Video?

May 25, 2009

Ive start to use the new FileReference class (FP 10) and I create a local image viewer with a loader and bitmap. But now I want to take it one step further and make a local FLV Player. I need a SWF file, so for that reason Im not using AIR.What class should I use to play the video? This is part of the code I use for the image viewer.

Code: Select allpackage
{
import fl.controls.Button;[code].....

View 14 Replies







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