Serverside Scripting
is there any way i could have info saved extremely quickly on a server so another user could load those varialbe and i could make a real-time situation.??
or maybe there would be a way to connect through IP, either way, i need help
thanks for anything,
Steve
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-20-2003, 10:15 PM
View Complete Forum Thread with Replies
Sponsored Links:
[AS2] Pageview Counter, Possible With No Serverside Scripting?
Okay, I am on a LAN folder with a web address as my server. No serverside scripting is on, and it does not look like I am going to get any in the near future.
I would like to do some usage tracking with flash. Things like how many times a certain button is pushed.
My users are all on the same intranet, is there any way I could increment a value in a file on a shared LAN folder or something?
View Replies !
View Related
EPS To SWF Serverside
I'd like to have someone upload an .eps graphic to an .swf so they can edit it. Since loadMovie() can't load .eps files I'm wondering if there is a way I can convert the .eps to an .swf serverside before I use loadMovie() to bring it in the flash player. Does anyone have any ideas on this?
View Replies !
View Related
Serverside Buffering ?
Hello Forum Members,
We have a problem with LiveStreaming and Lost Packages.
In our company we broadcast live streaming events in wmedia and also in flash.
For that we use a router which connects via ISDN to our fms2 platform.
We use ISDN Channels because of the need of a safe connection without net fluctuations and a good upload.
(wmedia 500k and flash 500k = 1Mbit/s upload)
So we use for one ISDN Wire both B Channels = 128kbit/s and overall 12 ISDN Wires = 1536kbit/s for both streams (a little bit more as needed for the overhead).
Wmedia works fine but flash makes problems - many frame drops / image freeze / bucking.
We think the problem is the connection to the fms over many different channels so that some packages of the one channel arrives the fms earlier than another - and so the fms dosen't get the stream in linear way.
The fms pushes the stream to the client - the client has the possibility to buffer the stream (setBufferTime()) but when the fms sends a faulty stream - the flashplayer buffers also this one.
Does anyone know if there is a possibilty to buffer the stream on the server before sending it to the clients.
Or is our approch wrong and there is another way to solve this problem.
Many thanx to All.
Daniel
View Replies !
View Related
FMS Serverside Script
Hello,
is there a way in the main.asc to get the full rtmp address in the onConnect method ? The client.uri property just gives the application address (i.E. rtmp://www.server.com/applicationname) I need to get the path to the video file requested (like rtmp://www.server.com/applicationname/path/file.flv).
Thanks for your help !
Z
View Replies !
View Related
Hao Can I Maake A Flash Run From A Serverside Only
Hi, i have the next problem... and excuse my ignorance
I want to make a flash animation that can be executed only from one PC and only one (a server for example... well, in fact FROM a server) The information is shared by the people at the company BUT the admins don't wnt anybody to copy these animations and redistribute its content.
What they whant is that somehow the Flash doesn't work is it runs from another computer (in case they can copy the flash) so we think "Maybe with the MAC Adress or the HDD serial number" but we really don't know how to read this info from flash.
May someone elight us with any solution or if these info can be read from flash, how is it done?
View Replies !
View Related
Protect Serverside Script
Hello there!
I am very new to fms2, so there is one question, that neither Google nor
anyone else could answear me.
Is there any possibility to "encrypt" the server-side as-files ?
I am working on a multiplayer game, and have to publish the content to a fms2-server of a friend of mine. But I don't want him to be able to read the content. Is there some software, like Amayeta's out there, which could encrypt it?
Sory for my bad english
Greetz,
darkangel2k
View Replies !
View Related
Convert MPEG/AVI To FLV At Serverside
Hi there,
How do I convert MPEG/AVI videos to FLV at serverside? User will upload a MPEG/AVI file in a page and in the next page they will view the video in Flash player. I understand, once user upload the AVI file I need to encode the Video in FLV format at serverside. Is there any API avilable to convert AVI/MPEG to FLV dynamically at serverside?
Thanks.
-tamal
View Replies !
View Related
Serverside SharedObjects -SOLVED-
I am wondering if anyone can give a quick hand in showing how to setup Serverside SharedObjects. At the moment, I can only get them to sync once. If I need to describe what I am doing in more detail, just ask.
-SOLVED-
I managed to figure it out.
Edited: 01/15/2007 at 07:49:33 AM by Brentley_11
View Replies !
View Related
Serverside Stream Manipulation
Hi
I was wondering. is it possible to manipulate in any way the video streams on the server side? Like for example, to have two streams coming from two clients and mix them into one stream, so a third client (or more) can play just one stream per client instead of two?
View Replies !
View Related
Serverside Streaming Protocols
Does the serverside of flash media server support RPT or RTSP (Real Time Streaming Protocol)? I know from Media server to player is only rtmp, but is it possible for the server to recieve a RTSP stream and the convert it to rtmp for the client side?
View Replies !
View Related
Loading Serverside Raw Info
I'm trying to join to articles on Macromedia.com Both of the following article work for me individually.
Loading data across domains:
http://www.macromedia.com/support/fl...ad_xdomain.htm
Loading Raw Data (Minicing Words):
http://www.macromedia.com/desdev/mx/...xtreme001.html
What I'd like to do is load a bunch of text located on another server. For whatever reason when I try to load the data with Branden's metod in conjuction with the 2 domain method I don't get anything. I've confirmed that the asp I'm using prints the text on the screen when run by itself. When I hook into it with Flash, Flash never gets the data. Any suggestions?
View Replies !
View Related
PHP And SwfObj Serverside Issue?
Flash fails to send data to the PHP code and returnes undifined.
But when i test it in Flash self it works. is there a possiblity the swfObject has something to do with this? since its the one embeding the flash element in the html.
View Replies !
View Related
Insert PNG Into SWF / PNG To SWF Conversion Serverside
Hi all....
I want to hear peoples opinions and experience with Inserting a PNG into SWF or PNG conversion to SWF
There seems to be some major disparities on what people think about the methodology and even possibility of this on a unix system, serverside.
I have put many many hours googling this, and have found much conflicting info... I am still not convinced this is impossible....
Ming somehow requires you to convert pngs to the dbl format before it can do a server side conversion...
Except.... there are no server side functions to do this!!
Flash can't dynamically load pngs... what a stupid omission...
I have seen this (png inserted into swf) being done, however...
on http://charas-project.net
after you create your character, you can view a flash preview...
this is where they do it... i think... i have asked them on their forums.. but no answer as of yet...
great site btw...
Look forward to hearing your guys responses!
- Aleks AKA KarmaKat
View Replies !
View Related
Load Text Or Xml Without Serverside Scripts
Hi there.
I know there has been a lot covered on this subject, but for the purposes of my project, I am still trying to find a suitable solution.
I am creating a project that displays information in flash, loaded in by either a text file or xml file (depending on the solution?). Loading the data is fine, but I also want to create an XML editor so that other people can edit the content easily (this would have to be a custom editor, not by using other xml editing software).
Actually saving a text file or xml file requires a server-side script. The only other option I've come across is using shared objects (but this saves a file in a specific place on any user's system, I want the file to be saved in the same folder as my flash file).
Are there any ideas out there as to what else I could do?
Thanks!
View Replies !
View Related
Read & Write Swf Metadata Serverside
Is it possible to read & write SEO Metadata (RDF format) included in swf header, in a compiled swf, on serverside?
So far I only found how to set metadata at compile time.
"Polar SWF MetaData" does about what I need, but it is a Windows tool and won't work on Linux server.
View Replies !
View Related
Desktop Application + Serverside Content
I'm going to start developing a simple Flash application which will then be exported as an *.exe file and used on desktop. The application gets the information from a MySQL database (+ PHP on server).
i just wanted to get suggestions on ways how this can be done and preferably which make the application work fast.
For websites I normally use loadVariables which links to a PHP file on the server, performs query on the database, stores contents into a variable and then forwards the variable back to the SWF file... which in turn displays it
Is this a good system for a desktop application?
I was thinking maybe there's a way to sort of "synchronize content"...
on first launch of application it looks for server and gets all info, and somehow saves it (??)... then on subsequent launches the application just looks to see if there's any new content on server and downloads just that info... this would make for a faster approach... but i have no clue how to save information on the user's machine.
any ideas are appreciated and maybe links to tutorials!
thanks.
View Replies !
View Related
Dynamically Created SWFs On Serverside
Hello,
does anybody know (free) libraries to create SWF files on the serverside, for example as Ming does for PHP/Pyton...?
I'm looking for a solution to create a Flash 8 SWF, since Ming only supports Flash v4 it is not my first choice for sure :)
Thanx for your help.
@Todd: If you think this question is too close to "other than flash" just move it to my forum :)
Micha
View Replies !
View Related
Stream.notify Start/Stop Serverside
Hi to you all, you great flashers...(i know abit over the top)
Any one knows how to trigger on stream.publish.start & unpublish on the serverside?? Right now I'm triggering a server function by stream.publish.start on the client wich seams a bit stupid as the stream.publish.start comes from the server....
Thx again for any pointers to the right direction
/A
View Replies !
View Related
"Flash And XML" Using Serverside XML
I am trying to make something very similiar to the "Flash and XML" video tutorial ([url]http://www.gotoandlearn.com/player.php?id=22[/url]). The only difference is using a server-side XML in PHP 5.
Any ideas?
I'm trying to select data from mySQL database where a "Type" is equal to a "Value" (which the value is a cookie) - it selects all the data with the type equal to that value and makes the XML... and I have not been able to get this to work - so I think a server-side XML might work better.
I've spent a couple of days trying to make this work. The XML currently works and selects the right items from my database but the swf is not reading this XML.
View Replies !
View Related
Flash 5 Scripting Vs MX Scripting
ok, I have this script on a movieclip called g_loader:
onClipEvent(load) {
loadMovie("contact.swf",this);
}
onClipEvent(data) {
trace(this.getBytesTotal())
}
this is how it would be written in flash 5, and it worked fine.
I tried to write the same thing using MX syntax:
g_loader.onLoad = function() {
loadMovie("contact.swf",g_loader);
}
g_loader.onData = function() {
trace(g_loader.getBytesTotal())
}
And it WILL NOT WORK!! Am I going insane? Why won't this work!!!????
View Replies !
View Related
URL Scripting.
I've have a site made partly in flash.
And I have some buttons which are linked to other web pages.
My question is. Do i really need to specify the entire URL..the actual URL or can i just use it juts like that with the '/' or ''
all the pages are in e same folder including that of the page wit the flash component.
eg..the page name is ; Intro.htm
and therefore at the URL of go to ..do i have to type out the entire URL for eg. http://www.dunearnguides.scriptmania.com/Intro.htm
??
Thanks in advance..Cos i'm rather blurr on this..
View Replies !
View Related
Scripting V2
Hey,
I have a input text box and a submit button. How do i make ti so that the number in the text box goes to that frame number when the button hit submit button is clicked?
L8
View Replies !
View Related
Scripting Help
I'm working on a digital cv that has a pixelized version
of my face on it. As you roll over a series of button's the
relevant section of the face stretches out and will ultimately reveal a part of my cv.
The problem i'm having seem's to be with the way i've ordered or positioned the script. The script works if you roll over the buttons seperatly, but if you roll over all the buttons at once you don't get the desired effect of growing and shrinking. The script seem's to get confused or conflict with itself.
If anyone has a minute to help and look at my fla I could e-mail it to you and would be very grateful as it's almost there and is doing my head in.
Thank you
luke.parish
View Replies !
View Related
Scripting Can't Get It?
Hi everyone,
I'm having trouble getting an certain effect to work. I want to have something similar to the old 2advanced site what I'm trying to achieve is when a button is clicked I want a external swf to load in to main movie clip but while its loading I want these two doors to come in over whats loading behind the doors and stay there until the external movie is done loading. When the movie is loaded I want the doors to then open again! This is my code on the button.
on (release) {
_root.introclip.shutter.gotoAndPlay("open");
loadMovie ("members.swf", "membersload");
_root.introclip.membersload._x = -325;
_root.introclip.membersload._y = -179;
_root.introclip.membersload._yscale = 86;
loaded = _root.introclip.membersload.getBytesLoaded();
total = _root.introclip.membersload.getBytesTotal();
if (loaded == total) {
_root.introclip.shutter.gotoAndPlay("closed");
} else if (loaded < total) {
_root.introclip.shutter.gotoAndStop("closed");
}
}
if anyone could help it would be great!
Thanks
Kyle
View Replies !
View Related
SCRIPTING HELP
Can anyone please advise where I might be able to learn basics regarding Actionscript - preferably with a tutor based in London, UK. I have tried self taught tutorials but I need to fully understand the basics of variables, arrays etc. Without this knowledge it is very difficult to begin to understand the capabilites of Flash and it also takes me forever when scanning back and forth through the pages of books. I would prefer to pay someone to help me understand basic programming functions. Thanks in advance for any advice.
View Replies !
View Related
Scripting?
In flash 5 how exactly do you get to add your own scripting w/o using the actions Flash gives to you? If any1 understands what I am talking about, please help me....lol
View Replies !
View Related
Scripting M O V E M E N T ---->
Hello there.
I need to create a dragable "movie-clip" which
will detect it's position (_x + _y) on the stage.
and
will move (animation move) to new _x and _y positions
on the stage
I tried this code but it didn't work:
onClipEvent (mouseDown) {
startDrag("_root.mymovie");
}
onClipEvent (mouseUp) {
stopDrag();
}
onClipEvent (load) {
xpos = "_root.mymovie_x";
ypos = "_root.mymovie._y";
if (xpos>236 & ypos<154) {
xpos++ & ypos++;
}
}
View Replies !
View Related
AIM Scripting
I am batting my head against the wall because I have created AOL icons for buttons and am trying to get them to auto prompt the AIM to pop up which they do just fine. The problem is that blank windows pop up. Is there anway to get rid of them.
This is what I am doing
on (release) {
getURL("aim:goim?screenname=&message=Hi!");
View Replies !
View Related
Help With Scripting
on (press) {
for (i=4; i>-1; i--) {
for (var name in _leveli.mc) {
_leveli.mc.stop();
_leveli.mc[name].stop();
_leveli.stop();
}
}
}
Hi guys,
What I'd like to do is autodecrement a number and put it into a variable so I don't need to specify the amount of levels I have. But I can't seem to get the variable (i) working in the script above. What this basically does is pauses any movie clips that are playing in particular levels but I would like to set the _level so that it is automatically updated rather than type each individual level number and repeat the script.
Thanks again
View Replies !
View Related
Scripting Help?
Hello Board_
I am loading an SWF into another using the following action script :
________________________________
on (release) {
loadMovieNum("Tree.swf", 200);
}
________________________________
I guess that to most, I'm being rather redundant in saying that this script loads "Tree.swf" to level 200 of my main movie.
The SWF loads in the Upper Left corner of my main movie.
How can I make it load to a position 150 pixels down from there?
I am not planning on changing the X-axis coordinates.
Any help would be great.
Best Regards,
KQ
View Replies !
View Related
Scripting Help
how can i call a SWF into a MC?
i've got a movie clip on the stage with a button in it.
on release of that button i need to have a swf play inside that movie clip.
i know how to call the swf to my main movie but not to this movie clip.
thanks.
View Replies !
View Related
Please Need Scripting Help NOW
(flash 5)i am using the following script for a preloader in the first of a two scene movie...when it finishes and loads the second scene , it jumps over about a quarter of the second scene and proceeds to loop 30 some odd frames...it seems to get stuck..can you figure out if there is something wrong with the script or what?..how can i fix it/figure it out?..i got a deadline, any ideas appreciated...thanks....
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
View Replies !
View Related
Scripting Help.
Hey everyone,
I'm only 17 but I'm determined to be a top webdesigner. I'm not sure if I'll be able to afford university so I want to start learning now. I need some help and guidance with scripting, cgi, perl, even java. I'm good with graphics etc already, and I can make a site, but scripting gets me.
Please post any good links to beginners guides to scripting of any relevant kind. Also, if you're willing to talk me through things you can add me to your Yahoo! and my ID is annunaki_of_nibiru Please help my dream come true.
Best regards,
KD.
View Replies !
View Related
PHP Scripting
Hey - I finally have Flash MX! Yay! lol
My question is in regards to retreiving data from a php script. I am using YaPP (Yet another PHP Portal), and it comes with a forum, on it I am able to see who's currently logged in. I'm wanting to implement this script on my flash movie, but I've no clue where to start. Any help on how to do this would greatly be appreciated. TIA
View Replies !
View Related
Scripting Help
Hi im trying to make a clock that displays the date and time and i can get the time down, but i cant get it to display the date and im wondering if i coded something wrong, heres the code:
d=new Date()
day=d.getDate()
if(day>10){
day= "0" +day
}
mon=d.getMonth()
if(mon>10){
mon= "0" +mon
yer=d.getYear()
timed=+mon +"/" +day +"/" +yer
My hopes what to make it look like this:
mm/dd/yyyy
Any help is greatly appreciated
View Replies !
View Related
Scripting Help
Is anybody out there can help me to figure out the script below? the script below is to control a car by the arrow keys, but this script only works when I put the car movie clip and the boundary movie clip on the main stage which is the _root.
What I want is to put the boundary movie clip on the main stage (_root.boundary) and the car movie clip put inside another movie clip called land (_root.land.car), but once i put the car and the boudary in a different place, the car will not stop when it hits the boundary.
i will really appreciate it if someone can help me on this.
-------------------------------------------------------------------
// this script is to attach to the car movie clip.
onClipEvent (enterFrame) {
// make the car go forward
if (Key.isDown(Key.UP)) {
speed += 1;
}
// make the car go backwards
if (Key.isDown(Key.DOWN)) {
speed -= 1;
}
// tells the car to slow down after the speed of 20
if (Math.abs(speed)>20) {
speed *= .7;
}
// you can change the rotation of the car to your desire
if (Key.isDown(Key.LEFT)) {
_rotation -= 15;
}
if (Key.isDown(Key.RIGHT)) {
_rotation += 15;
}
// here is where the hittest is for the boundary
speed *= .98;
x = Math.sin(_rotation*(Math.PI/180))*speed;
y = Math.cos(_rotation*(Math.PI/180))*speed*-1;
if (!_root.boundary.hitTest(_x+x,_y+y, true)) {
_x += x;
_y += y;
} else {
speed *= -.6;
}
}
View Replies !
View Related
Scripting Help....
k guys heres my problem, i have a bunch of buttons on a scene and what i want to happen is that only after u click every single button will the scene jump to the next scene... wat code would be required??
View Replies !
View Related
Scripting Help
I nned some help with a script that zooms out and zooms in. I have the zooming part working good but I can't get it to zoom out from center. I know very vague, so i attached a file for a better explanation. By looking at the flash file the problem sould be very obvious.
Thanks for the help
JLD
View Replies !
View Related
Scripting Help
Hey all,
I am not very familiar with actionscripting. I am learning thanks to all of you in this forum. I have used in my movie the "loadmovie action" and everything works fine. Now the problem I have is that I have pictures that I want to click on (like a button) and have each picture become larger and center in the same movie. I have done some reading with the available tutorials that I can find and it is apparent (i hope I am right) that i need to introduce some variables. I dont know how to assign or even begin to start with variables. Any help you could provide would be greatly appreciated.
BTW I am using FLASH 5....
Thanks
CHANDLER26....
View Replies !
View Related
Scripting
Scripting
Greetings all. I'm a new Flasher and I'm going crazy. Ok, maybe i'm already crazy from trying to make something work that doesn't. Here goes. I downloaded a file from Flashkit and don't know what I'm suppose to do with it to make it work. (DUH) It's action scripting but I don't know where to input the script in order to make it work. Am I suppose to put this in something like Frontpage or HTML or should I be putting it straight into Flash. I have the MX version. Am I way off beat or what. Many thanks for any feedback.
Here's the script.
2 parts to this script
<script language="JavaScript">
<!--
//you can assign the initial color of the background here
r=255;
g=255;
b=255;
flag=0;
t=new Array;
o=new Array;
d=new Array;
function hex(a,c)
{
t[a]=Math.floor(c/16)
o[a]=c%16
switch (t[a])
{
case 10:
t[a]='A';
break;
case 11:
t[a]='B';
break;
case 12:
t[a]='C';
break;
case 13:
t[a]='D';
break;
case 14:
t[a]='E';
break;
case 15:
t[a]='F';
break;
default:
break;
}
switch (o[a])
{
case 10:
o[a]='A';
break;
case 11:
o[a]='B';
break;
case 12:
o[a]='C';
break;
case 13:
o[a]='D';
break;
case 14:
o[a]='E';
break;
case 15:
o[a]='F';
break;
default:
break;
}
}
function ran(a,c)
{
if ((Math.random()>2/3||c==0)&&c<255)
{
c++
d[a]=2;
}
else
{
if ((Math.random()<=1/2||c==255)&&c>0)
{
c--
d[a]=1;
}
else d[a]=0;
}
return c
}
function do_it(a,c)
{
if ((d[a]==2&&c<255)||c==0)
{
c++
d[a]=2
}
else
if ((d[a]==1&&c>0)||c==255)
{
c--;
d[a]=1;
}
if (a==3)
{
if (d[1]==0&&d[2]==0&&d[3]==0)
flag=1
}
return c
}
function bgtrans()
{
if (flag==0)
{
r=ran(1, r);
g=ran(2, g);
b=ran(3, b);
hex(1,r)
hex(2,g)
hex(3,b)
document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]
flag=50
}
else
{
r=do_it(1, r)
g=do_it(2,g)
b=do_it(3,b)
hex(1,r)
hex(2,g)
hex(3,b)
document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]
flag--
}
if (document.all)
setTimeout('bgtrans()',50)
}
//-->
</script>
==================================================
====
part 2
==================================================
====
<!-- --><body onload="bgtrans()"><!-- -->
View Replies !
View Related
Php Scripting
Hello,
i have no idea how to start going about making this.
what i have is a form and you type in a name for example and then it gets saved to a file on the internet. i have already made this work with sharedobject, and i have a server to host the script - how do i make the scripts.
View Replies !
View Related
Help With Mx Scripting
OK, heres my mx scenario.
4 buttons on an oval motion path.
They need to rotate counterclockwise
on rollover (except if rollover is on whichever one is front and center.)
Whichever button is rolled over should be the one to stop front and center and could then be chosen to open a corresponding mc.
I can do this with a lot of keyframing and stop actions in the timeline, but i would like a more efficient scripting approach.
Please Help!!I posted this in the action script forum and no one has replied.!! Thanks!
heres a pic if it helps!
View Replies !
View Related
|