[flexcoders]  How People See the World in Different Physical States 

2020-09-04 Thread Riya Ojha riyaojha...@gmail.com [flexcoders]
How People See the World in Different Physical States


[image: Mature, healthy person see the world.] 


*Click here to see more...
*



* ↨ *

*Go to  Home Page ► *






[flexcoders] How to add comma separated mobile numbers in TO address of Message?

2013-06-13 Thread Saju Thankathurai
Hi All,

I have developed a Flex mobile application using Flex 4.6 sdk. Its a
Contact manager application. I have given additional functionality to the
Employee contact manager sample app of Adobe.

I am facing an issue while sending a group message.

I have a xml file to store user data. Later i use sqlite db to read and
store the xml data into the dataBase.

I have a requirement, If we click on a menu item, Message box should be
opened and all the mobile numbers should be populated in the TO address.

So i have a menuItem

*s:viewMenuItems*
* s:ViewMenuItem id=grpeMsgMenu label=Group Msg
click=grpeMsgMenu_clickHandler(event)/*
* /s:viewMenuItems*

On click of this,,

public function grpeMsgMenu_clickHandler():void
 {
 var groupSmsString:String = ;
 // TODO Auto-generated method stub
var phoneCollection:ArrayCollection = new ArrayCollection();
phoneCollection = srv.populatePhoneNumbersForGroupMsg(group);
 if(phoneCollection != null)
{
for(var i:int = 0 ; i  phoneCollection.length ; i++)
 {
if(i == phoneCollection.length-1)//means last record is going to insert, So
dont append comma
 {
groupSmsString += phoneCollection[i];
}
 else
{
groupSmsString += phoneCollection[i] + ,;
 }
}
}else
 {
//Phone arrayCollection is null.
groupSmsString = ;
 }
if(groupSmsString != )
navigateToURL(new URLRequest(sms:+encodeURIComponent(groupSmsString)));
 trace(groupSmsString);
}

Where srv is the DAO class, It calls the method, Executes the query and
returns all the phone numbers from the .db file.

Finally the groupSmsString holds the value as [*
+919223454345,+919565678876,+9192233223344,+9191*] and so on

So i have comma separated values to be passed to the TO field of SMS.

The problem is in the TO field of message, the groupSmsString is not coming
as comma separated, rather it is coming as
*+919223454345+919565678876+9192233223344+9191
   *
*
*
This problem is observed in LG Optimus mobile. But strangely it is working
fine in Sony Xperia.

I spent many times in tracing the issue, by
1.replacing encodeURIComponent with encodeURI,
2.without using  encodeURIComponent and encodeURI
3.passing %2c instead of comma..

But could not succeed.

Can any one help me on this issue?
-- 

Regards
Saju Thankathurai,

*We **cannot do great things on this Earth, only small things with great
love*
*-Mother Teresa (1910-1997)*


[flexcoders] How to implement payment gateway in flex ?

2013-06-04 Thread devchetu
I want to implement payment gateway in flex. Can anyone throw some light on 
Payment Gateway implementation methods with Flex or ColdFusion?. 
Any ideas or links are welcome.
Thanks




[flexcoders] How to call page down function in Flex DataGrid

2013-01-07 Thread umd.wang
I have a DataGrid control in Flash Builder, it shows a long list of data. I 
want to set a timer, so every time the timer ticks, it will call a function 
which makes the DataGrid control do a pagedown action, just like you click the 
scroll bar every 3 seconds. What is the easiest way?

Thanks.



Re: [flexcoders] How to call page down function in Flex DataGrid

2013-01-07 Thread Alex Harui
Set verticalScrollPosition


On 1/6/13 10:39 PM, umd.wang wangjip...@gmail.com wrote:






I have a DataGrid control in Flash Builder, it shows a long list of data. I 
want to set a timer, so every time the timer ticks, it will call a function 
which makes the DataGrid control do a pagedown action, just like you click the 
scroll bar every 3 seconds. What is the easiest way?

Thanks.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] how to style the bottom border of the spark TabBar ?

2012-12-19 Thread Nathan
also see screenshot



[flexcoders] How to programatically create right click menu content?

2012-10-05 Thread fred765654
Hi All,

I'm trying to create a right click menu in Flex that needs to be dynamically 
generated based on certain device statuses.  I'd prefer the menu to be created 
as XML as I already have functions written to traverse the XML in a menu.

My attempt at getting the menu to work is below.  Basically all I want is a top 
level menu Add, with sub nodes Interfaces and Devices which I'll then 
further populate based on the system state.

Thanks a lot for any help,
Fred

var xlc:XMLListCollection = new XMLListCollection();
var a:XML = menuitem label=Add/
var b:XML = menuitem label=Interfaces/
var c:XML = menuitem label=Devices/

a.appendChild(b);
a.appendChild(c);
xlc.addItem(a);

menu = Menu.createMenu(this, xlc, false);
menu.labelField 
= label;
menu.addEventListener(MenuEvent.CHANGE, addPointMenuHandler);
menu.show(event.stageX, event.stageY);



[flexcoders] How to detect TRULY disconnected RTMP from flex client?

2012-09-13 Thread Buyung P
Hi,

I have implemented data services using lcds. I have also implemented 
MessagingEvent to detect new messages from 
other parties. I have found data services detect any disconnected and 
reconnected event automatically but sometimes 
the data services didn't received new messages and give the wrong information 
to the client.

Then, I've trying to implement PropertyChangeEvent to detect if connected and 
subscribed property has changed.
But after further investigation. I had found that sometimes property 
connected/subscribed detect wrong status (fake status) 
when I disable my network interfaces then re-enable network interfaces with 
short interval. Sometimes the 
subscribed/connected property become true but the actual of the network is 
down and vice versa the subscribed/connected 
property become false but the actual of the network is up (Cross Condition). 

As long as the connected/subscribed property true and network is up, data 
services will received new messages until cross
condition occured. How could I truly detect disconnected RTMP from flex client? 

I'm using Flex 4.1 and lcds31.

Thank you.

Regards,
Buyung



[flexcoders] How To Run An Application With 2 Flex Versions?

2012-08-31 Thread Nhi Le
Hi,

We have an component developed in Flex 3 that we would like to reuse in an
application that is using Flex 4.  Is it possible to incorporate the two
together?  If so, please shed some insight.

Thanks,
nhi


RE: [flexcoders] How To Run An Application With 2 Flex Versions?

2012-08-31 Thread Bill Franklin
You've just encountered Flex's version of DLLHell  :)

Freundliche Grüße / Best regards,
Bill Franklin
Computer Integrated Mfg.

[cid:image001.gif@01CD8771.E12C3F40]
Bayer CropScience LP
8400 Hawthorne Road, Room 2447
Kansas City, MO 64120
Tel: +1 816 242 2148
Fax: +1 816 242 2047
E-mail: bill.frank...@bayer.com
Web: http://www.bayercropscience.com

Vorstand: Sandra E. Peterson, Vorsitzende   |  Lykele van der Broek, Achim 
Noack, Rüdiger Scheitza, Michael A. Schulz
Vorsitzender des Aufsichtsrats: Werner Baumann
Sitz der Gesellschaft: Monheim am Rhein   |   Eintragung: Amtsgericht 
Düsseldorf, HRB 46985

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Nhi Le
Sent: Friday, August 31, 2012 10:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How To Run An Application With 2 Flex Versions?


Hi,

We have an component developed in Flex 3 that we would like to reuse in an 
application that is using Flex 4.  Is it possible to incorporate the two 
together?  If so, please shed some insight.

Thanks,
nhi



The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or 
legally privileged.  Inadvertent disclosure of this message does not 
constitute a waiver of any privilege.  If you receive this message in 
error, please do not directly or indirectly use, print, copy, forward,
or disclose any part of this message.  Please also delete this e-mail 
and all copies and notify the sender.  Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com

inline: image001.gif

Re: [flexcoders] How To Run An Application With 2 Flex Versions?

2012-08-31 Thread Alex Harui
See my blog post on Marshall Plan and documentation about MarshallingSupport.

It is possible to host an older-versioned component in its own SWF and load it 
into a newer-versioned app, but there are tradeoffs.


On 8/31/12 8:51 AM, Nhi Le nhi...@gmail.com wrote:






Hi,

We have an component developed in Flex 3 that we would like to reuse in an 
application that is using Flex 4.  Is it possible to incorporate the two 
together?  If so, please shed some insight.

Thanks,
nhi





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] How to listen for collection change event in a nested collection?

2012-08-24 Thread Alexei Vinidiktov
Hello,

I have an array collection of lessons and each lesson that has an array
collection of cards:

[Bindable]
public class Lesson
 {
public var title:String;
 public var text:String;
 public var cards:ArrayCollection = new ArrayCollection();
}
[Bindable]
public class Card
{
 public var question:String;
public var answer:String;
 }

I'm trying to find a way to listen for the collection change events in each
lesson's card array collection.

I tried this:
for(var i:int = 0; i  lessonList.length; ++i)
{

  lessonList[i].cards.addEventListener(CollectionEvent.COLLECTION_CHANGE,
cardsListChanged);
 }
And this:
 for each (var item:Lesson in lessonList)
{
item.cards.addEventListener(CollectionEvent.COLLECTION_CHANGE,
cardsListChanged);
}

But the events don't seem to fire.

What am I missing?


-- 
Alexei Vinidiktov


[flexcoders] how to open a file system UNC path (windows share)

2012-06-01 Thread vaster3302
How can I open a UNC (windows share) in windows explorer from flex (flash 
builder 4)?

I tried a couple different things:

var request:URLRequest = new URLRequest(file://myserver\myfolder); 
var loader:URLLoader = new URLLoader(); 
loader.load(request); 
which gives a stream error

and

var urlRequest:URLRequest = new URLRequest(file://myserver\myfolder);
navigateToURL(urlRequest, _blank);
which opens a browser window with file://myserver\myfolder in the url.

I want to open a folder (and hopefully a file) as if the user navigated in to 
the share and double clicked it.

Thanks!



Re: [flexcoders] how to open a file system UNC path (windows share)

2012-06-01 Thread Alex Harui
I’m pretty sure UNC is not supported.  You will have to map a drive or set up a 
web server.


On 6/1/12 3:57 PM, vaster3302 kaushal.sha...@gmail.com wrote:






How can I open a UNC (windows share) in windows explorer from flex (flash 
builder 4)?

I tried a couple different things:

var request:URLRequest = new URLRequest(file://myserver\myfolder);
var loader:URLLoader = new URLLoader();
loader.load(request);
which gives a stream error

and

var urlRequest:URLRequest = new URLRequest(file://myserver\myfolder);
navigateToURL(urlRequest, _blank);
which opens a browser window with file://myserver\myfolder in the url.

I want to open a folder (and hopefully a file) as if the user navigated in to 
the share and double clicked it.

Thanks!






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] how to remove new object in stage

2012-05-20 Thread cholid
hi all
in my app
i've add new object 

new tesObj:TesObj = new TesObj();
addChild(tesObj);

and the after i give it instance name

tesObj.name = idTesObj;

but when i want to remove it, it doesnt work
because hasn't found id idTesObj

//removeChild(idTesObj);

any help ?

this complete code :

import flash.events.MouseEvent;

var tesObj:TesObj = new TesObj();
tesObj.name = idTesObj;
addSmall.addEventListener(MouseEvent.CLICK, addSmallFunction);
function addSmallFunction(e:MouseEvent):void
{
addChild(tesObj);
removeSmall.addEventListener(MouseEvent.CLICK, removeSmallFunction);
}
function removeSmallFunction(e:MouseEvent):void
{
tes(clip1);
}
function tes(n:String):void
{
//removeChild(n);
trace(n);
}

thanks for advice
regards
cholid_ridwan



[flexcoders] How to add CheckBox to list ?

2012-04-30 Thread markflex2007
Hi,
I have follow code and I get a error like:  
s:CheckBox' is not allowed to follow '/s:LabelItemRenderer'

How to fix it.thanks

Mark


s:List id=clslist width=100% height=100%  dataProvider={classesAC} 
change=selectClass() 

s:itemRenderer
fx:Component  
   s:LabelItemRenderer 
label={data.n} buttonMode=true width=260 /
   
s:CheckBox selected=false  /
 

/fx:Component
/s:itemRenderer

/s:List



[flexcoders] How To Disable Module Screen Updates....

2012-04-09 Thread jamesfin
We have up to 30 small modules that are getting loaded at startup and notice 
that the accumulative perceived loading effect is slow when creating the 
modules via...

_module.factory.create() as IVisualElement;

... as all of the modules are competing for CPU to draw themselves.

So, is there a way to disable all component rendering (i.e. screen updates) in 
each module until the user selects focus for each particular container/module?  
There's no reason to draw everything at the same time when all of them can't be 
seen at the same time.  

Imagine each module is added to a tab in tabnavigator and that only the first 
visible tab/module has been rendered, when any other tab is selected, the 
module then and only then renders itself.





Re: [flexcoders] How To Disable Module Screen Updates....

2012-04-09 Thread Alex Harui
Don’t call factory.create() until the first time you go to that tab.


On 4/9/12 11:16 AM, jamesfin james.alan.finni...@gmail.com wrote:






We have up to 30 small modules that are getting loaded at startup and notice 
that the accumulative perceived loading effect is slow when creating the 
modules via...

_module.factory.create() as IVisualElement;

... as all of the modules are competing for CPU to draw themselves.

So, is there a way to disable all component rendering (i.e. screen updates) in 
each module until the user selects focus for each particular container/module?  
There's no reason to draw everything at the same time when all of them can't be 
seen at the same time.

Imagine each module is added to a tab in tabnavigator and that only the first 
visible tab/module has been rendered, when any other tab is selected, the 
module then and only then renders itself.






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] how to access Twitter from my flex application

2012-03-29 Thread sony antony
can anyone please help me to do open Twitter in flex application



Regards
Sony

[flexcoders] how pirnt code 128 ISBN numbers in AIR

2012-03-12 Thread j2me_soul
I have installed code 128 font on my computer.
But the isbn code can't distinguished by the device.
what should I do now?

[flexcoders] how to add nativemenu on topLevelApplication

2012-03-08 Thread isa_loyer
I developp a AIR application.

I try to add menu on it.

My application has custom chrome, and I like to have a transparent background 
on main application.

Today, I insert the nativemenu on a native window:

 FlexGlobals.topLevelApplication.visible = false;
var options:NativeWindowInitOptions = new 
NativeWindowInitOptions(); 
options.systemChrome = NativeWindowSystemChrome.STANDARD; 
options.transparent = false; 
options.maximizable= false;
options.resizable = false;
menuWindow = new NativeWindow(options); 
menuWindow.width = Capabilities.screenResolutionX; 
menuWindow.height = 55; 
menuWindow.x = 0;
menuWindow.y = 0;


menuWindow.title = MyApp;
menuWindow.menu = menuBarSE.initMenuOE();
menuWindow.alwaysInFront = true; 
menuWindow.activate();   
menuWindow.addEventListener(Event.CLOSING, 
applicationExitHandler);

But, with this approach is difficult to manage other window, like reduce or 
maximize action.

So, if it's possible I'd like to add the menu on the main window 
(topLevelApplication), but I don't know how!

If someone could help me.

thanks



[flexcoders] how to add nativemenu on topLevelApplication

2012-03-08 Thread isa_loyer
I developp a AIR application.

I try to add menu on it.

My application has custom chrome, and I like to have a transparent background 
on main application.

Today, I insert the nativemenu on a native window:

 FlexGlobals.topLevelApplication.visible = false;
var options:NativeWindowInitOptions = new 
NativeWindowInitOptions(); 
options.systemChrome = NativeWindowSystemChrome.STANDARD; 
options.transparent = false; 
options.maximizable= false;
options.resizable = false;
menuWindow = new NativeWindow(options); 
menuWindow.width = Capabilities.screenResolutionX; 
menuWindow.height = 55; 
menuWindow.x = 0;
menuWindow.y = 0;


menuWindow.title = MyApp;
menuWindow.menu = menuBarSE.initMenuOE();
menuWindow.alwaysInFront = true; 
menuWindow.activate();   
menuWindow.addEventListener(Event.CLOSING, 
applicationExitHandler);

But, with this approach is difficult to manage other window, like reduce or 
maximize action.

So, if it's possible I'd like to add the menu on the main window 
(topLevelApplication), but I don't know how!

If someone could help me.

thanks



[flexcoders] How to find intersection point between a lineseries and a vertical line.

2012-03-06 Thread k.sigiscar

Somebody asked the same question on the Adobe forum a while back, to no avail:
http://forums.adobe.com/message/3435124

Did somebody on this forum succeed in doing such a thing ?



Re: [flexcoders] How to find intersection point between a lineseries and a vertical line.

2012-03-06 Thread Brendan Meutzner
I replied to the thread you mention below with the solution as well, but
here I'll paste below here as well...


Here are a few functions I wrote years ago for common chart
transformations... the function you're going to focus on for your solution
is chartToScreen...


/**
 *  Converts the screen position to chart value position
 *  @param thePos - Number - The position you want to convert
 *  @private
 */
