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




Multiple Local Cameras



Camera question: Is is possible to connect more than one local camera at a time to Flash MX?

I want to have three or four local cameras -- all of which have the same video drivers -- connected to the same USB port. Ideally, I could switch back and forth between the cameras by hitting a key for each. Say "q" for camera1, "w" for camera2, and "e" for camera3.

Any coding hints would be greatly appreciated.

Thanks in advance.



FlashKit > Flash Help > Flash MX
Posted on: 03-31-2003, 02:51 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Multiple Cameras And Camera.name
Anybody know how to hook up two or more live cameras to a Flash movie using the camera.name actionscript? Ideally, I could switch back and forth between two or more live cameras by hitting a key. Currently, I'm using camera.get but this allows me to only view one live camera at a time.

Any coding hints would be greatly appreciated.

Thanks in advance.

Multiple Cameras Using Same Drivers
hi every one i am stuck with a problem
i am having two same web cams(using the same driver) how can i capture vidio from two of them in actionscript 2 as Camera class looks for the drivers but not device what shoud i do plz help me out
thak you

PLEASE HELP, How Do I Use Multiple Cameras For This Simple App
hey guys,

I'm setting up a website that I want to display 3 different video streams from 3 different cameras located within 3 different rooms of my clients office. Is this possible?

How does it work, would my clients computer "relay" the video to the flashcom server?

How would I send the camera signals to the Flashcom server? I would need 3 cameras but, would I also need 3 computers?

Thanks very much, I really appreciate your help!

artane

Multiple Video Cameras - Works - Sometimes...
I have an application that sends video feeds to FMS in a manner taken from the Live Video Switcher tutorial. I'm using USB cameras and I sometimes have serveral cameras connected to a PC at once.

My flash application seems to work well and when I right-click on the applet and choose Camera Settings, I can choose between the cameras that are installed. I have a couple of flash application instances running in separate browser windows and each one publishes to Flash Media Server. All is well and the switching works well, until:

I just built a second machine and connected two identical cameras to it. The first machine, which works well, has two cameras but they are two different models, one a Logitech Quick Cam 5000 and the other a Logitec Fusion. On the new system, however, I have installed a pair of Quick Cam 5000's and now Flash doesn't seem to be able to differentiate between the two and the selection list under Flash Settings shows the same name twice (which one might expect).

As I toggle back and forth between the two names in the list, the picture doesn't change, i.e., it always uses the same camera. Sure, I have a solution, and that's to buy different second camera. But why? There seems to be an instance problem here and its as if Flash is choosing them by name instead of by instance.

FWIW, when I installed two Creative Labs cams on the same system, it crashed 100% of the time with a blue screen.
Logitech at least has a better driver.

Flash Media Encoder With Multiple Cameras?
Hi,

Is it possible to stream 2 or more cameras on one computer with Flash Media Encoder, or are you restricted to one camera per machine?

Cheers

Multiple Local Connections At Once
I have a local connection between two swf files.

One is a main stage where I load pages, the other is a navigation bar.

It works fine. I have it set to send a variable of the page name to the main stage and then the page is loaded based on this info.

Can I add another navigation bar to this same type of connection?


I am using. Flash MX.

Playing Local Exe Containing Multiple Swf's
Hi!

I have created a presentation with Flash that has an exe file which loads swf files to it with loadMovie command.

Some of our clients have had problems with this. They can execute the exe file fine, but it doesn't load any of the swf's or other external files into it. All the files are local on users computer on the same folder.

At some computers this works fine, so it seems like it is some sort of security thing that an exe file cannot load anything external to it. Has anyone had similar problems?

-sumo-

Multiple Local Connections
Hi All,

I just finished a localChanneler object that I thought I'd share - it tries to overcome the problem of multiple connections discussed here on FlashGuru.

Please let me know here if you experience any problems.

Withnail.

/*----------------------------------------
What it does: Links together a number of identical (or various) movie clips containing this code so that each responds to the other's calls with the mimimum number of calling channels.

How it does it:
* figures out which of a bunch of identical movie clips should be the chief.
* chief tells any subsequent indians to set up their own calling channel
* chief keeps an array of these codes and is used to tell all indians to update

Limitations:

* does not handle removal of clips efficiently
* deleting the chief movie clip breaks the system

*/
Usage:

