ActionScript 3.0 :: Hide White Background In CellRenderer Cells?

Sep 22, 2011

I am developing an application and making use of a list component. I have set the List to use a custom cellrenderer.I need the list to have rounded corners but the problem is that where my custom cell corners are transparent I can see a default white cell underneath instead of the background.I found this discussion seemed to be relevant http:[url]......But when I add this function to my cellrenderer class I get  compiler error
 
override public function set data(data:Object):void{
super.data = data;

Set the default skin to be invisible. This is a bit easier than creating a new skin, if your goal is to hide the white background.
   
    this.skin.visible = false;
}
 
1119: Access of possibly undefined property skin through a reference with static type MarksCellRenderer.
 
how to hide the defualt white cell background?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Combing CellRenderer Individually But Not Simultaneously For Cells In A Datagrid In A Flash Document

Nov 2, 2009

I am attempting to combine two AS files that are acting as cellRenderers individually but not simultaneously for cells in a datagrid in a Flash document I have created. The first styles the cells to have alternating row colors and the second allows for non-text content to be rendered. The issue is whenever I attempt to combine them the document reports errors with "super" and "override" among others.

[Code]...

View 1 Replies

ActionScript 1/2 :: Change The Background Color To White And Should Also Display The Text ''white'' In The Dynamic Text Box

May 20, 2009

I'd like to be able to click on each of the buttons and have the background color change and also have its color name loaded in the dynamic text field. E.g. Clicking the white square would change the background color to white and should also display the text ''white'' in the dynamic text box. I've sorted out the colour changing part with the following code:

[Code]...

View 4 Replies

Flex :: After Importing A PNG With Transparent Background It Shows Up With White Background

Dec 28, 2010

As the title already states i have a (big) problem importing a PNG in a Flex 4 application.Created a PNG file in Photoshop with transparent background. Loaded in Flex application using this code:[code]So when the complete event fires the data has been loaded and it is possible to assign the data loaded to the image component named Thumbnail:[code]Unitls now everything works as expected!But when i try to send the Thumbnail component's data to a WCF service i receive a photo with white background:[code]

View 2 Replies

ActionScript 3.0 :: Printing A MC With White Background, Not Stage Background?

Dec 10, 2008

trying to print a movieclip with a white backgroundwhile keeping the stage background black.The movieclip,printResults_mc has a white rectangle in the bottom layer, 850pixels x 1100 pixels. The following function scales printResults_mcto the printers printable area but because isimpossible to predict the aspect ratio of the printable area someblack background always leaks out. I tried making the whitebackground 20 pixels larger than I need (870 x 1120) and thensetting a crop rectangle in addPage of (10,10,850,1100), no luck,the black stage background just fills in the area outside the crop.A simple solution would be to temporarily set the stage backgroundcolor property to white, print, then set it back to black, but I

View 1 Replies

Person Against A White Background?

Sep 14, 2009

if you go to [URL] they've got this animation on the home page where some guy in tie walks into frame surrounded by nothing by empty white.. how do you do that? Film against a white background?

View 1 Replies

Professional :: Background Behind Swf Shows White?

May 21, 2010

When the page for thsi site [URL] loads the background behind the flash document is white.  Is there a way to change this so that it matches the page background?

View 5 Replies

Get Rid Of The White Background Which Is Usually Transparent When Importing Custom Png?

Aug 1, 2009

have made graphics in paint, and i saved them under png.Now when i import them into flash CS4 the white backgrounds are solid? here is a photo of the problem: [URL]

View 4 Replies

Video Page - Removing White Background

Nov 17, 2009

When this video page loads, it displays a white stage background, even though I've tried every method I know to make the bg color black. What am I missing?

[Code]...

View 4 Replies

ActionScript 2.0 :: One Side To Have Black Background / Other To Have A White Bg

Jan 9, 2009

i have and opening sequence to an HTML site, that has two sides to it. basically you have two boxes that are buttons when you click on one of the boxs they load a flash sequence that goes into one or the other side of the site, but i need one side to have a black background and the other to have a white bg. I have looked into flash sending a variable to the HTML but have no real clue as to the correct syntax.[code]

View 1 Replies

Create Text Field With A White Background?

Nov 21, 2009

I don't know why but if I create a text field on the stage ( no as ), flash creates a white background in it... I have changed all parameters but the bg field remains the same...

Anyone knows how can I set the default transparent bg for the text?

View 1 Replies

ActionScript 3.0 :: Preloader - Loading Bar (white Line) A Background Bar

Jun 10, 2009

