Forums

Full Version: Flare in Flex Need ScrollBars
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using flare in Flex. When I render the graph it is going outside the canvas. I really don't want to add pan/zoom control. How can I add scroll to flare visualization. Help me.

Regards,
Jaga
Hi everyone,

Finally I found the problem.While adding flare as Flex component using FlareVis, by default bounds are set as 500 x 500

Code:
<flexvis:FlareVis id="graph" includeInLayout="true" label="Graph" height="10000" width="10000"/>

give the height and width to be greater number as given above.

alternatively set clipContent property to false

Code:
<flexvis:FlareVis id="graph" includeInLayout="true" label="Graph" clipContent='false'/>

Once this is done Scroll bars will appear.

Regards,
Jaga
Great Jaga,

thanks for sharing the solution with us.

cheers

martin

Guest

How do you use this in an actionscript project?

codebreaker Wrote:Hi everyone,

Finally I found the problem.While adding flare as Flex component using FlareVis, by default bounds are set as 500 x 500

Code:
<flexvis:FlareVis id="graph" includeInLayout="true" label="Graph" height="10000" width="10000"/>

give the height and width to be greater number as given above.

alternatively set clipContent property to false

Code:
<flexvis:FlareVis id="graph" includeInLayout="true" label="Graph" clipContent='false'/>

Once this is done Scroll bars will appear.

Regards,
Jaga
How to use the code(flex)?
(25-06-2008 06:48 AM)codebreaker Wrote: [ -> ]Hi everyone,

Finally I found the problem.While adding flare as Flex component using FlareVis, by default bounds are set as 500 x 500

Code:
<flexvis:FlareVis id="graph" includeInLayout="true" label="Graph" height="10000" width="10000"/>

give the height and width to be greater number as given above.

alternatively set clipContent property to false

Code:
<flexvis:FlareVis id="graph" includeInLayout="true" label="Graph" clipContent='false'/>

Once this is done Scroll bars will appear.

Regards,
Jaga
i hope some one here could help us in this issue
think it is very important to know how to use a scrollbar with actionscript without the use of the mxml format

thanks in advace and have a great week

avi
(21-10-2008 03:55 PM)xperetz Wrote: [ -> ]i hope some one here could help us in this issue
think it is very important to know how to use a scrollbar with actionscript without the use of the mxml format

thanks in advace and have a great week

avi

This is not specific to flare or FlareVis. Basically, like any other display object, create the object, set its properties and add it to its parent display object.

Without actually setting up and running this code, I think something like this should work.

Code:
var graph:FlareVis = new FlareVis;
graph.includeInLayout = True;
graph.label = "Graph";
graph.height = 10000;
graph.width = 10000;
graph.clipContent = False;

// where container is some sort of UIcomponent container
container.addChild(graph)
Hi all,
first i would like to thanks ClintD for his replay.
this example generalize the transformation form mxml to actionscript code
my original question was: if there is an elegant way to show\ hide scrollbar as demand (when vis objects overlap their bounds)
thanks
have a great week
avi
Hi all
at http://www.goodguide.com/contributions there is a new demo application. I noticed, they did fantastic work with the scroll bar
showing \ hidding it by the current vis size
does anyone can share thoughts about how to do such thing?
thanks!
avi
Reference URL's