flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils Berghs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33999) spark.skins.mobile480.assets.BeveledActionButton_
Date Tue, 24 Dec 2013 07:59:50 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13856220#comment-13856220
] 

Nils Berghs commented on FLEX-33999:
------------------------------------

I've created a custom buttonskin that resembles a 'BeveledActionButton'  so I reuse some skin
parts of it. This works fine for all dpi's except for 480 dpi. The import below for 480 are
in comment because they won't compile.

... //160 and 240 dpi
import spark.skins.mobile320.assets.BeveledActionButton_down;
import spark.skins.mobile320.assets.BeveledActionButton_fill;
import spark.skins.mobile320.assets.BeveledActionButton_up;
//import spark.skins.mobile480.assets.BeveledActionButton_down;
//import spark.skins.mobile480.assets.BeveledActionButton_fill;
//import spark.skins.mobile480.assets.BeveledActionButton_up;
import spark.skins.mobile640.assets.BeveledActionButton_down;
import spark.skins.mobile640.assets.BeveledActionButton_fill;
import spark.skins.mobile640.assets.BeveledActionButton_up;


public class NavigatorTextButtonSkin extends ButtonSkin
{
/**
 *  Constructor.
*/
public function NavigatorTextButtonSkin()
{
	super();
			
	switch (applicationDPI)
	{
		case DPIClassification.DPI_640:
		{
			//custom stuff here
                        .....

			upBorderSkin = spark.skins.mobile640.assets.BeveledActionButton_up;
			downBorderSkin = spark.skins.mobile640.assets.BeveledActionButton_down;
			fillClass = spark.skins.mobile640.assets.BeveledActionButton_fill;
			break;
		}
		case DPIClassification.DPI_480:
		{
			//custom stuff here
                        .....		
			upBorderSkin = spark.skins.mobile320.assets.BeveledActionButton_up;                 //using
320 here because 480 won't work
			downBorderSkin = spark.skins.mobile320.assets.BeveledActionButton_down;
			fillClass = spark.skins.mobile320.assets.BeveledActionButton_fill;
			break;
		}
                .......//other dpis
       }
}

> spark.skins.mobile480.assets.BeveledActionButton_
> -------------------------------------------------
>
>                 Key: FLEX-33999
>                 URL: https://issues.apache.org/jira/browse/FLEX-33999
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.11.0
>         Environment: Windows7, Flashbuilder 4.7
>            Reporter: Nils Berghs
>            Assignee: Justin Mclean
>            Priority: Blocker
>              Labels: easyfix
>
> The spark.skins.mobile480.assets.BeveledActionButton_down (and _fill and _up) can not
be found.
> The BeveledBackButton versions for 480dpi are OK. For 640dpi everything is OK



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message