I tried to create this preloader and test it but it seems not to work. I saw this tutorial, i tried to do it but unfortunately it doesn't work for me. I want to do it the easiest way possible. just : a loading bar ( white line) a background bar ( a blu background bigger line ) a AS ( which i am not able) i sent the file in attachments please look at the AS inside the symbol, an tell me where i'm wrong

View 4 Replies

Professional :: All Of A Sudden The Flash Item Has A White Background?

Sep 18, 2007

I've changed nothing that I know of in making flash slideshows using swish and exporting to .swf format for inclusion in Dreamweaver except that now all of a sudden the flash item has a white background -- but only on my computer it seems when testing online; locally, it doesn't do that when testing and when using a different computer it doesn't do that. Any idea why a flash item would have a white background in some cases and not in others like that?

Like I said, I've changed nothing and have never had to put any parameters in place or do anything else of the kind; the swish program itself specifies the background as red, not transparent (not that the page the flash item is on has a white page anyway). I don't know if this is a swish, flash, dreamweaver problem or some bug on my particular computer that I can't figure out.

View 3 Replies

Flash :: Movie Opens In Browser With A White Background

Oct 21, 2010

I have created a simple movie and placed it in an 'Under Construction' page. The whole page is meant to be black. When I open the browser a white box shows, where the movie will appear, while it is loading. I want the whole page to appear black.[url]...

View 2 Replies

Can't Get Rid Of White Background When Flash Site First Loads Into Browser

Jan 25, 2010

I have tried changing background colour to Black #000 in all fields but the white background is still there before Flash shows up on the page.

I am embedding the Flash in a html page using CSS to have it align center middle. I think that's where the problem is.

Here is my html page code:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

[Code]....

View 4 Replies

Flex :: Image Object White Background Showing?

Aug 3, 2011

I have an Image object that gets resized to the containers size when the image loads.The images that it will load are dynamic in size so after resize I end up with a sliver of the image object's white background showing.How can I make the Image object not have a white background and be transparent.Parts of the PNG's have transparent parts but show up as white due to the white background of the object is it loaded into.

<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" headerHeight="20" >
<mx:Script>
<![CDATA[

[code].....

View 1 Replies

Make A 10 Minute Countdown With White Numbers And Black Background

Nov 26, 2010

Im trying to make a 10 minute countdown with white numbers and black background. just need minutes, seconds and milliseconds. sending a fla file or in telling me the easiest way to do this. I dont need a start button or anything else, just the countdown and when time is over just the numbers as 00:00:000

View 8 Replies

ActionScript 3.0 :: Flash CLICK On White Area / Background/stage?

Sep 5, 2010

is there a way to click on the stage in order to trigger some function?

View 2 Replies

Professional :: Separated Symbol From White Background But Now It Has Bits Left - How To Clean Up

Feb 21, 2012

I have a photo turned symbol on a white background. I'm not sure how I did it but I separated the symbol from the white background. but now I have all these bits around the edges left over that are white and I don't know how to clean it up. I tried the eraser, I tried painting over it, I tried selecting it to cut or delete. not one of these things worked.

View 3 Replies

Actionscript 3 :: Flash Flickers On IE Page And Mozilla Displays White Background?

Oct 9, 2011

I have a flash swf file which is published as adobe air file because im using the FileStream libraries. It seems that when i remove the FileStream code the flash swf file works on the HTML page but when i revert back to add the FileStream libraries and code the flash flickers in IE 8 and Mozilla displays a Blank screen. Why is this?Here is the code:

import flash.filesystem.*;
var url:String = "C:/New Folder/image.mp3";
var file:File = new File(url);
var fs:FileStream = new FileStream();
fs.openAsync(file, FileMode.APPEND);

View 1 Replies

Flex Tile List Transparent Image Showing With A White Background

Dec 29, 2011

I have a tile list that loads images from a folder within the app.

When i load images with a transparent background it gives the image a white background is there any way to get the image to be transparent? [coded]...

View 1 Replies

Flex :: Transparent White Color To Background Color Of Image?

May 21, 2009

I have an image and i want to remove white color from image.That removing color is same like its background color. If anybody have any idea of this problem please answer?And my application in Flex 3 so please send me action script code of this problem.

View 2 Replies

ActionScript 3.0 :: Loaded SWF CellRenderer?

Jul 14, 2011

I have a Main.swf application that loads another application called GridServices.swf. The GridServices.swf contains a DataGrid that has a custom CellRenderer class associated with ithen I run GridServices.swf by itself, it runs just fine and uses the wordWrapCellRenderer class that I made.hen I load the GridServices.swf file into Main.swf, I'm getting this error all of the time:

TypeError: Error #2007: Parameter child must be non-null.
at flash.display:isplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()

[code].....

View 0 Replies

AS3 :: IDE : CellRenderer - Components Don't Show Up

Apr 15, 2010

I'm used to item renderers in Flex but inexperienced with Flash AS3 components.I want to create a List that renderers items like this:

1) a slider

2) a couple of text fields that my designer can place and style as he likes

