Flash Builder 4 sample

40 views
Skip to first unread message

JC

unread,
Feb 17, 2011, 11:31:34 AM2/17/11
to htmlwrapper
Hi Tyler

Can we have a zip file for your flex sample project. Don't feel right
clicking on each file :).

Also I was playing with something similar to your sample. Add your
control to a UIcomponent.
I am having problem adding a spark scroller around it. Any idea?

Scroller - group - uicomponent - window

Not sure it's a problem with the width and height because it's dynamic
content from xml....

Thanks

Tyler Larson

unread,
Feb 17, 2011, 11:53:39 AM2/17/11
to htmlw...@googlegroups.com

What do you mean clicking on each file?
Is this the zip you are using?
https://github.com/talltyler/ASTRID/zipball/master

I'm not sure why your code didn't work, this setup seems fine but it might be easier if I could see the code.

-Tyler

> --
> You received this message because you are subscribed to the Google Groups "htmlwrapper" group.
> To post to this group, send email to htmlw...@googlegroups.com.
> To unsubscribe from this group, send email to htmlwrapper...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/htmlwrapper?hl=en.
>

JC

unread,
Feb 18, 2011, 12:10:13 PM2/18/11
to htmlwrapper
Hi Tyler

I was going through your https://github.com/talltyler/ASTRID/tree/master/examples/FlexDemo.
Didn't know you have all that in the big zip file too.
I got the zip file and your sample now. Thanks.

I play with the scroller a bit more. I change your demo code a bit to
add a scroller.

<s:Scroller width="200" height="200">
<s:Group>
<mx:UIComponent id="container"/>
</s:Group>
</s:Scroller>

This will not work because UIComponent width and height is not set so
the scroller will not appear.
I then add code at the end of init()

//Adjust width height after we set data
container.width = window.width;
container.height = window.height;

The scroller then work as expected.

Here comes the tricky part. In your sample your window have a fix
width and height.
In our case the size depends on the html.
I tried send in 0 width and 0 height for your Window().
and get the width and height after we set the html string.
I got some number which I am not sure what it is.

Any idea what's the best way to deal with dynamic html content width
and height?


Thanks







Reply all
Reply to author
Forward
0 new messages