Actionscript 3 :: Setting A Default Skin For A Custom Component In Flex 4?

Aug 18, 2010

How do you set the default value of skinClass for a custom component in Flex? I've extended the DropDownList with my custom component, but I would like to specify a default skin to go with it instead of always setting the skinClass value for each instance.

View 1 Replies


Similar Posts:


Flex 4 Custom Component - Notify Skin Of Property Changes?

Jan 30, 2012

I have a custom Flex 4+ component that I am trying to make and have the skin be aware of changes to a custom property. This property will determine the graphic on the button (and some other visual changes) but the data will change constantly as it will be updated by a timer.

I've looked at untold examples and still seem unable to get the syntax correct or discover how things should be separated. I've looked at overriding commitProperties and the PropertyChangeEvent without success. So I have two questions.

1) How can I get a skin to be notified of a bound property when it changes?

2) If the data for a bound property of the component is an object, will binding work properly if a property of the object changes (or would it be better to pass each property separately)?

[Code]...

View 3 Replies

Flex :: Setting Skin Class On A Host Component But It Is Giving Null Point Exception?

Apr 19, 2011

ADOBE SYSTEMS INCORPORATED Copyright 2008 Adobe Systems Incorporated All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the license agreement accompanying it.

[Code]...

View 1 Replies

Actionscript 3 :: Flex 4 Title Window + Custom Component + Skin

Aug 21, 2010

I'm trying to put my components in a window container that can be closed by "x" moved on the stage, resized and so on. And I wonder which is the best way to do it. I want to use a skin class and the component class. The "solution" that is not working looks like this

[Code]...

View 1 Replies

Professional :: Volume Control - Change Skin Default Setting?

Feb 18, 2010

Mac OSX 10.4.11 - CS4. I have a supplied video.flv that I have in Flash with a skin control and exported as video.swf and inserted into a GoLive site, all is well apart from the excessive sound. The volume controller is defaulted to max and I would like to reduce the default volume by about 50%. Is this possible to do in Flash before exporting the video.swf.

View 10 Replies

Flex :: Setting Content Area In Custom Component?

Dec 11, 2009

I am trying to define the content area of a custom component that extends mx:VBox. The component has predefined headers and footers (visual children) and I want to set the area in the middle for adding children to the component. The component will be used like this:

<custom_component>
<mx:button/>
</custom_component>

How would I set this content area?

View 3 Replies

Actionscript 3 :: Prevent MXML Custom Component In Flex Library Project Always In Default Package??

Mar 31, 2010

I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.Is there a way to set a package declaration for MXML files? After all it just gets translated into AS3 classes. This seems to work in regular Flex projects using a namespace declaration so I'm at a loss how that is supposed to work. The other option is building out all the components in AS3 which I'd like to avoid.

View 1 Replies

Flex :: Setting Up Content Children For Custom Mxml Component

Dec 9, 2009

I am trying to develop a custom component to act as a divider.

[Code]....

I would like to use this component to assign objects like this:

[Code]...

Unfortunately, this does not work. I get a compiler error saying: In initializer for 'left': multiple initializer values for target type mx.containers.Canvas.

View 1 Replies

ActionScript 3.0 :: Custom FLV Playback Component Skin?

Feb 2, 2011

i am trying to create a custom skin for my FLV component in CS5 ..but adobe's fla files have errors when i decompile...I get this error...

Actionscript Code:

Error 1046: Type was not found or was not a compile - time constant : NetStreamPlayOtions

When i do publish flash does recognise the custom.swf skin...when i do add it in my movie though i get this error

Actionscript Code:

Error #2044: Unhandled skinError:. text=Error #1009: Cannot access a property or method of a null object reference.  

View 1 Replies

Flex :: How To Skin Or Change Default Cursor (White Arrow)

Aug 19, 2009

How can I skin, or otherwise change, the default cursor (white arrow) displayed in a Flex application?

View 3 Replies

Flex :: Copy/modify The Spark Skin For The Default Button?