PHP Code:



    //instantiate the localChanneler object
    this.otherFlashCaller = new localChanneler(this); //pass the context for the functions to be called here ie. "this"
    
    //setup functions that pass parameters on to the otherFlashCaller object
    this.callOthers = function() {
        this.otherFlashCaller.offThisCall = true;
        this.otherFlashCaller.castCall.apply(this.otherFlashCaller, arguments);
    };
    this.callAll = function() {
        this.otherFlashCaller.castCall.apply(this.otherFlashCaller, arguments);
    };
    
    //setup all the functions that will be shared by all the movie clips
    this.testFn = function(a, b) {
        //testFn code
    };
    
    //now use the "callAll" function to call all movies including this one
    this.callAll("testFn", "a_tst", "b_tst");
    
    //OR use the "callOthers" function to call all other movies (excluding this one)
    this.callOthers("testFn", "a_tst", "b_tst"); 




Object defintion

PHP Code:



_global.localChanneler = function(fn_holder) {
    this.fn_holder = fn_holder;
    this.submovies = new Array();
    this.setupLocalConnections();
};
localChanneler.prototype.castCall = function(fnName) {
    var additional_args = new Array();
    for (var a = 1; a<arguments.length; a++) {
        additional_args.push(arguments[a]);
    }
    //reach all other movie clips by calling castToAll in the chief
    this.sendingLC.send("AX_chief", "castToAll", fnName, additional_args);
};
localChanneler.prototype.castToAll = function(fnName, additional_args) {
    //only used by the Chief
    for (var i in this.submovies) {
        this.sendingLC.send(this.submovies[i], "makeCall", fnName, additional_args);
    }
    this.channelCaller.makeCall(fnName, additional_args);
};
localChanneler.prototype.makeCode = function() {
    //if this function is called it means that it is the chief so delete this.tempCaller
    delete this.tempCaller;
    this.codesGiven++;
    var newcode = "AX_submovie"+this.codesGiven;
    this.submovies.push(newcode);
    this.sendingLC.send("AX_tempCaller", "awaitCode", newcode);
};
localChanneler.prototype.deleteTempCaller = function() {
    delete this.tempCaller;
};
localChanneler.prototype.setupLocalConnections = function() {
    this.sendingLC = new LocalConnection();
    this.channelCaller = new LocalConnection();
    //all clips initially try to connect as the chief
    this.channelCaller.connect("AX_chief");
    //In case this is not the chief, I need to call the chief and ask him for a calling code...
    this.tempCaller = new LocalConnection();
    this.tempCaller.connect("AX_tempCaller");
    this.tempCaller.channeler = this;
    this.tempCaller.awaitCode = function(code) {
        //Once the code has been received from the chief, use it to connect
        this.channeler.channelCaller.connect(code);
        this.channeler.deleteTempCaller();
    };
    this.channelCaller.gimmeCode = function() {
        this.channeler.makeCode();
    };
    this.channelCaller.castToAll = function(fnName, additional_args) {
        this.channeler.castToAll(fnName, additional_args);
    };
    this.sendingLC.send("AX_chief", "gimmeCode");
    this.channelCaller.channeler = this;
    this.channelCaller.makeCall = function(fnName, args) {
        //execute appropriate fn
        if (not this.channeler.offThisCall) {
            this.channeler.fn_holder[fnName].apply(this.channeler, args);
        }
        this.channeler.offThisCall = false;
    };
}; 

