[flexcoders] Re: company branding in flex??

2006-06-27 Thread dandiodati
Has any one had to do company branding? Is there not a way to change the
external style sheet dynamically?

--- In flexcoders@yahoogroups.com, "Dan Diodati" <[EMAIL PROTECTED]> wrote:
>
> I need to dynamically change the loaded external css script in within a
> flex application. It appears that the mx:Style tag imports the css and
> it gets compiled into the swf.
> There appears to be ways to change specific styles of classes or types
> using the StyleManager, but not to change the loaded external style
> sheet.
>  
> Does anyway know of a way to do this?
>  
> Dan
>







 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: setFocus is evil

2005-11-10 Thread dandiodati
I tried this but the carat is not being placed in the textinput.
The textInput gets focus, but I have to click somewhere to place the
carat in the textInput before being able to type. 
How do I get it to give focus and place the carat in the textinput so
I can just start typing the user name immediately?

Dan

--- In flexcoders@yahoogroups.com, "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
>
> Found that function getFocusManager() that makes it work quite well ;)
>  
> 
> http://www.macromedia.com/2003/mxml";
creationComplete="myInit()">
> 
> function myInit(){
> //http://www.mail-archive.com/flexcoders@yahoogroups.com/msg11231.html
> var fm = getFocusManager();
> fm.setFocus(testText);
> Selection.setSelection(0,testText.text.length)
> }
> 
> 
> 
>  
> Found in mail archives:
> http://www.mail-archive.com/flexcoders@yahoogroups.com/msg11231.html
>  
> Philippe Maegerman
>  
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Mercer, Dustin
> Sent: mardi 2 août 2005 5:03
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] setFocus is evil
> 
> 
> 
> GFI MailSecurity's HTML threat engine found HTML scripts in this
email and has disabled them.
> 
> Ok got it.  You have to use the selection object.  Here is the code
(Straight from Flash MX 204 LiveDocs
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=1659.html
) :
> 
>  
> 
> this.createTextField("myText_txt", 99, 10, 10, 200, 30);
> 
> myText_txt.text = "this is my text";
> 
> Selection.setFocus("myText_txt");
> 
> Selection.setSelection(0, 3);
> 
>  
> 
> Hope this helps :-)
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Mercer, Dustin
> Sent: Monday, August 01, 2005 7:54 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] setFocus is evil
> 
>  
> 
> Stacy,
> 
>  
> 
> I have had this problem as well :-(  I am sad to say, I hate the
focus manager.  Ok that was a little harsh... but none the less, it
has its' issues.  There is a way to set the position of the caret
though (Set the start index of the caret as well as the end, so you
can choose the text you wish to be highlighted).  I am going to try to
find that code.  In the mean time, you may want to try setFocus in the
show event or childrenCreated event.  That may fix your issue.  If
not, then the code for setting the caret position may help.  I will
find that code and post it.  Give me a few...
> 
>  
> 
> Dustin Mercer
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Stacy Young
> Sent: Monday, August 01, 2005 7:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] setFocus is evil
> 
>  
> 
> Tiny problem but it's still driving me nuts. I've got a viewstack
that's changed based on a users selection. Each time a container
within that stack is viewed an initialization script is run to
populate form elements. At the end of the process I'm using setFocus
to, well, focus on the first textinput field. The problem is the
selection on the textinput field is the length of the previous value
for that field. So if the current value of the textinput is "abc" and
the model changes to "abcdef"...When the setFocus executes it's only
highlighting from a to c
> 
>  
> 
> Hope that was clear, 'tis late...
> 
>  
> 
> Thx
> 
> Stace
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> 
> 
> 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  . 
> 
> 
> 
> 
> 
> 
> --
> **STATEMENT OF CONFIDENTIALITY** 
> 
> This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you
have received this email in error please send it back to the person
that sent it to you. Any views or opinions presented are solely those
of author and do not necessarily represent those the Emakina Company.
Unauthorized publication, use, dissemination, forwarding, printing or
copying of this email and its associated attachments is strictly
prohibited.
> 
> We also inform you that we have checked that this message does not
contain any virus but we decline any responsability in case of any
damage caused by an a non detected virus.
> --

[flexcoders] How to prevent events from passing through upper components

2005-11-05 Thread dandiodati
I have a TitleWindow object that is not a popup window, but is in a
canvas and floating over other content.

When I click on parts of the TitleWindow it appears that mouse events
get passed through the TitleWindow to components behind it. Is this
correct behavior or a bug? And is there a way to prevent events from
passing through the TitleWindow?
I'm running into this because I need to perform an effect on a
TitleWindow, but effects do not work on Popup modal windows, so I had
to make my own. This works except for events passing through to
components behind.

Any Ideas?







 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/