Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




File Plays Fine Only On Localhost?



Hello allI am very new to scripting action script and.. I guess to flash all together. so when it took me three days to get a simple mp3 player together you could imagine how frustrated i became when i realized that it only works on my localhost.I'm using swfobject and actionscript 2 on the server side. the flash SWF file plays fine on the server but i think the Javascript on the embed page is somehow to blame. The code is identical on both the live server and localhost... what could be the problem?
PHP Code:


<?php    function preview_music($resource_file, $id="prev", $n=0)    {        $resource_file = rawurlencode($resource_file);        echo "<script type="text/javascript" src="../../javascript/swfobject.js"></script>";        echo tab($n)."<script type="text/javascript">";        echo tab($n+1)."var flashvars = {};";        echo tab($n+1)."flashvars.resource = "".$resource_file."";";        echo tab($n+1)."var params = {};";        echo tab($n+1)."var attributes = {};";        echo tab($n+1)."swfobject.embedSWF("../../flash/preview.swf", "".$id."", "18", "18", "9.0.0", "../../flash/expressInstall.swf", flashvars, params, attributes);";        echo tab($n)."</script>";                        echo tab($n)."<span id="".$id."">";        echo tab($n+1)."<a href="http://www.adobe.com/go/getflashplayer">";        echo tab($n+2)."<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />";        echo tab($n+1)."</a>";        echo tab($n)."</span>";    }?>


Note:tab($n) is a function i created elsewhere and it works fineI've tried absolute and relative linking to various included files



ActionScript.org Forums > Flash General Questions > Flash 9 General Questions
Posted on: 07-03-2008, 05:22 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

MP3 Plays Fine In AS2, But Not AS3
I have this code written in AS2 to play an MP3:
var my_sound:Sound = new Sound();
my_sound.loadSound("

Action 3.0 W/FLV Plays Fine On Macs But Not PCs
What is up with that?

I used Flash and ActionScipt 3.o to publish a FLV files. I can log into my website from a Mac and everything works great.

From PC they are just white boxes.

Help...Please

SWF Plays In Firefox Fine But Disappears In IE 6
I have created a presentation in Flash 8 Professional and exported the swf to require flash player 8.

If I view the presentation in Firefox, it works as expected.

If I view the presentation in IE6, a portion of the swf disappears - usually the lower 1/3 of the presentation. The swf keeps playing, but the bottom disappears.

Why?

Music Plays Fine Once, But Does Not Play Second Time Around
Hi

I have a preloader, intro and menu system in the same file.

When I play the file, everything works fine, preloading, intro plays with music and then the menu system comes up.

Thing is, when I return to view the intro again (if anyone was that interested), the movie plays, but the sound doesn't come up.

The sound is in a movieclip on the _root timeline, and I have tried many things to try and reset the clip, ready for the next play request (including onClipEvent(enterframe) and resetting the moveclip with a goto(1); when the menu system appears)

but no joy.

Anyone have any experience with this problem. I can't be the first.

Swf Plays Fine Locally, Slow Online
I have a 30 fps swf, when I play it from my computer, everything works fine, but once I upload it online, the playback becomes really slow, slow as in the animation being slow, like it was reduced to 12fps or something. I've checked the cpu usage and it doesn't seem that my cpu was maxing out during any of the playbacks.

oh, I tested it with flashplayer6 locally, and my IE has FP7(7.19.0) plug-in. Can that be the problem???

Al

Slideshow Plays Fine In Flash 8, But Not Lower
I did a simple slideshow for a client and it played smoothly when published as Flash 8, but they need it published as Flash Player 6. When I publish it for 6 it turns very jerky as the images zoom in and out. I have "allow smoothing" checked for each image. Any suggestions?


slideshow

Swf Plays Fine Locally But Won't Play When Uploaded
OK, so i just created a very simple flash unit with cross fades... published in flash 9, and dropped the swf file into an html page. on preview it plays fine. Then when I upload it to the server, the html page loads , but no swf, nothing. Apparently there are some new extraneous files that are published along with the swf, but even when I uploaded those to the server, nada, nothing... Please help.

John

Flash Video Plays Fine Offline, But Not On
I'm sure I've uploaded the correct files using Dreamweaver, the DW site is set up correctly so the directory structure should be correct. I don't get it.

http://philnolan3d.com/2008/demoreel.html

SWF Plays Fine On Hard Disk But Slow Online
Any ideas? The frame rate seems to drop to about 10FPS online! I am using a preloader...

AS Intensive Game Plays Fine Locally, But Slow In Browser
I have developed with Flash for a very long time, and Flash 8 is the first version where I have seen such a large discrepency between the frame rate of movies played locally (in the Flash player) and the frame rate of movies played in the browser.

Right now I am working on an intensive game with frame rate set to 53 fps. When played locally it averages a frame rate of ~50 fps with dips to 30 fps every once in a while. When played in IE I get an average frame rate of ~32 fps with dips to 19 fps. In firefox it is even worse.

Does anyone have experience with this or know why it might be happening? I don't have anything out of the ordinary going on in my game. Well, perhaps the only thing I can think of is that I am publishing in Flash 8 (with AS2) but I am still using mosly (~95%) AS1 compliant code. I am porting this over to Flash 8 at the last minute to use some of the newer features.

Thanks for any help you may be able to provide.

Embeded Flash Plays Fine Locally, But Only Partly Off Server
We are currently building a test version of a site and have added a couple .swf's. One is an xml-slide-show and another is a series of rotating quotes also using xml. If one looks at the home page of the demo,...

http://www.talkingboxmedia.com/demo/SWW-Final-C3/index.htm

you can see both players working fine at the bottom.

However,....if one either navigates to the ABOUT page,...or

http://www.talkingboxmedia.com/demo/SWW-Final-C3/about/about.htm

you'll notice two blank spaces where the code for the players is embeded,..but they do not show up... The weird thing is that they play fine locally from this page,...and that other pages,..like the ABOUT-History page which are at the same folder level as ABOUT,...also show the content....

If anyone has any ideas why the flash content dissapears only on the server,.and only on the ABOUT-page,...i'd be very curious to hear your thoughts....

Passing Variable Php To Flash, Can't Access File.php On Localhost
Hi,
i'm trying to put a variable in a flash movie using a PHP file.
I Did everything in the .php (print(filename=$file))...
I also coded the part for AS in the movie timeline:

loadVariables("http://localhost/test.php", this, "GET");

But on that line, flash 8 pop a message saying that my movie.swf try to communication with localhost, and this access is denied. So I'm redirected to the web setup where I must ADD the address wich I want to be allowed, but that change nothing, after reloading the application, it keeps doing the same thing, even if my new address(http://localhost/test.php) is indeed in the allowed list.

Please I really need help for this I can't find where to fix this anywhere!

Passing Variable From Php To Flash, Error: Can't Access File.php On Localhost
Hi,

i'm trying to put a variable in a flash movie using a PHP file.
I Did everything in the .php (print(filename=$file))...

I also coded the part for AS in the movie timeline:
loadVariables("http://localhost/test.php", this, "GET");

But on that line, flash 8 pop a message saying that my movie.swf try to communication with localhost, and this access is denied. So I'm redirected to the web setup where I must ADD the address wich I want to be allowed, but that change nothing, after reloading the application, it keeps doing the same thing, even if my new address(http://localhost/test.php) is indeed in the allowed list.

Please I really need help for this I can't find where to fix this anywhere!

If I See The Swf File Is Fine, If I See It In A HTML Page....
I have a problem in seeing my SWF file when enbedded in HTML.
I'm testing Flash MX with the trial version and I wonder if this is a problem that occur for this reason.

the fact is that when I test the movie inside flash is OK,
if I see the SWF file is OK,

But if I pubblish the HTML file that call the SWF Iwill not see my movie at all or I will see it Partially (without some botton for instance...)

Plese Help me becouse I'm not going to spend time with flash MX if my work after pubblishing do not work.

Tanks
[Edited by estudioworks on 09-20-2002 at 09:07 AM]

.swf File Is Fine But Keyboard Doesn´t Work In IE
I finish a videogame and within Flash 8 Professional everything is working fine, when I test the animation the characters respond to the keyboard interactivity but when I try to test the .swf in Internet Explorer there is no connection between the keyboard actions and the animation. This is my first one and I was happy that everything was working just fine until I tried to use it in Explorer 7.0 Please, need help. Any clue?
The animation is in http://www.fitnesselsalvador.com/videojuegos/index_videojuegos.html





























Edited: 11/17/2008 at 11:15:35 AM by spinning_panda

Problem With .projector File(.swf Works Fine)
I have a movie where text is loaded in from external file like this:
loadVariables("kysimused/kysimused1.txt", vastus_d);
loadVariablesNum("kysimused/kysimused1.txt", 2);

All works fine when I'm using flash player, but when im making .exe file. It won't load the texts. Any idea why?

Checking If File Exists? Works Fine In IE
so, what Im trying to do is search for xml files that are labelled by number (1.xml,2.xml,3.xml etc) and stop at the highest one. as you can see Ive put this in a function that starts at 10 and decrements each time it loads, each time testing if the file exists (starting at 10.xml).

now this seems to work all well and good in Internet Explorer (and Flash!) but for some reason in Firefox it falls over.

anyone know what could be causing this? or any way I could resolve the situation.

any help would be greatly appreciated

Code:
var ticktock = 10;


function findAvail(ticktock){

myVars = new LoadVars();
_root["ticktock"]--;

myVars.onLoad = function(success){
if(success){

_root["found1"].text = "found";
//trace("File loaded ..." +_root["ticktock"]+ ".xml");
}else{
//trace("File not found!" +_root["ticktock"]+ ".xml");
findAvail(_root["ticktock"]);
}
}
//search for xml using counter
myVars.load(_root["ticktock"]+".xml");

}



findAvail(ticktock);
I've attached an example if you want to test yourself.

File Works Fine Local - But Not On The Server
Hi. I have made a flash video using and flv and the playback component.

It works great local. But, when online does nothing.

In the debug it say that it can't find the file!

But, the file is defo there.

This is the location of the file:
http://www.quanticsolutions.co.uk/temp/test.flv

It just comes up with file not found. I have made a copy of the file and changed the extension to zip and the file downloads (http://www.quanticsolutions.co.uk/temp/test.zip). The flv is defo there though!

From inside flash, if I set the component to use the flv at
http://www.quanticsolutions.co.uk/temp/test.flv it says
"Failed to load http://www.quanticsolutions.co.uk/temp/test.flv"

I don't understand - the file is there, I have no firewalls. Is it maybe some configuration in IIS that I am unware of?

Please advise.

M@)

Problem With .projector File(.swf Works Fine)
I have a movie where text is loaded in from external file like this:
loadVariables("kysimused/kysimused1.txt", vastus_d);
loadVariablesNum("kysimused/kysimused1.txt", 2);

All works fine when I'm using flash player, but when im making .exe file. It won't load the texts. Any idea why?

Checking If File Exists? Works Fine In IE
so, what Im trying to do is search for xml files that are labelled by number (1.xml,2.xml,3.xml etc) and stop at the highest one. as you can see Ive put this in a function that starts at 10 and decrements each time it loads, each time testing if the file exists (starting at 10.xml).

now this seems to work all well and good in Internet Explorer and Flash, but for some reason in Firefox it falls over (and possibly other browsers?).

anyone know what could be causing this? or any way I could resolve the situation.

any help would be greatly (greatly!) appreciated

Code:

var ticktock = 10;


function findAvail(ticktock){

myVars = new LoadVars();
_root["ticktock"]--;

myVars.onLoad = function(success){
if(success){

_root["found1"].text = "found";
//trace("File loaded ..." +_root["ticktock"]+ ".xml");
}else{
//trace("File not found!" +_root["ticktock"]+ ".xml");
findAvail(_root["ticktock"]);
}
}
//search for xml using counter
myVars.load(_root["ticktock"]+".xml");

}



findAvail(ticktock);



I've attached an example if you want to test yourself.

Fine Local,Not Fine Server...NetConnection
Been trying for a day now to get some progressively downloading FLV files to work off the server. They run fine on my local machine and off a network drive, but do not run off 2 different servers here...

Using this code

PHP Code:



var myNetConnection:NetConnection = new NetConnection();
myNetConnection.connect(null);
var myNetStream:NetStream = new NetStream(myNetConnection);
this.myVideo.attachVideo(myNetStream);
myNetStream.play("images/sketchbook/video/"+_global.vidClip+".flv");




Anyone run into this? Had the network guy make sure there's no weird security for connecting or streaming. Site has no issues with "swf's", only with "flv" files... Is there some setting I'm missing or something I need to tweak on the server? Thanks...

Auto Playing Of First Media File Works Fine, But All Others
Good morning Flash maniacs.

I have been on a flash media application that reads from an XML file retrieves external files and media files and starts to play them automatically. This is fine. The problem occurs when the user clicks to load another media file which in turn parses over a new XML file and retrieves external and media files (this works fine) but the auto playing of the files is not working correctly.

What is occuring is this.
1. Using trace statements I have verified that all of the external files that are required are loaded.
2. Loading of the audio/media file is loaded
3. Check to see if the audio file is playing via the mediaPlayer.playing which returns true
4. Checking of the playhead position is always 0 (checking this with an interval method)
5. No sound is playing at all, playhead is not moving but the app says it is playing.

Now, if I click on the pause button and then click on the play button it starts playing just fine.

What could be the issue that the media player says its playing, but is not actually playing because the playhead is never progressing?

Thanks for looking.

LoadMovie Syntax Fine But Still Doesn't Load File
I'm trying to load an swf of a clock in a movie. When I load it as mc.proxy.loadMovie (name of swf) it loads great, but the clock doesn't work. When I load it to a clip and deal with the event handler error satisfactory, I get no errors but the #$!!@ clock doesn't appear.

I've spent about 20 hours on this, going through a dozen books, twice that in forum searches, and I can't get the clock to load AND work (as a stand-alone swf, the clock works fine.

Can anyone help me, please.

Textarea Tests Fine, But When Uploaded It Doesn't Load .txt File
Hello friends,

i've created two textarea fields that pull data from a textfile in the same directory and formats it with CSS. it tests fine on my computer, but when i upload it, it doesn't show the txt file contents. It's just blank. I've been looking around everywhere to try and find a solution, but i can't seem to find anything. Also, the scrollbar on the side of the textarea doesn't load in IE but loads in firefox.

Any help would be greatly appreciated. Here's some of my code:


Code:
mytextboxstyle = new TextField.StyleSheet();
_root.mytextboxstyle.load("textarea_style.css");
mytextbox.styleSheet = mytextboxstyle;
// Specify mytextbox to read text as HTML
mytextbox.html = true;
// Specify mytextbox to wrap text
mytextbox.wordWrap = true;
// Specify mytextbox to have a scrollbar
mytextbox.multiline = true;
mytextbox.onLoad = function() {
loadtextContent = new LoadVars();
// Load the text file into my movie
_root.loadtextContent.load("press_content.txt");
// Start a new function to load the text file
loadtextContent.onLoad = function(success) {
if (success) {
// loads the file into mytextbox
mytextbox.text = this.mytext;
}
};
};

File Plays Abnormal On Server
Hi,

http://can_info_guide.tripod.com/sho.../tutorial.html

I am desparate. One puts in so much effort to get it done. It works but not when tested in live!
This is a slide show component. When I play it on the hardrive locally, everything is fine but on the server with IE6 (NS, I don't know) the textfile does not show up, when pic is clicked (show in frame 2) and the frame for the picture does not show. What's wrong with that? You can download and test the component by yourself.

Thanks for any help.

When I Upload Swf &.txt File My Banner Plays Up
I am stupid, truth is I am a newbie.
This banner is perfect and functions beautfully on my local site but when I upload to my host does not seem to work its way through the rest of the txt document. Each line of text is seperated accordingly.
Check out the attached fla. What occurs on my servers is that the banner swf seems to
1. load two lines of text instead of one at a time(it recognises the line breaks when i test on my local drive, perfectly)
2. Keeps repeating the same 2 lines without progresing through the rest of the .txt file.
The txt file sits in the same folder as the swf. I have no tricky characters in my .txt file ie @&$##- nothing.
The banner should work? Waah!
It displays and works great here. http://www.flashkit.com/movies/Anima...-431/index.php
This forum rules and thanks for taking the time to listen to me whine

Loading An External Swf File After FLV Plays?
I have an animated intro and menu as a swf. When you click on a chapter it loads a external swf with a flv in it. when the movie ends I want the video to unload and the menu section of the intro swf to load.

What is the best way to accomplish this?

Here is the code for the intro swf ( i only have the introduction bttn active for testing):


Code:
stop();

var PhysTestRequest:URLRequest = new URLRequest("trainIntro.swf");
var PhysTestLoader:Loader = new Loader();

intro_btn.addEventListener(MouseEvent.MOUSE_DOWN, newvid);

function newvid(event:MouseEvent):void {
trace("you clicked me");
PhysTestLoader.load(PhysTestRequest);
addChild(PhysTestLoader);
}
intro_btn.buttonMode=true;

This is the code for the swf file containg the flv:


Code:
import fl.video.*;
import fl.controls.ProgressBarMode;

// Set Variables
var flvControl = display;
var flvSource = "Introduction.flv";

// Create event handler functions to control the progressbar
function progressHandler(event:VideoProgressEvent):void {
var bl = Math.round(event.bytesLoaded/1000);
var bt = Math.round(event.bytesTotal/1000);

// Update progress...
pb.setProgress(bl,bt);
}

function readyHandler(event:VideoEvent):void {
// Remove progressbar when we start playing...
removeChild(pb);
}

// Set progress bar state
pb.mode = ProgressBarMode.MANUAL;
pb.indeterminate = false;

// Add listeners and load the video
flvControl.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);
flvControl.addEventListener(VideoEvent.READY, readyHandler);
flvControl.source = flvSource;

buttonMode = false;
Any help would be greatly appreciated.
Scott

How Do U Control The Speed That The Mp3 File Plays
my mps plays fast
it is 32khz and bit rate 96 kbps
can i conrol it from flash?

Loading An External Swf File After FLV Plays?
I have an animated intro and menu as a swf. When you click on a chapter it loads a external swf with a flv in it. when the movie ends I want the video to unload and the menu section of the intro swf to load.

What is the best way to accomplish this?

Here is the code for the intro swf ( i only have the introduction bttn active for testing):


Code:
stop();

var PhysTestRequest:URLRequest = new URLRequest("trainIntro.swf");
var PhysTestLoader:Loader = new Loader();

intro_btn.addEventListener(MouseEvent.MOUSE_DOWN, newvid);

function newvid(event:MouseEvent):void {
trace("you clicked me");
PhysTestLoader.load(PhysTestRequest);
addChild(PhysTestLoader);
}
intro_btn.buttonMode=true;

This is the code for the swf file containg the flv:

import fl.video.*;
import fl.controls.ProgressBarMode;

// Set Variables
var flvControl = display;
var flvSource = "Introduction.flv";

// Create event handler functions to control the progressbar
function progressHandler(event:VideoProgressEvent):void {
var bl = Math.round(event.bytesLoaded/1000);
var bt = Math.round(event.bytesTotal/1000);

// Update progress...
pb.setProgress(bl,bt);
}

function readyHandler(event:VideoEvent):void {
// Remove progressbar when we start playing...
removeChild(pb);
}

Any help would be greatly appreciated.
Scott

// Set progress bar state
pb.mode = ProgressBarMode.MANUAL;
pb.indeterminate = false;

// Add listeners and load the video
flvControl.addEventListener(VideoProgressEvent.PRO GRESS, progressHandler);
flvControl.addEventListener(VideoEvent.READY, readyHandler);
flvControl.source = flvSource;

buttonMode = false;

Flash SWF File Plays Upside Down And Backwards
Does anyone know why this happens? It doesn't happen on all computers. Seems to happen when people use thier "back" button on thier browser, then the Flash that runs does it upside down and backwards. Our site is iko.com. When it happens, the user clicks "Employment Opportunities" and goes to that page. Then, they hit the "back" button on browser to go back to Home, and the Flash on top displays upside down and backwards. Anyone? Your comments are much appreciated. Thanks and have a goof day.

J

How To Stop Flash Sound When Wmv File Plays?
I have a background sound file that plays in a flash file.(With manual on/off switch)
There are wmv video clips on the page that the user can watch when clicking on links.
How can I get the flash sound to stop when the user launches the wmv files?

thanks,
A Plesek

MC In .swf File Plays Slow... Did The Preloader Load It?
Hello.

I'm old time art director struggling with this site I built. 1st full site ever.

Here it is...

http://www.fizzcommunications.com/

Client has asked me to speed up 'flying words'. I build it at a speed I like, but then the intro s l o w s d o w n when played over the net.

Here is my attempt to "speed things up".

http://www.limeball.com/index2.html

(Still runs at 1/2 speed of that which I built)

I'm suspecting the preloader isn't loading it... or something.

Or something like, I built a monster, and I'm asking waaay 2 much of any browser. I followed most instructions found on the web 4 fast play.

• consists only of outlines
• no fonts
• no bitmaps, .png, jpeg or any pixel content
• I eliminated an alpha fade at the end of each word
• I grouped things where I could
• I'm working at 24 frames a second (I like 30)

I'm thinking now 2 things left...
1). I need an action script to move the words, rather than graphically.
2). I need a better preloader to load content rather than frames??

I dunno...

MovieClipLoader Disabled When File Plays Online?
hi everyone. Thanks to several forum members suggestions, i now have a parent flash file that uses the MovieClipLoader class to load external swfs as they are needed. Everything works smashingly when played locally, including when i fire up the parent flash html file. However, when I loaded the files onto a server and go the site online, the file no longer works correctly.

i have it loaded here:

http://www.hanlonarchitects.com/hanlona ... /home.html

I think what is going on is that the MovieClipLoader is not being allowed to fire due to some security settings somewhere.

The first error in playback occurs after the text that intially loads has faded and a preloader appears. Locally, the preloader functions correctly, and an image is loaded in the space that the crosshairs mark (this is all within the parent swf).

A second error occurs after the first thumbnail in the scrolling panel is released. A swf file that contains the information for that project loads, but images inside it that are also activated using the MovieClipLoader class will not load (this all occurs within a child swf).

In both these cases it seems that the browser has a problem using MovieClipLoader within another loaded movie. Again, this kind of leads me to believe that it is a security issue, but i'm definitely not 100% on that...

thanks for taking a look!

MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
Hello,

I have an MP3 player that I have tweaked and modified on a website of mine for a friend.
Everything works fine--but it seems it will load a song and start playing 5-10 seconds of the song then restarts the song and plays it in full. Anyone have any idea why this would be happening?
The MP3 player is at www.peeler.ca and will start as soon as you get inside the website.
Could someone have a look and listen and see if you have any ideas?
I imagine it is some redundant code or something small. It is very annoying....

Thanks in advance...

MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
anyone have any ideas as to why my player would play like 5 seconds of a tune....then restart it and play thru completely?
I was told maybe interval coding....but not sure what I am looking for....nothing appears to jump out at me.

I will upload the .fla source code and maybe someone will see something I dont- Or you can check out what it is doing on the website www.peeler.ca the player will start on its own as soon as you get in the main page of the website.

Any help is appreciated...I am stumped!

Swf File Plays During Scene Test But Not Entire Movie
If I test the scene, the .swf file will play and continue on. But if I test the entire movie, it stops playing at the beginning of that certain .swf file. Could someone give me a simple fix? Thanks

Button On Release Plays A Sound File Then Stops. Help.
This is probably a really easy basic question....but I'm not getting my button to work. Just need this button to play a sound file, it is fairly lengthy.

This is what I have for the actionScript:

ActionScript Code:
on (release) {
    var mysound = new Sound("thought1.aif");
    mysound.attachSound("thought1.aif");
    mysound.start();
}
What would be the proper script?
Thanks,
Joni

CS3: Exported .mov File Plays Back Very Slowly And Choppy
I'm exporting a 1020x574 stage to Quicktime, H.264 High quality, no sound. The resulting video, no matter what size I make it, always plays choppy at parts. It plays fine in Flash and as a .swf, but the .mov lags badly.

Any ideas what's going on?

[MX04] Rollover One Movie Clip Plays It, And Plays Another. How?
Alright, so I've got two movie clips.
I have one, called fade_mc, which will play on rollover, and then play in reverse on rollout.
Here's the code for that, placed on a separate layer in the MC.

PHP Code:



stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}