Local Streaming Of Multiple External FLV's
I have more fla`s and i want to stream them localy. I tried several methods and the closest i get to work is like this:



Code:

arr = new Array();
max = 3;
arr[0] = "1.flv";
arr[1] = "2.flv";
arr[1] = "3.flv";
arr[3] = "4.flv";
cnt = 0;

my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.onStatus = function(info){
trace(my_ns.time);
trace(info.code);
if(info.code=="NetStream.Play.Stop") {
trace(cnt);
cnt++;
if(cnt>max) cnt=0;
my_ns.play(arr[cnt]);
}
};
my_ns.setBufferTime(10);
my_ns.play(arr[cnt]);

The code i think is good, but after the second fla (2.fla) the cycle stops. Is there anything wrong in the code? How to loop the entire set ? (after the last fla is played to begin with the first one again)

Multiple Events Through Local Connection
Hi everyone,

I have four seperate swfs, each containing one button. Each button should load different content into a seperate, main swf.

Each button contains the code:

CODEon (press){
    outgoing_lc = new LocalConnection();
    outgoing_lc.send("lc","moduleLoad","module01.swf");
    delete outgoing_lc;
}

Problems With Multiple Swf And Local Connection
Hi! I've just surfed all the ultrashock + all the web, but I can't find a solution..

So, this is the structure:

I'm loading 3 swf in an html page: 1 header, which loads external jpegs, a menu, which loads an external xml and a "content", which sometimes loads another ext. xml file. Also, the menu talks with the content using the local connection class.

The site is http://www.isai.it

And THIS IS the problem:

Sometimes, some file (swf or jpg or even html page gif) doesn't load at all.
Also sometimes the connection between the menu and the content doesn't work.
So in the end I've got 2 problems: general file loading and swf communication
between swf. Sometimes it all works, sometimes something is going wrong.

Never seen this before. Can anyone help me?

Thanks!

Local Connection To Control Multiple Movies
Hi, I've got a database driven page with movies to play music samples. Each of the 'sample movies' is effectivley the same flash movie with different variable parsed into each. This works fine

However, I've got the issue of each sample can be played over the top of each other. I would like tobe able to 'stop' all the others when I click a particular sample.

I've set up a local connection on the movie so that it is the sender and the receiver, but this does not effectively halt the playout from the other samples if they are playing. It only effects 1 other movie and not them all...

Can anyone throw any light on how to do this....

[MX04] Playing FLV On Multiple Local Machines
Hey gang,

I'm very new to FLV's and thought I had my project all figured out but when I tested it on multiple local machines it didn't work. I've got an exe shell that loads multiple swf files in a Orientation presentation for my company. Users click through 'slides' (which are individual swfs) and watch the content before moving on. I have 2 slides that contain flv files. All files are stored on a shared server and the presentation is launched from the server as well.

What is happening is that when 2 or more users access the slide that contains the flv at the same time, the user that accessed first can see the movie, while the others can not. How can I tell the flv to play on multiple machines if multiple users access the slide?

Here is my code:


Code:
// Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object and define an onStatus() function:
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status.text += "Status (NetStream)"+newline;
status.text += "Level: "+infoObject.level+newline;
status.text += "Code: "+infoObject.code+newline;
};
// Attach the NetStream video feed to the Video object:
my_video.attachVideo(netStream);
// Set the buffer time:
netStream.setBufferTime(5);
// Being playing the FLV file:
netStream.play("welcome.flv");
I'm supposed to push this out by Monday, so any help is most appreciated!

-Sandy

Multiple Shared Local Object Files?
Does anybody know a way to create multiple shared local object (.sol) files in the same directory for the same movie?

Ideally, I'd like to have one computer on which multiple users will use the Flash program - I'd like that Flash program to save a unique user profile .sol for each user, which can be retrieved from the local machine in the future at any time.

Right now I have my Flash program configured to write to one user-settings .sol. However, if one user starts the program on the computer, then pauses while another user uses the same program on the same computer, then the first user's data is lost when he returns later (the second user's data overwrites it in the .sol).

Is there a good way to have multiple .sol files created as user profiles in the same directory for the same Flash movie?

Local Shared Object And Multiple Swfs
Hey peeps.
I´m having some problems with how to use local Shared Object. What I have is a "framework.swf" that checks if there is a local Shared Object called "languge" present. If there is, it loads a menu system in the corresponding language. If there is none (ie it´s the first visit) then it loads a "langage.swf" in wich the user gets to choose language. It all works fine.

The problem is that I want the user to be able to chose another language at a later stage, from another swf. As I understand it, the "cookie" is stored in a folder named as the swf that creates it, and I can´t seem to delete or change it from another swf. Or can I do that via the local Path parameter somehow? I´d be really greatful if someone could shed some light on this...

Multiple Domain Local Connection Issue
I seem to be having a problem doing a local connection (transferring variables from one swf to another) over 2 domains (one swf is in an IFRAME). I am currently publishing using Flash Player 7 AS 2.0. Here's the code I'm using:


ActionScript Code:
incoming_lc = new LocalConnection();
trace_txt.text = "starting local connection";
 
//define the function that will execute when a connection is made
incoming_lc.methodToExecute = function(param) {
    //set the contents of the text field
    //equal to the parameter received from the sending movie
    _root.visitorID = param;
    trace_txt.text = "++ " + param + " ++";
    if(param != "alreadyexists" && param != "noid"){
        //_root.gotoAndPlay("question1");
    } else {
        //_root.play(); // use this if everything is there but they already exist in the db
    }
}
 
//allow domain
incoming_lc.allowDomain = function(sendingDomain) {
    return (sendingDomain == this.domain() || sendingDomain == "www.domain.com");
}
 
//make the connection
incoming_lc.connect("lc_name");
 
 
 
///////////////////////
 
 
trace("userID is found");
    //create the LocalConnection by first
    //setting it equal to a variable
    outgoing_lc = new LocalConnection();
    //send the contents of the text field
   
    //allow domain
    outgoing_lc.allowDomain = function(sendingDomain) {
        return (sendingDomain == this.domain() || sendingDomain == "www.domain.com");
    }
   
    //using the send() method
    outgoing_lc.send("lc_name", "methodToExecute", userID);
    //delete the local connection now that the
    //message has been sent
    delete outgoing_lc;


Note: I'm on a deadline and thought this would be easy since I've done local connection before. If anybody can help I need to figure this out as soon as possible. Thanks.

Local Connection Variable And Multiple Browsers
Hello,
I'm using a Local Connection to share a variable between two swf files -- namely, that on/off state of a music loop.

Everything seems to be working fine except for one thing... When I open up the same page simultaneously in another browser window, it doesn't work. I'm assuming this is because the variable is being duplicated, confusing the swf files.

My question: Is there a way to restrict the Local Connection to swf's that are embedded in the same browser window? Any insight on this would be great.

Thanks in advance...

Flash Local Connection Within Multiple Windows Problem
Hi
I've got quite a difficult problem so please, bare with me on my description

Okay. There's a problem with a flash audio player -i'm making- on a website. The website has clips throughout the site to listen to music samples. This is done by using small swf's which send the link via localconnection to the main player, which then plays the relevant clip.
However, if the user opens more than one window there are problems. All the clips link to the audio player in the original window, which is okay, however, if the user closes that original window then the clips won't play at all!
I found, what I think may be, a part solution made by Mirandir. It uses a simple port randomizer method so the clips only link to their relevent player. However, There are multiple clips on one page, and it only creates this bond between one clip and the others can't work.

A way that we tried to get this to work was to find ways with javascript to figure out in which open browser window stuff is. Do you know if Javascript could know if it’s in window number one, two etc? Or would it count each frame as a new window somehow?
This could potentially be a solution for the problem as we might be able to tell the player and the player clips via javascript that they’re in window number 5 etc. What do you think – could this be done this way?

Any ideas you can offer would be gratefully appreciated
Thanks in advance
-Luke

Flash Local Connect Object In Multiple Browsers
Hi,

I've noticed that the Flash Local Connection doesn't work, if opened in two different browsers at the same time. The connection is based of the classid of the flash file.

Does flash require the id to be in the a specific format or can I just spit out a simple random number with javascript?

Flash Local Connection Within Multiple Windows Problem
Hi
I've got quite a difficult problem so please, bare with me on my description

Okay. There's a problem with a flash audio player -i'm making- on a website. The website has clips throughout the site to listen to music samples. This is done by using small swf's which send the link via localconnection to the main player, which then plays the relevant clip.
However, if the user opens more than one window there are problems. All the clips link to the audio player in the original window, which is okay, however, if the user closes that original window then the clips won't play at all!
I found, what I think may be, a part solution at Flashkit. Someone made a method which uses a simple port randomizer method so the clips only link to their relevent player. However, There are multiple clips on one page, and it only creates this bond between one clip and the others can't work.

A way that we tried to get this to work was to find ways with javascript to figure out in which open browser window stuff is. Do you know if Javascript could know if it’s in window number one, two etc? Or would it count each frame as a new window somehow?
This could potentially be a solution for the problem as we might be able to tell the player and the player clips via javascript that they’re in window number 5 etc. What do you think – could this be done this way?

Any ideas you can offer would be gratefully appreciated
Thanks in advance
-Luke

Two Cameras
Hi
I have two cameras connected to my computer,In my flashMedia application I want to display the names of the camera(Driver) in a comboBox?
Please Help

Web Cameras
Does anyone know if you can view web cameras with Flash ovr the internet. I want to create a private link to my family in Turkey with out having to join so external club.

Thanks in advance.

electronic ink

Switching Between Cameras
i got a problem i've used AVPresence in my application. there are 2 instances. its mean 2 users can broadcast video. problem is that as admin i want to tranfer control of AVPresence to any user. how can i do that? any suggesstion or example?

Using 2 Or More Firewire Cameras In MAC OS 10.5.1
Is it possible to use more than 1 Firewire camera in Flash?

If I go to the camera settings window, Flash displays always 3 cams: DV-Video, IIDC Firewire Video and USB.
I want to use only DV-Video. I've only attached a DV-Video cam.

Switching Cameras
Hello Im trying to do a lil something that gets the available cameras in a broadcasting computer and puts em in a combo box. When the broadcaste changes the combo box selection, the reciever should seamlessly stop seeing the first cam and start with the new one.
I used an adobe script to start, currently if I were to switch camera Id have to stop broadcasting(button), stop connection(button), select the camera and press the connect button and the broadcast button again.
I tried to ad the code in the buttons so that when the broadcaster chooses from the comboBox the connection/unbroadcasting and reconnection/broadcasting is done automatically. When I do this, the receivers video stops but does not update to the new video.

HERE IS THE CODE FOR THE BROADCASTER:
startstop_pb.enabled = false;

connect_pb.onRelease = function(){
if(this.label == "Connect"){
status_txt.text += "Connecting..." + newline;
this.label = "Disconnect";
nc.connect(rtmp_txt.text);
} else {
status_txt.text += "Disconnecting." + newline;
this.label = "Connect";
nc.close();
}
}

nc = new NetConnection();
nc.onStatus = function(info) {
status_txt.text += "NC.onStatus> info.code: " + info.code + newline;
if (info.code == "NetConnection.Connect.Success") {
status_txt.text += "Connected to " + this.uri + newline;
startstop_pb.enabled = true;
createNetStream(this);
}
}

createNetStream = function(nc){
ns = new NetStream(nc);
ns.onStatus = function(info) {
status_txt.text += "NS.onStatus> info.code: " + info.code + newline;
}
mycam = null;
mymic = null;
mycam = Camera.get(cameras_cb.selectedIndex);
mycam.setQuality(25600, 0);
mymic = Microphone.get();
mymic.setRate(11);
ns.attachVideo(mycam);
ns.attachAudio(mymic);
myvid.attachVideo(mycam);
}

startstop_pb.onRelease = function(){
if (this.label == "Start Broadcast"){
status_txt.text += "Starting broadcast" + newline;
this.label = "Stop Broadcast";
ns.publish(streamname_txt.text, "live");
} else {
status_txt.text += "Stopping broadcast" + newline;
this.label = "Start Broadcast";
myvid.attachVideo(null);
myvid.clear();
ns.close();
}
}

var mycam:Camera = Camera.get();
var myvid:Video;
myvid.attachVideo(mycam);
var camera_lbl:mx.controls.Label;
var cameras_cb:mx.controls.ComboBox;
camera_lbl.text = mycam.name;
cameras_cb.dataProvider = Camera.names;
function changeCamera():Void {
camera_lbl.text = mycam.name;

//stopping broadcast
status_txt.text += "Stopping broadcast" + newline;
this.label = "Start Broadcast";
myvid.attachVideo(null);
myvid.clear();
ns.close();
//disconnecting
status_txt.text += "Disconnecting." + newline;
this.label = "Connect";
nc.close();
//reconnecting
status_txt.text += "Connecting..." + newline;
this.label = "Disconnect";
nc.connect(rtmp_txt.text);
do{status_txt.text += "connecting" + newline;}
while(info.code == "NetConnection.Connect.Success");
//starting broadcast

status_txt.text += "Starting broadcast" + newline;
this.label = "Stop Broadcast";
ns.publish(streamname_txt.text, "live");

}
cameras_cb.addEventListener("change", changeCamera);
camera_lbl.setStyle("fontSize", 9);
cameras_cb.setStyle("fontSize", 9);

AND THE CODE FOR THE RECEIVER:
startstop_pb.enabled = false;

connect_pb.onRelease = function(){
if(this.label == "Connect"){
status_txt.text += "Connecting..." + newline;
this.label = "Disconnect";
nc.connect(rtmp_txt.text);
} else {
status_txt.text += "Disconnecting." + newline;
this.label = "Connect";
nc.close();
}
}

nc = new NetConnection();
nc.onStatus = function(info) {
status_txt.text += "NC.onStatus> info.code: " + info.code + newline;
if (info.code == "NetConnection.Connect.Success") {
status_txt.text = "Connected to " + this.uri + newline;
startstop_pb.enabled = true;
createNetStream(this);
}
}

createNetStream = function(nc){
ns = new NetStream(nc);
ns.onStatus = function(info) {
status_txt.text += "NS.onStatus> info.code: " + info.code + newline;
}
myvid.attachVideo(ns);
ns.play(streamname_txt.text, -1)
}

I read somewhere about a reset function. Please help me out here I will appreciate it a lot :)

Compatible Cameras For Flash 8?
Hello,

Does anyone know if Adobe has an updated Camera compatibility matrix that lists the cameras compatible for Flash 8?

Also, would it be possible to use a digital camera as a webcam? I am looking for a solution where I can get at least 2+ megapixel output. I am taking a bitmap snapshot from the webcam.

Thanks,

-Dan

Cameras That Accept Flash
Hello, have told me that flash does not accept all that there are cameras on the market, therefore I wondered whether there was a list which says it accepts firewire flash cameras in order to carry out a project?

I thank in advance all the assistance

How To Connect 2 Cameras For Capture?
I am trying to connect two video cameras on the same time on my pc, but I get the same image on both, is there a way for capturing from two different source simustanely?

Live Broadcasting With DV Cameras
Hi,

I'm using this tutorial and everything seems to work ok: I can connect to my FMS2 and I can start the streaming, but nothing is displayed, although the security popup is display and I select the camera.
I've tried using a Canon XL1 and a Sony DCR-VX2100E and neither of them work with Flash (they work ok with other capture software). Is there any problem with DV cameras?

Thanks,

Oriol.

Need Flash To Display Images From IP Cameras...
hi guys,

I'm making a web page for my client's IP network cameras (the ones with built in web server, etc).. The intention of the web page is to display the IP cams in FLASH, with Flash pulling images from the IP Camera itself rather than having to use the cameras' default interfaces that use active X and stuffs to display the streams.

My mission is to make a simple Flash project that will display the images of the IP cameras in Flash, refreshing every second or 2 (depending on load speeds)..

I've already figured out the internal workings of the cameras and found that i can LINK to the cams' image directly via

http://mydomain.com/goform/video/index.jpg

and some cameras, seem to stream it and can be access through:

http://mydomain.com/img/mjpeg.cgi


now i got 3 problems:

1) How do i load image from http://mydomain.com/goform/video/index.jpg, is it a simple loadMovie command or somethng else?

2) How do i load image from http://mydomain.com/img/mjpeg.cgi, again, will loadMovie suffice?

3) The cams have basic server authentication requiring a username and password... how do i get flash to authenticate itself before loading the images? this is probably the reason why im not getting anything when attempting a simple loadMOvie command.

please shed light on me little project.

Thanks

Tea

Need Flash To Display Images From IP Cameras...
hi guys,

I'm making a web page for my client's IP network cameras (the ones with built in web server, etc).. The intention of the web page is to display the IP cams in FLASH, with Flash pulling images from the IP Camera itself rather than having to use the cameras' default interfaces that use active X and stuffs to display the streams.

My mission is to make a simple Flash project that will display the images of the IP cameras in Flash, refreshing every second or 2 (depending on load speeds)..

I've already figured out the internal workings of the cameras and found that i can LINK to the cams' image directly via

http://mydomain.com/goform/video/index.jpg

and some cameras, seem to stream it and can be access through:

http://mydomain.com/img/mjpeg.cgi


now i got 3 problems:

1) How do i load image from http://mydomain.com/goform/video/index.jpg, is it a simple loadMovie command or somethng else?

2) How do i load image from http://mydomain.com/img/mjpeg.cgi, again, will loadMovie suffice?

3) The cams have basic server authentication requiring a username and password... how do i get flash to authenticate itself before loading the images? this is probably the reason why im not getting anything when attempting a simple loadMOvie command.

please shed light on me little project.

Thanks

Tea

List Of Available Cameras/audio On Machine
Is there any way i can get a list of what camera's and sound devices a user has installed on their machine (even if it is a number) ?

Cameras In Flash---Unexpected File Format
hi guys, i had download the source file at "Cameras in Flash section", but i used Flash 5 to open it but came out a "Unexpected file format" message, why..?!! need MX to open it?!
thanx for help

Free

Zooming And Panning Withing A Flash Doc, Like Cameras In AE?
Hi all,

I am making a flash site in which the navigation system is a map (as in an actual street map-style graphic).

What I would love to know is how to do the following; when i click on certain points, the map scales up, just like zooming in on that point. I only want this to happen when you click on certain points, rather than have it dynamically zoom on whatever you click on. I would also like to be able to rotate the map on the zoom to a certain angle.

Thanks in advance,

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

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

User Defines Local Image And Add It To A Local Swf(CD) ?
I have to run flash (swf) locally, which in my case means a CD.

What I want to do is allow the user to have a browse (local) function and pick an image from his hard disk and use that image to see a flash movie (swf) with his/her selected image in it!

Then after the user watched the movie with his/her photo on it, the user should be able to send this movie in a site(upload it). then naturally the user should be able to see it online at that site as well!

So my questions are how to have a browse function that puts the selected image somewhere I would like it to and then use this image in a flash movie (that will be a game with the photo on it).

And I guess then to send it online I do not really have to publish a new swf with the image in it, I can send seperately the swf (game) and the image file to the server through php? Did i get that right?

So far I know flash 8 has a new class for browsing, but how do I take a file selected from a user locally and use it in the movie again locally? load variable can do that but I should know the name of the file selected and also be possible to even select a local file??

Basically it is for educational movie. It will run from a CD. there will be many interactive exercices. At the end of the section there will be one game that in order to make it more personal I want to allow the users to add their photo at the game. So far everything should take place locally. Then if the user desires should be able to send in a specific site the movie he/she just watched(which means with their photo in it).

ANy ideas how I do that.

Even general ideas will help!

Thank you

Problem With Local File And Local Link
Hi to everybody,

I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html

When I click into some link that point to some local file like as:
c: est est.htm

I don't obtain nothing the page still remain index.html.

If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!

How can solve it without upload all file everytime into some web server and without install some local web server?

Thanks in advance to everybody for any tips and sorry for my bad english!

John

How Can I Get A Local Path Of The Local Disk With Swf
Since FileReference.download() doesn't download multiple files, I want to download files with php ftp_get by FTP.
I need to pass the local path of the local disk where I can download the files from a remote serveur. How can I get a prompt to have a user choose a folder on his computor (local disk), if any way possible?

Local To 'other' Local Coordinates
Hi, I have a clip with twenty points in it.

I am trying to do a point hit test with these and a shape a few clips down - but nowhere near the _root.

I have used local to global before but would really like to just see what the coordinates would be on the other clip.

?? Cheers, M@)

Local Exe Can't Load Local Swf's Into It?
Hi!

I have created a presentation with Flash that has an exe file which loads swf files to it with loadMovie command.

Some of our clients have had problems with this. They can execute the exe file fine, but it doesn't load any of the swf's or other external files into it. All the files are local on users computer on the same folder.

At some computers this works fine, so it seems like it is some sort of security thing that an exe file cannot load anything external to it. Has anyone had similar problems?

-sumo-

Local Time Of My Country And Local Time Visitor
Dear all,

For a client's website in Holland, I would like to display the current Dutch date and time and I want to show for instance American visitors their local time.

Could anyone help me by providing the code for the Dutch time (as I know how to display the local time of my visitors)?

Thank you very much!

Michiel Schenkius

Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
Hi all,

I am developing a webpage having multiple swfs interacting with eachother. Not when I load many swfs, is it the case that multiple flash VM instances are running on my machine? Is there any way to check this.

The project I am doing has one of the requirements that only one flash VM should be running.

Please help me in this.

Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
Hi all,

I am developing a webpage having multiple swfs interacting with eachother. Not when I load many swfs, is it the case that multiple flash VM instances are running on my machine? Is there any way to check this.

The project I am doing has one of the requirements that only one flash VM should be running.

To summarize my question is:

how to check whether multiple flash VM instances are running on the system when multiple swfs are loaded on the page?

Please help me in this.

[CS3] Issues Creating Multiple MC From Multiple Variable Data Arrays.
I have had some great help with this from some very kind FlashKit members. However I have played with the code extensively and am having an issue getting multiple MC's from the global variable arrays "V_1", "V_2" and "V_3".

Right now I have the code set to build up a scalable graph for array V_1. I have not had it working "properly" to show the other values in graphs side by side for V_2 and V_3. I have had some weird Frankenstein looking results that led me to believe I was on the right track, but only to find that I could not figure it out. I have a g_seperator variable that I was hoping to use to determine the space between each column of data.

Can anyone out there help me please?

Thank you.

here is my code reprinted here, since my flavor of Flash may not export to a version compatible with some of your working versions.



Code:
stop();
//BAR ATTRIBUTES
_global.g_x = 240;// chart starting x position
_global.g_seperator = 130;// distance between bars
_global.g_width = 50;// graph segments width
_global.g_base = 450;// graph starting Y position
_global.g_alpha = 40;
//BOX VALUES
_global.v_1 = new Array(20, 40, 1, 10, 12, 10, 20, 15, 5, 21, 31, 50, 20, 10, 20);
_global.v_2 = new Array(60, 70, 1, 10, 42, 10, 50, 15, 30, 21, 31, 10, 20, 10, 20);
_global.v_3 = new Array(20, 70, 1, 10, 12, 10, 20, 25, 10, 31, 31, 10, 20, 10, 20);
_global.color_set = new Array(0x000099, 0x00FF00, 0xddddd, 0xcccccc, 0x990000d, 0xff9900, 0x99eeee, 0x99cccc, 0xf21000, 0xffdddddd, 0x005900, 0xff00ff, 0x0ff000, 0xff9999, 0xf2f321);
_global.pos_name = new Array("Site3", "Site5", "Site7");

var home = this;

draw1NPositions("mc_pos"+[p],pos_name[p],g_seperator);

function draw1NPositions(mc_pos, positionName, gap) {
this.createEmptyMovieClip(mc_pos,1000);
for (i=0; i<v_1.length; ++i) {
makeBox(i,g_x,g_base,g_width,v_1[i],color_set[i]);
}
}
function drawBox(mc, w, h, color) {
mc.beginFill(color);
mc.lineStyle(0,color,100);
mc.moveTo(0,0);
mc.lineTo(0,-h);
mc.lineTo(w,-h);
mc.lineTo(w,0);
mc.lineTo(0,0);
mc.endFill();
}
function makeBox(num, posX, posY, wide, tall, color) {
var myBox = home.createEmptyMovieClip("box_mc"+num, num);
myBox._x = posX;
myBox._y = posY;
myBox.num = num;
myBox.dragging = false;
drawBox(myBox,wide,tall,color);
myBox.onMouseUp = function() {
this.dragging = false;
};
myBox.onMouseDown = function() {
if (this.hitTest(_xmouse, _ymouse) && !this.dragging) {
this.startY = _ymouse;
this.startX = _xmouse;
this.startH = this._height;
this.dragging = true;
}
};
myBox.onEnterFrame = function() {
for (var i = 1; i<v_1.length; i++) {
boxes[i-1].y = home["box_mc"+(i-1)]._y=home["box_mc"+i]._y-home["box_mc"+i]._height;
}
};
myBox.onMouseMove = function() {
if (this.dragging) {
dist = this.startH-(_ymouse-this.startY);
boxes[this.num].h = this._height=(dist>1) ? dist : 1;
_root.boxValue.text = this._height;
}
};
Mouse.addListener(myBox);
}

Multiple Movie Clips On Multiple Layers (Playing Problem)
Hi dears,

I am also new in flash users. I have created some movie clips and want to play in “mcmovie”. All movie clips are on different layers i.e. movie clips are as follows:

1.mccommercial
2.mccorporate
3.mcenvirnomental…etc

I placed these MCs in on layer1 frame1 mccommercial, on layer2 frame2 mccorporate, on layer3 frame3 mcenvironmental and so on.

I want to play all movies’ clips one by one i.e. mccorporate should be played after completing mccommercial and playing last movie clip, it should be start from beginning.

I will appreciate, if somebody could do me a favor in this regards.

Thank you,


Yasin

AS3: Load Multiple Variables Into Multiple Dynamic Text Fields
I have a php file that makes this list


Code:
Cid1=3
&Lid1=22
&Title1=amazing
&Date1=1212128413
&Ext1=jpg
&Hits1=129
&Rate1=9.5000
&Cid2=1
&Lid2=22
&Title2=cool
&Date2=1212128413
&Ext2=jpg
&Hits2=129
&Rate2=8.5000
Now, I want to load the 7 bits of data into 7 dynamic text boxes.

I have to code to load a movieclip as a button onto the stage.

When I click that button I want the data to load.

I can kind of load all the data as a string into one dynamic field but don't know how to get each variable into a different text box. Any help would be great.

Regards,

Glen Charles Rowell

This is some working code for loading one variable but I need help with the rest please.


Code:
var url:String = "http://www.secretcanttellsorry.php?cid=3&orderby=ratingD&guid=on";
var Cid1:URLLoader = new URLLoader();
Cid1.addEventListener(Event.COMPLETE, completeHandler);
Cid1.load(new URLRequest(url));

function completeHandler(event:Event):void {
poptext.text = event.target.data as String;
}

How To Sync Multiple Flash Players On Multiple Networked Computers
I want to play, stop or start simultaneously the same flash movie (presentation) installed on multiple computers connected to a LAN. Do you have any idea how to do this?

Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I'm new to these forums and for a good reason, i'm not as smart as you all and i want you to rub off on me

i have a problem i hope you can help me with. I have a Swf that opens other swfs such as:

_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf

but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:

thanx,
jambo

Copyright © 2005-08 www.BigResource.com, All rights reserved