private function getChartCoordinates(thePos:Point):Object
  {
   var tmpArray:Array =
dataTransform.invertTransform(thePos.x, thePos.y);
   return {x:tmpArray[0], y:tmpArray[1]};
  }


/**
 *  Takes a non-numeric chart value and returns a proper numeric value
 *  @param inValue - String - The display name of the instance showing
on the axis (eg. if we're showing months, it might be 'Sep - 06'
 *  @param theAxis - IAxis - The axis on which we're looking
 */
  public function getNumericChartValue(inValue:String,
theAxis:IAxis):Object
  {
   var axisCache:Array = new Array({inValue: inValue})
   if(!(theAxis is LinearAxis))
   {
theAxis.mapCache(axisCache, inValue, outValue, true);
return {numericValue: axisCache[0].outValue}
   }
   else
   {
return {numericValue: Number(inValue)};
   }
  }


/**
 *  Converts the chart values into screen coordinate values
 *  @param chartX - Number - The display name of the instance showing
on the axis (eg. if we're showing months, it might be 'Sep - 06'
 *  @param chartY - Number - The axis on which we're looking
 */
  public function chartToScreen(chartX:Number, chartY:Number,
theSeries:Series):Point
  {
   var tmpCache:Array = new Array({chartX:chartX, chartY:chartY});
   if(theSeries)
   {
theSeries.dataTransform.transformCache(tmpCache,
chartX, screenX, chartY, screenY);
   }
   else
   {
dataTransform.transformCache(tmpCache, chartX,
screenX, chartY, screenY);
   }
   return new Point(Math.round(tmpCache[0].screenX),
Math.round(tmpCache[0].screenY));

  }