What I would like to do is add to this so that, upon rollover of this MC, other movie clips will play in a similar fashion, and play backwards upon rollout.
In this case it is a MC called dark_mc that I would like to have play.


Posted this in the newbie section to no avail, please help!

Rollover Plays Frames 1-5 Of Movieclip, Rollout Plays 6-10
Need help on this, i'm sure it's the most basic thing, but haven't found my answer thru the help files, etc !

I have a button which on rollover i need to play one of my movie clip animations from frame 1-5 (i have a stop action on frame 5), and on rollout i need it to play the rest of the animation (6-10).

at this point, i simply dropped the animation onto the 'over' state of the button, but don 't know where to go from here, if not back to the drawing board.

the button is called 'button1' and the movie clip is 'animation'.

if it's better to do this with an external movie clip, i'd be cool with that, too.

thanks for the help

Loading A Flash File After A Flash File Plays?
I can't figure out how to have a specific splash file play, and then directly after that flash file is done playing, another flash file is played. Bluemoutain seems to beable to do it...

http://www.bluemountain.com/img/prod...8/graphic1.swf

As you can notice, they have their shell file play, followed by the actual file. How is this done? They seem to have declared the file they want to play after the shell with animPath= How is this done???

ROLL_OVER Plays A MC And ON_CLICK Plays A MC?
I would like to have a series of buttons that onrollover play a MC on
stage and onclick play another MC on stage. I am currently using the
following code provided in another thread to make the movie clip play
onrollover:


