Flvplayback Vs Nc.connect
hi everyone!i have a problem....when i use nc.connect to stream video from fms3,i can add vars to the function: nc.connect(_root.App,"UserName","Password")and on the server side:application.onConnect = function (client, Uname ,Upass)this is working!!!and than i user the Uname and Upass to check things later about users....but......when i want to do something similer with the flvplayback component i am lost! on the server side (in the vod sample) i have this:application.onConnect = function( p_client, p_autoSenseBW )can i had parameters to this?and if not, is there another way i can get the resualt i want with the flvplayback???thanks
Adobe > Flash Media Server
Posted on: 05/15/2008 10:36:19 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flvplayback Connect To Application
i have a problem....
when i use nc.connect to stream video from fms3,
i can add vars to the connect function:
nc.connect(_root.App,"UserName","Password")
and on the server side:
application.onConnect = function (client, Uname ,Upass)
this is working great ! withe the video component
but......
when i want to do something similler with the flvplayback component i am lost!
where can i had the parameters (user, pass) ?
there is a line in the code: "my_FLVPlybk.contentPath " , but i dont see a way to add them...?
thanks
thanks
FLVPlayback Changing Another FLVPlayback
Hi,
I have a movieclip with an FLVPlayback component and a second movieclip on it. In that second movie clip, there's another FLVPlayback component. I was wondering if there was any actionscript I could use in the second movieclip to change the contentPath of the first FLVPlayback component upon the completion of the second FLVPlayback component.
This is the code I tried, but didn't work:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
this._parent.flvp1.contentPath = "vid2.flv";
}
flvp2.addEventListener("complete", listenerObject);
(flvp1 is the first FLVPlayback component, flvp2 is the second, and vid2.flv is the file to be played in flvp1)
Also, I know that the listenerObject function is working because I tested a trace() command earlier, and it worked.
If anyone could point me in the right direction, I would appreciate it.
Thanks,
Brad
Can't Connect... Help
I am trying to implement a LocalConnection to get a top nav .swf to tell the subnav.swf (which is in another HTML Frame), to gotoAndPlay a scene "discography" and a frame labeled "discographyhome" but its not happening!
My connection is named "lc_disco", Any Idaes what i am doing wrong?
I am a designer and programming is not my strong suit.
SENDING SWF
User clicks a button, the button has a named instance "discographybtn"
SCRIPT IN FIRST FRAME
discographybtn.onRelease = function() {
discoout_lc = new LocalConnection();
discoout_lc.send("lc_disco", "gotoAndPlay", "discography.discographyhome");
}
RECEIVING SWF
SCRIPT IN FIRST FRAME
discoin_lc = new LocalConnection();
discoin_lc.gotoAndPlay = function(discography, discographyhome)
{
}
discoin_lc.connect("lc_disco");
Connect To Db
i used to connect to a db with flash using asp ,php,...
but now with mx 2004 i saw new features that i don't know how 2 use..
i saw rdbms , data set.....
so is it easier now? can i connect directly to sql db or access db DIRECTLY?
i saw too much XML...connection and stuff...
can u help me plz..
thnx alot.
How Should I Connect AS With PHP?
I want to get some info from a DB through php and then to use it with AS. The problem is that I don't know how to do that. I was thinking of getting the info and then exporting it to xml and then load it flash. But is there any other way to do this? Please help
How To Connect To Php?
heywo peeps =3
i'm not really new to flash but new to e part when u hav to connect flash to database using php or asp, so, is there anybody who can help me on this? i tried to see tutorials and everything but they teach php codings and flash separately most of the time so yeah~ i hav a prob here XD
cheers,
fukko
Connect To FMS Through Exe
hi
does anyone know why it isn't possible to connect to a remote flash media server from a windows projector exe file? testing it within flash works.
i tried adding these:
System.security.allowDomain("<the flash media server>");
System.security.loadPolicyFile("<crossdomain.xml on the flash media server>");
the crossdomain allows all domains. but it still doesn't work.
did anyone succeed in this?
Cannot Connect To FMS
when i try to connect to FMS an error occured : "Asynchronous I/O operation failed (Failed to attach to completion port: The parameter is incorrect. 87)."
it appears that the FMS have conflict with some service thats runnin in my windows. i have tried to disable my NOD, and all the service that i know of, but it still not working.
i have tried to read from the Adobe Tech Support, but the solution so far is to start over a clean windows installation and install FMS on it. (and yes, ive tried it on my friends notebook and it works). do any of u guys happens to has the same problem? mind if u share a solution without have to reinstall my windows?
Help With Xml.connect
hallo there,
i have a problem with the xml.connect methode. I want to read from the server ( local:127.0.0.1 port:44444 ) a serie of strings, which are split with "#".
like ......speed=200 # id=1 ...... if i want to read the speed and then use if justment, how shoud i do?
Cannot Get FMS To Connect
I have installed FMS3 developer edition on my WinXP with default settings (havne't changed anything yet). /live/ and /vod/ apps work like their supposed to but when I try to get e.g. SharedBall in the samples in the document folder to run it gives the following error:
quote:SecurityError: Error #2028: Local-with-filesystem SWF file file://C:Program FilesAdobeFlash Media Server 3documentationSamplesSharedBallSharedBall.swf cannot access Internet URL rtmp://localhost/SharedBall.
I've checked the manual, checked the installation tutorials found in here and according to those I've done everything right.
What am I doing wrong?
How Can I Connect To FMS
I have FMIS 3 in a Window Xp I can run locally but can't connect from outside. What I have tu put for URL in the swf file because I put the Ip address where the server at and nothing. What shut I do?
Help please.
E-mail Me Please Thank You...
Connect()
what am I doing wrong here? I take it that I cannot do the obvious thing and connect to a webserver in ths way. How can I? No attempt at a connection is made. I can use any nonsense name for host, and there is no error thrown about a lookup failure.
Attach Code
package {
import flash.display.*;
import flash.net.*;
import flash.events.NetStatusEvent;
import flash.events.SecurityErrorEvent;
public class TestConn extends Sprite {
private var conn:NetConnection;
public function TestConn() {
conn = new NetConnection();
conn.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
conn.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
conn.connect("http://www.example.com");
}
private function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetConnection.Connect.Success":
trace("Success");
break;
case "NetStream.Play.StreamNotFound":
trace("Stream not found");
break;
}
}
private function securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
}
}
}
Help Cannot Connect To Server
I have written a client/server program by flash/vb. The flash client program was successfully connected to the server when it was run directly in the local computer. However, when the .swf was put on the web server and tried to access through the browser, it just failed to connect! Therefore, I want to ask if the function sock.connect(ip,sock) cannot work properly when it is put on a web server and browsed through ie. Anyone can help?
Thanks a lot!
Mark
Connect Anchor...
Hi, thanks for visiting...
I´ve got a menue in Flash. Very simple. I inserted the swf in a html document. In this html-text are anchors. Normally I connect the link with f.E. "#1". But how can I do that from FlashMenue? Please help...
Martin
Connect The Dots
I want to make a little game : connect the dots.
Using drag and drop I'm able to drag a dot into an empty circle, thereby saying : connect the first dot with the second. But now I want to draw a line independent wether the dots are correct connected. And I don't want to draw all the possibility by myself!
Any ideas how to do this ?
Thanks
Connect The Dots
I want to make a little game : connect the dots.
Using drag and drop I'm able to drag a dot into an empty circle, thereby saying : connect the first dot with the second. But now I want to draw a line independent wether the dots are correct connected. And I don't want to draw all the possibility by myself!
Any ideas how to do this ?
Thanks
Connect To Database
Hey there,
I a new user of Flash MX and I actually need to connect the Flash form with a database especially SQL Server.
Can somebody provide me with some help?
Thanks
XMLsocket.connect()
How do I create a port that I can use for connect("gotcool.5penguins.com", port)??? Is it possible to create one? I don't know how to find out which one to use...and testing it isn't an option, because the possibilities are 1024 and up!!!
Need A Little More Help On Connect Swf Files
If you don't mind, could you please look at the screen shots I did on the
action scripts. The fullscreen script works perfect but the loadmovie didn't work. I don't know where to find the problem.
Thank you.
Orachat
MC....connect To Frame In Other Mc
Hello,
my problem is to connect from a MC to a frame in other MC. I have alredy used:
on (release) {
_root.gotoAndPlay("frame");
}
...and it works good. But now I must overspring the animation and land in the static frame in first MC.
I have attached an example FLA in a zip file. Please take a look there. Why doesn`t work?
Thanks
Pixelkind
Remoting: Cant Connect Lately.
Hi all,
Im developing a game using flash remoting which connects to my server, but lately the remote client flash has been unable to connect when it is run from within its web page, but WILL connect if the flash .swf is run using the stand alone player.
The stand alone player does need to have the security loosened for it, but I can seem to get the browser based swf to play.
Any ideas??
It seems they have tightened the security measures within flash remoting but at the expense of flash remoting working by default??!?
Connect Scrollbar To ...?
hmm I don't know how to explain this best but I'll will give it a try.
I am currently building a mobile phone site (images of mobile phones to view).
The problem to solve is that not all thumbs of the models fit in the screen,
so I need a vertical scrollbar. The thumbs of the mobile models behave as buttons. How can I connect the scrollbar to the field of the mobile thumbs?
Can I put a movieclip behind the mobile thumbs buttons?
and have the scrollbar connect to that or?
what would you advice me to do? I am a bit lost *lol*
[F8] Best Way To Connect To A C#.NET Backend
I need to make an ad in Flash which asks a C#.NET backend for information such as product name, prices, links to pictures of products (alternatively sending a bytedata stream of the pictures from the server to the client's flash would be nice, is this possible in AS 2.0?)
Can anyone tell me what AS 1.0/2.0 objects/classes would be best suited for this task? WebServices sounds interesting, perhaps there is something else? I need to keep it limited to Flash Player 8 because Flash Player 9 is not very wide spread at the moment (so no AS 3.0!).
Thanks,
Martin Munoz
Trying To Connect To A Web Service [CS3]
I'm trying to connect a Flash interface with a web service over the company intranet, and so far having no luck at all. While I have a pretty good Flash background, my experience with other web technologies is limited. The web service, which spits back XML, has been put together by a web developer who doesn't have a lot of experience with Flash. I'm using a web service object to connect, and the URL he has given me to connect to looks like this:
"http://usdev.somedomain.com/PrintWebService/printwebservice.asmx?op=FindAllOfficesXML"
"http://usdev.somedomain.com/PrintWebService/printwebservice.asmx" is the web service itself and "FindAllOfficesXML" is the web service method.
But every example I can find of URLs for web services in Flash ends in ".wsdl". Is this significant? What would he need to do generate a web service whose path ends in ".wsdl" instead of ".asmx"?
Connect Two SWFs
Hello...
I have one browser window in which i have an SWF (SWF1) and another window with another SWF (SWF2). What i need to do is that when something is done in SWF2 it should notify in someway SWF1 so it can do some stuff. Basically i need to comunicate the two SWFs that are in different browser windows....
Any idea on how to do it???
THANKS!
SWF Won't Connect To The Internet.
I have two SWF files - one connects to the internet to get a news feed, one gets a local XML. Both accomplish it with XMLConnector.
Local file works just fine. Internet version is another story - works GREAT on my development machine, where Flash resides. The minute I put it on the web server, all other machines show the file and all animations/tweens start working, but there's no data.
Is there a security setting I need to configure that Flash configures during install? or maybe I'm missing a file or two somewhere?!
I have the latest 8.0.24.0 player on all machines and develop with Flash 8.
Did I miss some code? but if so, why does it work on my dev box?
How Do U Connect To A Database?
Hello there
Can someone tell me how to connect to a database (preferrably MS Access) and having Flash as a front end (which should be obvious)
My application is stand alone application and not web based. Please help me
Thanking you in anticiption
Safiya
Help With Connect 4 Game
a friend of mine was given as an assignment this fla file which contained a connect 4 game, they were asked to change it so that the user drags the circles and drops them on the grid instead of just clicking. I have attached the fla file and documentation for anyone who can please help. thank you
XMLSocket Allow Connect Thru WAN?
i would like to use XML socket to connect between client and server. if the client ans server not located in LAN, but need to connect thru internet, XML Socket can do it??
thank you for answering me...
Cannot Connect To FMS2
I just started with FMS and I tried to connect to it to test out the install.
On the serverside, I created a main.asc which contains:
application.onConnect = function(client)
{
trace("hello");
application.acceptConnection(client);
};
On the client side I just have:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp:/appname");
I run this from the Flash CS3 environment by doing "Test Movie". I can see the trace() message in the FMS log console, but I get an Connect.Failed message on the client.
Any ideas?
Thanks!
XMLSocket.connect
I have been having some really odd issues when it comes to flash connecting to my socket server. It tends to run perfectly fine when I test my movie in flash and even when i open the swf with internet explorer. HOWEVER, when i upload the swf, it just wont connect!!! I can sit there for days and it just wont connect. Anyone have any ideas as to why it will connect when it is on a users computer but not while its on the server??
Newbie Trying To Connect
Hi all,
I'm trying to connect to Flash Media Server 3, but I don't know how. Please help!!
Below is waht I've done so far .. but I don't know if it's correct.
Thanks a million in advance!
Code:
myConnection = new NetConnection();
myConnection.connect("rtmp://localhost");
myConnection.onStatus = function(infoObj) {
switch (infoObj.code) {
case "Netconnection.Connect.Success" :
trace("success");
case "NetConnection.Connect.Failed" :
trace("failed");
case "NetConnection.Connect.Rejected" :
trace("rejected");
case "NetConnection.Connect.InvalidApp" :
trace("Invalid App");
case "NetConnection.Connect.Closed" :
trace("Closed");
case "NetConnection.Connect.AppShutDown" :
trace("AppShutDown");
}
};
What To Put In The Connect() When Loading Flv
Hi,
This is the first time I'm trying to load flv file into my flash file.
It works fine on my local computer, but online I get the error:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound
at test_fla::MainTimeline/test_fla::frame1()
In all the books/tutorials/help that I looked at, I couldn't find out what should I put in the connect() statement instead of null.
Can someone please help me?
The code:
var videoConnection:NetConnection = new NetConnection();
videoConnection.connect(null);
var videoStream:NetStream = new NetStream(videoConnection);
videoStream.play("showReel.flv");
var metaListener:Object = new Object();
metaListener.onMetaData = onMetaData;
videoStream.client = metaListener;
var video:Video = new Video();
video.attachNetStream(videoStream);
addChild(video);
function onMetaData(data:Object):void
{
play_btn.addEventListener(MouseEvent.CLICK, playMovie);
stop_btn.addEventListener(MouseEvent.CLICK, stopMovie);
}
function playMovie(event:MouseEvent):void
{
videoStream.play("showReel.flv");
}
function stopMovie(event:MouseEvent):void
{
videoStream.pause();
}
Thanks,
Cgull
Localconnection.connect
I found this page about localconnection.connect.
I have three flash movies,
Two of which are containers.(basically empty flash movies)
I want to be able to load other movies in them with the push of buttons in
one of the navigator movies.
How would this code work? Has anyone used this before that can help me?
Connect The Dots
Is there a way to let the user (the viewer/player) draw a line from one point to another? (dot symbol to dot symbol). Just wondering--if anyone can figure it out, please post actionscript code.
Connect Error
I am using Flash 2004 MX to invoke ColdFusion MX 7 which is interrogating a MySql DataBase.
Basically in a flash movie, a form is constructed dynamically in stages. After the first stage, I interrogate the database to prevent a duplicate entry, then I allow the user to proceed with the rest of the form. Once the user finishes the form, I do another duplicate check (on a different table) and if that passes I do a record insert.
The problem I am having sometimes – not all the time, occurs between the 1st query and the 2nd (both checking for duplicates and returning a record count). When connected to CF7 locally (on my personal network), it will always work.
However, when the client (the flash movie/form) is not directly on the same network, I sometimes (intermittently) get a connection error – ONLY on the 2nd query.
Using the NetConnect Debugger, I have found that inexplicably, on some occasions, the second CF query is invoked with a ‘jsessionid’, which if present, always causes the connection to fail (apparently do to a 404 error).
The first query never has a 'jsessionid' and will always work, but sometimes, under circumstances I can not fathom or duplicate, it will randomly add this to the ConnectString and cause this error. Here is the ConnectString that is causing my error:
ConnectString: http://xxx.xxx.xxx.xxx/flashservices/gateway;jsessionid=b8305942b707IX$26$29
Can anyone help me understand why it adds this some times but not all the time? Additionally, how might I prevent the ‘jsessionid’ from causing a connect error (if possible)?
If no one can answer those things, is there someone with a quick fix?
Local Connect CS3
Here is the problem of the day with Flash CS3.
When I create a local connection in CS3 to send a message to a seperate Director application. It is unable to receive the message inside of director. Here is the exact sequence I am trying (this all worked fine in Flash 8)
1) Create Local Connection in CS3 and output as projector (have tried it both as Flash 8 file and Flash 9)
2) Create seperate file for other connection in CS3
3) Save 2nd file as Flash 8 since director doesn't understand 9
---When I now run both these files in Flash 9 Player they communicate beautifully
4) import file from step 3 into director and export projector
5) Flash is now unable to communicate with the same file that it could before it was wrapped in the director file
-- Also tried using zinc as the wrapper with identical results
Conclusions something about how CS3 is creating the Flash 8 files breakes localconnect for other applcations which can deal with flash 8. Any help or even if other people are seeing the same problem would be helpful
Dave
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
Connect To A Web Service?
Can someone please tell me how to connect to a web service and receive the array and display it in AS 2.0? It's more then one item in the array I will receive. I need to do it by code and can not use Web Service connector.
How Do I Connect To A SQL Server DB?
I have a menu designed in Flash which has to pull back database records, how do I go about that? Every tutorial seems to be different and none are exactly what I am looking for.
thanks
Em
Connect Through Router
Hi guys,
seems I can connect ok locally but not from the internet.
rtmp:/localhost/appname works great but when I try rtmp://ip/appname it does not, my firewall and router firewall have been disabled but still no luck.
any ideas?
thanks
Help Me: Unable To Connect To FMS
Hello Guys
I have an audio recorder . It is working fine on localhost but it is unable to connect to the remote FMS .
i have tried
nc.connect("rtmpt://myserver.com:1935/myApplication");
and
nc.connect("rtmpt://myserverip:1935/myApplication");
and
nc.connect("rtmp://myserver ip/myApplication");
But only get "NetConnection.Connect.Failed"
I tried to run the application on remote server locally there it is working fine. One remote desktop of my server the when i try to access the project through http then it is working fine but on all other computers it is unable to connect.
I will really appriciate your help
Thanks
Unable To Connect To FMS From Outside Of The US
I'm having a really strange problem. We set up our FMS a couple of weeks ago, and are able to stream videos. However, the person that is directing this project has been out of the country for a week. He has tested our site from his hotel in both Thailand and China, and then again last night from a computer in a large convention center. When he clicks on the playlist, the video screen just spins. At first I thought it was a bandwidth issue, but after reviewing the log files, I see that he has never established a connection. I have tested the connection from outside of our department (i.e., home computer, and various friends/family in different states) and we have no problems connecting.
Has anyone ever heard of this happening? It doesn't make sense to me that people in the US would be able to connect, but not from other countries.
I need to get this figured out. This is an education site, and we want to stream to people around the world. Can someone PLEASE help me???
Connect To FMS Remotely
Hi all,
I've created a flash program which can connect to the flash media server locally, but what i want is to be able to connect to the FMS via LAN or even internet, for example computer1 will have FMS installed and the correct application file, and computer2 on LAN or internet, can connect to the FMS on computer1.
right now i;ve tried using the ip address, like:
client_nc.connect("rtmp://xxx.xxx.xxx.xxx/prototype");
but doesn't work for the remote computer, can anyone help me please? Thanks.
I Cant Connect Anymore Why?
Hello, I am new to FMS an d for the last few days my server would connect just fine and I could use the admin console just like it was intended but now it wont let me connect! It will say login attempt to server below failed please try again. Nothing is different than what it was a couple days ago when it was working fine. I checked out the cfg file and the name and the password line up just fine. Any idea why its not letting me connect anymore??? If it helps im connecting locally to my root/applications folder. Help is VERY much appreciated!!! thank you!
Cannot Connect To Server
Hi Everyone,
I have FMS3 installed on a Linux machine running Red Hat 4. I am able to connect to the admin console and it shows me that the server is running and everything looks fine. But when I try to stream video, it just wont establish a connection. I tried using fmscheck to see if I can connect. When I type:
./fmscheck --host localhost --app vod --logfile output.txt
I get this:
#Version 1.0.0 r15
#2008-09-25 12:47:05
#Software: Adobe Flash Media Server Check 1.0.0 r15
#2008-09-25
#Fields: date time x-event x-sname
2008-09-25 12:47:05 Connect rtmp://localhost:1935/vod
2008-09-25 12:47:21 Timeout -
The admin console shows that no connection has been made and there's nothing displayed in the server log (viewed in the admin console). Also, when I restart the server and check the logs, it appears that the creation of the process mutex has failed:
Sep 25 12:49:14 serverName Service[5369]: Server stopped .
Sep 25 12:49:14 serverName Service[23886]: Server starting...
Sep 25 12:49:14 serverName Service[23886]: Server started (/var/opt/adobe/fms/conf/Server.xml).
Sep 25 12:49:14 serverName Adaptor[23906]: Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4
Sep 25 12:49:14 serverName Server[23909]: Failed to create process mutex.
Sep 25 12:49:15 serverName Adaptor[23906]: Listener started ( _defaultRoot__edge1 ) : 1935/v4
Sep 25 12:49:19 serverName Service[24014]: Server starting...
Sep 25 12:49:19 serverName Adaptor[24014]: Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
Sep 25 12:49:20 serverName Adaptor[24014]: Listener started ( FCSAdminAdaptor ) : 1111/v4
Sep 25 12:49:21 serverName Service[24014]: Server started (./conf/Server.xml)
Has anyone encountered this before or have any suggestions on what to try? I all out of ideas. The only thing I can think of now is to uninstall and re-install.
Any help is appreciated.
Thanks,
Ryan
Cannot Connect To FMS3
I thought it was because I was placing the files in the wrong folder but that didn't seem to be the problem. How can I test the connection using the sample.flv that installed by default? My systems admin swears the firewall is open etc. etc. etc. but we are running FMS3 on a Windows 2003 server and he's a novell admin so he said he could be missing something there. Any help would be great!
Cannot Connect To Socket...
Ok, so it goes like this. I made myself some nice app which pulls off data from a MySQL server and displays it on the screen...everything worked fine, till i noticed that, with the new flash player, i cannot get it to work anymore. So i've started googling and found out about this crossdomain.xml policy file etc.
Trouble is, i cannot get that to work...I have a web server setup, and i've put a crossdomain.xml file in the root, which goes like this:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"
|