[Flashcoders] send file from flash with php
Hi! How i can send file from flash? If know somebody some good examples? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re[2]: [Flashcoders] passing parameters to function on context menu
Saturday, December 9, 2006, 3:04:41 AM, you wrote: var cm:ContextMenu=new ContextMenu(cmHandler); function cmHandler(){ trace(menu open); } var item1=new ContextMenuItem(item 1, itemHandler); item1.value=1; cm.customItems.push(item1); function itemHandler(obj, item){ trace(item value: +item.value); } this.menu=cm; Thanks!! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] data drid, dataProvider and list columns in reverse order problem
Hi! I have an xml structure, that i want to list into an data grid component. I want to use dataProvider for that so i proceed like this: var my_data:Array = new Array(); for (var aNode:XMLNode = my_xml.firstChild.firstChild; aNode != null; aNode=aNode.nextSibling) { if (aNode.nodeType == 1) { var obj = new Object(); for (var attr in aNode.attributes) { obj[attr] = aNode.attributes[attr]; } my_data.addItem(obj); } } //my_dg is instance name for data grid component my_dg.dataProvider = my_data; Problem is that, columns are displayed in reverse order than is in my_xml. How i can resolve that? For example: var xml_str = datapacketrow name=John password=123 //datapacket; var my_xml:XML = new XML(xml_str); wil display first column password and then name. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] strange behavior with combo box
I have on stage an button with instance name my_btn, and an empty movie clip named container. In library i have an movie clip, with linkage name test, that contain an combo box with some values. When i press the button, i load into container, movie clip test from library. my_btn.onPress = function(){ removeMovieClip(container.test); container.attachMovie(test, test, this.getNextHighestDepth()); } Strange occur, when i press again the button. Then combo box not show the selected value. How can deal with that? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re[2]: [Flashcoders] problem with function access into class
Hello eka, Wednesday, December 6, 2006, 11:09:00 PM, you wrote: Hello :) Your code is cut ??? where is the declaration of the xml etc ? You can try to use mx.utils.Delegate to create a proxy between the onLoad event of the reference and a method in your class with the scope of the current instance : import mx.utils.Delegate ; class Loader { /** * Creates a new Loader. */ function Loader() { super() ; lv = new LoadVars() ; x = new XML() ; x.onLoad = Delegate.create(this, _test) ; } /** * The LoadVars reference of this loader. */ public var lv:LoadVars ; /** * The XML reference of this loader. */ public var x:XML ; /** * Trigger the loader. */ public function trigger( url ):Void { lv.sendAndLoad( url , x ) ; } /** * Returns the string representation of the object. */ public function toString():String { return [Loader] ; } /** * Internal method to test the result */ private function _test( success:Boolean ) { trace( + this + test : + success); trace( + this + xml : + x ) ; // continue your test here ! } } EKA+ :) Work well! Thanks!!! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] passing parameters to function on context menu
Hi! I have this code: var cm:ContextMenu = new ContextMenu(); cm.hideBuiltInItems(); cm.customItems.push(new ContextMenuItem(My menu, _test)); my_dg[menu] = cm;//my_dg is an data grid component How i can pass parameters to function _test ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re[2]: [Flashcoders] problem with combo box and array
Wednesday, December 6, 2006, 10:46:10 AM, you wrote: You could try something like this : var my_schema:Array = new Array(data,label); var my_data:Array = new Array(); var obj = new Object(); obj[my_schema[0]] = Some data; obj[my_schema[1]] = Some strings; my_data.addItem(obj); my_cb.dataProvider = my_data; Work well how to suggest Adrian. Thanks!!! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] problem with function access into class
Hi! I have this class: class LoadVars2 extends LoadVars { function LoadVars2() { super(); } function populate(){ ... my_xml.onLoad = function(){ //code for test } } private function test(){ trace(ok); } } If i try to access test function before my_xml.onLoad, all works, but when i try to access into onLoad function body (after code for test comment), fail. How i can resolve that ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] problem with combo box and array
Hi! This is some example for simplicity. I have one combo box named my_cb. I have two arrays, one named my_schema and second my_data. var my_schema:Array = new Array(data,label); var my_data:Array = new Array(); I want to populate combo box in this mode: my_data.addItem({my_schema[0]:Some data, my_schema[1]:Some strings}); my_cb.dataProvider = my_data; My intention is to obtain for my_data the form my_data.addItem({data:Some data, label:Some strings}); but not work. Shure, can do that without this, but i want to suggest what i want to do, because in a more complex situation, will build an function that populate data grid or combo box based on a given schema. How i can resolve that? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] problem with data grid that have columns renderer as input text
Hi! I have an data grid with two columns renderee as input text. all works fine (i read some on the net), but i have two problems: 1. data grid display input text in rows, even if i don't have any value for that row (is ugly). 2. after i input some text in and delete that row (due to my script), value remain in next input cell. I resolve that, some how, re-renderer columns after data is reloaded, but i don't like that solution. This is my class for renderer column in datagrid import mx.core.UIComponent; import mx.controls.TextInput; import mx.controls.DataGrid; class TextInputCellRenderer extends UIComponent { var input:MovieClip; var listOwner:DataGrid; // the reference we receive to the list var getCellIndex:Function; // the function we receive from the list var getDataLabel:Function; // the function we receive from the list var width_input:Number; function TextInputCellRenderer() { } function createChildren(Void):Void { //This is where you can set the properties of the TextInputs for this column //For instance, you can set the maxChars and the restrict properties //And adds an eventListener for 'change' (which is defined at the bottom of this code), //so that whenever you type anything in the TextInput, it writes it to the dataGrid input = createObject(TextInput, TextInput, 1, {styleName:this, owner:this}); input.maxChars = 15; input.restrict = 0-9 a-z; input.text = ; input.addEventListener(change, this); size(); } // note that setSize is implemented by UIComponent and calls size(), after setting // __width and __height function size(Void):Void { input.setSize(__width-20, 18); //---set this to whatever the width of the column, and the height of the dataGrid rows. input.setStyle(fontSize, 11); input._x = 8; input._y = 1; } /* function setValue(str:String, item:Object, sel:Boolean) : Void { //Displays the dataGrid's cell value in the TextInput //input._visible = (item!=undefined); input._visible = true; input.text = str; } */ function change() { //the 'change' function, which writes the textInput's input text into the dataGrid field that the TextInputCellRenderer is sitting in. listOwner.dataProvider.editField(getCellIndex().itemIndex, getDataLabel(), input.text); } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com