function showGraphic(event:MouseEvent):void {
mSymbol.visible = true;
}

function hideGraphic(event:MouseEvent):void {
mSymbol.visible = false;
}

btn.addEventListener(MouseEvent.ROLL_OVER, showGraphic);

btn.addEventListener(MouseEvent.ROLL_OUT, hideGraphic);



I am also using the following code to hide the movie clip on load:

mSymbol.visible = false;


How can I modify this code to allow a user to also click on the button
and play a MC?

Thanks!!!!!

POST On Localhost
I need to send one variable to a php page from flash. I have botht the swf and php file in root directory which is c:inetpubwwwroot. When I use the loadvars() object to post data to the page it doesn't work on my local computer. When I upload it to the server and test it, it works fine.

What could the problem be?

code:
user_data = new LoadVars();
user_data.user_location = 12354;
user_data.send("http://localhost/jamesjanke/map_insert.php", "_blank", "POST");



PHP Code:



<?
echo $_POST['user_location'];
?>

Localhost Test?
would this work when i test my swf on localhost (xampp)

photoup.onRelease = function(){
getURL("photo/index.php");
};

[F8] Ping Localhost
Hi

I want to load some xml data from the server running on mymachine (localhost), from a flash swf embedded on an external website. The localhost has crossdomain.xml as well, but the problem is its not always running. So in case its not running I want to get some error code, so that i can ping again after some time.