Jun 20, 2010

I'm trying to copy/modify the spark skin for the default button, but not sure how to find that skin. When I hover over <s:Button and Ctrl + Click it, it takes me to the Button class, but there isn't any skin information there.

View 1 Replies

Flex :: Default Skin Class Located / Specified (for Components Like ComboBox)

Oct 11, 2011

For example the spark ComboBox.Where is the default skin?Is it generated (at compile or runtime)?If it was in fact written by someone how does the compiler/Virtual Machine know where to find the skin class? I didn't see a location specified in the ComboBox source.

View 1 Replies

Actionscript :: Flex 4: Override The Default Button Functionality In A Skin Class?

Jul 20, 2010

I have a videoplayer with a custom skin class. I want to override the functionality of the fullscreen button. When I add an click event, the player still goes into fullscreen mode. How can I prevent the fullscreen event from firing?

View 2 Replies

ActionScript 3.0 :: Custom Component Inspector Not Setting?

Apr 21, 2009

i never use compenents, and was recently asked to build one. Ha. Anyway, i have a working class that does all i expect, however, when transforming the class to a component, i am having trouble getting the inspector to actually 'set' the variables. below is a very general idea of what i am doing. All the variables show in the spector, but only the default values are working at runtime.

[Code]...

View 2 Replies

Flex :: Button Skin Disabled Alpha Setting Ignored?

Nov 14, 2011

I attempted to build a Flex 4 skin for a Spark button, typical practice. I adjusted the colors and other styles to my liking, including using dot selectors to specify alternate colors and such during different states. However, these are all ignored when the button is disabled. Regardless of what I do, in the disabled state, my button always has the wrong color and is alpha'd to 0.5 (even if I specifically state that alpha.disabled="1"). All the other skin states work as expected. This is my custom skin. If it were working correctly, it would appear to have no shadow or highlight, and would be a gradient grey color. Instead, it appears as a 50% alpha version of the up state (shiny green).

<?xml version="1.0" encoding="utf-8"?>
<s:SparkButtonSkin xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="[URL]"
minWidth="21" minHeight="21" alpha.disabled="1">
[Code] .....

This is the code used to create and then disable the button:
_action1Button = new Action1Button();
view.actionGroup.addElement(_action1Button);
_action1Button.enabled = false;

The error was that _action1Button is not the actual button, rather, it's the container of the button. Doh! Switching it to _action1Button.actionButton.enabled = false; fixed the issue.

View 1 Replies

Actionscript 3 :: Custom TileList Component FLASH CS5 - Built A Skin For A TileList

Sep 17, 2011

has anyone made a Custom Skin for a TileList component in Flash CS5. I want to change the scrollbar of the TileList, i want the track bar as just a thin white line and the thumb a orange circle, this for a Touch Interface.

View 1 Replies

Flex :: Setting The Default Button In Preinitialization

Jul 29, 2011

I have a more than one container in a view. I am trying to set default button at the moment page is loaded so that when I press enter, function that handles keydown event called. If I simply set default button in preinit() function, it does not work.

View 2 Replies

Flex :: Setting Default SAVE Locations In Web Application?

Oct 30, 2009

In flex 3 web application how to set default save location for images?

View 1 Replies

Actionscript 3 :: Flex Setting Default Value For Empty Form?

Jul 9, 2010

Currently I have a form in a window like this:

<mx:Form>
<mx:FormItem label="Reference">
<mx:TextInput id="reference" width="100%"/>

[Code]....

Is there any way to change the default value of a blank form entry from null to some other value?

View 1 Replies

Flex :: Custom SkinnableContainer Skin Border?

May 2, 2011

I have a SkinnableContainer that I would like to add a border to. I have already created a skin class that creates a 1 pixel border around all four sides of the container successfully, however, I would like the border to only be for the top and bottom of the container, not the sides (left, right). How can I achieve such a thing? I have attached my current skin class.

<?xml version="1.0" encoding="utf-8"?>
<!-- containerssparkmySkinsMyBorderSkin.mxml -->
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"

[code]....

View 1 Replies

Flex :: Change Values Of Custom Skin At Run Time?

Mar 5, 2011

I have built a basic theme for my Flex app. I would like to add support for additional predefined themes. By default, app has a theme and I would like it to change when user selects a theme from dropdown list. This can be done by loading a swf file using styleManager. However, all the skins have colors hard-coded in them. So, in order to achieve this I would have to duplicate skins and change value of the colors.

Is there a better way of doing this? Can I just have a skin that will change color values dynamically based on user selection?

View 2 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies

Flex :: 4 - Create A Skin For The Component Scroller

Jan 7, 2011

I'm trying to skin the Scroller in my application so that it looks like the example mentioned in [URL] This example was done in Flex 3 and images are set in CSS. I tried to create a skin for the component Scroller and saw that it uses VScrollBar and HScrollBar. I tried to put skins for these components. VScrollBar uses separate skins for the track, thumb, decrement/increment buttons. I tried to make some changes in the skin, but they were not reflected at all in the application. I just want to create a customized scroll bar in Flex 4 with custom thumbs.

View 2 Replies

Flex :: Custom ProgressBar Bar Skin Won't Fill Entire Track?

Apr 14, 2011

I'm trying to create a simple skin for the flex progressbar control. Both the track and the bar should have rounded corners, and the bar should fill the track completely in the parts where it is being shown.

Here is the bar skin I've created based off this example:

<?xml version="1.0" encoding="utf-8"?>
<s:SparkSkin
xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code]....

Instead of the bar being flush with the track, there's a margin, and the rounded border gets cut off.

View 1 Replies

Flex :: Can't Show Rounded Corners On Custom Panel Skin?

Aug 12, 2011

I wanted to change the background color of my Panel title area and I discovered that I needed to create custom skin or skin extender to accomplish this. So I created a skin called myPanelSkin based upon the Spark.PanelSkin. My background color works fine but it will no longer show the cornerRadius defined either on the component or in a styleI then tried another approach and simply created a new skin as an exact copy of the Spark.PanelSkin. It also looses the cornerRadius.

View 2 Replies

Flex :: Declare A Skin Inline In MXML Component?

Oct 30, 2010

Is there a way to declare a skin inline in a Flex 4 MXML Component? If not inline in the component then in the declarations or library tag?

View 1 Replies

Flex :: How Is The Height Of A Component Related To Its Skin File

May 2, 2011

I have a panel with a custom skin whose height is smaller than its hostcomponent's height. When I layout this out in a vgroup, the component's size doesn't reflect the skin's smaller size.

Is there a way to completely delegate the size of a container to the skin class?

View 1 Replies

Flex :: Skin A (single) Spark Component To Look Like An MX Components

Oct 12, 2011

I want to use a Spark ComboBox with numerous MX Components but the Spark ComboBox does not look the same as the MX Components. Is there a skin I can use to Skin Spark components like MX components?

[Code]...

View 1 Replies

Flex :: Setting Spark DataGrid Column's Default Sort On Application's CreationComplete

Sep 8, 2011

I have a spark DataGrid component with several columns and I want to have my application default to descending order on the first column in the DataGrid. I would like to use the built-in default sort that occurs when clicking the top header once. I have no need to sort the ArrayCollection I'm working with or change what the comparators are.I also want any user-generated sorting such as clicking on a different column's header to override the default sorting.

View 1 Replies

Actionscript 3 :: Setting The Default Browser To Open Flex Apps In Flash Builder On Mac?

Sep 13, 2011

I just got my MacBook and am trying out the Flash BUilder on said platform. I've installed Firefox and Google Chrome on my MacBook but I can't seem to find a way to set which browser would launch my Flex apps whenever I hit the Run button inside Flash Builder. As far as I know, I can locate the Browser property on the Project Properties on my Windows copy of Flash Builder but I couldn't over here at my Mac. Any thoughts?

View 1 Replies







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