falltimemusic
10-21-2005, 06:04 PM
I apologize, but I'm a Flash Communication Newb. I'm pro with plain actionscript - php - mysql. I'm sure I'm missing something here that's right infront of my face.
I bought a book about flashcom server. my first app worked perfectly. it used the UI components simple connect, peoplelist, connectionLight, userColor, and chat. This program worked perfectly and I was able to communicate over my network at my house. But now when I went on to the next chapter, my second app isnt working so great.. in fact its not working at all :(
I think that i didn't define it properly, because when i open Communication App Inspector, and try to manually start up mySecondApp/myInstance then it doesn't load in. I have no problems manually loading in myFirstApp/myInstance.
i have the main.asc with this code in it
load("components.asc");
the second application is located in www/flashcom/applications/mySecondApp
and it contains the main.asc file, the the mySecondApp.swf and the html file to embed it. (that one doesn't need to be there, i can embed the file from anywhere)
here's the actionscript inside mySecondApp.swf
// Include the Debug Class file
#include "NetDebug.as"
// create a new instance of the NetConnection object
myConnection_nc = new NetConnection();
myConnection_nc.onStatus = function(info){
trace("LEVEL: " add info.level add " CODE: " add info.code);
}
myConnection_nc.connect("rtmp:/mySecondApp/myInstance", "Bryan Colvin");
connectLight_mc.connect(myConnection_nc);
peopleList_mc.connect(myConnection_nc);
when i test this it traces this to me
LEVEL: error CODE: NetConnection.Connect.Rejected
LEVEL: status CODE: NetConnection.Connect.Closed
All i have in the stage is the connectionList and peopleList components.
ive tried changing rtmp:/ to rtmp:// my book says if you're connecting to localhost that you only use one slash (it worked for myFirstApp)
I'm missing something small here i know it
any ideas?
I bought a book about flashcom server. my first app worked perfectly. it used the UI components simple connect, peoplelist, connectionLight, userColor, and chat. This program worked perfectly and I was able to communicate over my network at my house. But now when I went on to the next chapter, my second app isnt working so great.. in fact its not working at all :(
I think that i didn't define it properly, because when i open Communication App Inspector, and try to manually start up mySecondApp/myInstance then it doesn't load in. I have no problems manually loading in myFirstApp/myInstance.
i have the main.asc with this code in it
load("components.asc");
the second application is located in www/flashcom/applications/mySecondApp
and it contains the main.asc file, the the mySecondApp.swf and the html file to embed it. (that one doesn't need to be there, i can embed the file from anywhere)
here's the actionscript inside mySecondApp.swf
// Include the Debug Class file
#include "NetDebug.as"
// create a new instance of the NetConnection object
myConnection_nc = new NetConnection();
myConnection_nc.onStatus = function(info){
trace("LEVEL: " add info.level add " CODE: " add info.code);
}
myConnection_nc.connect("rtmp:/mySecondApp/myInstance", "Bryan Colvin");
connectLight_mc.connect(myConnection_nc);
peopleList_mc.connect(myConnection_nc);
when i test this it traces this to me
LEVEL: error CODE: NetConnection.Connect.Rejected
LEVEL: status CODE: NetConnection.Connect.Closed
All i have in the stage is the connectionList and peopleList components.
ive tried changing rtmp:/ to rtmp:// my book says if you're connecting to localhost that you only use one slash (it worked for myFirstApp)
I'm missing something small here i know it
any ideas?