/**
 *  takes a point in mouse position, and runs it through converting to
chart coordinates, converts chart coordinate to numeric value if
needed
 *  and then back into mouse position to get the nearest axis snap point
 *  @param thePoint - Point - The position we're converting
 *  @private
 */
  private function getSnapPosition(thePoint:Point):Point
  {
   var chartPoint:Object = getChartCoordinates(new
Point(thePoint.x, thePoint.y));

   //if either of the axis chart results is not in numeric
format, we get the numeric equivalent of it
   var chartX:* = chartPoint.x;
   var chartY:* = chartPoint.y;
   chartX = getNumericChartValue(chartPoint.x,
CartesianChart(this.chart).horizontalAxis).numericValue;
   chartY = getNumericChartValue(chartPoint.y,
CartesianChart(this.chart).verticalAxis).numericValue;
   return chartToScreen(chartX, chartY, null);
  }
 }



On Tue, Mar 6, 2012 at 9:28 AM, k.sigiscar k.sigis...@yahoo.com wrote:

 **



 Somebody asked the same question on the Adobe forum a while back, to no
 avail:
 http://forums.adobe.com/message/3435124

 Did somebody on this forum succeed in doing such a thing ?

  



[flexcoders] How to include a SWC in a Module using Flash Builder?

2012-03-06 Thread Adnan Doric
Hi,

In Flash Builder I can add SWC files for the main application but this 
is not what I want and it kind of defeats the purpose of modular 
applications right? If a SWC file is used only by some Module, I would 
like to be able to compile it in the module instead of the main application.

Is that possible if Flash Builder without using Ant?

Thank you,
Adnan


[flexcoders] How Can I Rewind/Replay SWF

2012-02-22 Thread freewillie0800
My Flex expert (my brother) is at a Buddhist retreat for 3 months and I need 
help.  I have a Flex application where the intro is a looping SWF file.  When 
someones click on the intro, I start a transition swf for a specified period 
time and then launch a menu.  When there is no user activity, I go back to the 
intro.  Now we someone clicks on the intro swf, I am only getting the last 
frame of the transition swf.  How can I replay the swf from the beginning? 
Thanks. 

mx:SWFLoader includeIn=intro id=swfLoaderIntro
source=/assets/intro/intro.swf
complete=onSWFLoadComplete() 
/mx:SWFLoader
 mx:SWFLoader includeIn=transition id=swfLoaderTransition
 source=/assets/intro/transition.swf
/mx:SWFLoader



Re: [flexcoders] How Can I Rewind/Replay SWF

2012-02-22 Thread Alex Harui
Maybe: transition.content.currentFrame=0


On 2/22/12 4:01 PM, freewillie0800 wdec...@radiantsolutionsgroup.com wrote:






My Flex expert (my brother) is at a Buddhist retreat for 3 months and I need 
help.  I have a Flex application where the intro is a looping SWF file.  When 
someones click on the intro, I start a transition swf for a specified period 
time and then launch a menu.  When there is no user activity, I go back to the 
intro.  Now we someone clicks on the intro swf, I am only getting the last 
frame of the transition swf.  How can I replay the swf from the beginning? 
Thanks.

mx:SWFLoader includeIn=intro id=swfLoaderIntro
 source=/assets/intro/intro.swf
 complete=onSWFLoadComplete()  
/mx:SWFLoader
 mx:SWFLoader includeIn=transition id=swfLoaderTransition
 source=/assets/intro/transition.swf
/mx:SWFLoader






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


[flexcoders] How to export a Flex project and a Flex library project as an FXP file?

2012-02-03 Thread markflex2007
Hi 

I know normally one FXP only for one project. but do you know how to export two 
project(one normal and one library) to one fxp. I see some fxp include many 
projects. but I am not sure how to build the fxp.

Thanks

Mark



[flexcoders] how to package and install unsigned blackberry application?

2012-02-01 Thread markflex2007
Hi,

most articles are for signed application for blackberry.

How to handle unsigned application?

I need a detail steps to do this.Thanks

Mark



[flexcoders] How to use StageWebView component load pdf file in Android tablet?

2012-01-31 Thread markflex2007
Hi,

I did the test to load pdf file in Andriod tablet, but I can not show the pdf 
inside the application.

private var webView:StageWebView; 

webView = new StageWebView();   
webView.stage = this.stage; 
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight);   
webView.loadURL(http://www.testurl.com//pdf/test1.pdf;) 

Do you have experience to show pdf file with StageWebView?

Please give me a idea if you have. Thanks a lot


Mark



[flexcoders] How to create a line after each line in a TextArea

2012-01-30 Thread dorkie dork from dorktown
I'm trying to show a horizontal line under each row of text sort of like
legal paper. I'm not sure what to do to accomplish this.


[flexcoders] How to reset Flex State

2012-01-17 Thread koti reddy
Hi,

I created a state using actionscript, All the fields in the state are creating 
dynamically at run time. I want to recreate all the fields in the state if user 
come back to the same page second time instead of assigning 
currentState='stateName'. My Problem is user can revisit the same page with 
different data and needs to create separate states depends on the data.

Please suggest me what i can do to achieve this task. 

I have one solution like i can create state every time user come to the page, 
but it is becoming a burden on the page after too many visits.

Please let me know can i remove all the state manually from the flex session if 
yes how? 

I Appreciate your help.
Koti



Re: [flexcoders] How to access IP camera with Adobe air?

2012-01-11 Thread John Fletcher
Cool. Do you understand Italian? Maybe you should ask the author. I think
different cameras have different ways of getting access to the stream
depending on the vendor. But really I'm not sure; there are smartphone apps
which let you control major brands of camera and I always wondered how they
do that. Of course you could always try and get the relevant HTML page
inside air but I don't think that is what is happening in the link.

John

2012/1/11 markflex2007 markflex2...@yahoo.com

 **


 IP camera can provide a line with mjpeg format. I am not sure how air can
 access it.

 I like do something similar with:

 http://www.youtube.com/watch?v=gF-ELum2iyA

 in the demo. one air app can access many ip cameras.

 Please give me a idea.Thanks

 Mark

  




-- 
John

*You're old enough to make your own decisions about the environment without
me telling you what you should and shouldn't print. But if you do print, I
hope this signature doesn't cause the message to go onto an additional
page. Because that would be kind of stupid, wouldn't it?*


[flexcoders] How can I add stack bar char in data grid or is there any other ways to implement this kind of datagrid? [1 Attachment]

2012-01-10 Thread Jimmi Prajapati
Hi,

I want to develop a grid with bar chart, , I am using flex 4 and we have
charting licence.

so which is the best way to implement this kind of Grid??


-- 
Regards,
Jimmi


[flexcoders] How to access IP camera with Adobe air?

2012-01-10 Thread markflex2007
 IP camera can provide a line with mjpeg format. I am not sure how air can 
access it.

I like do something similar with:

http://www.youtube.com/watch?v=gF-ELum2iyA

in the demo. one air app can access many ip cameras.

Please give me a idea.Thanks

Mark



[flexcoders] How to set selected text color in Spark TextInput

2011-12-19 Thread synthastic
I'm trying to get Spark TextInputs to look like Halo/MX TextInputs as much as 
possible, since I have a mix of both in my application. I know I can set the 
selection background color to black using focusedTextSelectionColor. Using only 
styles, how can I set the text color itself to white so it matches the MX white 
on black look? textSelectedColor is apparently not supported.



[flexcoders] How to scale down StageWebView?

2011-12-16 Thread markflex2007
any way to scale down with StageWebView

the current code like following

webView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight);   
webView.loadURL(http://www.google.com/;)   

but I can not use scaleX/scaleY for webView. I need the app can use in a small 
screen device so I need scale down webView.

Thanks a lot for your help

Mark





[flexcoders] How to get the right locale in IE?

2011-12-15 Thread michael_regert
I'm trying to get the locale from IE 9.  I've written the following, but it is 
not working as expected.  In IE 9, I can add more than one language, so I can 
add [de], then [de_DE], then [en_US] (listed in that order).

If I call 'navigator.userLanguage.toString', then IE returns en-us, even though 
I know German is listed first and working (Google comes up in German).  I 
thought maybe it was because it was trying to return an Array of languages, so 
I changed my code to look for an Array or an Object.  Nothing works.


var l10NCodes:Object = null;
var l10nCode:String = null;

/* Try to get the language code from the browser first.  The browser returns 
both
the language code and the country code rather than just the language code 
alone. */
if (ExternalInterface.available) {
   l10NCodes = ExternalInterface.call('navigator.userLanguage');
   l10nCode = ExternalInterface.call('navigator.userLanguage.toString');
}




Michael J. Regert



Re: [flexcoders] How to get the right locale in IE?

2011-12-15 Thread Alex Harui
The first thing I’d do is write a test html page with some JS and try to get it 
to alert the right answer.


On 12/15/11 1:22 PM, michael_reg...@dell.com michael_reg...@dell.com wrote:






I’m trying to get the locale from IE 9.  I’ve written the following, but it is 
not working as expected.  In IE 9, I can add more than one language, so I can 
add [de], then [de_DE], then [en_US] (listed in that order).

If I call 'navigator.userLanguage.toString', then IE returns en-us, even though 
I know German is listed first and working (Google comes up in German).  I 
thought maybe it was because it was trying to return an Array of languages, so 
I changed my code to look for an Array or an Object.  Nothing works.


var l10NCodes:Object = null;
var l10nCode:String = null;

/* Try to get the language code from the browser first.  The browser returns 
both
the language code and the country code rather than just the language code 
alone. */

if (ExternalInterface.available) {
   l10NCodes = ExternalInterface.call('navigator.userLanguage');
 ! ;  l10nCode = ExternalInterface.call('navigator.userLanguage.toString');
}





Michael J. Regert






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] How to get the right locale in IE?

2011-12-15 Thread Paul Hastings
On 12/16/2011 4:22 AM, michael_reg...@dell.com said:

 I’m trying to get the locale from IE 9. I’ve written the following, but it is
 not working as expected. In IE 9, I can add more than one language, so I can 
 add
 [de], then [de_DE], then [en_US] (listed in that order).

if you have something server side, i'd parse HTTP_ACCEPT_LANGUAGE  return that 
to your flex app.


Re: [flexcoders] How to get the right locale in IE?

2011-12-15 Thread Paul Hastings
oops, and you might also look at IP to location/locale as well.



Re: [flexcoders] how to make drag and drop in flex 3

2011-12-09 Thread Sathya Moorthi K
refer the following links

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_4.html#174194

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_6.html#247937

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_7.html#247940

http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_8.html#225115


Best Regards,

Sathya Moorthi K | MCA,
mailto: ksathy...@gmail.com**


On Thu, Dec 8, 2011 at 12:55 PM, azHanie adroi...@excite.com wrote:

 **


 hi,

 i have problem here. i have list of images to be arranged according to the
 ranking. however, i cant drop the image. below is the code. may i know
 where's the mistake?
 __

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 horizontalAlign=center
 backgroundGradientAlphas=[1.0, 1.0]
 backgroundGradientColors=[#FF, #FF]
 creationComplete=service.send() viewSourceURL=srcview/index.html

 mx:Script
 ![CDATA[
 import mx.core.DragSource;
 import mx.collections.ArrayCollection;
 import mx.rpc.events.ResultEvent;
 import mx.events.DragEvent;
 import mx.managers.DragManager;
 import mx.core.UIComponent

 [Bindable]
 private var images:ArrayCollection;

 private function serviceHandler(event:ResultEvent):void{
 images = event.result.gallery.image;
 }

 private function initiateDrag(event:MouseEvent,value:String):void{

 var dragInitiator:Image= event.currentTarget as Image;

 var dragSource:DragSource = new DragSource();
 dragSource.addData(value, 'value');

 var dragProxy:Image = new Image();
 dragProxy.source = event.currentTarget.source;
 dragProxy.width = 100 ;
 dragProxy.height = 100 ;

 DragManager.doDrag(dragInitiator, dragSource, event, dragProxy);
 }

 private function dragEnterHandler(event:DragEvent):void {
 var dropTarget:List=event.currentTarget as List;
 if (event.dragSource.hasFormat('value')) {
 DragManager.acceptDragDrop(dropTarget);
 }


 {
 DragManager.acceptDragDrop(UIComponent(event.target));
 }
 }

 ]]
 /mx:Script

 mx:HTTPService id=service url=datas.xml
 result=serviceHandler(event)/

 mx:Label text=Drag a thumbnail image inside the black box and drop it to
 display its bigger version/

 mx:HBox
 mx:Repeater dataProvider={images} id=rep
 mx:Image source=assets/thumbs/{rep.currentItem}
 mouseMove=initiateDrag(event,event.currentTarget.getRepeaterItem()) /
 /mx:Repeater
 /mx:HBox
 mx:List
 iconField=image_pic
 dragEnabled=true
 dropEnabled=true
 dragMoveEnabled=true
 rowCount=1
 columnCount=1
 rowHeight=60
 columnWidth=60
 verticalScrollPolicy=off
 alternatingItemColors=[#D3D3D3, #DDDADA]
 width=81 height=63
 paddingLeft=1 paddingRight=1 paddingTop=1 paddingBottom=1/
 mx:List
 iconField=image_pic
 dragEnabled=true
 dropEnabled=true
 dragMoveEnabled=true
 rowCount=1
 columnCount=1
 rowHeight=60
 columnWidth=60
 verticalScrollPolicy=off
 alternatingItemColors=[#D3D3D3, #DDDADA]
 width=81 height=63
 paddingLeft=1 paddingRight=1 paddingTop=1 paddingBottom=1/
 mx:List
 iconField=image_pic
 dragEnabled=true
 dropEnabled=true
 dragMoveEnabled=true
 rowCount=1
 columnCount=1
 rowHeight=60
 columnWidth=60
 verticalScrollPolicy=off
 alternatingItemColors=[#D3D3D3, #DDDADA]
 width=81 height=63
 paddingLeft=1 paddingRight=1 paddingTop=1 paddingBottom=1/
 mx:List
 iconField=image_pic
 dragEnabled=true
 dropEnabled=true
 dragMoveEnabled=true
 rowCount=1
 columnCount=1
 rowHeight=60
 columnWidth=60
 verticalScrollPolicy=off
 alternatingItemColors=[#D3D3D3, #DDDADA]
 width=81 height=63
 paddingLeft=1 paddingRight=1 paddingTop=1 paddingBottom=1/

 /mx:Application

 thnks


  



[flexcoders] how to make drag and drop in flex 3

2011-12-08 Thread azHanie
hi,

i have problem here. i have list of images to be arranged according to the 
ranking. however, i cant drop the image. below is the code. may i know where's 
the mistake?
___

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
horizontalAlign=center
backgroundGradientAlphas=[1.0, 1.0] 
backgroundGradientColors=[#FF, #FF]  
creationComplete=service.send() viewSourceURL=srcview/index.html

mx:Script
![CDATA[
import mx.core.DragSource;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.events.DragEvent;
import mx.managers.DragManager;
import mx.core.UIComponent

[Bindable]
private var images:ArrayCollection;

private function serviceHandler(event:ResultEvent):void{
images = event.result.gallery.image;
}

private function 
initiateDrag(event:MouseEvent,value:String):void{

var dragInitiator:Image= event.currentTarget as Image;   

var dragSource:DragSource = new DragSource();
dragSource.addData(value, 'value');
 
var dragProxy:Image = new Image();
dragProxy.source = event.currentTarget.source;
dragProxy.width = 100 ;
dragProxy.height = 100 ;
  
DragManager.doDrag(dragInitiator, dragSource, event, dragProxy);
} 

private function dragEnterHandler(event:DragEvent):void 
{
  var dropTarget:List=event.currentTarget as List;
  if (event.dragSource.hasFormat('value')) {
DragManager.acceptDragDrop(dropTarget);
  }


{
DragManager.acceptDragDrop(UIComponent(event.target));  
  
   }
}

]]
/mx:Script

mx:HTTPService id=service url=datas.xml 
result=serviceHandler(event)/

mx:Label text=Drag a thumbnail image inside the black box and drop it 
to display its bigger version/

mx:HBox
mx:Repeater dataProvider={images} id=rep
mx:Image source=assets/thumbs/{rep.currentItem}

mouseMove=initiateDrag(event,event.currentTarget.getRepeaterItem()) /
/mx:Repeater
/mx:HBox
mx:List
iconField=image_pic
dragEnabled=true
dropEnabled=true
dragMoveEnabled=true
rowCount=1
columnCount=1
rowHeight=60
columnWidth=60
verticalScrollPolicy=off
alternatingItemColors=[#D3D3D3, #DDDADA]
width=81 height=63
paddingLeft=1 paddingRight=1 paddingTop=1 
paddingBottom=1/
mx:List
iconField=image_pic
dragEnabled=true
dropEnabled=true
dragMoveEnabled=true
rowCount=1
columnCount=1
rowHeight=60
columnWidth=60
verticalScrollPolicy=off
alternatingItemColors=[#D3D3D3, #DDDADA]
width=81 height=63
paddingLeft=1 paddingRight=1 paddingTop=1 
paddingBottom=1/
mx:List
iconField=image_pic
dragEnabled=true
dropEnabled=true
dragMoveEnabled=true
rowCount=1
columnCount=1
rowHeight=60
columnWidth=60
verticalScrollPolicy=off
alternatingItemColors=[#D3D3D3, #DDDADA]
width=81 height=63
paddingLeft=1 paddingRight=1 paddingTop=1 
paddingBottom=1/
mx:List
iconField=image_pic
dragEnabled=true
dropEnabled=true
dragMoveEnabled=true
rowCount=1
columnCount=1
rowHeight=60
columnWidth=60
verticalScrollPolicy=off
alternatingItemColors=[#D3D3D3, #DDDADA]
width=81 height=63
paddingLeft=1 paddingRight=1 paddingTop=1 
paddingBottom=1/

/mx:Application


thnks
 



Re: [flexcoders] How to convert a desktop air application to air for android application?

2011-12-05 Thread Csomák Gábor
create a new flex mobile project (blank), copy everything, then change the
windowedapplication to a group, and on the main mobile component place the
group.

On Mon, Dec 5, 2011 at 12:21 AM, markflex2007 markflex2...@yahoo.comwrote:



 I try just change
 WondowsApplication to Application.

 but i seems do not work.Please give me a guid.

 Thanks

 Mark

  



[flexcoders] How to convert a desktop air application to air for android application?

2011-12-04 Thread markflex2007
I try just change
WondowsApplication to Application.

but i seems do not work.Please give me a guid.

Thanks

Mark



[flexcoders] How do you develop your Flex applications?

2011-11-27 Thread masuland
Hi there,
I'd like to ask you if you could take part in a little survey: How do
you develop your Flex applications? ... There are only 3 questions
ahead for you ... http://bit.ly/vp5CY1 http://bit.ly/vp5CY1
Thank you,masu


[flexcoders] How to access URLFilePromise drop location

2011-11-07 Thread Greg Hess
Hi All,

Searched high and low, seems strange... but I cant seem to find anyway to
access the drop location of a URLFilePromise used in a native drag and drop
operation.

Does anyone know how to access the drop location or confirm that it is not
possible?

Any help much appreciated,

Greg


[flexcoders] How to make SoftKeyboard show?

2011-10-19 Thread markflex2007
Hi,

For mobile application

I did the  following,but I can not see the soft keyboard.

s:TextInput needsSoftKeyboard=true /

How to make keyboard show on the screen.

Thanks

Mark



[flexcoders] How to create php/apache/mysql installer with AIR

2011-10-17 Thread isa_loyer
Dear Flexer,

I'd like to use AIR to create my own web tools installer (like mamp, wammp...).

But I have no idea how to do that.

Can you help me?

Thanks



Re: [flexcoders] How to create php/apache/mysql installer with AIR

2011-10-17 Thread Wemerson Couto Guimarães
Hi...

I'm use a xampplite as a plugin of my application... just make a package
installer with winrar using a previous version of preconfigured xampp with
mobile mode (Without drive letters).

But need to be installed after the app was installed ... still can not run a
post script to do automatic configuration


-- 
*Wemerson Guimarães*
Rio Verde - Go - Brazil


[flexcoders] How much load a Red5 server can handle?

2011-10-07 Thread mulchand12345
Hi

I have created a user video recording application which is hosted on red5 
server and it uses oflademo code to capture and save the video.

My query is how much load a red5 server can handle? I mean it is just a tomcat 
server. If it goes live and hundreds of user started using it, what are the 
chances of breakdown? Is red5 server really good for production level use?

What approach would you suggest in this case? Is it a good idea to use Red5 
server in production environment?
What server do other video capturing/ streaming application must be using in 
production environment?

Thanks in advance

Regards,
MulC




[flexcoders] How do you delete itemrenderers in a spark view for mobile?

2011-10-03 Thread luvfotography
Hi, 
How can I delete itemRenderers in a spark view for mobile,
There's the property 'destructionPolicy' = auto or never

I'd like to keep the itemRenderers on the current view when I push another view 
on top, so when I come back it's still there, but when I pop out of the current 
view I'd like to destroy all itemRenderers.
Is this possible?

I tried setting destructionPolicy='auto' when I pop the current view, but it 
doesn't help.
thanks,





Re: [flexcoders] How to detect change of mobile orientation ? portrain

2011-09-23 Thread Csomák Gábor
on CreationComplete, add
addEventListener(StageOrientationEvent.ORIENTATION_CHANGE,
orientationChanged);
you can debug out the rest

On Fri, Sep 23, 2011 at 5:34 AM, j2me_soul j2me_s...@163.com wrote:


  How to detect change of  mobile orientation ? portrain or landscape


  



[flexcoders] How to detect device orientation state portrait or landscape

2011-09-22 Thread j2me_soul
How to detect device current orientation state ?portrait or landscape

[flexcoders] How to detect change of mobile orientation ? portrain

2011-09-22 Thread j2me_soul
How to detect change of  mobile orientation ? portrain or landscape

[flexcoders] How to obtain mobile number by flex

2011-09-20 Thread j2me_soul
How to obtain mobile number by flex sdk on Android OS ?

Re: [flexcoders] How to obtain mobile number by flex

2011-09-20 Thread James Ong
Again, not possible except android, you will have to use Native Extension in
AIR 3.0 to access Android API.

On Tue, Sep 20, 2011 at 3:25 PM, j2me_soul j2me_s...@163.com wrote:

 **


 How to obtain mobile number by flex sdk on Android OS ?


  



Re:Re: [flexcoders] How to obtain mobile number by flex

2011-09-20 Thread j2me_soul
Thanks

At 2011-09-20 22:53:37,James Ong yanlile...@gmail.com wrote:
 

Again, not possible except android, you will have to use Native Extension in 
AIR 3.0 to access Android API.



On Tue, Sep 20, 2011 at 3:25 PM, j2me_soulj2me_s...@163.com wrote:

 

How to obtain mobile number by flex sdk on Android OS ?








Re:Re: [flexcoders] How to obtain mobile number by flex

2011-09-20 Thread j2me_soul
But if need two application to do this job How to package them into one apk 
file ?
one is flex app the other is android app

At 2011-09-20 22:53:37,James Ong yanlile...@gmail.com wrote:
 

Again, not possible except android, you will have to use Native Extension in 
AIR 3.0 to access Android API.



On Tue, Sep 20, 2011 at 3:25 PM, j2me_soulj2me_s...@163.com wrote:

 

How to obtain mobile number by flex sdk on Android OS ?








[flexcoders] How to draw background in IconItemRenderer

2011-09-20 Thread j2me_soul
this is my code:
 
override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void{
super.updateDisplayList(unscaledWidth, unscaledHeight);
this.graphics.beginGradientFill(GradientType.LINEAR, [0x2e3e4e, 0], [1, 
.7], [0, 255]);
this.graphics.endFill();
   }
 
the background is always the default gray ~

[flexcoders] how common is Flex and Rails together?

2011-09-17 Thread Chris Downey
Hi,

I'm just wondering if there is anybody who is actively working on a project
or knows of projects where Flex and Rails are used together.  Looking
online, I see a burst of blogs between 2007-2009 but then it quickly
fizzles.  Any thoughts about this?  Theoretically, it seems to be an
interesting and useful fit, but when I start considering the details of
making it work... I'm no longer so sure.

Thanks,


Chris


Re: [flexcoders] how common is Flex and Rails together?

2011-09-17 Thread James Ong
What are you trying to develop?


On Sun, Sep 18, 2011 at 3:43 AM, Chris Downey cdow...@gmail.com wrote:

 **


 Hi,

 I'm just wondering if there is anybody who is actively working on a project
 or knows of projects where Flex and Rails are used together.  Looking
 online, I see a burst of blogs between 2007-2009 but then it quickly
 fizzles.  Any thoughts about this?  Theoretically, it seems to be an
 interesting and useful fit, but when I start considering the details of
 making it work... I'm no longer so sure.

 Thanks,


 Chris
  



[flexcoders] how to force list based controls(datagrid) to make new instances of itemrenderer

2011-09-06 Thread vaibhavseth84
Hi,

I want a way to force the list based controls(eg. datagrid) to NOT to reuse the 
existing itemrenderer instances ONLY whenever there is a change in 
dataprovider. I want datagrid to make new instance of itemrenderers in that 
case.

Any thoughts or directions ?

Thanks in advance !
Seth





Re: [flexcoders] How to call container's method into component file

2011-08-29 Thread Srinivas Sandur Madhu Murthy
Nice advice TH! I hope lot of people in Flex development understands this. 
Since from introduction of Flex 1.5 I have seen lot of people using this kind 
of calls or accessing method using global application object.

Thanks 

On Aug 28, 2011, at 9:50 AM, turbo_vb wrote:

 That's bad advice Rishi; that leads to tight coupling and parent abuse. 
 It's ok to have a parent call a method on a child ( data binding is preferred 
 though). But, children shouldn't call methods directly on their parents. 
 Instead, have the child component dispatch an event to initiate the save 
 method on the parent.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Rishi Tandon rishitandon123@... wrote:
 
  Use object oriented best practice.
  Mxml I'd nothing but a actionscript class.
  If u r initializing the custom component inside the other component, then u 
  can directly access the method or else use the 
  Application.application.componentiD.methodName if u are 
  Where are u initializing globally.
  
  Sent from my iPhone
  
  On Aug 28, 2011, at 2:21 AM, shail shail_link@... wrote:
  
   Hi Group,
   
   I have a customize container component in which i am using one 
   sub-component. The customize container has one overriden method save(), i 
   want to call this method in subcomponent. Can this be possible?
   
   my code looks like this -
   
   GraphDex.mxml
   CustPanel
   script
   overrides public void save(){
   //plz ignore syntex
   }
   /script
   
   Dex id=dexone/
   /CustPanel
   
   Here I want to call mentioned save() method in Dex component that contain 
   some graphs, so on click event of Dex graphs i want to call save 
   functionality.
   
   As being new bee,Please suggest if my approach is wrong.
   
  
 
 
 



[flexcoders] How to call container's method into component file

2011-08-27 Thread shail
Hi Group,

I have a customize container component in which i am using one sub-component. 
The customize container has one overriden method save(), i want to call this 
method in subcomponent. Can this be possible?

my code looks like this -

GraphDex.mxml
CustPanel
script
overrides public void save(){
//plz ignore syntex
}
/script


Dex id=dexone/
/CustPanel


Here I want to call mentioned save() method in Dex component that contain some 
graphs, so on click event of Dex graphs i want to call save functionality.

As being new bee,Please suggest if my approach is wrong.




Re: [flexcoders] How to call container's method into component file

2011-08-27 Thread Rishi Tandon
Use object oriented best practice.
Mxml I'd nothing but a actionscript class.
If u r initializing  the custom component inside the other component, then u 
can directly access the method or else use the 
Application.application.componentiD.methodName if u are 
Where are u initializing globally.

Sent from my iPhone

On Aug 28, 2011, at 2:21 AM, shail shail_l...@yahoo.com wrote:

 Hi Group,
 
 I have a customize container component in which i am using one sub-component. 
 The customize container has one overriden method save(), i want to call this 
 method in subcomponent. Can this be possible?
 
 my code looks like this -
 
 GraphDex.mxml
 CustPanel
 script
 overrides public void save(){
 //plz ignore syntex
 }
 /script
 
 Dex id=dexone/
 /CustPanel
 
 Here I want to call mentioned save() method in Dex component that contain 
 some graphs, so on click event of Dex graphs i want to call save 
 functionality.
 
 As being new bee,Please suggest if my approach is wrong.
 
 


[flexcoders] How to insert mobile ad?

2011-08-22 Thread luvfotography
Can someone recommend an easy way to serve ads in my flex mobile game?
(so I can make sow money)
Has any one used admob, mochiads, etc?  Do I need an actionscript API?
Thanks 




Re: [flexcoders] How to insert mobile ad?

2011-08-22 Thread Dave Cates
Hi,

We're currently using Admob via a web mobile system - just using stagewebview 
to display the ads via a php page on our server.

Admob sucks though as, at best, we get a 50% fill rate. Am looking at Smaato as 
an alternative as they have a wider spread of ads networks. You'd have thought 
Google would have their act together by now though!

Dave.

On 22 Aug 2011, at 08:14, luvfotography wrote:

 Can someone recommend an easy way to serve ads in my flex mobile game?
 (so I can make sow money)
 Has any one used admob, mochiads, etc? Do I need an actionscript API?
 Thanks 
 
 



Re: [flexcoders] How to turn off the ringer

2011-08-21 Thread Rick Genter

On Aug 20, 2011, at 12:58 PM, hworke wrote:

 Hello developers,
 
 how can I turn off the ringer or put the device
 on vibration mode from the air application. I need
 it both for iphone and also for android phone.
 
 Thanks in advance.
 
 Regards,

You can't on the iPhone. The ringer is controlled by a physical switch on the 
side of the phone and is a setting that is intended to be controlled by the 
user, not an application.
--
Rick Genter
rick.gen...@gmail.com



[flexcoders] How to turn off the ringer

2011-08-20 Thread hworke
Hello developers,

how can I turn off the ringer or put the device
on vibration mode from the air application. I need
it both for iphone and also for android phone.

Thanks in advance.

Regards,



[flexcoders] How to update AIR application silently

2011-08-19 Thread j2me_soul
How to update the AIR application in the most silently way when there is a new 
version on the server without any interactions ?

[flexcoders] how to make a class can be iterated by for each/in

2011-08-11 Thread j2me_soul
How to custom a class can by iterate all children by for each
 
for each( var item:* in myCustomeClass ){
 
}

Re: [flexcoders] how to make a class can be iterated by for each/in

2011-08-11 Thread Rishi Tandon
for each works for collection.
If you have an instance of the collections consist of your class object then u 
can retrieve each item as class object using for each iterator.

Sent from my iPhone

On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_s...@163.com wrote:

 How to custom a class can by iterate all children by for each
  
 for each( var item:* in myCustomeClass ){
  
 }
 
 
 


RE: [flexcoders] How to communicate 2 computers using Air Application

2011-08-11 Thread Gregor Kiddie
Sockets



Re:Re: [flexcoders] how to make a class can be iterated by for each/in

2011-08-11 Thread j2me_soul
Sorry I think I express not very clear.
I want to iterate all the properies in a class using for each/in.
How can achieve that ?


At 2011-08-11 17:52:34,Rishi Tandon rishitandon...@yahoo.com wrote:
 

for each works for collection.
If you have an instance of the collections consist of your class object then u 
can retrieve each item as class object using for each iterator.

Sent from my iPhone

On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_s...@163.com wrote:


 

How to custom a class can by iterate all children by for each
 
for each( var item:* in myCustomeClass ){
 
}






Re: [flexcoders] how to make a class can be iterated by for each/in

2011-08-11 Thread Alex Harui
You can’t directly loop over a class like you could in AS2.  That’s what 
describeType and ObjectUtil are for.  You can probably loop over the properties 
returned from ObjectUtil.getClassInfo.


On 8/11/11 3:23 AM, j2me_soul j2me_s...@163.com wrote:






Sorry I think I express not very clear.
I want to iterate all the properies in a class using for each/in.
How can achieve that ?

At 2011-08-11 17:52:34,Rishi Tandon rishitandon...@yahoo.com wrote:






for each works for collection.
If you have an instance of the collections consist of your class object then u 
can retrieve each item as class object using for each iterator.

Sent from my iPhone

On Aug 11, 2011, at 2:25 PM, j2me_soul j2me_s...@163.com wrote:




How to custom a class can by iterate all children by for each

for each( var item:* in myCustomeClass ){

}












--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] How to communicate 2 computers using Air Application

2011-08-10 Thread Wemerson Couto Guimarães
Hello guys,

There are a way of communicate 2 computers (or more) on the same network
(LAN) using an Air application? Prefered 1.5 version of Air, because I have
a opened project in this version.

-- 
*Wemerson Guimarães*
Rio Verde - Go


[flexcoders] How do I get size of scaled bitmap image?

2011-08-10 Thread luvfotography
How do I get the width of a scaled bitmap image, 
In my example, it's returning the width of the unscaled width,
ie. I have an image that's portrait aspect ratio, when put into a
landscape oriented box, the width is the size of the box, not the smaller 
scaled bitmap.

Is there another property that I can check??

 ?xml version=1.0 encoding=utf-8?
s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; 
   xmlns:s=library://ns.adobe.com/flex/spark 
   xmlns:mx=library://ns.adobe.com/flex/mx 
   xmlns:local=*  
s:layout
s:VerticalLayout  horizontalAlign=center /
/s:layout
fx:Script
![CDATA[
private function loadImg(event:Event):void {
var RedImage:BitmapData = new 
BitmapData(200,300,false,0xff5000);
myImage.source = RedImage;
}
]]
/fx:Script

s:HGroup width=100% height=100% verticalAlign=bottom 
local:CustomImage id=myImage width=100% height=100% 
scaleMode=letterbox /
/s:HGroup
s:Button label=Load Image click=loadImg(event) /
/s:Application

package
{
import spark.components.Image;

public class CustomImage extends Image
{
public function CustomImage()
{
super();
}

override protected function updateDisplayList (unscaledWidth : 
Number, unscaledHeight : Number) : void
{
super.updateDisplayList (unscaledWidth, unscaledHeight);
trace('width = '+String(unscaledWidth) + ', height =' + 
String(unscaledHeight) );
}
}
}





Re: [flexcoders] How to communicate 2 computers using Air Application

2011-08-10 Thread Tandon, Rishi
Have u tried the FILE classes for the same.

Rishi



From: Wemerson Couto Guimarães wemerso...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, August 10, 2011 6:57 PM
Subject: [flexcoders] How to communicate 2 computers using Air Application


  
Hello guys,

There are a way of communicate 2 computers (or more) on the same network (LAN) 
using an Air application? Prefered 1.5 version of Air, because I have a opened 
project in this version.

-- 
Wemerson Guimarães
Rio Verde - Go


 

[flexcoders] How to debug PHP side in AIR applications?

2011-08-08 Thread enridp
Hi ! I think I can't explain it better than my subject :)

Flash Builder 4.5 for PHP it's wonderful for debugging both, Flex and PHP side 
at the same time, but it doesn't work with AIR applications.

Does somebody know a workaround for this?



Re: [flexcoders] How to debug PHP side in AIR applications?

2011-08-08 Thread Johannes Nel
split your projects, put a break point in the php code.

On Mon, Aug 8, 2011 at 8:08 PM, enridp enr...@yahoo.com.ar wrote:

 **


 Hi ! I think I can't explain it better than my subject :)

 Flash Builder 4.5 for PHP it's wonderful for debugging both, Flex and PHP
 side at the same time, but it doesn't work with AIR applications.

 Does somebody know a workaround for this?

  




-- 
j:pn
\\no comment


[flexcoders] How to suppress empty datatips in spark datagrid

2011-08-04 Thread Chris Velevitch
If I set showDataTips=true for a GridColumn and if some rows in the
column are empty, the data tip still shows but it's shown empty. How
do I suppress those empty dataTips?


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
Topic: Developing Mobile Applications with the Flash Platform's newest tools.
Date: 29th August 6pm for 6:30 start
Details and RSVP on
http://apugs.groups.adobe.com/index.cfm?event=post.displaypostid=37729


[flexcoders] How to set fixed length of DateTimeAxis

2010-09-08 Thread robert_dodier
Hi,

By default DateTimeAxis determines the length of
the axis from the available data, e.g. if the data
span 15 hours then the DateTimeAxis is 15 hours long.
I'd like to make the axis some fixed length (24 hours,
7 days, or 30 days) whatever the range of the
available data may be (which may be longer or shorter
than the specified axis length). How can I do that?

Sorry for asking such a basic question, I tried to
figure it out but didn't have any luck.
Thanks in advance for your help.

Robert Dodier




RE: [flexcoders] how do you guys read flexcoders

2010-09-06 Thread Gregor Kiddie
In Outlook using the conversation view.

 

Plus it means I've got lovely Flexcoders archives dating back to 2005 ;)



[flexcoders] how do you guys read flexcoders

2010-09-05 Thread ew6014
hi guys..

now that searchcoders dashboard has not been working for sometimes, on a show 
of hands, how are you guys reading flexcoders mailing list?

just using rss ??




Re: [flexcoders] How to tell if I am a popup.

2010-08-30 Thread Haykel BEN JEMIA
http://livedocs.adobe.com/flex/3/langref/mx/core/IUIComponent.html#isPopUp

Le 2010 8 30 22:44, aceoohay pa...@compuace.com a écrit :


I have a mx:module component that I sometimes call with a moduleloader, and
sometimes call with a popupManager. In order to close the item properly I
need to know how I was instantiated (popup manager or module loader).

Is there a property that I can check that will tell me this?

Obviously I can set my own property, but I would prefer using one that
already exists.

Paul

 


[flexcoders] How to create another stage in a single AIR 2 application and display on secondary monitor

2010-08-21 Thread Yohanes Iwan Sugiarto
Hi..
Is it possible to create two stages in a single AIR 2 application?
The first stage should be displayed in primary monitor and second stage on
secondary monitor?
(or maybe even three monitors with different content on each of them).
The first stage will be the controller for the output of the other
monitor/screens.

If this isn't possible, I will may need to create two AIR apps, and
communicate between them using socket.
Am I in the right direction? Or should there any other easier ways?

Thanks.

/ i w a n


Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-18 Thread Alex Harui
If you know the borders, paddings and positioning of the datagroup, can’t you 
then calculate the width?  Maybe compare the DataGroup’s x,y,w,h.


On 8/17/10 7:35 PM, dorkiedorkfromdorkt...@gmail.com 
dorkiedorkfromdorkt...@gmail.com wrote:






Spark. If the item renderer item is outside of the Lists visible area then it 
returns width or height 0 or sometimes index out of bounds errors. It seems 
items aren't created if they haven't been scrolled into view yet and if they 
have but they aren't in view currently then I think it's returning width and 
height as 0. I've made sure to set useVirtualLayout false.

s:HorizontalLayout useVirtualLayout=false/

I don't have the columnWidth or list height set but I have the ItemRenderer 
width and height set to 32.

On Tue, Aug 17, 2010 at 8:05 PM, Alex Harui aha...@adobe.com wrote:





Spark or MX List.  Did you confuse width for height?




On 8/17/10 2:30 PM, dorkiedorkfromdorkt...@gmail.com 
http://dorkiedorkfromdorkt...@gmail.com  dorkiedorkfromdorkt...@gmail.com 
http://dorkiedorkfromdorkt...@gmail.com  wrote:






How would I get the width of an item renderer in a list?

I'm trying to fit the width of a list so that it doesn't clip an item renderer 
half way thru if there's not enough space. So if the List is 105 px wide and an 
single itemrenderer is 10 pixels wide then I want to resize the list to 100 
pixels so item 11 doesn't show.





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread dorkie dork from dorktown
How would I get the width of an item renderer in a list?

I'm trying to fit the width of a list so that it doesn't clip an item
renderer half way thru if there's not enough space. So if the List is 105 px
wide and an single itemrenderer is 10 pixels wide then I want to resize the
list to 100 pixels so item 11 doesn't show.


[flexcoders] how to disable the rest of application when one combo box is open

2010-08-17 Thread coder3

Hi 

I have a combo box, if it's open, user needs to make a selection to close
it. so, if nothing is selected, the combo box will keep opening. 

my question is, when the combo box is open, i want to disable the rest of
the application, how do i do it?

thanks
C
-- 
View this message in context: 
http://old.nabble.com/how-to-disable-the-rest-of-application-when-one-combo-box-is-open-tp29449306p29449306.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread Alex Harui
Spark or MX List.  Did you confuse width for height?


On 8/17/10 2:30 PM, dorkiedorkfromdorkt...@gmail.com 
dorkiedorkfromdorkt...@gmail.com wrote:






How would I get the width of an item renderer in a list?

I'm trying to fit the width of a list so that it doesn't clip an item renderer 
half way thru if there's not enough space. So if the List is 105 px wide and an 
single itemrenderer is 10 pixels wide then I want to resize the list to 100 
pixels so item 11 doesn't show.





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread dorkie dork from dorktown
Spark. If the item renderer item is outside of the Lists visible area then
it returns width or height 0 or sometimes index out of bounds errors. It
seems items aren't created if they haven't been scrolled into view yet and
if they have but they aren't in view currently then I think it's returning
width and height as 0. I've made sure to set useVirtualLayout false.

s:HorizontalLayout useVirtualLayout=false/

I don't have the columnWidth or list height set but I have the ItemRenderer
width and height set to 32.

On Tue, Aug 17, 2010 at 8:05 PM, Alex Harui aha...@adobe.com wrote:



 Spark or MX List.  Did you confuse width for height?



 On 8/17/10 2:30 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 How would I get the width of an item renderer in a list?

 I'm trying to fit the width of a list so that it doesn't clip an item
 renderer half way thru if there's not enough space. So if the List is 105 px
 wide and an single itemrenderer is 10 pixels wide then I want to resize the
 list to 100 pixels so item 11 doesn't show.





 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui

  



[flexcoders] How to remove header icon from AdvanceDatagrid ?

2010-08-16 Thread RishiShahi

I want to remove sort icon from grid header , shown below

http://old.nabble.com/file/p29449212/1.png 

It's happening due to following piece of the code. I've disabled column
sorting on grid but icon still appears.

dataGrid.validateNow();
var s:Sort = new Sort();
s.fields = [new SortField(hazardnum)];
s.compareFunction = hazardSortItems;

dataGrid.dataProvider.sort=s;
dataGrid.dataProvider.refresh();  


-- 
View this message in context: 
http://old.nabble.com/How-to-remove-header-icon-from-AdvanceDatagrid---tp29449212p29449212.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] How to remove header icon from AdvanceDatagrid ?

2010-08-16 Thread RishiShahi

Adding sortItemRenderer={null} in AdvanceDataGrid  tag fixed the
problem.:-D



RishiShahi wrote:
 
 I want to remove sort icon from grid header , shown below
 
  http://old.nabble.com/file/p29449212/1.png 
 
 It's happening due to following piece of the code. I've disabled column
 sorting on grid but icon still appears.
 
 dataGrid.validateNow();
 var s:Sort = new Sort();
 s.fields = [new SortField(hazardnum)];
 s.compareFunction = hazardSortItems;
 
 dataGrid.dataProvider.sort=s;
 dataGrid.dataProvider.refresh();  
 
 
 

-- 
View this message in context: 
http://old.nabble.com/How-to-remove-header-icon-from-AdvanceDatagrid---tp29449212p29449213.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to remove some a string till a particular character

2010-08-15 Thread Wally Kolcz
How can I start at the end of a string, move to the left till the first 
'/' and extract the value of what was after that first character?

I am looking for these:
com/wallykolcz/views/portal/AdminPortal.swf would equal AdminPortal.swf
com/wallykolcz/views/myVoice/MyVoice.swf would equal MyVoice.swf
com/wallykolcz/views/windowhome/WindowHome.swf would equal 
WindowHome.swf

Thanks!



RE: [flexcoders] How to remove some a string till a particular character

2010-08-15 Thread Keith Reinfeld
var result:String = myString.substr(myString.lastIndexOf('/')+1); 

 

Regards,

 

Keith Reinfeld
Home Page:  http://keithreinfeld.home.comcast.net/
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Sunday, August 15, 2010 8:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to remove some a string till a particular
character

 

  

How can I start at the end of a string, move to the left till the first 
'/' and extract the value of what was after that first character?

I am looking for these:
com/wallykolcz/views/portal/AdminPortal.swf would equal AdminPortal.swf
com/wallykolcz/views/myVoice/MyVoice.swf would equal MyVoice.swf
com/wallykolcz/views/windowhome/WindowHome.swf would equal 
WindowHome.swf

Thanks!



image001.jpgimage002.jpg

[flexcoders] how long trial flex on linux is? [1 Attachment]

2010-08-11 Thread cholid cholid
how long trial flex on linux is?
ps:see my attachment trial expire snapshoot



  

[flexcoders] How do I disable ctrl-click on a combo box?

2010-08-10 Thread tweetyNJ
Hi all,
I am wondering if there's a way I can disable ctrl-clilck on a combo box. I am 
using flex 3.5 SDK.

thanks!



[flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread Nini7016 Nini7016

Hello :)

I would like to create a type complex which contains one STRING and One INteger 
..
How can i declare this type please ??

Any idea please ?

Thanks :)

  

Re: [flexcoders] How to declare a Complex Type : String + int-

2010-08-09 Thread claudiu ursica
Unless I am reading you wrong:

package com.whatever
{
public class Compex
{
public var stringval:String;
public var intval:int;
}
}

C





From: Nini7016 Nini7016 nahloulaha...@hotmail.com
To: flexcoders@yahoogroups.com
Sent: Mon, August 9, 2010 2:32:50 PM
Subject: [flexcoders] How to declare a Complex Type :  String + int-

   
Hello :)

I would like to create a type complex which contains one STRING and One INteger 
..
How can i declare this type please ??

Any idea please ?

Thanks :)


 


  

  1   2   3   4   5   6   7   8   9   10   >