It's a survey form. I expect to grab the _listData.owner and dispatch the user inputs and bubble them up to the form.

1) drag a list onto the stage
2) create a symbol in the library with the base class of com.blah.skins.renderers.SurveyItemRenderer
3) Export this class as SurveyItemRenderer
4) set the list's cellRenderer style to SurveyItem renderer
5) give the list data to show

I tried using CellRenderer, but the class seems to reject being associated with a symbol (and I could not find any examples of CellRenderer being used that way), so SurveyItemRenderer implements ICellRenderer.When I run it, other library symbols and graphics shows up in the renderer--WITH THE EXCEPTION of the slider. Other Flash components that I put on the stage do not show up either, until you roll over (Button), or if they have text in the them (Label). Slider never shows up.

Components will show up on the stage, just not in the SurveyItemRenderer. WHY NOT? I feel like I'm missing something basic. Here is the class, minimal because I'm still testing:

Code:
public class SurveyItemRenderer extends MovieClip implements ICellRenderer
{
protected var _listData:ListData;
protected var _data:Object;
protected var _selected:Boolean;

[code]...

View 1 Replies

ActionScript 1/2 :: Datagrid HScrollPolicy With CellRenderer

Jun 9, 2009

which I can't seem to solve. I'm using a cellRenderer to display icons in a dataGrid. All works fine until I type in the command myDg.hScrollPolicy = "auto". Once I issue that command, the icons stop displaying. If I remove that line, all works well once more.

View 3 Replies

Actionscript 3 :: Combobox In Datagrid Cellrenderer

Aug 10, 2010

I need to put a combobox in a column of a datagrid. The user just need to select a value from the existing combox items.I know I need to use a custom cellrenderer. Please see my current attempt below.This attempt successfully inserts a combobox into the datagrid, BUT without any data in the combobox. In fact, when I click on the combobox in the datagrid, it is the same as a normal combobox on the stage without a dataProvider. In other words, it doesn't even open.Thus, I need to know how to modify my cellrenderer to correctly add the data to the combo and accept changes made by the user when selecting a value from the combobox.[code]

View 1 Replies

ActionScript 2.0 :: Tree CellRenderer Not Working?

Nov 5, 2009

The following test code adds an asterisk in front of the node labels of a Tree component.It works in a trivial Flash document but displays blank labels in a much more complex one. In both cases the library contains a Movie Clip with name, linkage identifier and AS 2.0 class all set to "MyTreeCell".

Scene:Layer:Frame:

createClassObject(mx.controls.Tree, "myTree", 1);
myTree.dataProvider = '<node label="Mail"><node label="In"/><node label="Out"/></node>';
myTree.cellRenderer = "MyTreeCell";

[code]....

View 0 Replies

ActionScript 3.0 :: ComboBox As CellRenderer For DataGrid?

Mar 23, 2009

The following code is the cell renderer for for a ComboBox in a DataGridColumn. It works fine when setting the comboBox's data in the constructor. There's a problem using the red code below. If the DataGrid row is not already selected the dropdown list appears but is empty.Any ideas? If the row is not already selected, the selectedItem is being set causing a STATE invalidation after the list a created. I'm not sure how to prevent this.

Code:
package
{

[code].....

View 1 Replies

Flash :: Custom CellRenderer For A List With XML Data?

Sep 14, 2010

I have a Game-sprite representing a game room with up to 3 players, it works ok. And would like to populate a List component with those Game's, based on an XML data coming from a socket.I've prepared a simple test case demonstrating my problem -ListTest.fla (should have a List component in its Library):

import fl.data.*;
import fl.controls.*;
stop();

[code].....

View 1 Replies

ActionScript 3.0 :: Pass A Var To A Custom CellRenderer Class?

Feb 4, 2009

I have a combobox that I need to style with colors from xml. I call this XML file in the same class that has my combobox instance and break out the color I need to a var.

I then use MyCellRenderer (a class that extends CellRenderer) to style the drop down list items like so:

Code:
myComboBox.dropdown.setStyle('cellRenderer', MyCellRenderer );

This all works perfectly with a hardcoded color already inside the MyCellRenderer class.

My problem is when I instantiate MyCellRenderer and try to pass the color through I get the following error when I click the combobox open:

Code:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at fl.controls::List/drawList()
at fl.controls::List/draw()
at fl.core::UIComponent/callLaterDispatcher()

Is it possible to instantiate a class that extends CellRenderer? If not why not?

how can I pass a variable to my custom CellRenderer class?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved