[flexcoders] How to send an Email with attachment

2007-03-08 Thread raz_gilad
Hi 

Preparing an Email from Flex is easy - just navigate to MailTo: as a 
URL and you'r done. you can also add all relevant parameters 
(subject,cc, etc) as needed.

My question is - how to add a file attachment when the mail client is 
outlook? 


More specifically I have 2 questions : 
1) I would like to create an image of the current screen and save it to 
server side as file. is this - dsaving an image to a file - doable ?

2) I would like to use the created file and to attach it to an email 
that the user can later on send to the world. As far as I understood 
there is a problem with adding attachments to outlook using MailTo. Is 
this true?

Many thanks 

Raz




[flexcoders] Circular Binding

2007-02-28 Thread raz_gilad

Hi

Does anyone knows how Circular Binding works? I've used the follwing
action script code and I've expected it to go into endless loop - but it
did not. Any idea why ?

BindingUtils.bindProperty(item,Threshold,txtin,text);
BindingUtils.bindProperty(txtin,text,item,Threshold);

Thanks

Raz





[flexcoders] Re: Can't seem to customize Flash ContextMenu - bug in Flex

2007-02-25 Thread raz_gilad

Hi



I think it is a bug in flex.

It happens to while assigning a JPG image as a background to a Canvas. I
overcome the problem by adding a transparent layer on top of the
background and adding the ContextMenu to it.



Raz


--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote:

 One thing to know about my app is that it has a jpg on the background
 and no backgroundColor.

 One way I found to work around it was to wrap a canvas container
around
 all my UI objects and set the backgroundColor t= 0xFF and
 backgroundAlpha = 0. I don't think a workaround like this should be
 necessary.

 Jeff

 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
 Sent: Thursday, January 25, 2007 11:11 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Can't seem to customize Flash
 ContextMenu


 Just to bump this up a bit - I'm able to confirm this behavior -
 setting a contextMenu at the Application container level sets the
 context menu for any UI objects contained within it - BUT NOT FOR THE
 BACKGROUND OF THE APP. So if there's any app background not covered by
a
 UI object you'll see the default Flash ContextMenu when you
right-click
 on it.

 How can this be handled For sure, I want to suppress the
 default context menu in my app for the entire area of the player.

 Jeff

 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
 Sent: Wednesday, January 24, 2007 3:34 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Can't seem to customize Flash
 ContextMenu


 Abdul,

 Thanks - yes, the positioning is absolute but no - the
 wrapper's width/height attributes are the same as the mxml
width/height.
 And you can get the flash context menu from anywhere on the screen
that
 there isn't a UI item. Basically the controls are resting right on top
 of the application - there's no intermediary container. It seems like
 the reference you get to the application (Application.application) is
 still one level (or so) down from the player itself. How do you get a
 reference to the player so you can set its context menu?

 Jeff

 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz
 Sent: Wednesday, January 24, 2007 3:02 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Can't seem to customize Flash
 ContextMenu



 It should work.

 But I am guessing that your Application has
 absolute width/height specified in your MXML. And your html-wrapper
has
 different (greater) width/height.

 That's the only case, in my opinion, when
 flash-player's stage gets exposed.

 Try to keep the dimensions specified in MXML and
 HTML same.

 -abdul




 On 1/25/07, Battershall, Jeff 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:

 I've got an app which I create a custom
 context menu for during
 initialization, but I've noticed that
 the context menu only shows up
 when I right click on UI objects (Tree,
 ApplicationControlBar, etc). but
 still I get the default Flash context
 menu when I right click on the
 background of the app.

 I've tried setting my custom menu to
 Application.application.contextMenu, but
 the behavior is the same.

 What am I missing here?

 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 [EMAIL PROTECTED]
 mailto:jeff.battershall%40dowjones.com
 (609) 520-5637 (p)
 (484) 477-9900 (c)





[flexcoders] Click, dbl-Click and Drag for the same Object.

2007-02-19 Thread raz_gilad

Hi



I've encountered a situation in which I had to provide both click,
dbl-click and drag for the same graphical element.



I'm kinda of new to flex so I'm not sure the solution here is the best 
- but it works…



In principal the solution handles both mouseDown and mouseDown events on
the object. In a MD event –just add a listener for mouseMove (for
drag). In a MU event thing are more complex:

1)  keep the current event time

2)  Remove the mouseMove event listener (it is not a drag...)

3)  Check vs. last MU event time if this is a Dbl click or click

a.   If it might be a click you will need to wait to setup a timer
that will wait for 1-2 seconds to fire the click.

b.  If it is a dbl click Remove the timer and do the Dbl-click
actions.



Attached is the code with Alert.show for each situation.:





public var KeepLastMouseUp:Number =0;

public var ticker:Timer = new Timer(1000,1);





public function mouseDownHandler(e:MouseEvent):void {



 KPIBox = e.currentTarget as Canvas;

 KPIBox.parent.setChildIndex(KPIBox,KPIsData.length-1);



 KPIBox.addEventListener
(MouseEvent.MOUSE_MOVE,mouseMoveHandler);



}





public function mouseUpHandler(e:MouseEvent):void {



KPIBox = e.currentTarget as Canvas;

KPIBox.parent.setChildIndex(KPIBox,KPIsData.length-1);



var dt:Date = new Date();

var tm:Number = dt.getTime();



KPIBox.removeEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);

if ((tm - 1000 )KeepLastMouseUp) { //regular click.

KeepLastMouseUp = tm;

ticker.addEventListener(TimerEvent.TIMER, runClick);

 ticker.start();

return

}



//dbl click identified

KeepLastMouseUp=0;

ticker.removeEventListener(TimerEvent.TIMER, ClickPressed);

Alert.show(Dbl Click);

}





public function ClickPressed (e:TimerEvent):void {

Alert.show(click);



}



public function mouseMoveHandler(e:MouseEvent):void{

KPIBox.removeEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);

Alert.show(start move);

}







[flexcoders] Watermark and other stuff

2007-02-11 Thread raz_gilad

Hi there

I have 2 questions for you - the graphical experts - out there:

*  What is the best way to present a picture as a watermark .I tried
using the Application Background Image Tag on a GIF but the GIF colors
were distorted and the watermark effect was lost  [:((] .  How can I
overcome this? Is someone familiar with another method?



* I'm looking for a method to turn the white background in GIF into
transparent. Is there a way for doing such an action?  [:-]



Thanks a million

Raz







[flexcoders] Connection from Flex Builder 2.0 to VSS

2007-02-04 Thread raz_gilad
Hi

Did anyone succeed in connecting the flex builder to Visual source safe?
Is the usual Eclipse plug-in org.vssplugin_1.6.1 works in this 
environment? How?


Thanks





[flexcoders] How to dynamically change the webservice

2007-02-01 Thread raz_gilad
is changing the wsdl propery of the web service enough ? or should I 
use the loadwsdl method as well?

When I'm, repating the action (in logout login case) - should I logout 
or disconnect the service before resetting the wsdl?

Thanks