Re: [flexcoders] Icons in menu - not working

2006-08-25 Thread Doug Arthur



Can someone please send me this same file as an example?
 
Thanks!
- Doug 
On 6/28/06, Kelly Birr <[EMAIL PROTECTED]> wrote:







Thank you,  that is the solution I cam up with also.  It's nice to know that this is not the intended behavior, and that hopefully some day I can go back to static embedded images.  I use them very successfully for button icons.

 
- Kelly


From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Deepa SubramaniamSent: Wednesday, June 28, 2006 4:46 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Icons in menu - not working 



Hmmm – well our Embed expert says that you can make the variable for the embedded asset static, but that seems to be your problem. I'll file a bug on your behalf, but for now, don't make exitOn static and the icon should show up.

 
Let me know if it doesn't –
 
Deepa
Flex SDK 
 
 




From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Kelly BirrSent: Wednesday, June 28, 2006 4:26 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Icons in menu - not working
 




I've been racking my brain trying to get icons in the menu bar.  I think I'm doing exactly what the docs say but I cannot get any icon to render.  The label and actions work perfectly but the icon does not show up.  The icon is embedding properly as I can see it in the "icon" property of a button in the same file.  I've also tried putting the path to the icon file in the xml, no joy.


 

My Menu XML Is:



            
        



 

My MXML is:



   

cornerRadius="3" itemClick="menuHandler(event)" labelField="@label" iconField="@icon" />

    I cannot find any samples anywhere with icons in the menu,  Is this still supported?  Can anyone tell me what i'm doing wrong?  I am using Flex 
2.0 RTM

 

- Kelly

 

__._,_.___





--
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] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam










Just to be clear, this is not a bug. This
is just a fact of life since we’re using some sort of indirection of
specifying an icon attribute in the dataProvider and then using an iconField
property to look up that reference. So, in cases like that the embedded asset
needs to not be a static variable. Other cases without this indirection, like a
Button icon, will work correctly.

 

-deepa

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam
Sent: Wednesday, June 28, 2006
4:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Icons in
menu - not working



 

Yup, you are correct. I just talked to
Roger about this. 

 

What is happening is that MenuBar checks
to see if an iconField is set. In your case it is, and the MenuBar looks to see
if a Class, exitOn, exists with that name in the application or a property on
the document with that same name exists. It does, however you cannot access a
static var off an instance, only off the class. So, the lookup in the MenuBar
code fails.


Your workaround of making the embedded asset var non-staic is correct.

 

HTH,

deepa

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Icons in
menu - not working



 

I found my problem.  It appears that the menu cannot
bind to static vars for images.  I solved the problem by specifying 

{ public const myMenuIcon:Class = GlobalIcons.MyCoolIcon;
}  where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout
the local name "myMenuIcon" in the @icon field of the xml.

 

- Kelly

 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Icons in
menu - not working



I've been racking my brain trying to get icons in
the menu bar.  I think I'm doing exactly what the docs say but I
cannot get any icon to render.  The label and actions work perfectly
but the icon does not show up.  The icon is embedding properly as I
can see it in the "icon" property of a button in the same file. 
I've also tried putting the path to the icon file in the xml, no joy.





 





My Menu XML Is:











    
    
    
    
    











 





My MXML is:











  
 





 
   cornerRadius="3"
itemClick="menuHandler(event)" labelField="@label"
iconField="@icon" />





    
I cannot find any samples anywhere with icons in the menu,  Is this still
supported?  Can anyone tell me what i'm doing wrong?  I am using Flex
2.0 RTM





 





- Kelly



 







__._,_.___





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam










Yup, you are correct. I just talked to
Roger about this. 

 

What is happening is that MenuBar checks
to see if an iconField is set. In your case it is, and the MenuBar looks to see
if a Class, exitOn, exists with that name in the application or a property on
the document with that same name exists. It does, however you cannot access a
static var off an instance, only off the class. So, the lookup in the MenuBar
code fails.


Your workaround of making the embedded asset var non-staic is correct.

 

HTH,

deepa

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Icons in
menu - not working



 

I found my problem.  It appears that the menu cannot
bind to static vars for images.  I solved the problem by specifying 

{ public const myMenuIcon:Class = GlobalIcons.MyCoolIcon;
}  where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout
the local name "myMenuIcon" in the @icon field of the xml.

 

- Kelly

 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Icons in
menu - not working



I've been racking my brain trying to get icons in
the menu bar.  I think I'm doing exactly what the docs say but I
cannot get any icon to render.  The label and actions work perfectly
but the icon does not show up.  The icon is embedding properly as I
can see it in the "icon" property of a button in the same file. 
I've also tried putting the path to the icon file in the xml, no joy.





 





My Menu XML Is:











    
    
    
    
    











 





My MXML is:











  
 





 
   cornerRadius="3"
itemClick="menuHandler(event)" labelField="@label"
iconField="@icon" />





    
I cannot find any samples anywhere with icons in the menu,  Is this still
supported?  Can anyone tell me what i'm doing wrong?  I am using Flex
2.0 RTM





 





- Kelly









__._,_.___





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Icons in menu - not working

2006-06-28 Thread Kelly Birr





I found my problem.  It appears that the menu cannot bind to static 
vars for images.  I solved the problem by specifying 
{ public const myMenuIcon:Class = GlobalIcons.MyCoolIcon; }  
where 
GlobalIcons.MyCoolIcon is declared exactly as below. Then pout the local name 
"myMenuIcon" in the @icon field of the xml.
 
- Kelly


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Kelly 
BirrSent: Wednesday, June 28, 2006 4:26 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Icons in menu - not 
working

I've been racking 
my brain trying to get icons in the menu bar.  I think I'm doing 
exactly what the docs say but I cannot get any icon to render.  
The label and actions work perfectly but the icon does not show 
up.  The icon is embedding properly as I can see it in the "icon" property 
of a button in the same file.  I've also tried putting the path to the icon 
file in the xml, no joy.
 
My Menu XML 
Is:

    
    
        
    

 
My MXML 
is:

   
cornerRadius="3" 
itemClick="menuHandler(event)" labelField="@label" iconField="@icon" 
/>
    
I cannot find any samples anywhere with icons in the menu,  Is this 
still supported?  Can anyone tell me what i'm doing wrong?  I am using 
Flex 2.0 RTM
 
- 
Kelly 
__._,_.___





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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] Icons in menu - not working

2006-06-28 Thread Deepa Subramaniam










Hmmm – well our Embed expert says
that you can make the variable for the embedded asset static, but that seems to
be your problem. I’ll file a bug on your behalf, but for now, don’t
make exitOn static and the icon should show up.

 

Let me know if it doesn’t –

 

Deepa

Flex SDK 

 

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr
Sent: Wednesday, June 28, 2006
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Icons in
menu - not working



 









I've been racking my brain trying to get icons in
the menu bar.  I think I'm doing exactly what the docs say but I
cannot get any icon to render.  The label and actions work perfectly
but the icon does not show up.  The icon is embedding properly as I
can see it in the "icon" property of a button in the same file. 
I've also tried putting the path to the icon file in the xml, no joy.





 





My Menu XML Is:











    
    
    
    
    











 





My MXML is:











  
 





 
   cornerRadius="3"
itemClick="menuHandler(event)" labelField="@label"
iconField="@icon" />





    
I cannot find any samples anywhere with icons in the menu,  Is this still
supported?  Can anyone tell me what i'm doing wrong?  I am using Flex
2.0 RTM





 





- Kelly








__._,_.___





--
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
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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.



  






__,_._,___