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








Using Flashcom In Local Network


hye..i want to apply a video chat application on my local network, but i failed.
i changed the rtmp from rtmp:/(application folder) to rtmp:/(other computer name)/(application folder)
but it doesn't work.
How can i do this?..

can somebody please help me..




ActionScript.org Forums > Supporting Technologies > Flash Media Server
Posted on: 03-31-2006, 12:57 PM


View Complete Forum Thread with Replies

Sponsored Links:

Local Network
I'm trying to make a multiplayer game,
so far so good.
But instead of having share-screen or split-screen I would like to make it a LAN game.
I know there is a way to write to a file using FScommand but I have foregotten,
can somebody please post a link or a code snippet.

But from memory it only writes to a files in a folder named FScommand in the same directory as the swf, so, is there anyway to write to a file that's not in an FScommand folder?

By acheiving this, I can continuously read data from the file and write data so two computers can interact.

Thanks,
-Jacob

View Replies !    View Related
Can't Print To Local But Can To Network
Has anyone seen this before? I created an AS print button on my flash that prints out one hidden frame. The Flash is a one frame graphic that has some dynamic text. It prints fine to a network printer but not to a local printer. The page comes out totally blank.

Anyone seen this before? BTW... this is for Flash 5 not MX

Any ideas how to correct this?

Thanks

View Replies !    View Related
Security Over Local Network
Hi,

I'm using Flash MX and I wanted to check a detail with the security features in flash just to make sure that my project is not doomed from the start .
I am developing a system that will display data (timetables and stuff) on several computer screens on a computer network and they will load the data from a php file (using loadVariables) which will be on a different computer on the network (with Apache running). Basically, I want to load a file from say 'http://192.168.2.9/data.php' from a different computer (but all on a local network and not on the internet). Will flash's built-in security settings stop me from doing this? If so how can I get round it?

Thanks in advance,

Matthew Dingley

www.matthewdingley.co.uk

View Replies !    View Related
[CS3] Flash App Across A Local Network?
Hey - Got an upcoming project where there will be 3 kiosk like computers all running a Flash application. They'll need to communicate with each other running a simple game (i.e. imagine 3 kiosks all playing a game of blackjack across the three terminals where the three players / kiosks are playing against each other).

What is the best method for accomplishing this? I'm assuming we'll need to set up a fourth computer as a local server of some kind to handle the communications but I wanted to get some feedback here.

