Works Offline But Not Online
Hi , I build a website using a J.Tarbell (from Levitated) codes, one from his space serie originally in flash 6. It is basically customized to fit my design and I use it as a background on level one, with a slow animation, and I add buttons on the sene to navigate. It works well when I test it in flash and on my localhost but as soon as it is uploaded on my site, none of the buttons works. Could it be an actionscript conflict beetween the codes for the background and the ones for the navigation, or beetween flash 6 codes and flash 8 (I'm working with flash 8)? If anyone know please drop me a line, I'm quite new in flash and can be sometimes a little confuse with actionscripting...
To see the page: http://www.clairewastiaux.com
Below is the code used for the background ( text are now shapes attached to it) and the rest of the page is straightforward, each buttons call a swf movie loaded with loadMovieNum on a different level.
What did I do wrong?
These are the codes
// register root as environment Object.environment = this;
// create camera object this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
// set environmental constants this.fl = 1000;
// create 'space' to which all words will be attached this.createEmptyMovieClip("space",1); // center 'space' on the stage space._x=300; space._y=169;
// a string of words related to the wind this.somewords = "wind breeze storm stormy tornado text space three dimensional infinite recursive instance object distort environmental atmospheric blow gush whoosh thrash whirl push roar rush caress flow swoop"; // convert the string of words into an array of words this.wordList = new Array(); this.wordList = this.somewords.split(" ");
// create one instance for each word in the list for (n=0;n<this.wordList.length;n++) { // pick a word from the list var word = Object.environment.wordList[n]; var x = random(600)-300; var y = random(337)-169; var z = random(Object.environment.fl*2)-Object.environment.fl;
// create an instance of the SpaceWord object nombre = "word"+String(depth++); initialization = {txtword: word, x: x, y: y, z: z}; space.attachMovie("spaceWord", nombre, depth, initialization); }
this.onEnterFrame = function() { this.cam.dz+=.5; // move the camera to its destination this.cam.x+=(this.cam.dx-this.cam.x)/10; this.cam.y+=(this.cam.dy-this.cam.y)/10; this.cam.z+=(this.cam.dz-this.cam.z)/30; }
stop();
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-12-2006, 10:50 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Works Offline, Not Online...
This was supposed to be a nice, simple project...
Basically, it's scrolling credits with some links and images. The text is generated dynamically from an external text file. When I view the page locally, everything works just fine... the data loads, it scrolls, the images are where they should be, the links work... it's basically a finished product.
Then I uploaded it to my server, and it doesn't seem to load much of anything... the scrollbar just starts scrolling over and over again, but nothing is displayed in the credits area. It worked before I added the code to allow images and links, but I can't see anything in the code that would cause them to not work... especially since everything works offline.
I tried, for giggles, changing the permissions on the text file to allow execution, and, as a last resort, writeable for all users. Of course, that did nothing.
The text file is UTF-8 encoded... I'm thinking that might have something to do with it, but, again, it worked just fine before adding the links and images.
Here's the online version:
http://www.kevinkratzke.com/Tests/auricle/credits.html
If you'd like to see the source files, I've put them in a .zip at:
http://www.kevinkratzke.com/Tests/auricle/credits.zip
Thanks in advance for anyone who can make sense of this...
-mirthmgr
P.S. I forgot to mention, the really strange formatting in the data file is based on an old Java version of these credits. The client is used to editing this file, and wanted to be able to edit the new version the same way, so I attempted to maintain as much of the original formatting as possible.
Works Offline But Not Online
Hi Guys,
I have got this stage of my flash project to work offline.
It loads data from an external source and on the press of the green button a series of dynamically generated buttons appears.
The problem is it won't work for me online.
http://www.resourcesforhistory.com/welsh_tribes_map.htm
Any help would be appreciated.
Cheers
Crossy
Works Offline But Not Online
var myWebService = new mx.services.WebService("http://www.chaosserver.com/wtsservice/localtime.asmx?WSDL");
var myCallBack = myWebService.GetLocalDateTimeString("wtsclock001", "nug3moljocu5alsyeoe8tanogtok6upb", theLocation);
myCallBack.onResult = function (result)
{
var localTime = new Date();
if (result != null)
{
trace("not connected");
}
}
myCallBack.onFault = function (fault)
{
trace("not connected");
}
Works Offline But Not Online
When I debug the movie in Flash CS3 the code connects to the defined web service. However when I upload the swf to my server and play it from there it would not connect for me. Do I have to enable any security settings so it can connect for me?
Code is below:
var myWebService = new mx.services.WebService("http://www.mydomain.com/myservice/myfile.asmx?ABCD");
var myCallBack = myWebService.GetLocalDateTimeString("myscript001", "nug3moljocu5alsyeoe8tanogtok6upb", theLocation);
myCallBack.onResult = function (result)
{
if (result != null)
{
("connected");
}
}
myCallBack.onFault = function (fault)
{
trace("not connected");
}
Works Offline But Not Online
I can't see what's happening here. I am working on a wierd project that uses the following files:presenter.swfheader.swfconfigs.xmlpresenter.htm
When I run presenter.swf it works fine, as long as all of those files are in the same folder. I can copy all of the files to a different place on my hard-disk and it works. But as soon as I put them on a server it stops working! The header.swf loads in and I think the confgs.xml loads as well. But the background is not created and there is no text.
Anyone know what might cause this?
Is it something to do with "Local Playback Security" setting in Pulish Settings?
The Help says it can be set to allow both Network and Local but I only see an option for one or the other - not both.
Thanks
Offline It Works, Online It Doesnt..... HELP PLEASE
i have applied this action to a button on my site:
on (release) {
tellTarget ("_level0.instance2.downloadspage.pulsedlactualpag e.pulsedlactualpage") {
play();
}
}
all works fine when i preview it, but when i upload it, the target i want it to play doesnt play, its like the action isnt ther at all. so i tried previewing (in MX) with streaming and i got this Output:
Target not found: Target="_level0.instance2.downloadspage.pulsedlact ualpage.pulsedlactualpage" Base="_level0.instance168.downloadspage.instance23 6.tmp_mc"
can someone help please?
thank you
jh
Site Works Offline, But Not Online. WTH
I have a image gallery site I made that dynamically loads .jpg files. It's been online and working fine. I worked on it some more today (made a new preloader, and changed it a bit appearance wise). Then i uploaded it to my site www.ragland.tk. Now the images wont load. BUT it works fine if i run index.html locally on my computer. WHY would it not work online? All files online are identical to my local files.
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!!!
[CS3] Works Perfectly Offline But Not Online
Hello,
I'm making a site for a photographer with many different sections, so I am using external swfs for each one. My main movie calls a overall swf for each section and a menu, which then loads another swf dependent on the section requested. It's probably not the best way of doing it (there are about 25+ swfs for just one section), but I'm relatively new to AS (hence why I'm doing it in AS2), but it seems relatively logical.
However, all was good, I got the movie running beautifully on my computer and then uploaded it to show my client. When I browsed to it at http://www.seagullx2.com/jason it loads ok, but then when you click on 'industry commissions', the menu goes dead (apart from if you click on it at just the right nano second when it works ok). This obviously isn't good enough! I've been trying to figure out where I've gone wrong for hours now, so if anyone can offer some assistance, I'd be very grateful!
Attached are the fla files, and the link is above.
Many thanks,
Ian
Works Offline But Not Online: FLV End Of Video
I'm completely baffled. The concept work off line but not online.
I simply want when the video reaches its end, to hit the play button and for the video to start over. I have to be missing something stupid here.
ActionScript Code:
Start.onEnterFrame = function() {
if (Math.round(S.ns.time*10)/10>=Math.round(S.video_duration*10)/10 && S.ns.time>0) {
S.EOF = true;
trace("true");
} else {
S.EOF = false;
}
//this._parent._txt.text = Math.round(S.ns.time*10)/10+" = "+Math.round(S.video_duration*10)/10;
};
// actionscript for the Play button
Start.onRelease = function() {
if (!S.EOF) {
S.ns.pause(false);
} else {
S.ns.seek(0);
S.ns.pause(false);
S.EOF = false;
}
};
LINK REMOVED to see what I am talking about. (The video is 30 seconds and there is no scrub bar, sorry).
My only thought is that my if() statment are not getting exucuted on line. Also, there is no preloader for the swf online, perhaps this could be an issue?
Thanks for looking.
FG
[F8] Page-Flip - Works Online But Not Offline?
We're using the page-flip.com script to have an online brochure, and now want to be able to put it on a CD for offline browsing as well.
When it is viewed offline, an error message pops up and wants me to add the page/folder in here: http://www.macromedia.com/support/do...manager04.html
Since this is a plugin script that doesn't have an fla file for me to edit, what are my options here? I've tried to decompile the swf file in order to make the changes, but that doesn't work (the script is fairly complex, so I didn't think it would decompile fully).
Any help here would be much appreciated.
Container Loader Works Offline, But Not Online.
Can anyone tell me why this is working for me offline, but when I upload it doesn't work at all.
I'm just loading an external swf into a container, that then has a progress bar. All of the text fields were for online diagnostic. Offline they read correctly, giving the total bytes of the external swf, the bytes loaded, and the percentage... However online it gives, Total Bytes 0, Loaded 0, and percentage NaN (I'm sure because 0/0 is not a number).
I'm not sure if I need any "_root" or "this" on my paths... or where... I've tried... but I still am not having any luck.
ActionScript Code:
loadBar._visible = false;
function loadMovie_fn(targetImg, targetMC) {
loadMovie(targetImg, targetMC);
loadBar.onEnterFrame = function() {
loadBar._visible = true;
var infoTotal:Number = targetMC.getBytesTotal();
var infoLoaded:Number = targetMC.getBytesLoaded();
var percentage:Number = (infoLoaded/infoTotal*100);
loadBar.progressBar._xscale = percentage;
loadBar.percentLoaded_txt.text = percentage;
loadBar.totalBytes_txt.text = infoTotal;
loadBar.totalBytesLoaded_txt.text = infoLoaded;
if (percentage>=100) {
delete loadBar.onEnterFrame;
loadBar._visible = false;
}
};
}
button.onrelease=function(){
loadMovie_fn("external.swf", container);
};
It's driving me nuts and wasting my time... I'm sure there is a simple solution one of you folks know of.
Thanks so much!!
Richie
Video Player Works Offline But Not Online
Hi everyone,
I've been having troubles with the video player tutorial on gotoandlearn.com. I've gone through the tutorial and I get it working. When I test the movie in flash, it works fine it streams the video from a location online. The buffering works well too.
After I upload it to my hosting space it doesn't work. The progress downloaded bar goes all the way to the end saying that its completely downloaded. The bufferClip doesn't dissappear and it you can't view the video. The play button and rewind button work cause I can hear the clip in the background playing but thats about it.
Heres my code
Code:
//Net Connection object
var nc:NetConnection = new NetConnection();
nc.connect(null);
//Net Stream object
var ns:NetStream = new NetStream(nc);
//buffer code
ns.setBufferTime(30);
ns.onStatus = function(info) {
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if (info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if (info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
};
//Attach NetStream to the video
theVideo.attachVideo(ns);
//Play this video
ns.play("http://www.kicksaints.com/nick/web1/_work/_data/blin.flv");
//Button actionscript
playButton.onRelease = function() {
ns.pause();
};
rewindButton.onRelease = function() {
ns.seek(0);
};
//Video interval function
var videoInterval = setInterval(videoStatus, 10);
//Amount loaded Variable
var amountLoaded:Number;
//Loader width
var loadBarwidth:Number = 363;
// duration variable
var duration:Number;
//on Metadata function
ns.onMetaData = function(obj) {
duration = obj.duration;
};
// VideoStatus function code
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loadbar._width = amountLoaded*loadBarwidth;
loader.scrub._x = ns.time/duration*loadBarwidth;
}
//scrub Variable
var scrubInterval;
//scrub bar code
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit, 100);
this.startDrag(false, -1, this._y, 359, this._y);
};
//scrub event handler
loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus, 100);
this.stopDrag();
};
//scrubit function
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/359)*duration));
}
And here is the link to the file online if you didn't quite understand what I was saying in my explanation.
http://www.kicksaints.com/nick/web1/_work/_data/video.html
Multiple Externally Loaded Txt Files - Works Offline But Not Online ?
Hi guys !
Really confused with this one ! - I am loading 2 external text files into my SWF..
I believe that my action script is correct as it works pefect offline..
However as soon as I uploaded it to my webspace, both text boxes have the "undefined" text sitting there..
The problem doesn't exsist when I only have 1 external text file loaded... but more than 1 I get the problem !
Any ideas ?? I'd be really grateful !
//load 1st text file
myData1 = new LoadVars();
myData1.onLoad = function() {
myText_txt1.html=true;
myText_txt1.htmlText = this.content;
};
myData1.load("textfiles/artist_of_the_week_content.txt");
//load 2nd text file
myData2 = new LoadVars();
myData2.onLoad = function() {
myText_txt2.html=true;
myText_txt2.htmlText = this.content2;
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [300];
};
myData2.load("textfiles/artist_of_the_week_heading.txt");
stop();
Offline Vs. Online
Hi,
I am planning to distribute an executable flash file either as a projector that is installed and automatically run on startup or a screensaver based flash module. The challenge is this:
I wish this module to call on live content WHEN available and call on content installed with the projector when live content is NOT available - ie. when the user is not dialed out/connected at the time of loadMovie or getVariable event.
What is the best and most time/bandwidth efficient way of doing this? Somehow I suspect an if or else statement checking to see if a movie is available - with obvious restrictions concerning the macromedia site relative security issues.
Apologies for the long post, wanted to make it as clear as possible!
Thanks,
Clifford
Offline Vs Online
Can someone explain what the problem is?
This file works just fine off-line. (I found it on this forum) But I have tried uploading it to the web and it just won't work properly. It is all in the same folder on the web. No mistake there...
This is what it looks like on-line:
http://www.bluejaygraphics.com/pages/testing.htm
On the first frame I have as:
spacing = 10;
containerMC._alpha = 0;
MovieClip.prototype.loadPic = function(pic){
_root.containerMC._alpha = 0;
this.loadMovie(pic);
_root.onEnterFrame = function(){
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
if (t != 0 && Math.round(l/t) == 1){
var w = containerMC._width + spacing, h = containerMC._height + spacing;
border.resizeMe(w, h);
delete _root.onEnterFrame;
}
}
};
MovieClip.prototype.resizeMe = function(w, h){
var speed = 3;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1){
this._width = w;
this._height = h;
_root.containerMC._x = this._x - this._width/2 + spacing/2;
_root.containerMC._y = this._y - this._height/2 + spacing/2;
_root.containerMC._alpha = 100;
delete this.onEnterFrame;
}
}
};
On the buttons I have:
on(release){
containerMC.loadPic("pic1.jpg");
}
Thanks for any input on this [pain in my side].
Online Versus Offline Mac, Pc
ok, i have a very confusing situation here and hopefully someone can help me out... i have a site that i have loaded three different swf files one has a preloader and loads an image at start up but is invisible until a certain action is made... i created my site on a mac using flash 2004, i test my swf files on my computer through the flash player it works great, i test it through the html files and view it locally through my browser it works great both on explorer and safari... i up load my files to my host and i check it online through my mac and it is broken... the first image doesnt load and the site is non functional... here is the wierd part i check online through a pc and it works great! any ideas of what is going on here!!!!????
Online/offline Testing
Hi,
i have a swf that interacts with a server with xml. for some reason it works when i run the swf from my hard drive but when i upload it and run it on the server it does not update. i use a link htp://www. ........ in both does anyone have any ideas why this would happen ?
Check If Ip Online/offline?
Hello campers!
Im making a WoW site for a server. And I want to have a server status on the site. I don't know very mutch how it works with servers sites. If there is a script that checks if the server ip is online or offline. I don't know..
But if there is anyone who understands this better then I do, please help out!
Thankful for all answers
Server Online/offline?
Hello I would like to add a server online/offline feature on my website. I run a gaming service, so I would like my users to see whether the server is online/offline. An example of what I want to do can be seen on www.l2refused.com, under Server Status. Thanks everyone.
Server Online/offline?
Hello I would like to add a server online/offline feature on my website. I run a gaming service, so I would like my users to see whether the server is online/offline. An example of what I want to do can be seen on www.l2refused.com, under Server Status. Thanks everyone.
[mx]mc Loads Offline But Not Online?
I've made a website wich loads an xml-based photosystem. The photosystem is made asside of the original site and i exported the sytem as e movie "slide.swf" so that i could load it into my website.
Everything works correctly when i publish my whole website and the xml-based photosystem load like a normal movie, but when i upload my site the photosystem isn't shown?Do you guys know what im doing wrong? I've uploaded my html file, my swf file , my xml-file and my folder with the xml-images called 'images'...
Any ideas?
Dynamic Load- Offline Ok Online No WAY
Need help with dynamic data (text and jpeg).
When tested locally on my computer, everything loads fine, even when I delete local files and use Absolute URLs.
However, I am having No success when trying to view swf over the internet.
I have tried IE and Netscape, to no avail.
Here is my Code:
for the Swf/fla
//Key frame 1 action script
rndvar = random(9999);
loadVariablesNum ("http://www.independentpraiseradio.com/samPHPweb/swftest7.php", 0,"POST");
loadVariablesNum ("http://www.independentpraiseradio.com/samPHPweb/pic.php", 0,"POST");
var a = 1;
//action scripts for third from last keyframe (keyframe(68 in this case)
a = a+ 1;
txt2 = a;
if (a > 1) gotoAndPlay(68);
//action script for last frame (70 for mine)
gotoAndPlay(69);
//end code for .fla
Here is code for "swftest7.php"
?php
$file = "swfplaying7.txt";
$open = fopen($file, "r");
$size = filesize($file);
$count = fread($open, $size);
fclose($open);
$currentsong = " ";
$currentartist = "";
$currentalbum = " " ;
$countplayed = " ";
$countrequested = " ";
require("config.php");
$db->open("SELECT * FROM songlist WHERE songtype='S' ORDER BY date_played DESC LIMIT 1");
$history = $db->rows();
reset($history);
list($key, $song) = each($history);
$db->open("SELECT songlist.*, historylist.requestID
as requestID FROM historylist,songlist
WHERE (historylist.songID = songlist.ID) AND (songlist.songtype='S')
ORDER BY historylist.date_played DESC LIMIT 1");
$history = $db->rows();
reset($history);
list($key, $song) = each($history);
$requestID = $song['requestID'];
$currentsong = $song["title"];
$currentartists = $song["artist"];
$currentalbum = $song["album"];
$songlength = $song["mmss"];
$countplayed = $song["count_played"];
$countrequested = $song["count_requested"];
if(empty($song["picture"]))
{
$song["picture"] = "na.jpg";
$songhaspicture = false;
}
else
{
$song["picture"] = $picture_dir.$song["picture"];
$songhaspicture = true;
}
$picture = "http://www.independentpraiseradio.com/samPHPweb/";
$picture .= $song['picture'];
if($song["requestID"]!=0)
{
//<img src='dropshadow.php?src=
$html = "files=<table bgcolor='#333333' height='138' border='1'><tr><td><img src='$picture' height='80' width='80'><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> requested song <br><font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b>$currentsong</b> $songlength <font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> by <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'> <i><b>$currentartists</b></i><br><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'>from the album <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b><i>$currentalbum</i></b><br>played $countplayed times and requested $countrequested times.</td></tr></table> ";
echo "files=<table bgcolor='#333333' height='138' border='1'><tr><td><img src='$picture' height='80' width='80'><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> requested song <br><font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b>$currentsong</b> $songlength <font face='Arial,Helvetica,sans-serif' size='12' color='gold'> by <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'> <i><b>$currentartists</b></i><br><font face='Arial,Helvetica,sans-serif' size='12' color='gold'>from the album <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b><i>$currentalbum</i></b><br>played $countplayed times and requested $countrequested times.</td></tr></table> ";
}
else
{
$html = "files=<table bgcolor='#333333' height='138' border='1'><tr><td><img src='$picture' height='80' width='80'><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b>$currentsong</b> $songlength <font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> by <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'> <i><b>$currentartists</b></i><br><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'>from the album <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b><i>$currentalbum</i></b><br>played $countplayed times and requested $countrequested times.</td></tr></table> ";
echo "files=<table bgcolor='#333333' height='138' border='1'><tr><td><img src='$picture' height='80' width='80'><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b>$currentsong</b> $songlength <font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'> by <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'> <i><b>$currentartists</b></i><br><font face='Arial,Helvetica,sans-serif' size='12' color='#FFCF60'>from the album <font face='Arial,Helvetica,sans-serif' size='12' color='#ffffff'><b><i>$currentalbum</i></b><br>played $countplayed times and requested $countrequested times.";
}
$open = fopen($file, "w");
fwrite($open, $html);
fclose($open);
//phpinfo();
exit;
?>
///////////end code///////////
here is code for "pic.php"
<?php
require("config.php");
$db->open("SELECT * FROM songlist WHERE songtype='S' ORDER BY date_played DESC LIMIT 1");
$history = $db->rows();
reset($history);
list($key, $song) = each($history);
$db->open("SELECT songlist.*, historylist.requestID
as requestID FROM historylist,songlist
WHERE (historylist.songID = songlist.ID) AND (songlist.songtype='S')
ORDER BY historylist.date_played DESC LIMIT 1");
$history = $db->rows();
reset($history);
list($key, $song) = each($history);
if(empty($song["picture"]))
{
$song["picture"] = "na.jpg";
$songhaspicture = false;
}
else
{
$song["picture"] = $picture_dir.$song["picture"];
$songhaspicture = true;
}
$picture = "http://www.independentpraiseradio.com/samPHPweb/";
$picture .= $song['picture'];
echo "&imageurl=$picture";
?>
//////////END CODE/////////////
I understand that this has happened to others, But I have not been successful at identifing what is going on.
Thanks in advance.
Cue Points Work Offline But Not Online
Using netstream and have injected some cue points into the video. When I run everything offline, the cue points are working. When I upload the video and test it, the cue points do nothing. Here's the code:
code: stream_ns.onCuePoint = function(infoObject:Object) {
if (infoObject.name == "point1") {
trace("point 1 reached");
}
if (infoObject.name == "point2") {
trace("point 2 reached");
}
if (infoObject.name == "point3") {
trace("point 3 reached");
}
};
However, this traces in the output panel fine after uploading the vid:
code: stream_ns.onCuePoint = function(infoObject:Object) {
trace("onCuePoint:");
for (var propName:String in infoObject) {;
if (propName != "parameters") {
trace(propName+" = "+infoObject[propName]);
} else {
trace("parameters =");
if (infoObject.parameters != undefined) {
}
for (var paramName:String in infoObject.parameters);
{
trace(" "+paramName+": "+infoObject.parameters[paramName]);
};
} else {
trace("undefined");
}
}
}
trace("---------");
};
Javascript/flash -> Aol Online Or Offline
Hi all,
I managed to find some javascript that I could use to determine whether or not Im logged into AOL Instant Messager. I wanted to know is there a way I could incorporate this into flash? I was looking to show a certain image if Im online, and another to show if Im off. And to bring it all home, if I'm online, I was looking to give an option for the user to be able to send an instant message (All from flash).
What do ya think? Any ideas up as to how to do this?
Here is the javascript, i found (where TekNique33 is my screen name):
<!-- begin code provided by createblog.com -->
<b>AIM:</b></span><span id="profIM21">
<img border="0" align="absmiddle" src="http://big.oscar.aol.com/TekNique33?on_url=http://www.pixeva.com/webVer_1/images/online.jpg&off_url=http://www.pixeva.com/webVer_1/images/offline.jpg">
<a href="aim:goim?screenname=TekNique33">TekNique33</a></span></span><br>
<!-- end code provided by createblog.com -->
Thanks,
T
Offline To Online Working Problems
I created a full flash site one and half years back on flash mx when i was first starting out using flash.. Recently i was ask to update this site and did so but using Flash 8 (Shouldn't be a problem!).
Now the basic problem im having is that this site (now updated) is working fine offline but as soon as i move it back online to test it ceases to function.
The site setup i simple with a base .swf loading in external .swf files and .txt files (very one dimensional).
Does anyone know or has anyone experienced a issue where sites work offline but not online???
i dont think its a format issue as it works offline.. i cant figure it out??
Any help welcome
Thanks people!
Preloader Working Offline But Not Online
hi,
sorry to stress you again.
i made a preloader for a (semi-finished) website. what is odd about it is that it plays perfectly when offline but it puts out some freaky numbers when online like -3348293% Loaded; 2053 of 0 kb loaded,...
i put some heavy sound file in one of the loaded films so that one can see the effect longer.
please look at it on http://www.8ung.at/fjperchtoldsdorf/hpneu
and download the fla on http://www.8ung.at/fjperchtoldsdorf/hpneu/fjhomepage.zip
thanks again
regards
Firegambler
Dynamic Pictures Online/offline
I have this code:
i=1;
_root.createEmptyMovieClip("Skaerm", 1);
loadMovie("PICT"+i+".jpg", Skaerm);
It works fine when i publish it and run the html file created from my lokal drive.
When I transfer all the files to the internet it doesn't work. Any ideas?
FCiL
How Do I Check If A User Is Online With A Offline Projector?
Hi!
For a project I need to check if the user has established
a online connection. It has to work with a offline projector. I have tried LoadVariables and so on but they only work in the same domain/subdomain. Does anybody know some kind of workaround? Another important point is that I don't have the possibility to open up a browser window. It has to work from the projector. I hope somedbody can help me.Thanks in advance
Ciao
Offline Flash: Detecting If Computer Is Online?
i have a offline cd-rom with a form that gets posted by a cgi script on a server. when the computer is online it works fine - when the computer is offline the user won´t recognize that the mail was not sent.
is there a way that flash recognizes if the user is online or is there a script that checks this?
tahnks for the support
martin from germany
Script Work Offline (In Browser N .swf) But Not Online
Hi all,
I got this script
Code:
on (release) {
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success) {
//trace("lala"+lv.returnMessage);
notificationMsg.htmlText = lv.returnMessage;
} else {
notificationMsg.htmlText = "failed";
}
};
lv.load("http://www.st.com/backendScripts/microsites_checkMailingList.aspx?merchantCode=MONO&email="+monoemail.text+"&");
}
Somehow it will work offline, etc in broswer and .swf itself, but when i upload it to the server it doesn't work.
I'm pretty sure the crossdomain policy is being taken care of, so any idea where is the problem?
[CS3] Load-in Text Working Offline But Not Online
I am working with Flash CS3, but Publishing for flash player 8 and actionscript 2. I have two text files that are being loaded in externally. Resume1.txt and resume2.txt. They both work perfectly offline but the second .txt, doesn't work online. It just reads as "undefined". Any idea why this might be? Thanks!
-Adrianne
Flash Contactform Working Offline But Not Online - Plz Help
Good day,
I would really appreciate if someone can help me with the following:
I created a very simple flash contact form that connects to a PHP form. When I test my movie from flash it works fine, and the email is received.
BUT, when I upload my index.html and SWF file to my hosting server, then the contact form does not work - no email is received. Also no error message is displayed.
Is this some kind of server issue....
Here is my code:
Code:
<?PHP
$to = "mail@tunnelvisiondesignz.com";
$subject = "flash contact form submission";
$message = "Name: " . $theName;
$message .= "
Surname: " . $theSurname;
$message .= "
Company: " . $theCompany;
$message .= "
PhoneNumber: " . $thePhone;
$message .= "
Email: " . $theEmail;
$message .= "
Country: " . $theCountry;
$message .= "
Message: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "
Reply-To:$theEmail";
mail($to,$subject,$message,$headers);
?>
Actionscript:
stop();
theName.tabIndex = 1;
theSurname.tabIndex = 2;
theCompany.tabIndex = 3;
thePhone.tabIndex = 4;
theEmail.tabIndex = 5;
theCountry.tabIndex = 6;
theMessage.tabIndex = 7;
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theSurname = theSurname.text;
senderLoad.theCompany = theCompany.text;
senderLoad.thePhone = thePhone.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theCountry = theCountry.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://www.nerdherdit.co.za/send2.php", receiveLoad);
gotoAndStop("success");
};
Offline/online Problems With BitmapData Class
I see that this question has been posted a few times in the forum but I haven't seen any resolution to this problem yet...so I'm posting it again with the hopes that someone knows the answer
I'm trying to understand why this code does not work when viewed online vs. offline.... and of course what can I do to fix it?
this is a simple example of snapshotting an image that was loaded into an mc using loadClip lifted from flash8 livedocs.
to test offline paste this into flash8
online version here:
http://fullmentaljacket.com/project...napshot_03.html
please advise, thanks!
Code:
import flash.display.BitmapData;
//
scale=150 //scale percentage
//normzalize the scale
scale/=100
//create a new transformation matrix
scaleMatrix = new Matrix()
scaleMatrix.scale(scale,scale)
//
// create a clip with visual content
original = this.createEmptyMovieClip("orig", this.getNextHighestDepth());
loader = new MovieClipLoader();
loader.addListener(this);
loader.loadClip("http://images.businessweek.com/ss/06/06/bills_milestones/image/windows.jpg", original);
function onLoadInit()
{
// create a BitmapData object with the same size
var myBitmapData:BitmapData = new BitmapData(original._width, original._height);
// attach the Bitmap to a clip so that it will be rendered on screen
var copy:MovieClip = this.createEmptyMovieClip("cop", this.getNextHighestDepth());
copy.attachBitmap(myBitmapData, this.getNextHighestDepth());
copy._x = 100;
copy._xscale=copy._yscale=50
// take a 'snapshot'
myBitmapData.draw(original);
//original.removeMovieClip()
}
Offline Stuff Doesn't Work Online?
hi everybody.
i'm to make some changes to a flash-site made about 1 year ago...
as i publish and test the new version from my own computer, the controlbuttons for the video work perfectly...
...but when i put it online, the controlbuttons doesn't work at all.
what have i done wrong?
you can check out the .swf, .fla and .html-files here:
http://www.campjohn.dk/tekotest/biografreklame2.zip
i've put the files online, so that you don't have to put it online yourself:
http://www.campjohn.dk/tekotest/biografreklame2.html
the main parts to check out should be the simple actionscript of the videofile: ONLYTOSHOWVERSION.fla, and the _mc called video_ramme on the 95th frame of the file biografreklame2.fla
good luck, looking forward to hearing from you again...
kind regards
felisan
Little Site Doesnt Work Online But Offline It Does
hi there...
i made a little rssreader... and when i view it from my computer everything works just fine... but when i try to view it online it just cant load the right content... what is wrong?
you can download the source file here
thanks for helping!
Script Work Offline (In Browser N .swf) But Not Online
Hi all,
I got this script
Code:
on (release) {
var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
if (success) {
//trace("lala"+lv.returnMessage);
notificationMsg.htmlText = lv.returnMessage;
} else {
notificationMsg.htmlText = "failed";
}
};
lv.load("http://www.st.com/backendScripts/microsites_checkMailingList.aspx?merchantCode=MONO&email="+monoemail.text+"&");
}
Somehow it will work offline, etc in broswer and .swf itself, but when i upload it to the server it doesn't work.
I'm pretty sure the crossdomain policy is being taken care of, so any idea where is the problem?
Online DB Interaction From Offline Projector File?
hey guys,
happy halloween! I am doing some research about the possiblity of accessing an online db from a projector file. I was wondering if there is a way to have a projector file write information to a webdna database? More importantly, is there a way to store or send information regarding sections of the projector movie a user has accessed? Any help or direction would be great. thanks!!
Soundpanel Loading Mp3 Working Offline, NOT Online
hi folks,
i made a soundpanel loading a sound from an external file which works locally but not online.
-the mp3 is online and in the right directory and it is named correctly
-the preloader doesn't cause problems when offline but online i get some "infinity %" message.
i loaded the file up.
http://www.weinbau-neumayer.net/florian30/soundcheck.zip
the relevant script is on the MC in the midst of the stage called "positionsanzeige" and on the three buttons below.
apart from this there is only a "stop" on the first frame of _root.positionsanzeige.slider .
you will see that when pressing a button there will be an enquiry about _currentframe of _root.positionsanzeige.slider .
this is only used to make the slider jump back to the beginning when pressing the stop-button. don't worry 'bout that.
The main thing is how to make the preloader work and load the mp3.
Help would be greatly appreciated!!!!!
regards
Offline Stuff Doesn't Work Online?
hi everybody.
i'm to make some changes to a flash-site made about 1 year ago...
as i publish and test the new version from my own computer, the controlbuttons for the video work perfectly...
...but when i put it online, the controlbuttons doesn't work at all.
what have i done wrong?
you can check out the .swf, .fla and .html-files here:
http://www.campjohn.dk/tekotest/biografreklame2.zip
i've put the files online, so that you don't have to put it online yourself:
http://www.campjohn.dk/tekotest/biografreklame2.html
the main parts to check out should be the simple actionscript of the videofile: ONLYTOSHOWVERSION.fla, and the _mc called video_ramme on the 95th frame of the file biografreklame2.fla
good luck, looking forward to hearing from you again...
kind regards
felisan
Online And Offline Shared Object Sharing
Is it possible for an offline projector to access shared objects written by an online swf.
If so how - something to do with allow domain? or localpath?
Anyone?
Cheers
M
LoadVars Not Working Offline Accessing Online File
I have made a text file called test.txt with this in it:
&mydata=190
When this file is offline in the same folder loadVars works.
When I upload this text file and change the url that Flash is loading to mydomain/test.txt it doesn't work.
When I upload my Flash file and look at it online, it works.
I have uploaded a crossdomain.xml file that says:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
I am making an offline Flash appilcation, so need to get this working accessing a data file online. What am I doing wrong?
Dynamically Generating Flash Sites For Online And Offline Use
Hi,
I'm not really clear how I can do this. Macromedia used to make Generator which I thought was used for making data driven sites; now Adobe has Flash Remoting MX, but the product page is not really clear what it does.
My goals are to build a site which allows a member to login, select a variety of content parts from a database which might include, text, images, etc, and generate a Flash presentation from those selections. The swf file should then be viewable online on its own - to like the public - so standalone from the editing interface. It would also be especailly nice if they could generate an encapsulated swf file that they could download and run off line when not connected to the internet. I thought Generator kind of did this?
Advise would be greatly appreciated!
Cheers,
Will
Swfs Work Offline But Load Funny Online.
http://www.dovecoteweddingcars.co.uk/
Offline, each section of this site works fine. Each section is an externally loaded swf and they load in their entirety. But when it's online, only parts of the swf are visible when it's first loaded. Check the contact section for example. There should be a map image that's missing. Click contact again, and it appears. Any thoughts? Thanks in advance.
PRELOADER WORKS ONLY OFFLINE
OK the situation
There is a main.swf file that calls SWFs1 to 5, each in another PlaceHolder MC called mMC_PH1 to mMC_PH5.
Offline while testing the following code works perfect
load("SWF1", mMC_PH1)
and so on up to PH5
then i´m defining
mTotalBytes=mMC_PH1.getBytesTotal()+...+mMC_PH5.ge tBytesTotoal()
In the following preloader Section there is
mLoadedBytes=mMC_Ph1.getBytesLoaded()+...+mMC_Ph5. getBytesLoaded()
after that i only need to check the preload state in
if(mLoadedBytes<mTotalBytes)
goto Preloader and so on
as i said, everything works great until....
i uploaded my files onto http://www.
this is my problem
the variable mTotalBytes has not any longer a value around 1 Meg but only 600 kB (??????)
Funny is the values varies
Is it possible that the loaded movie "needs a while" to fix its correct length? I would say NO
But it must have to do with transmission speed
I dont know
Please HELP
Christian
Loadmovie Works Offline Only
Hi All,
I have a file that I've created. It's suppose to load movies 1-7 when I click on different thumbnails, but for some reason it only works when I veiw it in flash MX. As soon as I try to view it in explorere or upload all the files online it doen'st work?
What am I missing please. Any advice very welcome.
ta
Cara
Heres the code I've put on frame one:
button1.onRelease=function(){
loadMovie ("Design_print_capitext.swf", "_root.content");
}
button2.onRelease=function(){
loadMovie ("Design_print_times.swf", "_root.content");
}
button3.onRelease=function(){
loadMovie ("Design_print_dulwichlife.swf", "_root.content");
}
button4.onRelease=function(){
loadMovie ("Design_print_treefortwo.swf", "_root.content");
}
button5.onRelease=function(){
loadMovie ("Design_print_flyline.swf", "_root.content");
}
button6.onRelease=function(){
loadMovie ("Design_print_flyers.swf", "_root.content");
}
button7.onRelease=function(){
loadMovie ("Design_print_harrods.swf", "_root.content");
}
Sendandload Works Offline Not On.. Why Why Why?
Ok.. easy question hopefully..
I'm using sendAndLoad in its basic sense:
Code:
myVars.sendAndLoad("datatest3.txt", myVars, "POST");
myVars.onLoad = function(success)
...etc etc...
Works like a charm (success flag registers true) when I run it locally.. When I upload it to my site, nothing happens (even when I add the full URL path w/ http:// etc etc).. Why on earth could this possibly be? This is driving me nuts..
ThankS!
|