I need to be able to collect data from an XML file such as images and text, and display them in a grid.I was thinking of using the DataGrid, but wanted to ask advice about it.I'm going to be storing movieclips in the grid.The easiest way to think of it is a shopping cart (I'm not building a shopping cart, but it's the best description I can think of).
I was thinking of storing nested movieclips, but I guess the other way to do this would be to take the image path and item details from the XML and simply place them into the grid?I think what I'm asking is, what would you suggest the best method for building a grid of images would be, and would you include the details for those images as something separate in the grid, or would you make a class which takes those details and itself is placed into a grid?
I'm currently working with the OLAPDataGrid component and got stuck at a relatively simple task: I want to style the last row of the grid differently from the rest, so my cell item renderer needs to know whether he's rendering the last row with content in the overall grid, including those rows currently not rendered because they are outside the visible grid space. AdvancedGridListData's rowIndex property only gets me the row index of the renderer relative to the range of visible grid rows, i.e. when I scroll down the grid, a data item with an index greater than 0 gets the rpw index = 0.
I have a Flex Column Chart that has a range of 0 - 6 on the y-axis. I have added the following block to change the default colour of the horizontal grid lines to black.
This works fine for all but the horizontal grid line at the top of the chart (at y=6). If I change the maximum value for the y-axis to something different then this new max doesn't have the formatting applied (but all the others do).
how do I get the top line to be black like the rest of the grid lines?
I've hit a brick wall here. I have a Flash file that displays fine in IE. It also displays fine when ran as a SWF. However, in FireFox, it does not display my scroller. I developed the Scroller component dynamically... everything is drawn from scratch, no library movieClips, etc. I'm starting to think that could be the cause? I've tried many different things:
I've hit a brick wall here. I have a Flash file that displays fine in IE. It also displays fine when ran as a SWF. However, in FireFox, it does not display my scroller. I developed the Scroller component dynamically... everything is drawn from scratch, no library movieClips, etc. I'm starting to think that could be the cause? I've tried many different things: Changed the HTML code to bare bones embedding code.Recompiled in Flex.... same result!Tested on another computer... it worked fine! However, I tested on another computer with FireFox... same problem.
It's so weird.I seperated the Image Slide show component from the Scroller... the scroller had the same effect... didn't display in FF.Played around with WmodeChecked my code for addChild problems, visibilty, alpha properties... nothing out of the ordinary.Asked God.Drank some Gin.Took a break and came back to it.I've reseached Google and the most I could come up with is to compile using FP10. It is FP10. I'm using CS3 and FlashDevelop. When I right click on my Flash file, it does indeed display FP10. Same with Flex.
I've got a comboBox component on the stage, instance name 'combo'. I want to style the text. I followed the adobe instructions, but they seem not work, and I get no errors.
Code: import fl.data.DataProvider; import flash.text.TextFormat; var tf:TextFormat = new TextFormat();
I need to create a simple multiplication grid where children will fill the grid. Its an empty grid at the begining, when they start the time start as well.Its a grid of 10 x 10. when they enter the last number, the grid should show what they did wrong and the time they spend. It's an idea of how it could work but if anyone has something that looks like this.
I want to make a square grid of fixed side length but varying grid number using code.That is, the number of grids should be specified by the user (say 3*3) and after pressing a button, the stage should be broken into 3*3 grids.I don't want any code, just a method on how to do it. I have tried it by using simple loops but the method just fails for no reason I can figure.
Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.
I really like the thumbnail gallery for its simplicity and beauty. But I would like to ad or vertical scroller (I'm unable to find it here too, maybe I'm blind, just I'm more at the end of my seeking options) or a make a grid thumbnails, that will show 2 columns of thumbs and 5 pictures in each columns, then under the 2 columns i would like to ad a sort of arrow or button that if my gallery have more then 10 pictures it will go on the next thumbnail list. I'm not looking for any extra fading effects or special movements. Just would love to have a single thumbnail grid on side, with option to have lists of thumbnails by 10 if there is more then 10 pictures or so.
I have a mx:Grid component in my flex application. But I would like to resize it by clicking and dragging in the border. This component doesn't allow doing that.I want to put a panel in each gridItem of this Grid component and resize it.
I'm building a small editor that allows users to place electrical components onto a grid so that they can see how electricity works. I have built a grid using an array and for loops and attach movieclips dynamically to that grid. What I want the moviclips to do is to look in the four spaces either side of itself i.e. up, down,left and right.I have managed to pull the grid coordinates out of the grid which enables me to tell the clip which grid space to look at but have been unable to successfully get the code to work.Here is my code:
I'm trying to code the snap to grid functionality. The dragged object should snap to the grid if the distance between the object bounds and a grid line is less than 5px. I found a way to do it if the object's rotation is 0 but it doesn't work if I rotate the object. I need a different approach. Can you point me into the right direction with the algorythm or any source code?
I am trying to create a puzzle like game (a chinese puzzle game called tangram). I am wondering what kind of functions should I use to create a "triangular" grid i.e. something similar to this ?[URL] What should I do to make the movie clips to perform the "snap to grid" effect to this grid?I have tried to draw my own grid and used the "cacheAsBitmap" function to implent it, however it doesnt seems to be working.
I am a newbie in flash and I am trying to create a puzzle like game. I am wondering what kind of functions should I use to create a "triangular" grid i.e. something similar to this ? [url]... What should I do to make the movie clips to perform the "snap to grid" effect to this grid?I have tried to draw my own grid and used the "cacheAsBitmap" function to implent it, however it doesn't seems to be working.
I'm trying to dynamically draw out an isometric grid but I'm hitting a few problems, currently I'm using a matrix transformation to get the grid to look more isometric that tile based but it has it's problems so I want to add the grid with out using the matrix transformations. currently I have..
[Code]....
I tried to draw it out using Sin ,Cos and Tan functions to try to set the coordinates but it didn't behave like I had expected,
I created a flash file on my PC and exported it. When I view it online with my PC, it looks perfect...but when I look at it on a MAC, the font type is different than what it should be. I tryed different browsers on the MAC and it still displays the wrong font.
I've recently installed CS4, and I've just gotten around to using Flash. Unfortunately, there's a big problem. Only the background color displays while working on an .fla, no matter what you place on it. The .swf is fine, but it's not very useful without being able to see what you're doing. I've tried it with an existing CS4, CS3, and new files, and they all have a blank display. I haven't been able to find anything relevant to this, and it's really disconcerting to hit a dead end on the first try.
I've embedded an FLV file (created in Premiere Pro CS4) using Dreamweaver CS4 and I cannot get the actual video to show/play in any browser. If you right click where the video is located on the page, or highlight everything on the screen, you can see the defined outline of it, but nothing ever actually loads/shows. I uploaded all of the files that Dreamweaver created with its little FLV embed wizard, so I'm not sure what exactly I'm missing
My problem is when i make a preloader i allways seem to get this problem i dont know if it is what everyone elese gets but when i make a preloader and add my content to it i get these issues. the preloader only displays when it get to like 50% whats the deal with this??? it never ever seems to start from 0% then work its way to 100% it allways starts wrong ????? does anyone have a solution to this because it is really bugging me
I am in the midts of this application, and it seems as when i pass in an array into a class, and try to place the same object in a diffrent context on the stage. It remembers the settings of that object from the previous class, even though i assign it as a new instance. Talking about Loader
the array looks like this
_meta:Array = {category: loader_object};
My document class
_firstview = new FirstView(); _firstview.object = _meta[0].category; //This is placed through an access modifier _secondview = new SecondView(); _secondview.object = _meta[0].category;
[Code]....
The object from the first screen now disappears and it shows up on the second screen, but it should appear on both screens
I tried to copy the array and the object, instantiated new Loader object, but it is still giving me the same results
why there would be this glich, how can an object not be copied properly, if it is stored in private variables within the class
i am trying to add a uicomponent which contains an object of a custom class the extends UIcomponents and i want to display this uicomponent to canvas i have done no error compile or run time but it does not display the Uicomponent.
here is code;
var item:RecordRanderer = new RecordRanderer(); item.randerItem(child); item.x=20;
I need my SWF banners to display in an IFRAME, and after a set amount of time, they need to animate and end up behind another SWF on the page.
Currently JPGs and GIFs do this just fine, but when the IFRAME contains a SWF, it displays on top of the other SWF, not behind it.
I've already tried the following:
-setting z-index on the SWF and IFRAME -setting wmode=transparent
I know the obvious solution here is to use object/embed code in the div, but for reasons beyond my control and too annoying to discuss here, this isn't an option. The SWFs must be placed using an IFRAME. This makes setting WMODE impossible, and when the IFRAME contains a swf, the browser ignores z-index.
I have a problem with an xml photo gallery nothing special about the code just a simple xml loader routine, everything works fine on my local machine but testing on the server only displays some of the images?
how to code my button (i'm calling ImageChange_btn) in ActionScript 3 that once pressed will display an external SWF in a container (i'm calling ImageContainer1)?
I've seen other pieces of code but none seem to work for me properly.