Testing Movie On A Remote Machine (server)
one machine is functioning as a server.on the other machine i run a swf file (test movie).i want it to function as if it is on the same machine.i get an error (504)Error opening URL 'bla bla bla......../flashlogin.aspx'is there any definitions that i have to define in order to connect?(the guy that works on the server side files says its my problem and i have to format windows and install flash again i am sure that there is a less complicated and time consuming solution.)
Adobe > ActionScript 1 and 2
Posted on: 03/29/2008 03:41:05 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Linking To Flash Movie On Remote Server
I need to embed the flvplayer in a page on one server, but the player and movie are on a different server. Is this possible, and how is that done? I've been trying with full URLs, and I can get the flvplayer to show up, but I can't get it to play the movie. It plays it just fine when I access it directly on the server where its housed.
Playing Content From Remote Machine?
Hi, I have developer edition and downloaed a sample from one of the tutorials available on Adobe.com. Everything works fine with the rtmp link pointing to localhost when the site is launched on the server itself. However, if I go to another machine and access access the html through http nothing happens. The player isn't embedded, no movie... nothing. So I'm thinking the reference to locahost is bad... how can my remote machine talk to 127.0.0.1? So, I changed bind ip in adaptor.xml and public ip in server.xml... still nothing....
What am I missing..... ? Thanks!
Load A File In Remote Machine
I want to run a swf file in a kiosk but the file is to big to streming across the network. I try to put the file in the kiosk hdd but the website is not displaying the swf file. Is this because IE? Security in IE? Flash Player?
I try the same page in FrontPage with the file in the c drive and works fine. But when the pages (http://....) runs from the webserver, the swf in the kiosk hdd is not running.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="file:///c:/MyFile.swf" />
<param name="loop" value="false" /><param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="file:///c:/MyFile.swf" loop="false" menu="false" quality="high" bgcolor="#E8872E" width="800" height="600" name="City Furniture Kiosk f8" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
Francisko Paternoster
Patercorp
Access Flv On FMS From Other Server (different Machine)
Hi ya'll
I'm developing a fairly big chat site and one issue i have is when I make snapshots of the webcam. If I run the websever and FMS on the same machine all is ok but if I run the webserver on another it doesnt work....
Q: How do I access/copy the snapshot flv files on the FMS from another web server (different machine). Any soulution is welcome.
its on the webserver I convert the flv to jpg so...i need to get the flv file some how...
thx for any help
/Andreaas
Edited: 05/22/2007 at 02:10:56 AM by zozew
Flv Play Only On Local Machine Not On Server.
I am having problems with some updated files I created and don't know what I am doing wrong. It seems that I can't get any of the updates to work where the originals worked fine before I over wrote them. As far as I can remember (and I am new at this) I did everything in the same way as the first upload when they were working. Here are the links:
www.tracknet.org/welburn/test.htm
www.tracknet.org/welburn/index.htm
Any help you can give me would be great.
Thanks
Can't Stream Videos On Server Machine
I am running FMS2 on my local machine. I downloaded and ran a video tutorial application that I found on Adobe's website (http://www.adobe.com/devnet/flashcom/articles/broadcast.html). The HTML and .swf are on my desktop. It works fine on my local machine. My apps are stored inside the default directory.
I remote desktop to an outside server that also has FMS2 installed on it. I put the same files on the desktop and create the same application in the default directory. Now, when I run it (still remote on the server) I get a connection error. Why does one work and not the other?
[MX] Passing Variables From SWF On Local Machine To SWF On Server
Hi guys,
I've a project whereby I need to pass variables in real time (or as close as possible) from a SWF on a local machine to a SWF online which is viewed by the general public - basically so the web viewers see whats happening in the local SWF. Is there anyway to do this without calling an external file each time?
Thanks,
- Mick
Sendandload Not Working From Server But Ok On Design Machine
hi,
I have got a form working on my development/design machine - works really well.
But, when we put the swf onto the server it just stops working altogether unless I use a send command.
This is really confusing and not really useable since we need to read the response back from the server.
Any ideas?!
Many thanks.
Local Machine Vs Real Web Server Issues
i'm running into a flash and php issue.
in my flash movie i have 3 text fields
source: (type intput)
criteria: (type input)
result: (dynamic type)
and a button with the following code:
Actionscript Code:
on (release) {
result = "Searching...";
loadVariables ("search.php", this, "POST");
}
this is my search.php
PHP Code:
<?
$result = str_replace($criteria, "<b>$criteria</b>", $source);
print "&result=" . urlencode($result);
?>
ok...here is where i'm getting lost.
if i were to load the contents above from a "real" web server it works just fine.
if i were to load the contents above from a "local" server it does not work.
my apache server setup on my local windows machine is as follows:
Apache/1.3.41 (Win32)
PHP Version 5.2.6
MySQL 5.0.51a
phpMyAdmin - 2.11.6
but if i were to modify my search.php file like so:
PHP Code:
<?
$source = stripslashes($HTTP_POST_VARS['source']);
$criteria = stripslashes($HTTP_POST_VARS['criteria']);
$result = str_replace($criteria, "<b>$criteria</b>", $source);
echo "result=$result";
?>
...it works on my windows local apache server just fine.
are there any configurations that need to be done in order for my local machine to behave in the same manner as my real web server?
any help on how to achieve this will greatly be appreciated.
thank you in advance.
.swf File Shows Up On Local Machine But Not On Web Server.
I am using Dreamweaver CS3 flash .swf file shoes up on local server website but when added to the Web server is does not show up.
I know that Dreamweaver adds a scripts file and folder now does that have something to do with it??
Thanks,
Display Time Of My Server And Not Local Machine
Dear AS Scripters,
Let me start digging:
I'm able to display time of my local machine. But this is not what I want to achieve. I wanna display time of my server.
How would I do this? Should I use the property getTimezoneOffset?
An example would serve better. Thanks in advance for the help.
Regards,
Sudatsun
Local Machine Vs Real Web Server Issues
i'm running into a flash and php issue.
in my flash movie i have 3 text fields
source: (type intput)
criteria: (type input)
result: (dynamic type)
and a button with the following code:
PHP Code:
on (release) {
result = "Searching...";
loadVariables ("search.php", this, "POST");
}
this is my search.php
PHP Code:
<?
$result = str_replace($criteria, "<b>$criteria</b>", $source);
print "&result=" . urlencode($result);
?>
ok...here is where i'm getting lost.
if i were to load the contents above from a "real" web server it works just fine.
if i were to load the contents above from a "local" server it does not work.
my apache server setup on my local windows machine is as follows:
Apache/1.3.41 (Win32)
PHP Version 5.2.6
MySQL 5.0.51a
phpMyAdmin - 2.11.6
but if i were to modify my search.php file like so:
PHP Code:
<?
$source = stripslashes($HTTP_POST_VARS['source']);
$criteria = stripslashes($HTTP_POST_VARS['criteria']);
$result = str_replace($criteria, "<b>$criteria</b>", $source);
echo "result=$result";
?>
...it works on my windows local apache server just fine.
are there any configurations that need to be done in order for my local machine to behave in the same manner as my real web server?
any help on how to achieve this will greatly be appreciated.
thank you in advance.
.swf News Ticker Works On Local Machine But Not On Server
Hello all!
I have a news ticker that I modelled after the kirupa tutorial that was given:
http://www.kirupa.com/developer/mx2004/newsticker.htm
When I run it on my local machine it works just fine the way I expect it to. However when I put it on my website, it does not work at all. I have another flash file (.swf) on my webpage which is just a simple countdown timer and that works just fine so I don't think this problem has anything to do with MIME types.
Here is the code I used to embed the .swf file onto my website:
<script type="text/javascript">
var so = new SWFObject("http://428the.calvin.hostingrails.com/XMLParser/sports_ticker1.swf", "headerAnimation", "390", "180", "0", "#FFFFFF");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.write("swfHeader");
</script>
This code is taken from kirupas source code.
I originally had used this code:
<object width="550" height="50">
<param name="movie" value="sports_ticker1.swf">
<param name="wmode" value="transparent">
<embed src="../XMLParser/sports_ticker1.swf" width="550" height="50" wmode="transparent">
</embed>
</object>
Neither of these worked. I just have no idea what I am doing wrong. I don't know if there is something I should be coding differently in my actionscript. I am very new to AS programming. Any ideas on how to get the .swf file to appear on my website would be great.
Thank you so much for any help. Take care.
Use Php On Remote Server
I Need help with the following:
I want to run a php script with a .swf file on a remote server.
This is my construction:
file_a.swf (_root) on http://www.server_a.de loads the file:
file_b.swf (_level10) on http://www.server_b.de which again uses loadVariables... to execute a php script that lies next to the file on http://www.server_b.de (same folder).
And that does not work.
It does work, when they are all together on the same server.
My literature (friends of Ed, the THICK one) says, the file must be on the same server as the script for some security reasons. But what is the file?? Is always the _root-file the mother of all files? Cause the executing file and the script are in the same directory...
If the above is so. Where could I find a workaround???
Christian
Remote Server
I have a question. Is there software that can set my computer up to at least act like a remote server so I can test my scripts that I'm learning in actioscript? Is it something you can download for free. If anyone's got an answer, thanks
Use Php On Remote Server
I Need help with the following:
I want to run a php script with a .swf file on a remote server.
This is my construction:
file_a.swf (_root) on www.server_a.de loads the file:
file_b.swf (_level10) on www.server_b.de which again uses
loadVariables... to execute a php script that lies next to the file on
www.server_b.de (same folder).
And that does not work.
It does work, when they are all together on the same server.
My literature (friends of Ed, the THICK one) says, the file must be on the
same server as the script for some security reasons. But what is the file??
Is always the _root-file the mother of all files? Cause the executing file
and the script are in the same directory...
If the above is so. Where could I find a workaround???
Christian
Use Php On Remote Server
I Need help with the following:
I want to run a php script with a .swf file on a remote server.
This is my construction:
file_a.swf (_root) on www.server_a.de loads the file:
file_b.swf (_level10) on www.server_b.de which again uses loadVariables... to execute a php script that lies next to the file on www.server_b.de (same folder).
And that does not work.
It does work, when they are all together on the same server.
My literature (friends of Ed, the THICK one) says, the file must be on the same server as the script for some security reasons. But what is the file?? Is always the _root-file the mother of all files? Cause the executing file and the script are in the same directory...
If the above is so. Where could I find a workaround???
Christian
Getting A .exe File To Log Use On A Remote Server
Let me explain,
I currently design a flash promotional card for a client who regularly sends it out to 100 or so of their clients.
The file is simply an .exe attachment on an email.
While they can measure the email side of things, they want to know if there is any way they can see exactly how many people play the .exe
Thus i am wanting to know if anyone is aware of a way to code some sort of function in action script that will enable this.
Ideally it would gather the users ip and log this info on a remote server or something. (reason for the IP info is simply to eliminate repeat viewing counts - they only want unique views)
Anyone know if this is possible (or ethical for that matter)
Cheers
P
Loading An XML From Remote Server
I have this swf that loads an xml with 3 lines of text.
Works fine when the swf and the xml is on the same server.
The problem is that they have to be in different servers, and then the swf can't
get access to the remote xml. I read somwhere that
this is a security precaution from macromedia. Anyone know a way around this?
Any help would be very much apprechiated!
Does The FLA File Need To Be On The Remote Server
I can't find the information file now, but I seem to remember something about Flash content needing the FLA file to work. Or I'm imagining things, again. So, does the Flash project FLA file need to be uploaded to the remote server?
Thanks,
TW
SWF Will Not Show Up On Remote Server DW Cs3
I cannot get a .swf file to show up online. When I preview in a browser through dreamweaver it works. I made sure the AC.....js file is on the server and still nothing. I checked the paths...I have looked at 25 different posts about this with no answer. I just need some serious help. I might need help from the beginning. Anything will be greatly appreciated.
Linkng With XML From Remote Server
Is there a way to check if the swf or projector is connected to internet and then connect to a remote XML from a server if it is conected or to a local XML if it isn't.
Hiding Variables Sent To A Remote Server?
Hey all... this seems to be a real issue for me.
I'm starting a E-commerce website with Flash... I am going through paypal for my merchant account. I have created several buttons for use and have been using an actionscript created by one of our fellow board members. The only problem is that all the variables, including the cost of items, as well as my account e-mail (Which paypal uses to recognize which accounts are paid are POSTED. And anyone with an eyeball can see they can change those variables to whatever they want.
Example; changing the cost of an item from $1000 to $10.
My question is, is there a script that will hide variables from the user, but will still send them to my Paypal server to be recognized.
I don't want to have to use Html and tables, but it might be my only choice in regards to increasing site security.
Please help, if possible.
Using ActionScript + PHP To Connect To A Remote Server
Hi.
I'm trying to implement an "expire date" checking script in my demo .swf files. I'm sure that the users will have access to internet because of the nature of the file I'm giving for "test drive" to them.
I would like to create an action script, which would pass identification parameters to a php script located on MY server, which in turn would check the validity of .swf by checking the "valid until" date stored in some file on MY server.
Second question I have, would you recommend using a mySQL database or a simple file (something like dates.dat) to store the expire date information? I know that mySQL will improve the access speed for multiple users simultaneously verifying their .swf files, but it is not an issue since only a limited number of users will have the access to my .swf.
Thank you in advance!
Cant Get Flash To Display On Remote Server
I cannot get a simple flash example to work on the remote server, the example at http://www.recesstheband.com/RecessIntro.html
only shows a white space where the flash intro should be. The hosting company says the flash module is enabled. The html and swf work on my local computer. Any ideas on how to debug what is happening?
MovieClip Won’t Play From Remote Server
MovieClip won’t play from remote server
Hi all,
I am working on a script in wich I want to download .swf files. As soon as all the files are downloaded I want to play them one after the other (In a certain sequel wich can be set in a .xml file).
I have two classes.
1. SwfDownLoadManager
2. SwfPlayer
The first one taking care of downloading all .swf files. And as soon as that took place. He call’s the startPlaying() method of my SwfPlayer class.
Thing is , if I test the movie from Flash (ctrl+enter) . It works. If I request a .html file with the flash file embedded, It wont !! It shows the first movieClip. But it wont react on the .play() command I give.
If I download the movies from my local web server it also works and I request the same .html file it also works!!
Here is some snippet :
From SwfDownLoadManager
public function onLoadInit (target:MovieClip):Void {
//Make sure the downloaded movies are not visible
target._visible = false;
movies_loaded++;
if(amount_movies==movies_started and isReady==false){
//All movies are Initiated. all properteis are known
isReady = true;
//Shoot!!
// mySwfPlayer is a object initiated from the root
_root.mySwfPlayer.setAmountOfMovies(amount_movies)
}
SwfPlayer :
public function startPlayer():Void{
_root.Player._visible = true;
//Always begin with container_swf0
_root.Player.container_swf0._visible = true;
//This is the critical statement!!.
// Works from Flash Test Movie (ctrl+enter)
// Works within the browsers (IE,FF) and LOCAL server
//Will not work within the browsers (IE,FF) and REMOTE server
_root.Player.container_swf0.play();
swfListener(_root.Player.container_swf0);
}
public function swfListener(target:MovieClip):Void{
target.onEnterFrame = Delegate.create(this,myfunction);
function myfunction()
{
//Clip at the end so next one can start
if (target._currentframe == target._totalframes and _root.nextClip < amount_movies) {
var temp = delete target.onEnterFrame;
if (temp) {
runClip();
}
}
}
}
private function runClip(){
_root.nextClip++;
nameClip = eval("_root.Player.container_swf"+_root.nextClip);
nameClip._visible = true;
nameClip.gotoAndPlay("START");
swfListener(nameClip);
}
Because of the fact that it won’t work from a remote server made think it has something to do with timing. Clip is not ready yet and son on . So I tried to make it play() from a button . No success .
Does someone have a clue what might be the problem?? And if you could hint in wich direction to look. That would be great!!
Tanx,
SuperSub
Importing PNG File From Remote Server
Hi all.
I'm trying to bring in a transparent PNG file from a remote server but am having difficulties. I've had no problems using this script and having it work when and if the images are JPEGs.
Here is the script:
stop();
one.loadMovie("./images/Illust1.jpg");
two.loadMovie("./images/Illust2a.png")
Is the problem that flash doesn't allow for remote PNG upload or something else?
Thanks for all your advice/help.
a
Flash Template To Remote Server
I am having trouble saving my flash template to a remote server. I am using Macromedia Flash Pro 8 and Dreamweaver 9. Can anyone off any advice?
Flash On Remote Server Problems
Hello all,
I have some flash files that seam to work properly locally but don’t seam to work remotely when uploaded to a server. I’ve done my search here and google but cant seam to find a solution.
I have a master.swf with some AS2.0 loading other swf’s. With in those loaded swf’s I am doing some animations done via Fuse.
I then publish the files and just upload the html file along with all of the loaded swfs.
I have been working in flash 9 but saving everything as flash 8. Could that be the problem?
Thank you all in advance.
Swf Can't Find Pdf File On Remote Server
Hi,
Am new to Flash and could really use some help.
Have build a site with a button links to open some pdf and html files in a new window -using a getURL script as follows .. flame_btn.onRelease = function(){; get URL("pdfs/techFlame9.pdf",window ="_blank"); }
The pdf files are in a folder named pdfs-withing the same folder that contains the swf file - server side this folder is named htdocs. Everything this works great on my computer but when I up load to server it falls over - have tried using absolute adress "http://www.joebruton.com/htdocs/pdfs/techFlame9.pdf" and all other variations I can think of - but a browser window opens / error message tells me file cannot be found on server - yet file is sitting in same location as indicated in error message ( calling this file with this URL address works fine with regular html /dreamweaver link)
What am I doing wrong?
If any of you guys can point me right direction - thanks yor tme.JB
LoadVariables From Remote Server - Have Tried All Methods Suggested
The end goal is to load variables in a text file from a remote server into an swf file on a local computer.
For the project I'm working on it MUST work in Flash 5 (doesn't matter about any other version...)
I have tried:
1. Loading text file directly. Doesn't seem to work because it is loading data across domains
2. Shim Method. Local swf loads a remote swf which loads a tetx file from the same remote server. Doesn't work - don't know why.
3. Can't use Proxy methos because the computer hosting the local swf cannot run ASP/PHP etc.
Can anyone point me in the direction of a solution?
Thanks
Listing Remote Server Files In Flash 8 (FMS 2)
Hi all, My fist post on this site, hoping someone will be able to help I'm creating a streaming audio application as part of my dissertation, I am able to stream mp3 files fine using Net Connection and Net Stream. For my first prototype I have used a list box to allow the user to select which file is to be streamed, with the tracks being hard coded into a data provider as follows: dp = [ {label: "Track1.mp3", data: "Track1"}, {label: "Track2.mp3", data: "Track2"}, {label: "Track3.mp3", data: "Track3"} ]; What I want to be able to do is have the client retrive the file names of all files in the application folder (i'm using flash media server 2) and display them in the list box. Is this possible? Any help apriciated. Thanks. Mark
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?
NetConnection.call() To Invoke A Method Of A Remote Server.
Hi all,
I read abt this line in one of the livedocs about Invoking remote methods.
This is wat was mention in it:
You can also call NetConnection.call() in a server-side script to invoke a method on a remote server.
And this code in the livedoc also.
nc = new NetConnection;
nc.connect("http://www.xyz.com/java");
nc.call("myPackage.quote", new Result());
However thats all. How do i go about doing it?
I have a serverside AS3 trying to call a servlet running on tomcat.
From the above i roughly know how to write to connect but how i go abt getting the result?
can i do something like this after the above line? As i'm expecting a string
application.nc.onResult = function(result)
{
return String(result);
}
Like The Guy Downstairs, Tutorial Works On Local Server, But Not On Remote
Ok have uploaded everything in the remoting bb directory in the order that it appears on my computer.
Have setup mySQL on the site in the same way that it is on my computer.
Have also uploaded all of flashservices/apps is there anything else i need to upload to get it working on the net?
Just went throught the Net Debugging and it comes up;
The Connect -
ConnectString: "http://members.lycos.co.uk/remotingBB/simple_gateway.php"
DebugId: 0
EventType: "Connect"
MovieUrl: "http://members.lycos.co.uk/deliriousphil/remotingBB/read.swf"
Protocol: "http"
Source: "Client"
Time: 1049469105090
Date (object #1)
....."Fri Apr 4 17:11:45 GMT+0200 2003"
The Call
DebugId: 0
EventType: "Call"
MethodName: "read.doRead"
MovieUrl: "http://members.lycos.co.uk/deliriousphil/remotingBB/read.swf"
Protocol: "http"
Source: "Client"
Time: 1049469105150
Date (object #1)
....."Fri Apr 4 17:11:45 GMT+0200 2003"
Parameters (object #2)
.....[0]: 0
.....[1]: 10
The Status -
EventType: "Status"
MovieUrl: "http://members.lycos.co.uk/deliriousphil/remotingBB/read.swf"
Source: "Client"
Time: 1049469105970
Date (object #1)
....."Fri Apr 4 17:11:45 GMT+0200 2003"
Status (object #2)
.....code: "NetConnection.Call.Failed"
.....description: "HTTP: Failed"
.....details: "http://members.lycos.co.uk/remotingBB/simple_gateway.php"
.....level: "error"
[color=red][color=red]
URGENT HELP - SWF In Html Doesnt Connect To Remote Server
Hi,
I have an swf placed on a website which needs to connect to a remote server but it doesn't work. I'm using SWFObject to embed the swf file and i can see it no problems and the buttons are definitely active but it never connects to the server that's it's pointing to. I've tested with different servers and it's the same for all of them even one with absolutely no firewall or virus protection.
It seems something is blocking the files as the correct requests are being made (i checked with trace statements)....I think it's the flash.....is there something i'm doing wrong in the publishing of the swf file?
thanks for any suggestions!
Greg
ps. sorry for cross posting - this is urgent!
Using Server Files While Testing Locally
Hi Everyone,
I have a PHP file on my testing server that outputs XML, which I use in my Flash site. Does anyone know if there is a way to use that file when I'm testing locally?
Everytime I want to test a change to the Flash file, I have to publish it, upload it to my server, clear my browser cache and refresh the browser page. I've set my Local playback security to "Access Network Only" and created a crossdomain.xml file and placed it at my server root, but I still get an "Error opening URL" message when I publish the Flash file. This happens with both .php and .xml files.
Any thoughts?
Thanks in advance!
Luke
LoadVars() Works When Testing, But Not On Server
when a button in the menu is pressed, a scripted animation happens (curtains closing), i do a loadVars() on an html page, the page is loaded, and the html is put into a text box, and then the curtains open. this works great when testing in flash, and when double-clicking on the html page that contains the flash on my computer. but when i upload it to my testing server (and i've tried several other servers as well), the curtains close but they don't open (so it's not getting loaded)
this is the script:
Code:
onClipEvent( load )
{
myPage = new LoadVars();
myPage.onLoad = function( success )
{
openCurtains();
_root.mcMain.section.content.attachMovie( "_" + whatToLoad, "block", 66 );
_root.mcMain.section.content.block.block1.html = true;
_root.mcMain.section.content.block.block1.htmlText = this.myPageHtml;
_root.mcMain.section.content.block.block1.autoSize = "left";
_root.mcMain.section.refreshScrollBar();
}
setToLoad = false;
whatToLoad = "";
function openCurtains()
{
targetLeftX = openedLeftX;
targetRightX = openedRightX;
}
function closeCurtains( section )
{
whatToLoad = section;
setToLoad = true;
targetLeftX = closedLeftX;
targetRightX = closedRightX;
}
baseRate = 3;
closedLeftX = 0;
openedLeftX = -250;
closedRightX = 430;
openedRightX = 772;
closeCurtains( "Home" );
}
onClipEvent( enterFrame )
{
this.curLeft._x += ( targetLeftX - this.curLeft._x ) / baseRate;
this.curRight._x += ( targetRightX - this.curRight._x) / baseRate;
if( ( this.curLeft._x == closedLeftX ) && ( setToLoad ) )
{
myPage.load( "pages/" + whatToLoad + ".html" );
setToLoad = false;
}
}
so when a button is pushed, it calls _root.mcMain.curtains.closeCurtains().
anyone know why this would happen?
SendAndLoad Dosent Works On A Remote Server But Worls Locally
Hi,
I really have a serious problem using the sendAndLoad method which i use to retrieve variable from mysql DB uploaded on a remote server. I have the php files in a folder functions which is under web and the AS classes and swf and html in the root of the web folder uploaded on the FTP server. When I execute this method locally everything is working perfectly but when it is uploaded on the server with the same db i get undefined value (vars.lastorder = this.lastorder;).I actually need to get the last order id from the PHP script. When I try and pass data the method is working and the server executes insert query but when i try retrieve im not able to retrieve the value remotley I really dont have an idea about this problem cause its functioning on the local level and not remotely. Im using Apache 2.0 server locally and the hosting provider has 1.3.37 could this be a problem? Or there are some security issues involved? Or do you see a problem that the action script files and the php are not in the same folder but i dont think so cause the other methods are working.
Can you give me any suggestions im really trying hard with this problem 3 days. The code that I use is posted below.
Attach Code
/** ACTION SCRIPT 2.0 CODE */
dataIn.onLoad = function() {
if (this.result1 == "1") {
var listOfItems :Array = new Array();
listOfItems = shoppingCart.getCart();
var i:Number;
var vars:LoadVars = new LoadVars();
for (i=0; i<listOfItems.length;i++)
{
var dummy:LoadVars = new LoadVars();
var itemx:Item= new Item();
itemx = listOfItems[i];
vars.productname = itemx.getName();
vars.quantity = itemx.getQuantity();
vars.lastorder = this.lastorder;
vars.sendAndLoad(ip+"/functions/order2.php",dummy,"POST");
}
shoppingCart.removeAllItems();
totalPreis =new Number(0);
grid1.removeAll();
custName = _root.od_payment_first_name.text;
custSurname = _root.od_payment_last_name.text;
_level0.gotoAndStop("thankYouFrame");
} else {
Alert.okLabel = "Nein";
var alertbox:Alert = Alert.show("Sorry there has been a technical problem !!", "Cart alert", Alert.OK);
}
};
/** PHP CODE * PART OF IT /
$resultx = mysql_query("SELECT tbl_order.od_id FROM tbl_order ORDER BY tbl_order.od_id DESC LIMIT 1");
for($x = 0 ; $x < mysql_num_rows($resultx) ; $x++)
{
$row = mysql_fetch_assoc($resultx);
$last_order = $row['od_id'];
}
if ($result1 == 1)
{
echo "&result1=1&lastorder=$last_order&";
}
else
{
echo "&result1=0&lastorder=$last_order&";
}
dbClose();
Close Window
Testing Flash In A Secured Area[server]
here it go`s
ITS NOT AN XML QUESTION please read it all you might be able to help.
i`ve build an intranet site with xml files spread all over
i used to test the site from the flash development envierment [Control/Test Movie]and pull my xml from server with no problem at all.
now they entered a password protection for peaple using the system from out side and from this moment i could`nt pull the xml[s] anymore and i guess its because the server asking for password[login popup].
what i need is a way to fillup the login screen with userid and password from flash so the server will recognise me and actualy let me continue debug the site from the developing envierment as i used to do before.
please HELP!?!?
Is The Speed Of The Flash Movie Machine Dependent ?
hi there,
I am making a Web site intro in Flash 6 it is under 400 kb , I have
been using a PIV , the animation is v smooth and perfect on my PC but
when I am using it on some other low end PC (even a P III) the
animation gets v v slow. what do I do ???? My animation frame rate is
30fps.
Looking forward for yr resposes,
Thanking you.
Slot Machine Problem: Attach Movie
this is ths code:
I have got 3 slot objects with linkages. I have 3 empty square blocks to be replaced on frame 1 with the loaded movie.
//I made an array
slot = ["cherry","seven","bar"];
// and a random loop, this works!!!
for(z=0; z<slot.length; ++z){
j= random(3);
randomize = slot[j] ;
trace(randomize);
}
// why can't flash understand the value of 'randomize'? the value is correct; trace displays the value . all i need is to plug this value to the attach movie.
//problem area
for(i=1;i<4;i++){
this["block"+i].attachMovie( "randomize", this["newname+i"], 1);
}
Loading A Movie From A Remote Location And Reloading The Main Movie
HELP!!! I have a flash movie that loads a movie (at level0) from a remote location.. There are two movies there, one that stops the movie and another that reloads the main flash movie (I just rename the swf's to toggle which one I want loaded). The problem is, when the second remote swf reloads the main flash swf, it just loops back to playing the remote swf again. I've tried using telltarget to make the main movie play a frame after the actionscript that loads the remote swf, but that doesn't work either. Are there any alternatives to doing this? thanks...
|