Re: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-26 Thread Manish Jethani
On 10/24/05, Ashish Goyal [EMAIL PROTECTED] wrote:

 mx:Repeater
 mx:HBox
 mx:VBox marginTop=5
 mx:Image/
 /mx:VBox
 mx:Text/
 /mx:HBox
 /mx:Repeater

I think in the above example you want to get rid of the VBox and set
the verticalAlign of the HBox to middle


 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/
 




RE: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-25 Thread Merrill, Jason










Sending this again because it never seems to
have gone through:



Thanks Ashish  that works now.
Seems like a lot of work just to get it to render as HTML does, but oh
well. I guess there is a lot to learn about layout in Flex 2.



By the way, in the F2 Alpha, I could not get
older versions of the bullet.gif to go away, no matter how many times I deleted
the file from the file system in the project folder, and the bin folder Flex
produces. I even deleted it in Flex and re-imported it, made sure it was
updated in the project and bin folders, deleted my browser cache, etc.
Still showed the old graphic when it compiled. The only way I could get
it to update with the new graphic was to comment out the line: mx:Image
source=@Embed('assets/bullet.gif')/ , then compile, then un-comment the line and
compile again. Then the graphic was updated. Weird  it was like
Flexbuilder keeps some other cache somewhere else outside the project folder. 



Thanks for
the help.







Jason
Merrill | E-Learning Solutions |
icfconsulting.com 





















NOTICE:
This message is for the designated recipient only and may 
contain privileged or confidential information. If you have received it in 
error, please notify the sender immediately and delete the original.Any 
other use of this e-mail by you is prohibited.






--
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] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-25 Thread Muzak
Yeah, having the same issue (caching) when embedding assets.
When embedding specific items from a swf file it either tells me it can't find 
the specified asset or when updating the swf, I get 
the old version.

Usually, cleaning the project seems to do the trick (Project -- Clean).

regards,
Muzak

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 25, 2005 6:44 PM
Subject: RE: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?


Sending this again because it never seems to have gone through:



Thanks Ashish - that works now.  Seems like a lot of work just to get it
to render as HTML does, but oh well.  I guess there is a lot to learn
about layout in Flex 2.



By the way, in the F2 Alpha, I could not get older versions of the
bullet.gif to go away, no matter how many times I deleted the file from
the file system in the project folder, and the bin folder Flex produces.
I even deleted it in Flex and re-imported it, made sure it was updated
in the project and bin folders, deleted my browser cache, etc.  Still
showed the old graphic when it compiled.  The only way I could get it to
update with the new graphic was to comment out the line: mx:Image
source=@Embed('assets/bullet.gif')/ , then compile, then un-comment
the line and compile again. Then the graphic was updated. Weird - it was
like Flexbuilder keeps some other cache somewhere else outside the
project folder.



Thanks for the help.





 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/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/
 




RE: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-24 Thread Merrill, Jason










OK  thanks Ashish, getting
closer. However, the text drops down and to the right from the bullet,
and the bullet is completely snug at the far and upper left. 



When rendered as straight HTML it doesnt
do this. i.e.



mx:Text

 mx:htmlText

  ![CDATA[img
src=''/Test HTML Text]]

 /mx:htmlText

/mx:Text



That positions
the text and graphic completely different. 



See the differences here: http://cmt.icfconsulting.com/temp/AFDW/AFDWTOC.html



Any
ideas? Thanks.





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 






















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish Goyal
Sent: Monday, October 24, 2005
3:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] F2
Alpha: Repeaters and dynamic HTML text?





Wrap your Image and Text tag in HBox
inside Repeater.



-Ashish











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Merrill, Jason
Sent: Monday, October 24, 2005
12:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] F2 Alpha:
Repeaters and dynamic HTML text?

Full
of questions today. So using Flexbuilder 2 Alpha, I want to use a
repeater to show text, and so this works fine:



mx:Repeater id=CMMetricsTextRepeater 

dataProvider={dataService.result.dashboard.categories.category}

mx:Image source=@Embed('assets/bullet.gif') /


mx:Text text={CMMetricsTextRepeater.currentItem.label}/

/mx:Repeater



However, I want
that bullet graphic to appear next to the text, but it doesnt 
the bullet appears, but the text that follows drops to the next line. So,
I thought I would try HTML text, but Im not sure how to use the dynamic
data of a repeater since the text is supposed to be enclosed in a CDATA
tag. For example, this does not work:



