Flex :: Reducing Space Between Two Bars+?
Feb 2, 2012Is it possoble to reduce the space between two bar of different elements. If yes with which property?
View 1 RepliesIs it possoble to reduce the space between two bar of different elements. If yes with which property?
View 1 RepliesI have used printjob in my project for printing. I have a stage with images, shapes and text etc in printing group. While printing, it takes some two to three minutes to getting print a single page. The Print Spooler window shows that 60MB for each page.
reduce this file size or how can i print without taking this long time.
I have created a Bar chart(having total 4 bars), wherein there is a gap between these bars. how to remove this gap between the bars as there is no inbuild property available...
View 1 RepliesI'm trying to use a BarChart in Flex. I'd like it to order the bars according to the order of the ArrayCollection I fed it. i.e. data at index 0 should be the first bar on top.However, Flex is giving me the exact reverse order. i.e. data at index 0 is not the last bar in bottom. How could I tell the BarChart to reverse the order other than reversing the order of my ArrayCollection?Here's the block of code in my script tag:
[Bindable]
private var optionsArray:ArrayCollection = new ArrayCollection([
new VotingOption('Yes, it rocks!', 'yes', 5),
[code].....
I'm currently learning Flex, and am having the hardest time getting scroll bars to work. In short, I'm making a giant form for users to fill out, contained within a viewstack component. The user will type up information in one view, and it will be displayed in the other. But right now in the first canvas I have components that run off the screen and flex doesn't automatically add a scroll bar, so I added 'verticalScrollPolicy="on"' to my canvas. Now, while it gives me a scroll bar, it gives me an empty scroll bar. I still cannot move it up or down, meaning components are still trapped off the bottom of my screen. Am I missing something simpleEdit - I'm using Adobe Flex Builder 3, and the components it lets you drag in. http://img12.imageshack.us/img12/218/problem1f.jpg This is a picture of the problem, and i guess relavent code would be.
<mx:Application xmlns:mx="adobe.com/2006/mxml" layout="absolute" width="830" height="835">
<mx:ViewStack x="10" y="72" id="viewstack1" width="790" height="751" >
<mx:Canvas label="Design Mode" width="100%" height="100%" verticalScrollPolicy="on"
[code].....
I have a TileList in flex, and need to be able to detect if the scroll bars are shown or not, so I can change the size of the items it is laying out.
ScrollPolicy is set to auto, but I need a variable like CurrentScrollPolicy which will change from off to on depending on the content.
I'd like to create cool lines and bars charts dynamically, from xml data. Since I'm not an expert in Flash, I wanted to get a tool to accomplish this. So far, I've tried Flex Builder 3, but I can't figure how to draw the chart dynamically, as the xml data is constantly changing. I just see examples on the internet with xml like "Orange, Banana, Apple", when what I'd like to see is something like "......" and get each item's value and attributes to show in the chart.
View 1 RepliesIf I've got a Container with a child component that is off either the top or the left hand side:
Is there any way to get scroll bars to show up? ie, so I can scroll up and get the button back in view, the same way I could if the button was off the bottom right side?
How can I color the ColumnSeries differently based on data. I need something like a labelFunction only for the column fill.
EDIT: Attached image for JAX to understand. :)
do I have to necessarily have a application container as the root node in my mxml file?econd, I was reading this document on adobe's website and it says that the spark application container has no scroll bars by default and they can be added by using a custom skin. (Look at the table comparing the mx and spark application containers). But my problem is that my application container already has scroll bars by default and I want to get rid of them. I have a main application container with a custom child component that already has scroll bars. I just want the child to have the scroll bars and not the main application
View 2 RepliesI have to necessarily have a application container as the root node in my mxml file? Second, I was reading this document on adobe's website and it says that the spark application container has no scroll bars by default and they can be added by using a custom skin. (Look at the table comparing the mx and spark application containers). But my problem is that my application container already has scroll bars by default and I want to get rid of them. I have a main application container with a custom child component that already has scroll bars. I just want the child to have the scroll bars and not the main application. Right now I get 2 scroll bars nested within each other.
View 2 RepliesI building a website and i have animations from after effects I will be importing into flash. Any time a menu button is clicked it triggers the flash timeline and plays the corresponding anumation embedded in different flash graphics. Also before the webpage moves to the main page an Flv is streamed (90seconds log. It is not embedded it is streamed). I have about 260 frames of jpegs Already compressed to about 70k each for each image. how I can reduce my file size? also my time line is 2750 frames long. This is for a client and the client requested all the animation, so how can I make this work, currently my swf file is 14.6mb
View 4 RepliesI could really use some help here, I'm trying to reduce the size of my animation for obvious reasons, usually ends up about 4mbs, im exporting from swift 3d, about 200-250 frames depending on editing. When I import the animation into flash to work with my website the resulting file is too large I think :P I was told to export from swift in avi and then import to flash after converting. Thats definetly reduced the filesize, but when I import to flash cs5 I get an empty symbol even after export from flash, nothing shows in the symbol.Can anyone tell me if im doing this right, or another way to reduce the filesize.
View 1 RepliesWhen insert an image into TLF in flex3, I found that image in TLF is displayed in a square area. so there is some space at the top of the image. See the attached image for this problem. How to remove this space? I try the following method, But it doesn't work!
[Code]....
I have a game were there are a lot of little guys moving around on the screen independently of each other and I have a function for zooming in and zooming out. I want the guys to look good when I zoom in but not lag when I zoom out and show a lot of them. What I'm thinking of doing is just making different levels of detail that it uses for the guys at different zoom distances.I don't know what makes vector graphics lag. Is it the number of shapes it has to redraw every time something moves? Or is it just determined by the number of objects on the screen at a time regardless of detail? I want to know if it would make a big difference in lag before I go redraw everything because it would be a big task and I don't want it to be for nothing.
View 1 RepliesI am making a websites with fairly large videos in the background.The site is extremely heavy for the cpu and I was wondering if any of you guys know a trick on how to make flv streaming less heavy.Here are all my specs :
Large flv (920 x460), with alpha channel (transparent background), Max data rate:300kbs,
codec : On2 VP6 encode alpha channel, framerate : same as source.
Using progressive download
Video plays in a flvplayback instance nested in a swf that is loaded and added to the stage by an other swf.
Embed in the html page with swfobject, wmode = opaque.
Movie playing at 31 fps.
I had display in link as follows. Three Links on left hand side ,two links on right hand Side and in between Some space has to be there. Please suggest how to do this. I have an idea's please suggest which is possible and the technical difficulties.For three Links i thought to put LinkBar and for the left hand side i thought two apply two LinkButton .Below the links I will place a canvas in that I will add viewstack for the LinkBar and VBox for the LinkButton when it is clicked.
View 1 RepliesI have a switch statment in my action script class. I have a function onKeyDown (event: KeyboardEvent) which contain a switch statement.which control the different keys. But now I want to handle the same functionality which TAB key is doing using two keys CTRL and SPACE key. I want add a case more in my switch statement first I pressed CTRL and then SPACE key then a a specific funtion is called. How two keys used in my switch statement.......
private function onKeyDown(event: KeyboardEvent) : void{
if (popUp.displayPopUp){
switch (event.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
[Code] .....
I just added columnWidthRatio: 1; to my mx|ColumnChart to fatten up my columns a little. But now, there's no space between the X axis and columns, and between the columns themselves, so how do I increase this space?
View 1 RepliesI have a 3D animation that is rendered to bmp frames.I have inserted the animations into a Flash doc.After editing, my final Flash movie/file is 20MB.what are the best ways of reducing or compressing the file size down to a resonable "web-ready" level? Around 8MB or lower
View 2 RepliesI'm trying to scale my timebar according to the time. So the longer the time passed the timebar will reduce. It's kind of opposite from the preloader bar. But when I tried my loading bar is increasing towards the left. Is there a way I can make it look like the bar is reducing?
function countTime():void{
var startTime:int = getTimer();
// this is for the seconds
var seconds:int = Math.floor(startTime/1000);
// this is for the minutes ...
var minutes:int = Math.floor(seconds/60);
seconds -= minutes*60;
time_mc.scaleX= -second
trace(minutes +":"+seconds);
}
I imported a clean looking high-res jpeg into Flash CS4.Then using properties, I reduced it with the position and size function.I reduced it by half.When I do this, the image is not clean and sharp any more but pixelly.In the image the arrow points to the reduced image on the stage and when previewed.Also, you'll see the size numbers display too.If I need to reduce images and logos like this, is there a better way to do this so the image looks sharp when reduced?I am only interested in knowing how to do this using the "tools" not actionscript.
View 5 Repliessome buttons which are cloud shaped. When I import them from photoshop as pngs they some with a square tranparent backgroud.This makes the "hand" appear outside the cloud shapes as well as inside them (like it should).
View 1 RepliesI was laying out my Flex components using mxml and had them working correctly. But then I wanted to switch them over to Actionscript because I wanted them to extend a base component that provides default functionality.
I've go the code working except that my components that used to fill the entire space using width="100%" and height="100%" appear to display just using the default sizes. Do you know How I can get them to take up the entire space again?
Here is a test component I am playing with that exhibits the problem.
Main.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:bbq="components.*"
[code]....
Is it possible to tell flex to display a chart with no visible axis? I want the contents of the chart to take up all the available space. I can set the visibility on the AxisRenderer to false which will hide the axis but that leaves an empty space where the axis would usually be. How can I remove this empty space?
<mx:horizontalAxis>
<mx:DateTimeAxis id="xAxis" dataUnits="hours" />
</mx:horizontalAxis>
[Code]....
I've tried setting the height on the renderer but that has no effect, and there is no height style on the axis itself.
how can I remove the space between my video and control bar.I tried to change margin and padding to all element without success. There is still a thin white space above the controls.[code]
View 1 RepliesI have a flex app that uses AMF to talk to a Spring Java backend. How do I get the values of cookies that have been set by the server and are being sent back by AMF?
View 1 RepliesHow to improve the space between Flex Checkbox and it's label ?
View 1 RepliesThe behavior I'm trying to prevent is after a user clicks on a button, the button retains focus, and then if the user hits the space key, the button fires again. So I thought it could be solved either by setting the focus elsewhere, or by having the button ignore the space key. I've tried adding the following keyDown event listener on the button, but it didn't work.
private function btn_keyDown(event:KeyboardEvent):void {
// try to ignore spaces, i.e. don't click on SPACE when it has focus
if (event.keyCode == Keyboard.SPACE) {
}
}
I tried changing focus by doing the following, at the end of the function that's called when the button is clicked:
stage.focus = parent;
At my job I frequently have to create Flash banners for major newspaper's websites. The specs that usually come in require a max file size of 30k or so. Usually my art department will hand me 3 or 4 screens that they want to simply move through in a loop. No biggie, until they start adding images to the files.
When I complain to them that the images are making the file sizes too big I am usually queried as to how other advertisers on these sites have full video in their ads. I understand that there are pre-loaders as well as allowed larger file sizes if you pay more for the ads.
getting image sizes down in Flash so that the images don't end up looking horrible?