Sound Actionscript - Works Locally Not Online - Flash Mx
The following code works on my local machine but not when I upload.
I have a video which I use as a background to one section of the site. I load it into an empty mc which has the code below attached.
The scaling part works fine.
The part that causes problems is the audio. I want the Audio for the background video to play if the user is NOT listening to a mp3 (its a music artist site). If they are listening to a mp3 I want it to be a silent video. I use the _root.MP3Active to track if a mp3 is playing 0 = not playing 1 = playing.
I guess my problem is associated with the fact that the video loads instantly on my local macjhine but not online?
any ideas how to fix this or do it differently? thanks mark
Code: onClipEvent(load){ _root.BGVideoSound = new Sound(this); } onClipEvent(data){ this._xscale = 300; this._yscale = 300; _root.BGVideoSound.setVolume(0); if(_root.MP3Active == 1){ _root.BGVideoSound.setVolume(0); } else{ _root.BGVideoSound.setVolume(100); } }
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-12-2004, 09:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- [F8] Flash Works Locally, But Not Online...
- Flash Movie Works Locally But Won't Work Online
- Flash Movie Works Locally But Won't Work Online
- Works Locally But Not Online?
- Works Locally But Not Online?
- Works Locally But Not Online?
- StartDrag Works Locally But Not Online...
- Code Works Locally But Not Online...?
- .getHours(); Works Locally But Not Online
- [F8] LoadMovie Works Locally, But Not Online...
- [MX04] Works Locally But Not Online
- If/else Statement Works Locally, But Not Online
- [CS3] PrintJob Works Locally Not Online
- File Works Locally, Not Online - What Gives?
- LoadMovie Works Locally, But Not Online...
- Form/php Works Locally Not Online
- Form/php Works Locally Not Online
- Path Works Locally But Not Online?
- Preloader Works Locally, Not Online
- Load Variables Works Locally Not Online
- Loadvar Works Locally, But Not Online For Some Reason
- Elements Of Movie Works Locally But Not Online
- GetURL('javascript:blablah();'); - Works Locally, Not Online.
- Flex - Works Locally, Throws Errors Online
- Error Loading WSDL When Hitting Page Online (works Locally)
- Graphic Disappears When Music Streams Online, But Works When Streaming Locally
- My Quicktime Page Works Locally, But Shows A Broken Link When I Post It Online.?
- Sound Works Locally, Not On Net
- Published Swf Doesn't Load Sound (locally Or Online)
- Streaming Sound Works Only Locally
- ActionScript (2.0) Works Locally But Not From Server... What's Up?
- Externally Loaded Sound Works On Local Machine, But Not Online.
- Flash Links Work Locally But Not Online
- Flash Player Only Works Locally
- Flash Works Locally, But Not When Uploaded
- Testing Flash: Works Locally, Fails On The Web
- Testing Flash: Works Locally, Fails On The Web
- Flash Site Works Locally ,but Not On Remote Server?
- Flash Video Player Works Locally But Not Live
- Flash Text-load Works Locally, But Not On Server
- Flash Works Online But Not Offline
- Preloader Works In Flash But Not Online
- [F8] Working Locally But Not Online
- Variables Different Locally Than Online
- Detect Whether SWF Is Being Run Locally Or Online?
- Jpg Gets Loaded Locally, Not Online
- Working Locally Not Online
- CSS Showing Locally, But Not Online?
- Prototype Function Works In Flash, Not Online
[F8] Flash Works Locally, But Not Online...
I put a .SWF on a blank web page. It launches and plays fine locally if I launch the page from my hard drive, but online I just get a blank white page. Here's the link:
http://al-i.anixter.com/TEMP/flashTemplate/index.html
Any ideas?! Thanks!...
Flash Movie Works Locally But Won't Work Online
I have a flash movie that works fine in any folder on my local computer ( both the .swf file and .html file are in the same directory) but when I upload the files (.swf as binary) unchanged both to the same directory on the remote server, and access the .html file from the internet, the movie doesn't play.
the .html file is as follows:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>game</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="291" id="game" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="game.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="game.swf" quality="high" bgcolor="#ffffff" width="400" height="291" name="game" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
What is my problem?
Thx,
Total Newbie
Flash Movie Works Locally But Won't Work Online
I am a total newbie to Flash so please forgive my ignorance. I have a flash movie (game.swf, game.html) that works fine when the .swf file and the .html file in which it is imbedded are are in any folder on my local machine. However when I upload both files to the root directory of the remote server, the movie doesn't work when I access the html file on the internet. Why does it work locally, but not on the internet?
Works Locally But Not Online?
Hi
I'm loading jpgs like this:
in a for loop...
thumName = "thClip"+d;
_root.contHolder.cHolder.thHolder[thumName].imgHolder.loadMovie("thumbs/"+theReference+".jpg");
it works fine when I test the movie but not when I load it to my server, anyone got any idea why?
Cheers
L
Works Locally But Not Online?
I have a flash app that sends variables to asp. It works fine when tested locally but when I upload it and test it, it never sends the variables... Weird!
This is the script:
PHP Code:
on (release) {
if (!epost.length || epost.indexOf("@") == -1 || epost.indexOf(".") == -1) {
gotoAndStop(8);
} else if (!name.length) {
gotoAndStop(8);
} else if (!adress.length) {
gotoAndStop(8);
} else if (!postnr.length) {
gotoAndStop(8);
} else if (!ort.length) {
gotoAndStop(8);
} else {
ContestID = "147";
loadVariablesNum("http://195.178.168.92/contest_skriv.asp", "0", "POST");
gotoAndStop(9);
}
}
Works Locally But Not Online?
I'm kinda new to flash and fter weeks of getting this rather simple flash project to work on my hard drive I can't get it to work online.
http://www.cashton.co.uk/photos.swf
Its an XML driven photo gallery that currently has two major problems
1) Only some of the thumbs show up. All of Abel Tasman does but none of Auckland. I made all the thumbs in photoshop using an automated process of resizing and saving for web.
They're all under 2kb, non progressive, have lowercase names and extensions with no spaces in the filename. The file structure online is identical to the one on my hard drive
2) Only a few of the main photos display themselves the second one in Abel Tasman does but none of the others in the same folder do. Like the thumbs I made them all inexactly the same way and they're all under 25Kb so loading time shouldn't be more than a few secs on broadband.
I just can't think whats wrong as it works perfectly locally
Can anyone take a guess what might be wrong?
P.S. Yes I know the font on the buttons is hard to read its on my "to fix later list"
StartDrag Works Locally But Not Online...
Hi All,
I have actionscript that works locally, works when i test in dreamweaver but refuses to work when i upload it to my client's server.
This is extremely exhausted because i completely changed the page around because the first effect i had did the same thing - worked locally and not online. And now the second effect is doing the exact same thing!!!
Can someone guide me to where the bottleneck might be...i'm stuck!
thx
Code Works Locally But Not Online...?
This loads in a movie based upon your selection of quality with a preloader...
code:
loadListener = new Object();
loadListener.complete = function(eventObj){
pBar._visible = false;
rrs_mc._visible = false;
}
loader.addEventListener("complete", loadListener);
loader.autoLoad = false;
loader.contentPath = "http://www.ramsredson.com/frame2.swf";
loader.load();
pBar.source=loader;
stop();
loader - loader component
pBar - progress bar component (event mode)
when i run this online it hides the pBar and rrs_mc instantly then loads the movie. However if i run it locally the progress bar works and on completion it hides the pBar and rrs_mc. Any ideas, or other ways to make it work? thanks
.getHours(); Works Locally But Not Online
Hi all, wondered if you help me with this one...
I've got an if statement which controls a background for three different times of the day, day, midday, night.
The problem is that once uploaded the night if statement does work. It does however seem to work locally though, that bizarre right!?
var hour = new Date().getHours();
trace("hour= "+hour);
if (hour>0 && hour<5) {
gotoAndPlay(40);
}
else if (hour>5 && hour<11) {
gotoAndPlay("day");
trace("day");
}
else if (hour>11 && hour<18) {
gotoAndPlay("miday");
trace("midday");
}
else if (hour>=18) {
gotoAndPlay(“night”);
trace("night");
};
Any one got any ideas, thanks in advance
Jon
[F8] LoadMovie Works Locally, But Not Online...
I have the following command on a frame:
holder_mc.loadMovie("/NF/mp3player.swf");
When independently launching the .SWF, or when testing the movie in Flash, the "holder_mc" loads the "mp3player.swf" just fine. But when posted online (or even testing locally inside a browser), it doesn't load at all. I have copied the directory structures from my local hard drive to my online server EXACTLY...
Any ideas???...
[MX04] Works Locally But Not Online
I'm working on a script to read an xml feed and the information works locally but not when I upload it to my server. any help is much appreciated. here is my actionscript just in case it helps
var clanid = "57691";
function loadXML(loaded) {
if (loaded) {
_root.clanid = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.clanname = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.clantag = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
_root.clancountry = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
_root.clanstatsurl = this.firstChild.childNodes[0].childNodes[4].firstChild.nodeValue;
clanid_txt.text = _root.clanid;
clanname_txt.text = _root.clanname;
clantag_txt.text = _root.clantag;
clancountry_txt.text = _root.clancountry;
clanstatsurl_txt.text = _root.clanstatsurl;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://aaotracker.4players.de/livefeed/xml_clanprofile.php?clanid="+clanid);
If/else Statement Works Locally, But Not Online
This is in CS3 exported to player 8. I've got an external swf inside a container, and inside that contained swf is another external swf in a container. Like so: root/container/humanHolder.
So this code is inside "container" timeline and should make the swf in "humanHolder" go to a specifically named frame if the swf is on a frame less than 339.
The code works on my drive, but not after uploaded to my site. Any idea why?
PHP Code:
if (_root.container.humanHolder._currentframe <= "339") { _root.container.humanHolder.gotoAndPlay("beamOut01");} else { _root.container.humanHolder.gotoAndPlay("beamOut02");}
[CS3] PrintJob Works Locally Not Online
I have a movie that prints a text block that the user has entered. It works correctly locally, but when I put it online it makes one big black rectangle. Any ideas why that would happen? I'll copy the code below:
Code:
printNotes_btn.onRelease = function() {
//copy all text to a mc off stage..
textHolder_mc.autoSize = "left";
textHolder_mc.text = notes.text;
var mh:Number = textHolder_mc._height;
var pageCount:Number = 0;
var my_pj:PrintJob = new PrintJob();
if (my_pj.start()) {
trace("h/w is "+ mh+","+my_pj.pageHeight);
if (Number(mh) > Number(my_pj.pageHeight)) {
trace("here");
var pnum:Number = Math.ceil(mh/my_pj.pageHeight);
trace(pnum);
for (var i:Number = 0; i<pnum; i++) {
var ymn:Number = my_pj.pageHeight*i;
var ymx:Number = ymn+my_pj.pageHeight;
my_pj.addPage("textHolder_mc", {xMin:0, xMax:my_pj.pageWidth, yMin:ymn, yMax:ymx},{printAsBitmap:true},16);
pageCount++;
}
} else {
my_pj.addPage("textHolder_mc", {xMin:0, xMax:my_pj.pageWidth, yMin:0, yMax:my_pj.pageHeight},{printAsBitmap:true},16);
pageCount++;
}
if (pageCount>0) {
trace("will print "+pageCount);
my_pj.send();
}
delete my_pj;
}
};
File Works Locally, Not Online - What Gives?
I've got a file working perfectly on a local machine (the file calls a user-selectable XML file and parses the results on a mocked up radio screen). When I put it online however, it hangs and never loads.
Any ideas? It's great on my local system and all...but...you know...
Thanks!
Kyle
<file attached>
LoadMovie Works Locally, But Not Online...
I have the following command on a frame:
holder_mc.loadMovie("/NF/mp3player.swf");
When independently launching the .SWF, or when testing the movie in Flash, the "holder_mc" loads the "mp3player.swf" just fine. But when posted online (or even testing locally inside a browser), it doesn't load at all. I have copied the directory structures from my local hard drive to my online server EXACTLY...
Any ideas???...
Edited: 11/11/2006 at 12:31:32 PM by DIY_Lobotomy
Form/php Works Locally Not Online
it just doesnt make any sense..
same swf and php.
php is sitting on my server.
when swf is tested locally it sends an email.
when swf is uploaded next to php it doesnt..
it is driving me CRAZY..
should also say, i have field validation and once all fields are accurately filled the submit button loads the variables from the mc that contains the text fields and sends them to the php.. once that is done, it clears all text fields and the submit and reset buttons and loads an acknowledgement text..
this happens locally ..
when online the submit button does nothing of the sort...
anyone?
Form/php Works Locally Not Online
form/php works locally not online
posted this before but no luck.
it just doesnt make any sense..
same swf and php.
php is sitting on my server.
when swf is tested locally it sends an email.
when swf is uploaded next to php it doesnt..
it is driving me CRAZY..
should also say, i have field validation within flash.. so once all fields are accurately filled the submit button loads the variables from the mc that contains the text fields and sends them to the php.. once that is done, it clears all text fields and the submit and reset buttons and loads an acknowledgement text..
this happens locally ..
when online the submit button does nothing of the sort...
anyone?
Path Works Locally But Not Online?
Hi
I'm loading jpgs like this:
Code:
for (var d = 0; d<numofThumbs; d++) {
thumName = "thClip"+d;
_root.contHolder.cHolder.thHolder[thumName].imgHolder.loadMovie("thumbs/"+theReference+".jpg");
}
it works fine when I test the movie but not when I load it to my server, anyone got any idea why?
Cheers
L
Preloader Works Locally, Not Online
hi, all
I am having a weird problem, where my preloader works perfectly fine when I test it in Flash2004 via "stimulate download", but when I upload the swf online, the movie just sits on the first frame. here is the script I used:
In the preloader bar MC(sits on 2nd keyframe in the main stage):
setProperty(this, _xscale, (_root.getBytesLoaded()/_root.getBytesTotal()*100));
On the 2nd keyframe on main stage:
setProperty(this, _xscale, (_root.getBytesLoaded()/_root.getBytesTotal()*100));
thanks in advance
Al
Load Variables Works Locally Not Online
hello,
has anyone had the same problem as me, and do they know the soultion.
i have a high score table writen in perl for a game i making someone.
it all works when i test it on my machine, it returns the high scores form a server else where.
but when i upload the game and try to see the high scores from there it doe'nt return anything?
any suggestions,
thanks howard
Loadvar Works Locally, But Not Online For Some Reason
see my sig at http://ncgn.steeped.net/phpBB2/viewtopic.php?t=83 then click mrjungle
i am trying to loadVariablesNum ("http://www.mrjungle.com/flashvar.asp", 0);
it works locally on my computer just fine. when i upload it to my server, it doesn't work. what gives?
Elements Of Movie Works Locally But Not Online
Please could anyone offer some advice?
My movie works fine locally, but it doesn't work online. Online example is at http://www.13oakstreet.com/eh/.
Specifically, homer's mouth is supposed to move and doesn't. On pressing any key, the key listener should be removed, but isn't, and homer should be dancing around the grave, and he should be signing "i am evil homer!, etc". All of this works locally! It's REALLY bizarre! It's only online that it doesn't work.
Any help would be most brill,
Thanks
Nelly
GetURL('javascript:blablah();'); - Works Locally, Not Online.
Why would a flash movie call javascript locally, but not do it online? I've created flash movies that call javascript functions all the time. This one has been created by someone else, I'm trying to implement it, and I can't really tell that there's any difference... the button is inside a symbol, but that shouldn't affect anything, right? I don't need to do something like _root.getURL(blahblah) do I?
Flex - Works Locally, Throws Errors Online
Hi!
I made an app in Flex and it works great locally but when I upload it to my server I get errors :/ YOu can view it at http://divita.eu/test/virtual_mountain/
Code:
Error: Unable to load ''.
at mx.controls::SWFLoader/loadContent()[E:dev3.0.xframeworksprojectsframeworksrcmxcontrolsSWFLoader.as:1368]
at mx.controls::SWFLoader/load()[E:dev3.0.xframeworksprojectsframeworksrcmxcontrolsSWFLoader.as:1211]
at mx.controls::SWFLoader/commitProperties()[E:dev3.0.xframeworksprojectsframeworksrcmxcontrolsSWFLoader.as:1015]
at mx.core::UIComponent/validateProperties()[E:dev3.0.xframeworksprojectsframeworksrcmxcoreUIComponent.as:5670]
at mx.managers::LayoutManager/validateProperties()[E:dev3.0.xframeworksprojectsframeworksrcmxmanagersLayoutManager.as:519]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:dev3.0.xframeworksprojectsframeworksrcmxmanagersLayoutManager.as:639]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:dev3.0.xframeworksprojectsframeworksrcmxcoreUIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:dev3.0.xframeworksprojectsframeworksrcmxcoreUIComponent.as:8403]
Any ideas on what could be the cause of this?
Thnx a lot,
Philip Seyfi, divita.eu
Error Loading WSDL When Hitting Page Online (works Locally)
when running the swf from Ctrl-Enter and/or running it as a local projector, I have no problems running all the web services that are on a remote server at 64.blah.blah.blah.
However, once I upload the site to our company testing webserver pixelfarminteractive.com, the web services no longer load, giving me this error:
Could not load WSDL
I could have sworn we had this working in a past project thanks to this line of code:
System.security.allowDomain("*");
Is that no longer allowed in Flash 8 player? Or is it purely because the Web service is on a different server? (maybe the old project had the WSDL on the same server the SWF was hosted?)
What's the point of connecting to a shared web service if you can only use it when your flash is on its server?
here's the (hopelessly nondescript) flash help on the matter: http://livedocs.macromedia.com/flash.../00003023.html
Graphic Disappears When Music Streams Online, But Works When Streaming Locally
I have a spectrum display for streaming songs and it works perfectly find testing locally, streaming the songs from a website, but when I upload the file to my host, whenever the music starts playing, the spectrum disappears, and when its paused or switching songs the line is flat in the background...any ideas why the graphics would behave differently on a server? both files locally and online were streaming from a site, not from the hard drive. Help!
Take a look:
HTML Code:
http://diddysinatra.zxq.net/preloader_complete.html
My Quicktime Page Works Locally, But Shows A Broken Link When I Post It Online.?
I don't understand why, but when I launch the html page from my desktop, the quicktime, PANO file seems to work.
When I post them up on the web, it shows a broken link.
The embed code is...
//<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="255"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" BORDER="4"><PARAM NAME="SRC" VALUE="Studio.pano">
<PARAM NAME="AUTOPLAY" VALUE="TRUE"> <PARAM NAME="CONTROLLER" VALUE="TRUE">
<EMBED SRC="Studio.pano" WIDTH="320" HEIGHT="255" CONTROLLER="TRUE"
PLUGINSPAGE="http://www.apple.com/quicktime/download/"> </OBJECT>
What is going on?
Thanks.
Sound Works Locally, Not On Net
I've got a swf that loads in another swf that has some sound i'm looping. Everything works wonderfully locally but as soon as I put it up on the net, i don't hear anything!? Why is that?
Published Swf Doesn't Load Sound (locally Or Online)
I'm having a very peculiar problem:
I have an mp3 player, which reads the tracks from an xml file. When I test the swf in the Flash IDE or directly as an swf in firefox everything works great.
But when I test it as a published html (locally or online) the sound is never loaded. Everything works perfectly apart from the sound, which never loads.
part of the code to load the sound is:
ActionScript Code:
function loadSongs(track){
clearInterval(scrollInterval);
cur_play = true;
s = new Sound();
s.loadSound(song_list[track], true);
s.setVolume(new_volume);
s.start(position/1000);
}
I suppose the solution is something really simple, I just don't have the right eye to get it...
Thanks in advance !
Streaming Sound Works Only Locally
Hello
I'm trying to make a player to put on my website. Everything goes fine when i use it on my pc... But once the player is online ( the sound source is always online) i cant hear any sound
Here is my code
Code:
function stream(){
sound = new Sound ();
sound.loadSound("http://www.myadress.com:9090", true);
sound.start();
}
Thanks!
ActionScript (2.0) Works Locally But Not From Server... What's Up?
Greetings: I have a main flash movie and am calling an external flash movie that loads a FLV file. This external SWF file simply plays back a video. All is working here fine. In this externally loaded flash movie I also have two buttons that are supposed to close the window underneath it and then unload it.
It is these two buttons that work perfectly when I test the movie locally within the Flash CS3 environment but do not work when I upload the files to the server; Here is the code on button 1:
---------------------------------------
_root.onEnterFrame = function() {
loadMovieNum("
Externally Loaded Sound Works On Local Machine, But Not Online.
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:
http://www.littlefenris.com/v2/
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.
Any ideas what the issue could be?
Here's the AS code for the fire:
ActionScript Code:
var campFireSFX:Sound = new Sound();//CAMPFIRE SOUND_root.campFireSound_mc.onEnterFrame = function() { fireXDist = Math.round(this._x-fenris_mc._x); fireYDist = Math.round(this._y-fenris_mc._y); campFireDistance = Math.round(Math.sqrt((fireXDist*fireXDist)+(fireYDist*fireYDist))); if (campFireDistance<200) { if (breakIt != true) { campFireSFX.start(0, 9999); breakIt = true; } } else { breakIt = false; campFireSFX.stop(); } campFireSFX.setVolume((maxVolume-campFireDistance)/2);};campFireSFX.loadSound("/sounds/319524_CampFire.mp3");
Flash Links Work Locally But Not Online
Hi,
I am having a problem with a flash movie when it is on my machine with a relative path the link to our website page works fine but when I upload the flash movie it doesn't click anywhere. The flash movie is located on a different sub domain to the page it is hosted on and so has an absolute URL and I can't put it anywhere else.
Flash Player Only Works Locally
Im using this tutorial to create a flash player that works for Flash Player 6 & 7.
http://www.communitymx.com/content/article.cfm?cid=12EBE
It works great when I test it locally but not after its been uploaded. I've tried local and absolute url's, again both work only locally. Funny thing is I had bought a third party component for this and it did the same thing. I thought there was something wrong with the component.
Any help would be greatly appreciated.
Amelia
Flash Works Locally, But Not When Uploaded
i uploaded my new portfolio which is nested inside another mc, it runs on my computer.
the site loads but when i click on the portfolio button or just access the .swf directly, the window transfer bar loads a bit and then hangs at "Waiting for server.."
can anyone give me some hints as to what might be going on? i've re-upped files i thought may have been corrupted during the upload, checked the xml to make sure it looked ok, etc
and now im just stuck
thanks for any help
Testing Flash: Works Locally, Fails On The Web
My current project is displaying some very odd behavior I have never come across before. I am up against the wall with a deadline and no troubleshooting has lead to a solution yet. I am desperate for help.
I have a very simple SWF, plays some basic animation, and calls in external MP3 voiceover. Nothing complex. When the animation is complete, it lands on a static frame with 3 buttons. The buttons are actually instances of the same MC with a nested btn in, the text on the btn passed by a variable. Mouse over the btn and the MC plays a little animation. Click on the btn and a MovieClipLoader class calls in a SWF, which itself calls in another SWF of just formatted text.
For some reason this all tests well on my computer, and (very strangely) on our dev server for staging. When the files get deployed to to live site the animation plays through to the static frame with the btns, but when clicked the btns do not work. The external SWF does not load.
Now we've tested and tried every scenario checking the correct paths to the SWFs and everything is where it should be. I'm staring at the code waiting for something to jump out at me but it is very basic, and nothing looks astray.
We had a similar issue last night when the animation would not even play. It turned out the SWF was getting hung up on a frame that had an animated mask on it. I broke the mask into a shape and the SWF played properly after that. It took us 2 hours to figure that out. I was infuriated. Why would something so basic cause a movie to fail? Has anyone ever experienced this before? Is it a known bug? Could this be related to the issue of the btns now not working? I am at a loss where to try next, especially when something as random and obscure as a mask caused an earlier failure.
If you have any advice, please I would deeply appreciate it.
mm66
Code:
// this is the frame action on the final static frame of the presentation
stop();
voCar04.start(0, 0);
voCar04.setVolume(200);
voCar04.onSoundComplete = function(){
music.volumeTo(50, 2, "linear"); // using mc_tween imported class
}
// set text labels of the 3 buttons
headset_mc.label_mc.label_txt.text = "HEADSET";
cellPhone_mc.label_mc.label_txt.text = "MOBILE PHONE";
visorKit_mc.label_mc.label_txt.text = "CAR KIT";
var prodLoader:MovieClipLoader = new MovieClipLoader();
// sets the btn interactivity, plays a little animation when rolled over
headset_mc.hotSpot_btn.onRollOver = function(){
headset_mc.gotoAndPlay(2);
}
headset_mc.hotSpot_btn.onRollOut = function(){
headset_mc.gotoAndPlay(12);
}
cellPhone_mc.hotSpot_btn.onRollOver = function(){
cellPhone_mc.gotoAndPlay(2);
}
cellPhone_mc.hotSpot_btn.onRollOut = function(){
cellPhone_mc.gotoAndPlay(12);
}
visorKit_mc.hotSpot_btn.onRollOver = function(){
visorKit_mc.gotoAndPlay(2);
}
visorKit_mc.hotSpot_btn.onRollOut = function(){
visorKit_mc.gotoAndPlay(12);
}
// sets the call to the external SWFs, tried 2 methods of doing this, neither worked
headset_mc.hotSpot_btn.onRelease = function(){
_root.products_mc.loadMovie("product2.swf", 1);
//_root.prodLoader.loadClip("product2.swf", _root.products_mc);
}
cellPhone_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product3.swf", _root.products_mc);
}
visorKit_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product1.swf", _root.products_mc);
}
Testing Flash: Works Locally, Fails On The Web
My current project is displaying some very odd behavior I have never come across before. I am up against the wall with a deadline and no troubleshooting has lead to a solution yet. I am desperate for help.
I have a very simple SWF, plays some basic animation, and calls in external MP3 voiceover. Nothing complex. When the animation is complete, it lands on a static frame with 3 buttons. The buttons are actually instances of the same MC with a nested btn in, the text on the btn passed by a variable. Mouse over the btn and the MC plays a little animation. Click on the btn and a MovieClipLoader class calls in a SWF, which itself calls in another SWF of just formatted text.
For some reason this all tests well on my computer, and (very strangely) on our dev server for staging. When the files get deployed to to live site the animation plays through to the static frame with the btns, but when clicked the btns do not work. The external SWF does not load.
Now we've tested and tried every scenario checking the correct paths to the SWFs and everything is where it should be. I'm staring at the code waiting for something to jump out at me but it is very basic, and nothing looks astray.
We had a similar issue last night when the animation would not even play. It turned out the SWF was getting hung up on a frame that had an animated mask on it. I broke the mask into a shape and the SWF played properly after that. It took us 2 hours to figure that out. I was infuriated. Why would something so basic cause a movie to fail? Has anyone ever experienced this before? Is it a known bug? Could this be related to the issue of the btns now not working? I am at a loss where to try next, especially when something as random and obscure as a mask caused an earlier failure.
If you have any advice, please I would deeply appreciate it.
mm66
Code:
// this is the frame action on the final static frame of the presentation
stop();
voCar04.start(0, 0);
voCar04.setVolume(200);
voCar04.onSoundComplete = function(){
music.volumeTo(50, 2, "linear"); // using mc_tween imported class
}
// set text labels of the 3 buttons
headset_mc.label_mc.label_txt.text = "HEADSET";
cellPhone_mc.label_mc.label_txt.text = "MOBILE PHONE";
visorKit_mc.label_mc.label_txt.text = "CAR KIT";
var prodLoader:MovieClipLoader = new MovieClipLoader();
// sets the btn interactivity, plays a little animation when rolled over
headset_mc.hotSpot_btn.onRollOver = function(){
headset_mc.gotoAndPlay(2);
}
headset_mc.hotSpot_btn.onRollOut = function(){
headset_mc.gotoAndPlay(12);
}
cellPhone_mc.hotSpot_btn.onRollOver = function(){
cellPhone_mc.gotoAndPlay(2);
}
cellPhone_mc.hotSpot_btn.onRollOut = function(){
cellPhone_mc.gotoAndPlay(12);
}
visorKit_mc.hotSpot_btn.onRollOver = function(){
visorKit_mc.gotoAndPlay(2);
}
visorKit_mc.hotSpot_btn.onRollOut = function(){
visorKit_mc.gotoAndPlay(12);
}
// sets the call to the external SWFs, tried 2 methods of doing this, neither worked
headset_mc.hotSpot_btn.onRelease = function(){
_root.products_mc.loadMovie("product2.swf", 1);
//_root.prodLoader.loadClip("product2.swf", _root.products_mc);
}
cellPhone_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product3.swf", _root.products_mc);
}
visorKit_mc.hotSpot_btn.onRelease = function(){
_root.prodLoader.loadClip("product1.swf", _root.products_mc);
}
Flash Site Works Locally ,but Not On Remote Server?
What wrong?
can any body give me a clue why can't i view my site when i uploaded it on my server? when i try to view it locally it works fine.
my home page is named, index.htm and on it is an embedded swf movie which calls two .swf files(menu and buttons) that completes the interface(i used loadmovie AS for this).all the required files(swf, txt,jpg..etc) resides on the same folder as the homepage. The menus, once selected will load the corresponding page/s which are swf movies. i made it this way and not put it all in one swf movie coz im afraid the file size would get really heavy coz i need to put pictures on each page. I have known of some sites that uses the same method so i knew this suppose to work, which it does locally.
i uploaded it on my server to checkout how wil it load, and to my suprise nothing came out on my browser! (but the status barof the browser seems loading huh?) then i tried uploading it on geocities.com just to se, if its the files that has the problem or the server. the home page did load together with the two swfs files (the button & menu), but they are not working.i can figure out what's wrong?
could some body help me on this please? did i overlooked something? are swf files are allowed on all kinds of server?
Flash Video Player Works Locally But Not Live
I have a simple flash player which works locally but not when I make it live... I have an external flv file and its in the same directory as the swf file. Here's the page and code.
http://cf3.heritage.org/nationalsecurity/VideoTool/HIF_PlayerNEW.html
<!--- code ---------------------------------------------------------------------------------------------------------------- --->
<cfoutput><!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>HIF_PlayerNEW</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script src="
Flash Text-load Works Locally, But Not On Server
hi all
why ?
code
createClassObject(mx.controls.UIScrollBar, "my_sb", 320);
my_sb.setScrollTarget(my_txt);
// Size it to match the text field.
my_sb.setSize(16, my_txt._height);
// Move it next to the text field.
my_sb.move(my_txt._x + my_txt._width, my_txt._y);
// Load text to display and define onData handler.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
//my_txt.htmlText = src;
my_txt.text = src;
my_txt.setTextFormat(my_fmt);
} else {
my_txt.text = "Error loading text. deinost";
}
};
my_lv.load("test.txt");
Flash Works Online But Not Offline
Hello there.
I am creating a project for University in Flash 8 and Cannot get Flash & Javascript to work together offline.
I am sure it is not a webbrowser configuration problem as both IE & Firefox cannot execute JS through flash in a webbrowser control unless it is on a web server.
I am trying to do this via the "ExternalInterface.call" in flash. If anybody has any suggestions to possible problems or solutions please dont hesitate to post them.
I dont even like using "ExternalInterface.call". Using "GetURL" and "FSCommand" was sooo much easier!!!
Preloader Works In Flash But Not Online
I just discovered a strange thing : I have a preloader in all my swfs. All work great online and when I test the swf or the preview in html exepted 1 : the first swf to be loaded called homepage.
Here is the schema of the site : HTML page is linked ( with a enter btn)to the 1st swf called Homepage. No preloader gets visible and so, the swf takes a long time to load after clicking the enter button of the html page.
Note : the html page is visible until the swf is totally loaded....
Does sbdy knows why ?
BTW, the preloader code comes from the great tuto from kirupa.
Thanks.
[F8] Working Locally But Not Online
Hello,
I have a website created, and it works fine locally.... but when I upload it one section does not work.
The section in question is a simple button that loads an external .swf into the main movie, it can be viewed in the "Colors" section at: http://www.signalhillcabinetry.com/
...none of the buttons within that section work online (ie Wilsonart, Pionite...etc) Although they all work when I view the site on my own computer.... I am also sure that all of the correct files are uploaded and in their correct path....
Any ideas?
Thanks in advance!
Variables Different Locally Than Online
F8 - I'm using _global.lastframe to move the playhead when a swf is loaded.
It works fine on my computer, but I get mixed results when viewed online.
Here's code to set the variable via a button.
on (rollOver) {
gotoAndStop(1);
_global.lastframe = 1;
}
on (release) {
gotoAndStop(1);
_global.lastframe = 1;
}
When a swf loads this is in the first frame.
gotoAndStop(_global.lastframe);
thanks
Detect Whether SWF Is Being Run Locally Or Online?
I'm using code like the following in order to make sure flash gets the most recent version of the file.
xml.load("xml_file.xml?nocache=" + random(99999))
That works well once the file is uploaded, but it's a pain add/subtracting that extra stuff depending on whether i'm testing the swf locally or putting it online (as the xml file won't load with that code if i'm running it locally on my computer).
Essentially, I'm wondering if anyone can fill in the blank:
if ( ?? SWF IS ON RUNNING ONLINE ?? ) {xml.load("xml_file.xml?nocache=" + random(99999));} else {xml.load("xml_file.xml");}
Thanks!
Jpg Gets Loaded Locally, Not Online
This piece of codework locally on my machine:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.INIT, imageInited);
l.load(new URLRequest("slika1.jpg"));
function imageInited(e:Event):void{
this.addChild(l.content);
}
But when I put it online, and the assets, I get this error:
//Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
Whats going on here?
Regards,
Mirza
Working Locally Not Online
hi
I have this RSS Reader app that I got from flashkit (http://www.flashkit.com/movies/Scrip...0617/index.php)
for some reason it works locally on my laptop but not when I upload it to my server! It loads the app, but its just empty - wont load the xml feed.
Any ideas???
CSS Showing Locally, But Not Online?
I have been struggling to figure this out for 10 hours now. I have tried various different tutorials and am ready to kill something. Help would be sooooo appreciated right now! Can someone please just give me the actionscript to make this work? I know how to set up the external files, but seem to have problems with the Flash.
I am not sure why, but when I preview the swf locally, the css is applied and everything look peachy. But as soon as I load the swf to the server, it does not apply the css. The text file loads just fine, but not the css. Why would it load from my hard drive, but not the server??
I am using Flash Pro 8 and exporting the movie for Flash Player 8. Here is the actionscript I have used...
Code:
myStyle = new TextField.StyleSheet();
myStyle.load("http://neilmead.name/update/styles.css");
TextHolder.styleSheet = myStyle;
thisText = new LoadVars();
thisText.load("http://neilmead.name/update/news.txt");
thisText.onLoad = function(success) {
if (success) {
TextHolder.text = thisText.content;
}
};
Please... any suggestions??
Prototype Function Works In Flash, Not Online
Like the title says, I found a cool prototype function here in the forums that plays a movieclip backwards:
ActionScript Code:
MovieClip.prototype.backwards = function() { this.onEnterFrame = function() { if (this._currentframe != 1) { this.gotoAndStop(this._currentframe-1); } else { delete this.onEnterFrame; } };};
I have the protoype defined on the main timeline of my main file. I call the function on press of a button from an external movieclip after it's loaded into main.
When testing it in flash it works beautifully. When I test it online it doesn't work at all. Other code on the button being called at the same time does work (like unloading a movieclip on the main timeline).
Any thoughts on why?
|