mx:Repeater id=CMMetricsTextRepeater 

dataProvider={dataService.result.dashboard.categories.category}

 mx:htmlText


![CDATA[img src=''/


{CMMetricsTextRepeater.currentItem.label}


]]

 /mx:htmlText

/mx:Repeater



What
happens is the {CMMetricsTextRepeater.currentItem.label} is shown literally since its in the CDATA tag.
How do I use repeaters and dynamic HTML text? Do I *have* to use Actionscript for this?
If so, how? Thanks.





Jason
Merrill | E-Learning Solutions |
icfconsulting.com 

































































NOTICE:

This
message is for the designated recipient only and may contain privileged or
confidential information. If you have received it in error, please notify the
sender immediately and delete the original.Any other use of this e-mail
by you is prohibited.









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



  











RE: [flexcoders] F2 Alpha: Repeaters and dynamic HTML text?

2005-10-24 Thread Ashish Goyal





Text and image are aligned to the top as 
designed.Since your bullet image is small, itgives an appearance 
thattext is renderedbelow the image. If possible create a bigger 
bullet image by adding some white space on the top of the image. If 
youwant to use the same image then add that image to a VBoxand set 
marginTop to some value say 5.

Your code would look like:

mx:Repeater
 
mx:HBox
 mx:VBox 
marginTop="5"
 
mx:Image/
 /mx:VBox
mx:Text/ 

 /mx:HBox
/mx:Repeater

-Ashish


  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, 
  JasonSent: Monday, October 24, 2005 1:16 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] F2 Alpha: 
  Repeaters and dynamic HTML text?
  
  
  OK  thanks Ashish, 
  getting closer. However, the text drops down and to the right from the 
  bullet, and the bullet is completely snug at the far and upper left. 
  
  
  When rendered as straight 
  HTML it doesnt do this. i.e.
  
  mx:Text
   
  mx:htmlText
   
   ![CDATA[img 
  src=''/Test HTML Text]]
   
  /mx:htmlText
  /mx:Text
  
  That 
  positions the text and graphic completely different. 
  
  
  See the differences here: 
  http://cmt.icfconsulting.com/temp/AFDW/AFDWTOC.html
  
  Any ideas? 
  Thanks.
  
  
  Jason Merrill 
  | E-Learning Solutions | 
  icfconsulting.com 
  
  
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Ashish 
  GoyalSent: Monday, October 
  24, 2005 3:53 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] F2 Alpha: 
  Repeaters and dynamic HTML text?
  
  Wrap your Image and 
  Text tag in HBox inside Repeater.
  
  -Ashish
  




From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Merrill, JasonSent: Monday, October 24, 2005 12:48 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] F2 Alpha: 
Repeaters and dynamic HTML text?
Full 
of questions today. So using Flexbuilder 2 Alpha, I want to use a 
repeater to show text, and so this works fine:

mx:Repeater 
id="CMMetricsTextRepeater" 

dataProvider="{dataService.result.dashboard.categories.category}"
mx:Image 
source="@Embed('assets/bullet.gif')" 
/
 
mx:Text 
text="{CMMetricsTextRepeater.currentItem.label}"/
/mx:Repeater

However, I 
want that bullet graphic to appear next to the text, but it doesnt  the 
bullet appears, but the text that follows drops to the next line. So, 
I thought I would try HTML text, but Im not sure how to use the dynamic 
data of a repeater since the text is supposed to be enclosed in a CDATA 
tag. For example, this does not work:

mx:Repeater 
id="CMMetricsTextRepeater" 

dataProvider="{dataService.result.dashboard.categories.category}"
 
mx:htmlText
 
![CDATA[img 
src=''/
 
{CMMetricsTextRepeater.currentItem.label}
 
]]
 
/mx:htmlText
/mx:Repeater

What 
happens is the {CMMetricsTextRepeater.currentItem.label} is 
shown literally since its in the CDATA tag. How do I use repeaters and 
dynamic HTML text? Do I *have* to use Actionscript for 
this? If so, how? Thanks.


Jason Merrill 
| E-Learning Solutions | 
icfconsulting.com 























  

NOTICE:
This 
message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify 
the sender immediately and delete the original.Any other use of this 
e-mail by you is prohibited.






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