I use this code..

function loadMyXML() {
getDeviceId_xml = new XML();
getDeviceId_xml.ignoreWhite = true;
getDeviceId_xml.load("http://localhost:8081/myXML.xml");
getDeviceId_xml.onLoad = function (success:Boolean) {
// some code
}
}
callAfterLoadDev = setInterval(loadMyXML,4000);

// some code



it works fine when i run it locally, but when i embed it in external website, it hangs. Is there a way I could set timeout. Basically i think its looking for crossdomain xml which it won't get as server is not running.

Is there any other way, where I could just ping a server and know if its running or not ?

Please help
--
Nagota

Localhost OK... Online Not OK...
Hello,

Ive made a simple chat system, it works fine on my localhost, but when i put it online it just wont send/recieve data on some computers. Ive set up the allow domains.xml and the system.security.woot but it still doesnt work.

Im just wondering if any of you have had problems like this... back when i made this using sendloadvar() objects it did the same thing, it works on some computers, but not on others...

Is there a local setting i need to set in flash for the browser to allow it to run on all computers?

FScommand On Localhost
Hi everyone,
I have created a Flash web page, where I am using FScommands to call a pop-up window through JavaScript.
It seems to be working perfectly on my localhost test server, but when I upload the Flash web page to the external online server this no longer works.

Why is that? Can anyone suggest to me a work around to get it working properly?

Best regards,

Sebastian

Only Can Connect In Localhost
Hi!
I have developed an Asp.Net + Flash 8 with Flash Remoting application. When I open the syte with this url: http://localhost/MySyte/Default.aspx the works ok. But if I open the syte with this: http://192.168.1.101/MySyte/Default.aspx the connection between Flash and asp.net doesn't work.
I use this code to create the connection:
NetServices.setDefaultGatewayUrl("/MySite/Default.aspx");
_global.GatewayConnection = NetServices.createGatewayConnection();
DefaultNameSpace = "RominaSavastano.General";
MainService = _global.GatewayConnection.getService(DefaultNameSpace, this);
MainService.GetResources();//Call the function in Asp.Net. With "localhost" I receive answer, with "198.162.1.101" no.

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved