RE: [flexcoders] Drawing on top of charts

2008-03-24 Thread Mark Rausch
Ely has a blog post on this:
http://www.quietlyscheming.com/blog/charts/easy-custom-charts/

 

I think the short answer in Flex 3 is that you should be able to create
an annotationElement that's a CartesianDataCanvas and draw directly on
that.

 

 

Mark



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean
Sent: Monday, March 24, 2008 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drawing on top of charts

 

Hi All,

I have a Flex application which uses Line charts from the Flex chart
package. I'd like to be able to draw a vertical line on
the whole chart when the user clicks down on the mouse and draw
another vertical line at the X location when he releases the mouse. I
can't yet work out how to do this, I looked at the CartesianDataCanvas
class, but it seems to work only in terms of data coordinates, not raw
mouse coordinates.

Thanks to responders if any,
Sean

 



RE: [flexcoders] HTML IN FLEX

2008-03-12 Thread Mark Rausch
It's AIR only

 

http://livedocs.adobe.com/flex/3/langref/mx/controls/HTML.html

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kpjj31
Sent: Wednesday, March 12, 2008 5:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTML IN FLEX

 

Can someone please tell me if th mx:HTML tag only works when building 
air apps and not in flex. Thank you.

 



RE: [flexcoders] Clock Killer

2008-01-18 Thread Mark Rausch
Why do you create a new timer in stopTimer()? You should make
minuteTimer a global variable, create it only once, and use that
reference in stopTimer...

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markcavins
Sent: Friday, January 18, 2008 3:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Clock Killer

 

Hello,

I have this clock that runs as a countdown timer once a user logs into
the site. It works great until the user logs out. When they log back
in the counter no longer counts correctly. It is like there are 2
intstances of the clock running at the same time but I'm not sure how
to kill the first instance.

Clock code
private function getDaysUntil():void {
//setting the timer
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);

minuteTimer.start(); 
}

public function onTick(evt:TimerEvent):void { 
var minuteTimer:Timer = evt.target as Timer; 
var lvSecondsRemaining:int = minuteTimer.repeatCount -
minuteTimer.currentCount; 
var lvMinutes:int = lvSecondsRemaining / 60; 
var lvSeconds:int = lvSecondsRemaining - ( lvMinutes * 60 ); 
var lvSecondsText:String = lvSeconds.toString(); 
if( lvSeconds  10 ) lvSecondsText = 0 + lvSecondsText; 

lblTimeUntil.text = lvMinutes.toString() + : + lvSecondsText; 

} 

public function onTimerComplete(evt:TimerEvent):void{
var minuteTimer:Timer = evt.target as Timer;
minuteTimer.reset();
minuteTimer.start();
tempXML.send();

}

private function stopTimer():void{
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.reset(); 
minuteTimer.stop(); 
clearFormHandler(); 

}

Here is the logout button and the login button

mx:Button label=Log Out height=27 fillAlphas=[1.0, 1.0]
fillColors=[#03, #03, #474545, #474545]
borderColor=#DCDEDF click=currentState=''; stopTimer();/

mx:Button x=10 y=282 label=Login id=Submit
click=login_user.send(); 
fontSize=14 themeColor=#FFA800 borderColor=#FA0202
enabled={formIsValid} /

If the user is able to login

currentState = Logged In;

tempXML.send();
getDaysUntil();

Any ideas how to get this to display right

 



RE: [flexcoders] Xpost. moving flex builder projects from one machine to another??

2006-10-03 Thread Mark Rausch












Have you done a File - Import -
Existing projects into Workspace?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Wilker
Sent: Tuesday, October 03, 2006
2:16 PM
To: Flex@houseoffusion.com;
flexcoders@yahoogroups.com
Subject: [flexcoders] Xpost.
moving flex builder projects from one machine to another??











Can it be
done?

I've copied all the files over. including the .project and such. But FB still
doesn't show them in the navigator.

J

-- 
John Wilker
Vice President Software Development/Writer 
Red Omega Solutions, Inc.
www.johnwilker.com / www.red-omega.com

Everything changes, nothing remains without change. ~Buddha c.483
bc 






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






RE: [flexcoders] Launch Failed

2006-08-25 Thread Mark Rausch












Try this  open project properties,
turn off Generate HTML wrapper, apply the change, then turn it
back on.



Hope this helps,

Mark











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ken Bromberger
Sent: Friday, August 25, 2006
12:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Launch
Failed















Hi All,




When I add an additional application file to my project and try to launch it, I
get an error:




Launch Failed


File not found:



It seems as
though Flex is not creating the HTML file for the swf. Is there a fix for
this



Thanks - Ken


















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Looping output

2006-04-25 Thread Mark Rausch



Use percentWidth and percentHeight instead

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Tuesday, April 25, 2006 3:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Looping output

Well tracy, it is assinging the id perfectly fine. But when I try to set
the canvas width or height to 100% I get this error.

Implicit coercion of a value of type 'String' to an unrelated type

When I try to set it to 100% with out the ''

I get this error.
 Expecting primary _expression_ before semicolon


 for ( var i:Number=0;iresult.length;i++){
 var newLabel:Label = new Label();
 newLabel.text = 'TEST';
 newLabel.x = 10;
 newLabel.y = 300;
 
parentApplication.closing.mainBox.addChild(newLabel);
 var newCanvas:Canvas = new Canvas();
 newCanvas.id = 'canvas' + i;
 newCanvas.width = '100%';
 newCanvas.height = '100%';
 
parentApplication.closing.mainBox.addChild(newCanvas);
 }

--- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED]
wrote:

 I finally got it figured out. BTw this is for F2B2 only.
 var newLabel:Label = new Label();
 newLabel.text = 'TEST';
 newLabel.x = 10;
 newLabel.y = 300;
 parentApplication.closing.mainBox.addChild(newLabel);


 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  So the issue is not assigning an id, but rather that you are not
able to
  successfully use createChild() at all?
 
  Could the problem be the reference chain?
 
  Can you do it in a sample app?
 
  Tracy
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
  Behalf Of Jeremy Rottman
  Sent: Tuesday, April 25, 2006 5:00 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Looping output
 
  opps didnt fully explain my last post.
 
  I removed the for loop in my function, and tried testing with this.
I
  am trying to create the label on the subCanvas, which is where all
my
  display happens. And I still get nothing.
 
  var newLabel =
 
 
parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls
  \
  .Label, undefined );
  newLabel.text = 'test';
  newLabel.x = 10;
  newLabel.y = 300;
 
 
  --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@
  wrote:
  
   I have tried that, and still doesnt work. I have tried testing
with
   just this.
  
   var newLabel =
  
 
parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls
  \
  .Label,
   undefined );
   newLabel.text = 'test';
   newLabel.x = 10;
   newLabel.y = 300;
  
   --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote:
   
try it out this
   
parentApplication.closing.createChild(mx.containers.Grid,
undefined,{id = grid+i});
   
--Suresh
   
--- Jeremy Rottman rottmanj@ wrote:
   
 Well I tried what you said Suresh, and it is still a
 no go. Here is my
 updated code.

 for ( var
 i:Number=0;iresult.length;i++){

 var newGrid =

parentApplication.closing.createChild(mx.containers.Grid,
 undefined);
 newGrid.id = grid +
 i;
 newGrid.x = 10;
 newGrid.y =
 parentApplication.closing.mainGrid.y + 20;
 newGrid.width = '90%';
 var newGridRow =

   
parentApplication.closing.newGrid.createChild(mx.containers.GridRow,
 undefined);
 newGridRow.id =
 gridRow + i;
 var newGridItem =

   
  
 
parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G
  \
  \
 ridItem, undefined);
 newGridItem.width =
 445;
 newGridItem.id =
 gridItem + i;
 var newCanvas =

   
  
 
parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.
  \
  \
 containers.Canvas);
 newCanvas.width
 ='100%';
 newCanvas.heigth
 ='100%';
 newCanvas.id = canvas
 + i;
 var newLabel

   
  
 
=parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea
  \
  \
 teChild(mx.controls.Label, undefined);
 newLabel.id = name +
 i;
 newLabel.text = TEST;
 }
 --- In flexcoders@yahoogroups.com, Suresh Akula
 suresha143@ wrote:
 
  Hello Rottman,
 
  You already created the newGrid and assigned a
  dynamic id to that. Why can't you use the same
 intance
  variable name in the rest of the code.
  i.e.
  var newGridRow =
 

   
parentApplication.closing.newGrid.createChild(mx.containers.GridRow,
  undefined);
 
  --Suresh Akula.
 
 
 
  --- Jeremy Rottman rottmanj@ wrote:
 
   I am still working on this. And I have run into
 an
   issue. When I create
   a child, I need to give that child a unique id.
 I
   tried 'grid'  i to
   make it unique, but that doesnt work.
  
   Here is hte code I am trying
  
  
   for ( var i:Number=0;iresult.length;i++){
  
   var newGrid =