ActionScript 3.0 :: Add Cameras To Combobox?
Jul 22, 2011I want to add camera collections to a combobox where user would choose his camera
I use this cameras_cb.dataProvider = Camera.names; but nothing happened
I want to add camera collections to a combobox where user would choose his camera
I use this cameras_cb.dataProvider = Camera.names; but nothing happened
I can get the default camera this way: Camera.getCamera(); But how to get all available cameras connected to my computer with actionscript?
View 3 RepliesI am evaluation the FMS dev server. One of my requirements is to be able to stream IP camera footage through FMS.Now, I realize that we are allready streaming the camera, so what is the big deal? I am looking for a way to utilize FMS's full feature set to enhance and increase the efficiency of those camera streams.
View 4 RepliesI have a web conference application that allows people to communicate via webcam. However, I would like it to be smart enough to detect if one is plugged in and if it is not, to disable the video feature. Just looks really bad when they try to use video but it gives them a black screen.
My problem is that using the following code, I get camera names that were previously plugged in but not CURRENTLY plugged in:
Code:
Does anyone know of a way to get cameras that are working and plugged in?
Does anyone know if there is a way to use Flash Encoder with. a basic IP Camera instead of a usb webcam. I have searched anch searched and cannot find anything that will tell me.
View 1 RepliesI am working on a video recorder using AS 2.0. The issue i related to multiple cameras installed on a machine,Camera.get() method gets you with the first camera installed on the machine. But my problem is that if i have more than one cameras and i have to select only the active camera e.g.If i have 3 cameras installed and the 2nd one is active then how to find out which one is active ?
I know that we can use index number in Camera.get(indexNumber). But how to find that index with only one video object on stage.... the problem can be explained clearly with this link -- http:[url].....Login to this link with your Gmail ID and see the video recorder .. if ou have more than one cameras installed it will list them in the ComboBox and catch the Active one ... I
I am trying to create a video feed screen that pulls in from 4 different usb cameras attached to my computer. As of now my file only pulls in the feed from the built in camera on my macbook pro. Here's the code I'm using to find the cameras. Anyone know how to find the external usb cameras? You can check it out and running at [URL] or grab the fla and see what's up.
ActionScript Code:
// Set up some new entries on the context menu for changing video capture size
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
[Code]....
I'm looking to build an app for viewing motion JPEG (MJPEG) streams directly from IP/Network cameras. Does anyone know where I can find useful information on this or even if it's possible at all?
View 1 RepliesI'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.
View 2 RepliesI'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
How can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?
View 2 Replies**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/abc', since linkage identifiers must be unique.**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/def', since linkage identifiers must be unique.
Both of my ComboBoxes has the same identifier.I could not change the identifier through the properties tab because it is greyed out.
I can use this to trace the new combobox value every time the user changes it:
Actionscript Code:
// Create listener object.var cbListener:Object = new Object();// Create event handler function.cbListener.change = function (evt_obj:Object) { trace("Currently selected item is: " + evt_obj.target.selectedItem.label);}// Add event listener.my_cb.addEventListener("change", cbListener);
But that doesn't do anything when I select the same value. This is what I want it to do: when using the combobox some textfields should fill itself with some default values belonging to that label. Then the user can change those values if desired. When the user then chooses another combobox label the fields get filled with the default values of that label again. But when the user chooses the label previously set, the textfields don't get refilled, cause the listener object only reacts when the label value has been changed, not when the label value is the same as previously chosen. Is there a way to make it react upon chosing any label? Not just others, but every label?
I have a booking form with some combobox's that's placed within a MC. My issue is that the combobox data isn't showing. When you click the drop down you can see the data, but when it's closed it doesn't show.
Here are the fla & swf files so you can see what I'm talking about...
[URL]
I have a main SWF that loads an external SWF with addChild. the external SWF loads fine but when i click the combobox in the external SWF I get 2 errors:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at fl.controls::ComboBox/close()
[code].....
I have made a placed a combobox called 'genreselect' on the stage and I am trying to output genreselect.value to a dynamic textbox called 'output' but I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.controls::ComboBox/get value()
at cataloguemenu_fla::MainTimeline/cataloguemenu_fla::frame1()
[code].....
How do I get the data from a combobox?
View 11 Repliesis it possible to put an MC in a row of a ComboBox? How should I go about doing this? I was going to copy the .as file(s) for the comboBox/cellRenderer components and alter them, but after looking at a few, I'm not sure which ones would be best to work with.
View 3 Repliesim trying to have the loader load a new url specified in dataprovider. i get "could not convert" error or "element is malformed".
Actionscript Code:
function onLoaded_2(e:Event):void{xml_2 = new XML(e.target.data); xml_2.ignoreWhite = true; var il:XMLList=xml_2.channel.item; for(var i:uint=0;i<il.length();i++){ ///display feed var currentFeed:URLRequest = new
[code]....
I'm adding a combo box to the stage and putting a prompt on it. Once the operation on the stage is complete I'm "clearing" the selections of the user. However I can never get a combo box to clear correctly. I want to just deselect the item that was selected and add the prompt again. [code]...
View 3 RepliesIf I have a ComboBox component on stage and it has 11 options in it, is it possible to populate a dynamic text field with text based on which one of the 11 options are selected?ComboBox has instance name of 'age' and has 11 options to choose from (Opt1, Opt2, Opt3, Opt4, Opt5, etc.).There are also 11 dynamic text fields (instance and variable names of c1, c2, c3, etc.). I want the text fields to be blank unless the corresponding option is chosen. So, if Opt1 is selected from ComboBox 'age' then populate 'c1' with the number 1, if 'Opt2' is selected populate 'c2' with 2 and so on, otherwise the text fields stay blank.
View 34 RepliesI am building an application built by external action script 3.0 files only. I want to load 5 images on a UILoader using the data providers of a combobox, both located in the library.[code]...
View 5 RepliesIs there a way for you to set the default value for a combo box. Lets say the combo box is there, but the user doesnt have to interact with it. How can set the value of the combo box to a value without user input?
View 1 RepliesI have a data grid that has ComboBoxes in two of its columns.
What I need to do is get the values of those bombo boxes when a user highlights the row of the grid NOT when the user uses the comboBox. I understand how to pull the values out once the change handler is invoked on the comboBox, but I'm not seeing a way to get at the comboBoxes that belong to the currently highlighted gridRow.
I'm sure it's really straight forward, but I'm just not able to find any reference on how it's done.
I'm stumbling my way through designing my first Flex app, using Flex Builder 4 Beta 2. I'm trying to use a ComboBox, but they always seem to have lines around it and I can't figure out how to get rid of them. The ComboBox looks like this: [URL] All I did was drag the ComboBox from the Controls section in the Design section of the UI onto the screen. I haven't changed any settings, no special css, just used the default ComboBox and this is what I get.
View 1 RepliesI have a DataGrid with a ComboBox as an ItemRenderer for one of my columns. When the user selects a row, I want to get the ComboBox's selected value for the selected row.
EDIT: I should have mentioned that the dataField2_Array property in myData is actually an Array is the dataProvider for the ComboBox. Each object in myData could have completely different values in that Array so the ComboBox in each row of the DataGrid could have completely different options to pick from.Some sample code:
<mx:DataGrid id="myGrid"
dataProvider="{myData}">
<mx:columns>[code].....
I need a custom Combobox in flex(as an ActionScript file), where I need to display in dropdown all the data nodes in the dataprovider as comma seperated values and when selecting only display one single node/value in textInput. How can we implemented this.
View 2 RepliesWhen setting an arrayCollection as a dataProvider to a comboBox programmatically,if the arrayCollection has just one element,i need to do a small validation[code]..
View 1 RepliesHow can I set a combobox value using as3?[code]...
View 1 RepliesI am having problems editing a ComboBox in AS3. Can anyone please tell me why my ComboBox disappears?[code]...
View 2 Replies