[Also - I apologize if this is in the wrong forum. It kind of spans AS programming as well as networking / servers so I wasn't sure where to put it. Thanks in advance for the help]

View Replies !    View Related
Flash App Across A Local Network?
Greetings all - This may be a more generalized Flash question but I figured this would be the best forum to post this. We're researching developing an upcoming project in Flash where there will be 3 kiosk like computers all running a Flash application (preferably an EXE). They'll need to communicate with each other running a simple game (i.e. imagine 3 kiosks all playing a game of blackjack across the three terminals where the three players / kiosks are playing against each other).

What is the best method for accomplishing this? I'm assuming we'll need to set up a fourth computer as a local server of some kind (most likely a mySQL / PHP solution as opposed to a Flash Remoting Server solution) to handle the communications but I wanted to get some feedback here whether it was possible for the three terminals to communicate with each other directly or whether the security measures in Flash prevent this.

[Also - I apologize if this is in the wrong forum. It kind of spans AS programming as well as networking / servers so I wasn't sure where to put it. Thanks in advance for the help]

View Replies !    View Related
Access Local AND Network Files
Hi !

I don't really like the fact that Flash 8 doesn't allow us to load local and remote files, but I understand the security problem beyond this. Unfortunatelly, it's even impossible to call a simple getURL ("http://www.hotmail.com","_BLANK") without any parameters (no parameters = no problem...)

So, does anyone think that it's possible to avoid that problem using javascript ?

Thanks

Mathieu

View Replies !    View Related
Can't Connect To FMS From Local Network Machine
I was finally able to get fms running and streaming to a flash client on the same workstation yesterday. Now I'm trying to connect to that workstation from another flash client on another workstation but I'm not able to make any connection. Here's the code..

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://192.168.20.117/video_tutorial");

I've also tried nc.connect("rtmp://192.168.20.117:1935/video_tutorial"); but I keep getting the status message "NetConnection.Connect.Failed".

The ip is the machine that has fms setup and running and both workstations are on the same network. I can ping the 117 machine but I can't connect via flash. Is there something else I need to do to get my client to connect to that? Thanks.

View Replies !    View Related
NetConnection - Working Local & Network But Not Server...
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?

View Replies !    View Related
Live Stream Accessible On Local Network Only
1. I downloaded and configured Flash Media Encoder.
2. I downloaded the development version of Flash Media Server.
3. They're both running on the same machine.

I'm a Flash newbie, but using the sample applicaitons, I managed to create a SWF file that broadcasts the stream from FME.

The stream plays beautifully on all machines on the local network in my house. I've exposed the machine running FME and FMS to the Internet by natting it. Locally, it has a 192.168.x.x address, and I am using NoIP.com for dynamic DNS. This is the URL to the page hosting the SWF:

http://healtv.theheals.net/healtv/frederick_cam.html

The page loads, but no streaming video. As I said, on the local network, it's fine.

Grasping at straws, I also opened port 1935 (TCP) on my router.

What am I doing wrong?



























Edited: 05/08/2008 at 09:17:11 AM by jonheal

View Replies !    View Related
Can Flash Player Have Access To My Local Network
Hey,
I've got a flash site that is hosted as usual on a webserver.
I need to allow the end user to watch an FLV which is located on the local network, not on the webserver where the site is.
Is it possible to get the flash player on the end users pc to be able to access the local network?

the contentPath is something like:
video.contentPath = ""\server1folder1vid.flv";

Any help would be great, I can't get this to work at all
plu

View Replies !    View Related
Local Files + Network = Annoying Security Popup
Hey,

Ive got a small flash project that has multiple files that communicate between a server and a folder full of resources, such as images and XML files.

The directory structure would be:

myFlashFolder
|
|- resources
|---|
|---|- config
|---|---|
|---|---|---policy.xml
|---|---|
|---|- example.xml
|
|- MyFlashFile.fla

Now i get my flash file to load up the policy file as soon as it starts:


Code:
Security.loadPolicyFile("resources/config/policy.inc");
Within there as im testing ive put:


Code:
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>
As soon as flash tries to connect to the policy file it pops up with the security manager, and if i accept that it then pops up when trying to connect to my local server (localhost). Ive tried reading up online, however there doesnt seem to be much decisive info on how to stop the security manager from popping up (and i mean stop it popping up as you have set up permissions correctly, not some hack to stop it coming up).

If i move my policy file to the localhost root then it will load it fine, which solves the network problem, but it always seems to pop up when trying to load in other SWFs in the same folder... which also causes major problems if the SWF thats loading up hasnt got relevent security prvilages, and bombs out internally with a security exception...

I was going to attempt doing allowDomain(), but i read that the policy file does that for you, any info would be great as im a tad stuck

View Replies !    View Related
Loading Text Into A New Text File On Local Network
How do you write text to a simple text file on a local network without using php.

View Replies !    View Related
You NEED To Download Flashcom
Hey all,

Flashcom is just about the coolest thing ever. I've been beta testing it for a few months trying hard to keep my mouth shut about it.

When you install it, you will find a ton of more options in Flash Mx. All those "undocumented" commands that have been posted here for the past few months will become "documented" and even usable.

New drag and drop componets for Flash like, WEBCAM and CHATROOM

Check it out!!!


here's a sample guestbook with a twist.

http://64.21.120.19/flashcom/sample_...guestbook.html

View Replies !    View Related
Rrottman---> I Need FlashCom Help, Man
as the flashCom community does not work for me (tells me to login all the time although I do so), I was wondering if I could get some help in here with the flash communication server mx.
A friend of mine installed the flash server mx on his server, and I upload my stuff there, but I cant connect to the server no matter what I do. Not even the sample applications works, they work on his machine, but from here I get a red light and cant login and none of the samples works. Is there a chance that I can get this to work before the trial ends? Thanks, I really hope that you even read this post, I bet you are drowning in work over at flashcom...

View Replies !    View Related
Flashcom Question
Here's the situation:

I forgot my administrator password so i thought I would reinstall flashcon, so I tried to uninstall flash con and got a popup box asking me to "insert disk 1 that has the file data2.cab" along with the browse option - i can't find the damnfile anywhere - the suggestion was:

C:WINDOWSTEMPPFT4294.TMPDISK1

But evidently it wasn't there...
And alas "IT" won't let me continue with the uninstall...

So I went ahead and tried to reinstall - no luck there either - I get as far as the unpack and then the install stops.

Could someone please help?

Regards

ps Is it possible to run flashcon on Microsoft Personal Webserver?

View Replies !    View Related
Flashcom Server
Does anyone know how to write code to use Flashcom Server?!?! I can't find any tutorials anywhere that actually explain anything basic. I just want to try to build a sample chat application so I can learn the commands. Isn't there a manual somewhere?!

View Replies !    View Related
Check For Flv On Flashcom
I'm working on a videoplayer that get's its video from a flashcom server.
There's a bandwidth check that sees if the player should get the _low, _med
of _high quality file.


Code:
if( bandwidth > 512) video += "_high";
else video += "_low";

But sometimes, there aren't any different qualities and is there just the video file. How do I check if the file exists on the flashcom server?

I've tried to invoke the NetStream.Play.StreamNotFound error but it only seems to work with direct links instead of the flashcom server.

anyone has ideas how to tackle this?


x-posted on flashcomguru.com

View Replies !    View Related
Disconnecting From Flashcom
Hi, I have a newbie question..

How can I disconnect from flashcom once the user is already connected?

Thanks!

View Replies !    View Related
Flashcom Server
Hello

I have a java video chat, i was thinking to change it to flash. but something i didnt understand it well about buying flash media server

on http://www.adobe.com/products/flashmediaserver/productinfo/pricing/

Flash Media Server Professional Edition License Profiles
It is showing
-150 Concurrent Connections / Unlimited Bandwidth / Unlimited Vhosts-
-1000 Concurrent Connections / 40 Mbps Bandwidth cap / Unlimited Vhosts
-2500 Concurrent Connections / 25 Mbps Bandwidth cap / Unlimited Vhosts

When i scrolled down to read about prices

Macromedia Flash Media Server 2.0 Pricing

-Professional Edition 150 – 2500** US $ 4,500

So my question is, if i want the 150 connection only, i have to pay $4500 ??
If not , what is the price of 150 connections?

i have my own dedicated server
but i am searching for only 100 connection or 150 , i am not in need of more than that

so what to do in that case?

thanks

View Replies !    View Related
Flashcom Server
<!--

hi... i create one server w/ flashcom and my site has video chat
but my ip isnt static, anyone can say me one server that suport flashcom and low payment

thanks

-->

View Replies !    View Related
Is FlashCom Available On Solaris Or Sun?
Does anybody know if Flash Communication Server is available to run on any operating systems besides Windows or Linux? I'm hoping to find that it is available for Sun, Solaris or Mac. I greatly appreciate any help you guys can provide.

View Replies !    View Related
FlashCom Playlist
Hey ultrashockers,
do any of you know if i can find out exactly where i'm at in the mp3 if i'm playing all my mp3's as a flashcom playlist.

Basically when you play one song at a time the ns.time() gets reset to 0 with each song and keeps incrementing through out the stream playing.

But with having a playlist on the flashcom, i guess it treats all the mp3s in the playlist as one big stream and the time() doesn't get reset but keeps incrementing with each song.

there's GOTTA be a way it might just be undocumented. anyhelp appreciated!

View Replies !    View Related
FlashCom Component Question
Hi everyone,

This one is for who are working with the Flash Com. Server.

I have a file that has a main timline and then a few mc's.
If I start off with a clean flie and add the chat components
select them all and make them into a mc, then select them
and make them into another mc, they play fine. But if I do the
same thing in my current file the text dissappers from the send
and login buttons, plus I can't see any text in any of the text fileds.

the code on the button is the following:

on (rollOver) {
if (_root.opened == false) {
_root.menupopup.gotoAndPlay(2);
// open the box if it's not opened...
} else {
stop();
// don't open the box, it's already opened...
// and/or do other stuff...
}
}
on (rollOver) {
menupopup.chat.gotoAndStop(5);
}


this opens the right mc but like I said the buttons and text fields aren't showing
any text. Wierd.

View Replies !    View Related
Skillset ? For Flashcom Hire?
Hi

Just wondering if anyone out there can give me some insight, feedback or thoughts !!

I'm looking at hiring someone to work with flash Communication Server, as well as hopefully having good creative and visual skills. My thoughts are that they have to have advanced Actionscripting skills to the hill !!!!

I wont be throwing them into the lions den by themselves with flascom. I will be hiring a 3rd party dev company to develope the flashcom components and setup the flashcom server, but i want an internal person to learn on the project as well as from the documentation from the 3rd party, so that once the project is over, at least some knowledge base on what is going on has been learnt and left within the company.

Does this person have to be well versed in Object Oriented Programing ?
Any thoughts would be greatly appreciated...as well as any thoughts on where to find qualififed people for this role ?

Ryan
p.s Im based out of toronto, Canada in case anyone is gonna be posting back to me regarding this position.

View Replies !    View Related
Protecting Swf Files With Flashcom
After alot of reading and searching I've been led to believe that the only way to protect swf files is to use Flash communication server and stream the files so they are not stored. As with other "protection tecniques" is there a workaround that would render that protection system useless? Am I correct in my neophyte understanding that this is pretty foolproof?

I am new to Flash and COMPLETELY ignorant of actionscript but I have created a number of swf tutorials in various tools that I would like to protect. The downside of these tools is that although they are a great time saver they do not give me Fla access and therefore there is little I can add or modify to those files. Is it possible to stream such files using flashcom and if so what is involved in the process? If the answer is too long and involved to post here then perhaps someone can point me in the right direction assuming my premises are correct. Thanks

View Replies !    View Related
Sound Problem In FlashCom
Hi every one

I have a strange problem here..

We have a webConference application, and it works just fine, but in some networks we have some terrible echoes and annoying sounds ...
We can't understand what is the problem exactly, did any one faced such problems or knows what the problem may be?

View Replies !    View Related
AMFPHP Remoting From Flashcom
I have a FlashCom app that makes a service call when a user connects (to authenticate the user against MySql db). I am encountering a problem where *only every second connection receives a result handler from the service.

To eliminate coding errors on my part (still being new to AMFPHP) I deployed a great login tutorial by Jorge Solis to my server and the problem persists.

You can see his demo working as it should here:

user: test
password: test

http://www.flash-db.com/Tutorials/login/

...and my deployment of his demo on my server where only every second connection works here:

http://www.bayinteractive.com/login/login.swf


Anyone seen this kind of battyness before and know what causes it?

View Replies !    View Related
How To Play A Flv From FlashCom Server
I'm new to the FlashCom Server architecture and have a little problem.

I can publish a live feed from my webcam en play it on another swf. But when I try to upload a flv file to the server and try to play it in an swf it just doesn't work, The screen stays white....

Here is the code I use to play the flv:

ActionScript Code:
connection = new NetConnection();
connection.connect("rtmp://flashcomserver.com/test/");
srcStream = new NetStream(connection);

// To play the flv file
srcStream.play("testfile"); //also tried testfile.flv instead of just testfile

_root.video_mc.attachVideo(srcStream);

I place my flv in the streams folder which is a subfolder of the test folder in the url I use.

Please can anyone help me!!

View Replies !    View Related
Freelance For Flashcom Videochat
Seeking freelance with good experience actinscript and flashcom,
to optimize, and to apply new functions to my videochat.

Thanks

View Replies !    View Related
Flashcom Application Cool Do You Like It?
http://www.collab.nl/index2.html


The app is cool.

View Replies !    View Related
FlashCom & Live WebCam
Ok. Here's my problem:

I have a webacm connected to a computer. I'll get a flashCom hosting, let's say mediatemple?. Then i have lot of users. They all need to see that webcam in their flash application.

Any hints how to do that? I know it requires some flashcom scripting.

So if anyone could just explain to me how it's done technically, it would be great! I'll figure out the code on my own.

View Replies !    View Related
Flashcom Application Cool Do You Like It?
http://www.collab.nl/index2.html


The app is cool.

View Replies !    View Related
FlashCom, NetStream, And MediaDisplay
I searched and found that a few people have raised similar questions, but no one ever seemed to find an answer. Or, at least the didn't post the answer.

I'm developing an application where I want to use FlashCom to stream video, set and control the streaming properties (suggesting netStream), and listen to the video for cuePoints (suggesting the mediaDisplay component).

Has anyone successfully used a mediaDisplay component to stream video from a FlashComServer using actionscript (in other words, WITHOUT setting the rtmp in the Component Inspector)? I can get it to connect properly, but I only hear the audio.

Or, if that's not possible and I have to use embedded Video instead of the mediaDisplay, does anyone know a good way to set and listen for cues in a netStream? I don't really want to unnecessarily use up resources by hacking an onEnterFrame() to check the netStream.time property. Or maybe I don't understand how cuePoint listeners work and they really are using onEnterFrame.

You'd think this would be easy....

jpm

View Replies !    View Related
FlashCom Or DirectorMX For Avatar Chat?
Hey gang!

I want to create an avatar chat. I've never picked up and looked at Director and have no clue how it works. My Flash experience isn't bad but not Advanced yet. Would you suggest purchasing FlashCommunicator or Director for an avatar chat.

Is there any open source mulituser code for FlashMX and FlashCom?
I don't want my characters to do a walking cycle to get from one area to the next, I'm going to have them "BAFF" or teleport...

~Zero

View Replies !    View Related
FlashCom Server? And Flash Remoting?
Flash remoting and FlashCom server, what is it and what this two things are doing,
are thay nesesery?

View Replies !    View Related
Seeking Flashcom-Actionscript Expert
I've been running a language learning website that has picked up a lot of momentum lately. Just under 100,000 loyal dedicated, smart members interested in sharing/exchanging their language. 7,000 unique visitors a day. Supporting over 90 different languages.

I am steering the site towards a business model similar to englishtown.com and globalenglish.com, (however where they focus just on English, my site focuses on all languages.) Allowing teachers to conduct live audio-video lessons online, allowing teachers to pre-record lessons and host them online for others to play at their will and allowing language exchange partners to connect online and share language learning through an audio/video virtual classroom.

I have a prototype flashcom based audio/video classroom running, it works well, but it's very basic and limited. I am in the process of writing all the php code to add structure to it, seperate it per language, charge per the time spent in the classroom, allow teachers to set up time schedules & fees, allow payments to be collected and processed, etc..

But I need a FLASHCOM expert to help boost the functionality of these virtual classrooms from within the flash environment. To start with, I want to convert my existing basic application, which is essentially the same as this application: http://www.peldi.com/pphone.html into a full and rich featured application more like: http://www.ivideochat.com/index.php .

The next phase would be to allow teachers to record their own language learning video lessons, edit them, manipulate them, have a window for text documents, pictures etc that accompany the video, allow pause, rewind etc.

In summary, I am seeking a business partner. Or if you can do this work but prefer money, I am open to discussing that. I'm not rich but highly motivated and can find a way to make it happen.

Thanks,
Jeff

View Replies !    View Related
Can't Connect To Localhost Flashcom Server
Can somebody help me connect to my local flashcom server? This is very urgent, as it must be done by Thursday morning for a high profile client (just got handed the project last night, and begain flashcom today).

I think it may be a server config issue, as the code seems very simple. I have a folder in <appliations> titled "rovion_testapp"


Code:
main_nc = new NetConnection();
main_nc.onStatus = function(info){
trace("Level: " + info.level + " Code: " + info.code);
}
main_nc.connect("rtmp:/rovion_testapp");
//
source_ns = new NetStream(main_nc);
local_cam = Camera.get();
local_mic = Microphone.get();
source_video.attachVideo(local_cam);
source_ns.attachVideo(local_cam);
source_ns.attachAudio(local_mic);
source_ns.publish("speaker", "live");

in_ns = new NetStream(main_nc);
monitor_video.attachVideo(in_ns);
in_ns.play("myTestStream");

stop();

Of course there are 2 video components (source_video, monitor_video) on the stage. I can see the local video fine, but the movie doesn't connect to the app server.

As a second note, in the Communication App Inspector::Statistics, I can see myself connect in the # Active. #Accepted and #Rejected remain at 0 though.

Thanks for any help,

Ticean

View Replies !    View Related
FlashCom Server Crashes Or Dies Away
Hi All,

Any of you had this problem. We have recentlly developed a FCS based private chat application and have around 300 - 400 people using it simultaneously. All is working fine, but the server at times just dies away.... or crashes. We can see that the admin server is working fine, but the fcs server dies away:

Following is our harware configuration:

Operating System : Red Hat Enterprise Linux ES 2.1
Processor : Dual 2.8 GHz Intel Xeon
Memory : 2GB RAM

Only for Flash communication server use.


Can anyone help.

Thanks in advance.

Sunil Bhaita

View Replies !    View Related
List Of Best Flashcom Server Hosting
Hello,
I would like to make a list of the best flashcom server hosts, and I will start with :

influxis
media temple

If you know of other hosts please add to this list.

View Replies !    View Related
Flashcom Components And Flash Player 7
I have noticed updated macromedia flashcom components seems not work nicely publishing .fla file with fl. player 7. In particular whiteboard is drawing correctly, but whenever I try to move or scale same line or text or textbox, they disappear from the screen. Is it only my problem? Are these components ready to work with flash player 7 ?

Thanks for any kind reply
daniele

View Replies !    View Related
Pausing FlashCom Microphone Class
What is the best way to pause while recording sound? Doesn't look like the microphone class has a pause.

I tried the pause() but that only works when playing not recording.

I currently close the netstream.close() and when resuming I open a new netstream and append the audio. I thought it worked great but there are some hiccups in the sound and I lose data on slower connections.

I need to shut off the mic and when i turn it back on it needs to pick up recording where it left off .... if I turn the mic off at 10secs and pause for two minutes turning the mic on will pick up at 10secs.

View Replies !    View Related
Flashcom 1.5 & Media Server 2.03 Problem
Hello,

We have an installation of Media Server 2.03 that runs a community website. It has about 2500 - 3600 connected users at any given time. The application was functioning normally but suddenly after a few hours of operation, connected clients started experience high lag and eventually Media Server is crashing. The only thing changed to the server the last 2 months was that the latest (14 Nov) security update for Microsoft windows 2003 server was applied ( http://www.microsoft.com/technet/security/current.aspx).

Since nothing else changed to the application what might be wrong? Does anybody experience any similar problems after applying latest MOFT patch for Windows 2003 server?

Thank you!

View Replies !    View Related
Need To Hire Coder For FlashCom MX 1.5 Development
We have a Flascom MX 1.5 V2 userlist component that has been slightly modified to include a user icon as well as a right click menu for actions. We need to add enhancements to it (or develop a brand new one) to include: user status (online, etc), user color icons loaded from external pics and a grid like view to include an exrta column for raised hands, etc..

I also need work on recording live streams with data. We have an audio conference component that needs upgrading to be able to record.

Let me know if you are interested. Send me an email at
p o k e r d e v @ l i v e c o m m . c o m
or post your contact info.

M a n u e l O b l i t a s
US (210) 590-2734



























Edited: 04/09/2007 at 10:13:02 PM by M_O_E

View Replies !    View Related
Flashcom And Flash Remoting Reference
hello!, recently i earn a job for video streaming and multicasting in my college over flashcom and flash remoting, i would like to know if someone can help me telling me where to begin, where to find information or some tuts about that. thanks in advance, i'm in debt with you kirupa!

View Replies !    View Related
Flashcom Help Loading Some Components Without Simple Connect.
Attached my fla source code here:
http://www.h2kclan.com/login&chat.fla%20source.rar

Hello i have made a custom login without simple connect, its becuase i want the chat to run off my forum memberbase..

Everything works correctly user logs in.. they get sent to frame 2 where my chat room and all its components are...

The only issue i have is that the only component i have been able to connect and start up is the avpresence objects, they start and show the name of user at top of the cams..

I have tried a few things to get my other components to work, but my lack of knowlege is becuase im used to simple connect parameter way of loading them.

I will post the source codes of my files can anyone help me..

Heres a link to my chat swf this is an exact export of the current source code i have provided:
DEMO: http://www.h2kclan.com/auth18.swf
Login with:
User: test
Pass: test

This is not an issue with my components on the server side or my fms2 setup becuase i have same chat with simpleconnect that works fine here:
http://h2kclan.com/z/newchat.swf

This is frame 1 where my authentication happens and all the connection stuff..

Code:
stop();
function login(){
//Check if the username have at least 4 chars
if (username.text.length<4){
message.text = "Please enter username (minimun 4 characters)";
return;
}
//Check if the username have at least 4 chars
if (password.text.length<4){
message.text = "Please enter password, minimun 8 characters";
return;
}
//Show a waiting message
message.text = "Checking user/pass. Please wait";
//Disable the push button
loginButton.setEnabled = false
// Create a connection Object
client_nc = new NetConnection();

// Handle status message
client_nc.onStatus = function(infoObject){
trace("client_nc: infoObject.code = " + infoObject.code);
if (this.initComponents == null) {
var components_array = [chat_fc, audio_fc];
for (var i in components_array) {
components_array[i].connect(this);
}
this.initComponents = true;
}

if (infoObject.code == "NetConnection.Connect.Rejected")
{
message.text = "Wrong username or password. Try again";
loginButton.setEnabled = true
}
if (infoObject.code == "NetConnection.Connect.Failed")
{
message.text = "Connection to server failed. Try again";
loginButton.setEnabled = true
}
if (infoObject.code == "NetConnection.Connect.Success")
{


gotoAndStop(2)
}
}

// Connect to the application
client_nc.connect("rtmp:/login", username.text, password.text);
_global.username = username.text
chat_fc.connect(client_nc)
audio.connect(client_nc)
peoplelist_fc.connect(client_nc)
colors_fc.connect(client_nc)
}


loginButton.setClickHandler("login");
This is all the action script in Frame 2 where my chat is placed as you can see this is my effort to get components to load, it actualy loaded the av components just not audio_fc, people_lb, colors_fc..

Code:
stop();

fcArray = new Array("chat_fc", "light_mc", "av1_fc", "av2_fc", "av3_fc", "av4_fc", "av5_fc", "av6_fc", "av7_fc", "av8_fc", "av9_fc", "av10_fc", "av11_fc", "av12_fc", "colors_fc", "audio_fc", "people_lb");

for(var i in fcArray)
{
_root[fcArray[i]].connect(client_nc);
_root[fcArray[i]].setUsername(username);
}
This is my main.asc file...

Code:
// ActionScript Communications Document
//NetServices class library
load("components.asc");
load("netservices.asc");
application.onConnect = function(clientObj, username, password){
//Modify the path to match your needs !!!!!
NetServices.setDefaultGatewayUrl("http://www.h2kclan.com/amfphp/gateway.php");
var gatewayConnection = NetServices.createGatewayConnection();
var service = gatewayConnection.getService("login", this);
//call the server function
var callServer = service.authenticate(username, password);
//handle server response
this.authenticate_Result = function(result){
manageConnection(clientObj, result);
}


//Manage possible errors
this.authenticate_Status = function(status)
{
manageConnection(clientObj, false);
}
}
manageConnection = function(clientObj, isAuthenticated, username)
{
if(isAuthenticated)
{
gFrameworkFC.getClientGlobals(clientObj).username = username;
application.acceptConnection(clientObj);
}
else
{
application.rejectConnection(clientObj);
}
}

View Replies !    View Related
Classes Server, Client Side With Flashcom
Hi,

I'm on a flascomm project using extensively classes and have an architectural question. Let's imagine I use a class 'Person' who inherits of the class 'MovieClip' and I want:
- a method to change the position of that movieclip AND to store it in a DB
- a method to update the age of the person in the DB
- a method to change the scale of the movieclip

Thus, the last method has to run client-side, the second one server side and the first one partly server side partly client side. I see two possibilities so far:
- create functions server side I call from the client side. The methods, classes are thus executed all client side with some server side functions calls.
- duplicate the class 'person': one 'displayedperson' executed client side and one 'serverperson' executed server side. But I don't really see how to implement that and how to call a method of an object situated server side when I'm on the client side.

Which is the best or is there another way to do it?

There is some issues related to that question:
- I will use a lot of inheritance but server side cannot inherit I think?
- I think I have to include the class files both server and client side but do not really understand concretly what it would look like?
- I would like to find examples of how to deal with shared objects with some custom classes like mines.

Finally, does someone know a good url about those issues or a book?

thanks a lot because I'm really lost on that point.
christophe

View Replies !    View Related
Is FlashCom Cannot Support Digital Video Camera?
I have see a FlashCom TechNotes from Macromedia.com, it say currently not possible to capture audio and video from a digital video camera at the same time.

Is there no solution use DV to capture video in FlashCom?

thx for reply!!!

View Replies !    View Related
FLASHCOM MX 2004 - Font Properties Question
How do I pass Font Size changes in a Flash Chat Client? I know it has something to do with the messageSend() function. The "htmlText" property doesn't work, as the server just reparses when it Syncs with the other clients. Can someone help?

-D-

View Replies !    View Related
Local Runtime Sharing? Local External AttachMovie?
I've been trying and searching through the forums but I think I am searching for the wrong keywords.

Is there ANY way of setting it up so that I can use attachMovie/removeMovieClip on external swf's? I've found these runtime sharing options but I am unable to make much sense of them. What I am creating is something that would always be run locally on a machine and not up on the web.

I want to use this one main 'engine' type of file that loads heaps of different movies into it. All of them swf's. Of course I realise that I could do things the loadMovie way, but it seems in this case like an option not really suitable for what I want to do.

Thanks for any tips

View Replies !    View Related
Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

i also tried scripting it on the time line when that didn't work.

any ideas?
Thanks,
kool

View Replies !    View Related
How Remove The Roles Key From The ServerInfoService Method Table? Flashcom.exe 99%?
Hi All,
i have see a turtoial in Macromedia Developer Center,
link: http://www.macromedia.com/devnet/mx/...es/amfphp.html

it have a note said:

Quote:




Note: If you upgrade to the full 1.0 release, the new setCredentials feature in AMFPHP renders the roles key in the ServerInfoService class unnecessary. You need to remove the roles key from the ServerInfoService method table and use the new setCredentials functionality. Consult the documentation at the AMFPHP website for more details.




Anyone can teach me how to remove the roles key from the ServerInfoService method table ???

I am using Amfphp 1.0 , when i add the code in SSAS to connect the php file,
the server will become slow, i find flashcom.exe is 99% using CPU, even i close my application, what's wrong?

this is my code in SASS run on "onDisconnect":

mainResponder1 = new Object();
mainResponder1.onResult = function( data ){
trace("onResult")
for(var a in data){
trace(a + ": " + data[a])
}
}
mainResponder1.onStatus = function( data ){
trace("an error occured")
trace("in line: " + data.line)
trace("error level: " + data.level)
trace("description: " + data.description)
}

NetServices.setDefaultGatewayUrl("http://www.mysite.den/chatroom/simple_gateway.php");
conn1= NetServices.createGatewayConnection();
conn1.setCredentials("admin", "secret");
serv1 = connWebJ.getService("SendObject", mainResponder1);
serv1.getPerson(11,12);


Thx for reply!!!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved