Re: Text don't look smooth on iOS devices - at some times

2017-06-14 Thread chris_d_k
I could reproduce this issue and it always happens in our app after using the
camera... 

When I make a screenshot when the rendering is ugly the taken picture looks
smooth/normal.

When the rendering is "fuzzy" and I deaktivate the iPhone and activate it
again it looks normal again...

No one with the same problem? I use Flex 4.16, and the latest stable AIR
SDK...

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-don-t-look-smooth-on-iOS-devices-at-some-times-tp15285p15317.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Text don't look smooth on iOS devices - at some times

2017-06-05 Thread chris_d_k
Hi,

sometimes our air app - especially the text - don't look smooth on iOS
(iPhone7). It looks like badly sharpened and somehow scaled. 

Strange thing is:
restarting the app and it looks ugly... 
pressing power to send the phone in "sleep mode" and hitting the power again
- the app looks good again...

Is this somthing normal?

Kind regards

Chris



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-don-t-look-smooth-on-iOS-devices-at-some-times-tp15285.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Installer and Link to SDK binaries broken

2017-04-09 Thread chris_d_k
Hi,

I cannot download the Flex SDK using the SKD-Installer or the link on the
Flex-Website...

Does anybody else have the same problem?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Installer-and-Link-to-SDK-binaries-broken-tp15008.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Measuring from of Label with padding strange/incorrect

2017-02-20 Thread chris_d_k
Hi,

I have an itemrenderer based on a group with a label inside. If there is
text which would exactly fit in one line and I have a padding in the label,
the label is displayed in two lines but the measured value is at is is one
line...

Is this a bug or am I doing something wrong?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Measuring-from-of-Label-with-padding-strange-incorrect-tp14708.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex multiline LabelItemRenderer for mobile chat

2017-02-04 Thread chris_d_k
Hi there,

searching for a solution to create a multiline LabelItemRenderer for a
mobile chat
I found
http://flexponential.com/2011/08/21/adding-multiline-text-support-to-labelitemrenderer/

My code is below. The problem is that after scolling the Height of the
ItemRenderers do not fit anymore - it seems that they get the wrong heights
of reused renderers. What am I doing wrong?

public class ChatMessageItemRenderer extends MultilineLabelItemRenderer
{

private static const CORNER_RADIUS:int = 10;
private static const SIDE_OFFSET:int = 40;

public function ChatMessageItemRenderer()
{
super();
minHeight = 0;
percentWidth = 100;
}

private var dataChanged:Boolean;
override public function set data(value:Object):void
{
super.data = value;
dataChanged = true;
invalidateProperties();
invalidateDisplayList();
}

override protected function commitProperties():void
{
super.commitProperties();
if(dataChanged)
{
labelDisplay.text = data.message;
dataChanged = false;
}
}

override protected function 
updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
setElementPosition(labelDisplay, data.isOwn ? 0 : 
SIDE_OFFSET,
labelDisplay.getLayoutBoundsY());

}

// -

override protected function drawBackground(unscaledWidth:Number,
unscaledHeight:Number):void
{
var backgroundColor:int = data.isOwn ? 0xFF : 
0x00FF00;

graphics.beginFill(backgroundColor);
graphics.drawRoundRect(data.isOwn ? 0 : SIDE_OFFSET, 0, 
unscaledWidth -
SIDE_OFFSET, unscaledHeight, CORNER_RADIUS, CORNER_RADIUS);
graphics.endFill();
}




//



private var oldUnscaledWidth:Number;

/**
 * Upgrade layoutContents to handle text reflow.
 */
override protected function layoutContents(unscaledWidth:Number,
unscaledHeight:Number):void
{
if(!labelDisplay)
{
return;
}

var paddingLeft:Number = getStyle("paddingLeft");
var paddingRight:Number = getStyle("paddingRight");
var paddingTop:Number = getStyle("paddingTop");
var paddingBottom:Number = getStyle("paddingBottom");
var verticalAlign:String = getStyle("verticalAlign");

var viewWidth:Number = unscaledWidth - paddingLeft - 
paddingRight;
var viewHeight:Number = unscaledHeight - paddingTop - 
paddingBottom;

var vAlign:Number;
if(verticalAlign == "top")
{
vAlign = 0;
}
else if(verticalAlign == "bottom")
{
vAlign = 1;
}
else // if (verticalAlign == "middle")
{
vAlign = 0.5;
}

if(label != "")
{
labelDisplay.commitStyles();
}

// Size the labelDisplay

// we want the labelWidth to be the viewWidth and then 
we'll calculate
the height
// of the text from that
var labelWidth:Number = Math.max(viewWidth - 
SIDE_OFFSET, 0);

// keep track of the old label height
var oldPreferredLabelHeight:Number = 0;

// We get called with unscaledWidth = 0 a few times...
// rather than deal with this case normally,
// we can just special-case it later to do something 
smarter
if(labelWidth == 0)
{

Re: Hot to optimize flex mobile to show SplashScreen faster?

2017-01-19 Thread chris_d_k
Hi Leokan23,

thanks for your response! It turned out that it was caused by "Generate
Debuggable SWF" activated when building the app with Intellij.

Thanks 

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Hot-to-optimize-flex-mobile-to-show-SplashScreen-faster-tp14539p14543.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Hot to optimize flex mobile to show SplashScreen faster?

2017-01-19 Thread chris_d_k
Hi,
 
when I open a mobile flex app there are about 8 seconds of black nothing
until the splashScreen is displayed (iPod 5).

Are there any tricks to speed up displaying the SplashScreen?

Happy for any tip!

Kind regrads

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Hot-to-optimize-flex-mobile-to-show-SplashScreen-faster-tp14539.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: ViewNavigatorApplication // Individual icon in window on Desktop (Surface)

2017-01-19 Thread chris_d_k
Isn't there a quick solution? Is it possible to extend the
ViewNavigatorApplication for this purpose?

Would be happy for any hint.

Kind regrads

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/ViewNavigatorApplication-Individual-icon-in-window-on-Desktop-Surface-tp14403p14538.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


ViewNavigatorApplication // Surface // titleIcon

2017-01-02 Thread chris_d_k
I have a projct with a ViewNavigatorApplication which is using the mobile
theme and mobile components to run it on a windows surface tablet ...

Is it possible to define the icon of the window (titleIcon) in this case?

Kind regrads

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/ViewNavigatorApplication-Surface-titleIcon-tp14403.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Padding above a text in Mobile Air App

2016-11-07 Thread chris_d_k
The problem is the different positioning. If I add padding the layout in one
case I would have the padding and in the other the padding and the gap.

It should look more or less the same on different devices...

What would help is to get/know/measure the height of the gap to "remove" it,
f.e. by setting the y pos of the label = -GapSize ... or event better to get
the gap removed in any other way...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Padding-above-a-text-in-Mobile-Air-App-tp14028p14060.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Padding above a text in Mobile Air App

2016-11-07 Thread chris_d_k
I tested it with Arial -> had the same result :-(



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Padding-above-a-text-in-Mobile-Air-App-tp14028p14058.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Padding above a text in Mobile Air App

2016-11-03 Thread chris_d_k
Sorry... I don't get what you want to say...

There are 2 devices with different font-sizes for each device. The labels
height ist not set... so measured by flex...

On one device (LG G4C) there is a huge "gap" in the label (top of label to
to start of the text), on the other there is absolutely no gap
(XperiaZUltra).



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Padding-above-a-text-in-Mobile-Air-App-tp14028p14033.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Padding above a text in Mobile Air App

2016-11-03 Thread chris_d_k
I have the case that a label has on one device a huge gap above a number (I
see it when i add some backgroundColor to the label) and on an other device
there is no gap. Can anyone tell me where the problem could be? 


 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Padding-above-a-text-in-Mobile-Air-App-tp14028.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: AIR 23

2016-09-19 Thread chris_d_k
Hi engorilla,

you can download the *air23 sdk for flex*
(http://www.adobe.com/devnet/air/air-sdk-download.html) and just
extract(unzip) into another sdk (f.e. flex 4.15/air22) you downloaded
through the Apache Flex Installer and override changes...

see
https://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/AIR-23-tp13539p13567.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Layout broken in AIR 23

2016-09-18 Thread chris_d_k
It seems my problem with the layout on Air 22 or Air 23 always appears after
the softKeyboard was opened  until the app was sent to the background and is
activated again. 

Anyone having the same problem?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Layout-broken-in-AIR-23-tp13555p13559.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Layout broken in AIR 23

2016-09-17 Thread chris_d_k
Hi together,

I have a mobile flex app. When I build it with AIR 21 everything is okay on
Android. When I compile it with AIR 23 it seems like the view is layouted as
it would be bigger but there are just parts of it cropped at the bottom.
When I put the app in the background and activate it again the the view is
displayed correctly.

Everything with the same code just switching the AIR SDK.

Anyone else with the same problem?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Layout-broken-in-AIR-23-tp13555.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Hot to get smooth transitions in a flex mobile app

2016-08-27 Thread chris_d_k
Thank you clint and kamcknig,

Workers seem to be supported for mobile devices
(http://help.adobe.com/de_DE/FlashPlatform/reference/actionscript/3/flash/system/Worker.html)...

But suspendBackgroundProcessing should be there to avoid dropping frame
rates - or am I wrong with this?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Hot-to-get-smooth-transitions-in-a-flex-mobile-app-tp13426p13441.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Hot to get smooth transitions in a flex mobile app

2016-08-27 Thread chris_d_k
Hi,

our flex mobile app is using ViewNavigatorApplication and pure mvc. When we
change the view in most cases we also load data from the server. 

The transistions are using a SlideViewTransition,
suspendBackgroundProcessing is set to true.

With some views the transitions are very choppy. Are there tricks to avoid
that?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Hot-to-get-smooth-transitions-in-a-flex-mobile-app-tp13426.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Problems with AIR 22 and an ANE in a bigger project

2016-08-01 Thread chris_d_k
Another thing what is working seem to be using the init-Method of the ANE on
the apps preinitialize-Event



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-AIR-22-and-an-ANE-in-a-bigger-project-tp13090p13130.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Problems with AIR 22 and an ANE in a bigger project

2016-08-01 Thread chris_d_k
With the AIR 23 Beta -Version our project is running fine again on android
devices... I have posted our problem in the AIR Forum:
https://forums.adobe.com/message/8912684#8912684

Thanks for the tipps.

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-AIR-22-and-an-ANE-in-a-bigger-project-tp13090p13126.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Problems with AIR 22 and an ANE in a bigger project

2016-07-31 Thread chris_d_k
Hi Clint,

as the code/ANE with our code works with AIR21 but not with AIR22 - and the
ANE on its own is working with AIR22 I think it has to do something with
AIR-Framework/Flex Compiler... 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-AIR-22-and-an-ANE-in-a-bigger-project-tp13090p13112.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Problems with AIR 22 and an ANE in a bigger project

2016-07-30 Thread chris_d_k
The problem seems to exist just on Android Devices >= V5.

The Log looks like that but I don't have an idea why this happens:

The Log looks like this:

07-28 14:29:35.2605976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.264 [INFO]
com.company.project.controller.commands.UserOnlineCommand set
isUserConnectedToServer = true
07-28 14:29:35.2605976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.271 [INFO] com.company.project.services.ServiceManager Creating
misc message consumer...
07-28 14:29:35.2703278-3278/? I/NetworkSpeedManagerEx﹕ value = 7108.0
07-28 14:29:35.2703278-3278/? I/NetworkSpeedManagerEx﹕ speed = 6.9KB/s
07-28 14:29:35.2703278-3278/? I/NetworkSpeedView﹕ /update(),
speed=6.9KB/s
07-28 14:29:35.2705976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.278 [INFO] com.company.project.services.proxies.MiscMessagesProxy
Connected to the server: [ChannelEvent channelId="secure-amf"
reconnecting=false rejected=false type="channelConnect" bubbles=false
cancelable=false eventPhase=2]
07-28 14:29:35.2703278-3278/? W/View﹕ requestLayout() improperly called
by com.android.systemui.statusbar.phone.IconMerger{bf33fd6 V.E. ..I.
0,0-72,50 #7f0d0086 app:id/notificationIcons} during layout: running second
layout pass
07-28 14:29:35.2805976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.283 [INFO]
com.company.project.controller.commands.UserOnlineCommand set
isUserConnectedToServer = true
07-28 14:29:35.2905976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.295 [INFO] com.company.project.model.proxies.EasyPushProxy Init
OneSignal...
07-28 14:29:35.3305976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.341 [INFO] com.company.project.services.proxies.DataServiceProxy
Requesting badge configs from server.
07-28 14:29:35.3505976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.355 [INFO] com.company.project.services.proxies.DuelServiceProxy
Loading open challenges.
07-28 14:29:35.3605976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.362 [INFO] com.company.project.services.proxies.DuelServiceProxy
Loading duel results.
07-28 14:29:35.3705976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.371 [INFO] com.company.project.services.proxies.DataServiceProxy
Requesting user messages from server: language=de_DE
07-28 14:29:35.3705976-5976/? I/air.com.company.project﹕ 7/28/2016
14:29:35.377 [INFO] com.company.project.mediators.ApplicationMediator
opening view: SHOW_START
07-28 14:29:35.4903047-3647/? I/ActivityManager﹕ filter receiver for
action = com.google.android.c2dm.intent.REGISTRATION
07-28 14:29:35.5003047-3072/? E/JavaBinder﹕ !!! FAILED BINDER
TRANSACTION !!!
07-28 14:29:35.5403047-3153/? W/InputDispatcher﹕ channel 'f8820b7
air.com.company.project/air.com.company.project.AppEntry (server)' ~
Consumer closed input channel or an error occurred.  events=0x9
07-28 14:29:35.5403047-3153/? E/InputDispatcher﹕ channel 'f8820b7
air.com.company.project/air.com.company.project.AppEntry (server)' ~ Channel
is unrecoverably broken and will be disposed!
07-28 14:29:35.5403047-3235/? W/InputDispatcher﹕ Attempted to unregister
already unregistered input channel 'f8820b7
air.com.company.project/air.com.company.project.AppEntry (server)'
07-28 14:29:35.5402345-2345/? I/Zygote﹕ Process 5976 exited due to
signal (11)
07-28 14:29:35.6103452-3721/? I/HwSystemManager﹕ HoldService:uid:10109
pid:5976 died
07-28 14:29:35.6103452-3721/? I/HwSystemManager﹕
HoldService:oldVersionKey:10109,5976
07-28 14:29:35.6103047-3066/? E/HsmCoreServiceImpl﹕ onTransact in code
is: 102
07-28 14:29:35.6103047-3066/? I/MediaProcessHandler﹕ processOp opType:
1, uid: 10109, pid: 5976
07-28 14:29:35.6103047-3066/? W/MediaProcessHandler﹕ remove target not
exist, maybe the UI process: uid: 10109, pid: 5976
07-28 14:29:35.6103452-4333/? I/HwSystemManager﹕
BgPowerManagerService:onProcessDied uid = 10109




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-AIR-22-and-an-ANE-in-a-bigger-project-tp13090p13092.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Problems with AIR 22 and an ANE in a bigger project

2016-07-30 Thread chris_d_k
Hi together,

we have a huge mobile project using the Easy Push Native Extension from
Milkman Games to send notifications.

Our IDE is Intellij Idea.

Using the Air 22 SDK in our project the app crashes when we use call the
ANEs method to set up all the notification stuff (it is supported...).
When we switch to Air 21 everything is fine.

When we build a small test project using AIR 22 and the ANE everything works
fine.

Does anyone have an idea where the problem could be located?

Kind regards

Christian




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-AIR-22-and-an-ANE-in-a-bigger-project-tp13090.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


How to style imported HTML in RichTextComponent

2016-07-19 Thread chris_d_k
Hi,

I am importing the following html:


asdf
asdf
asdf
asdf


when I display it in a RichText-Component:

richText.textFlow = TextConverter.importToFlow(theHtmlText,
TextConverter.TEXT_FIELD_HTML_FORMAT);

there are huge gaps between the list elements. How can I remove them.

And on some devices even the numbers are cutted at the left side... Is there
any way to fix that?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-style-imported-HTML-in-RichTextComponent-tp13010.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Changing dataprovider for buttonbar

2016-06-23 Thread chris_d_k
Hi,

I have a button bur with a lot of elements, defined like this:
var iconObj:Object;

var icon1:SpriteVisualElement = new Icon1();
icon1.width = trousersIcon.height = 50;
iconObj1= {icon: icon1, label: ""};

in one case I want to add more items, in another less ...

When I add 2 of the items to the dataprovider and change to 3 and back to
the 2 it works.


When I add 9 of the items to the dataprovider and change to 9 others I get
an error.
When I add 10 of the items to the dataprovider and change to 9 others I get
an error.

var collection1:ArrayCollection = new ArrayCollection([iconObj1, iconObj2,
iconObj3, ..., iconObj9 ]);
collection2:ArrayCollection = new ArrayCollection([iconObj1, iconObj2,
iconObj3, ..., iconObj9 , iconObj10]);

The error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of
the caller.
at flash.display::DisplayObjectContainer/removeChild()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:7365]
at
mx.core::UIComponent/removeChild()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:7272]
at
spark.skins.mobile.supportClasses::ButtonSkinBase/setIcon()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as:648]
at
spark.skins.mobile.supportClasses::ButtonSkinBase/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses/ButtonSkinBase.as:279]
at
mx.core::UIComponent/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/core/UIComponent.as:8751]
at
mx.managers::LayoutManager/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605]
at
mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:821]
at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]

How can I fix this?





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Changing-dataprovider-for-buttonbar-tp12926.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


RichText with embedded font not working on iOS (AIR)

2016-06-16 Thread chris_d_k
Hi,

we have an app with embedded fonts and we use a RichText-Component.

In RichText-Components the embedded font is not used. What am I doint wrong?

Here the css:

@font-face {
src: url("../assets/fonts/corbel.ttf");
fontFamily: "StandardFontAsCFF";
fontWeight: normal;
embedAsCFF: true;
advancedAntiAliasing: false;
}

s|RichText {
fontFamily: StandardFontAsCFF;
fontLookup: embeddedCFF;
}

Kind regards 

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/RichText-with-embedded-font-not-working-on-iOS-AIR-tp12846.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


RE: [Non-DoD Source] Re: Visual effects for reloading data like in chrome browse, facebook, on mobile devices ...

2016-05-17 Thread chris_d_k
Thanks for this... but that should be for reloading just a list... I am
searching something to reload a view...
so I ended up in implementing it on my own (see below - only reacting in the
upper part of the view) but have on question left... What is the best way to
check if I am scrolling a list? Do I have to go through the event targets
parents... or is there an easier way...


private static const REFRESH_ICON_PERCENTAGE_MAX_POSITION:Number = .10;
private var downPoint:Point;
private var mouseMoveY:int;

private function handleMouseDown(event:MouseEvent):void
{
if(!refreshIcon.parent && isReloadableView() && mouseY < height
* .2)
{
resetRefreshIconStartPosition();
addMouseListeners();
downPoint = new Point(mouseX, mouseY);
}
}

private function handleMouseUp(event:MouseEvent):void
{
removeMouseListeners();
removeRefreshIcon();
if(refreshIcon.y >= getRefreshIconEndPosition())
{
dispatchEvent(new ReloadEvent(ReloadEvent.RELOAD, true));
}
}

private function handleMouseLeave(event:Event):void
{
removeMouseListeners();
removeRefreshIcon();
}

private function handleMouseMove(event:MouseEvent):void
{
if(hasMovedABit())
{
if(!refreshIcon.parent)
{
addRefreshIconToNavigator();
mouseMoveY = mouseY;
resetRefreshIconStartPosition();
}
else
{
refreshIcon.y = Math.min(-refreshIcon.height + (mouseY -
mouseMoveY), getRefreshIconEndPosition());
refreshIcon.alpha = Math.max(.2, refreshIcon.y /
(unscaledHeight * REFRESH_ICON_PERCENTAGE_MAX_POSITION));
}
}
else
{
removeRefreshIcon();
}
}



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Visual-effects-for-reloading-data-like-in-chrome-browse-facebook-on-mobile-devices-tp12661p12710.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Visual effects for reloading data like in chrome browse, facebook, on mobile devices ...

2016-05-05 Thread chris_d_k
Hi,

in many Andoid Apps like Facebook, Chrome, E-Mail, ... you can swipe down to
get a circle with shadow and a round arrow in it from below the action bar
to reload the current page when released in a "swiped" state... 

Is there something like this available "ready to use" for Flex as a
component, ane, ... ?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Visual-effects-for-reloading-data-like-in-chrome-browse-facebook-on-mobile-devices-tp12661.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Build Flex Mobile Apps with different Assets

2016-04-19 Thread chris_d_k
Hello Evyatar, Hello GhaziTriki,

do you have an example how you realized it?





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Build-Flex-Mobile-Apps-with-different-Assets-tp12471p12527.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Intellij Idea 16 - Locale Chain at compile time

2016-04-16 Thread chris_d_k
Hi,

I am trying to set the locale chain to "myLang_MYLANG,de_DE" ...
(myLang_MYLANG  created through copylocale).

Intellij Idea 16 I can not change the localeChain as there are only
checkboxes and nothing to set the order...

I tried to do this in the additionalCompilerArguments:
-locale=myLang_MYLANG,de_DE -allow-source-path-overlap=true
-source-path+=C:/flex_air_sdks/flex_4_15_air_20/frameworks/locale/{locale}

but it does not work...

adding this to the code and it is working:

ResourceManager.getInstance().localeChain = ["myLang_MYLANG", "de_DE"];

Any idea where I can define the localeChain at compiletime?






--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Intellij-Idea-16-Locale-Chain-at-compile-time-tp12479.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Build Flex Mobile Apps with different Assets

2016-04-15 Thread chris_d_k
I know it at compile time... But there will be a few hundred different assets
used per app... and an increasing number of apps... 

So I am searching for something to to configure which assets are used
without including all in the swf/mobile app... 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Build-Flex-Mobile-Apps-with-different-Assets-tp12471p12474.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Build Flex Mobile Apps with different Assets

2016-04-15 Thread chris_d_k
Hi,

I have a flex mobile app. 

I want to compile it to different apps which should use a lot of different
embedded fxg-Files. 
When I put all the fxg files the app would be really huge and full of assets
it does not need...

What is the best way to achive this? Is there an article on this topic I
haven't found?

I have read the flex team created an FXG-Runtume-Parser but haven't found
it... with this I think I could store the fxg-Files in locales...

Or would it be better to create an asset-swc for every app with different
assets and some methods to acces them (f.e.
getTYPEAImages():SpriteVisualElement, getTYPEBImages():SpriteVisualElement,
...)?





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Build-Flex-Mobile-Apps-with-different-Assets-tp12471.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Scale font size of text to fit into a label with fixed dimensions?

2016-04-07 Thread chris_d_k
I have 4 labels with have the same dimensions (width="200", maxHeight="100")
and get 4 different texts for the labels.

At least I want that every text fits into the labels dimensions and that all
texts have the same fontSize (the fontsize of the label with most text in
it).

Currently I get the minimim size by testing the maximum fontSize for every
label, compare them and taking the smallest. 

Is there a better way to get the maximum font size which will fit to a label
as below? 

That's my way to get the maximum font size inside the labels parent
component (s:Group):

// somewhere in updateDisplayList 
textLabel.setStyle("fontSize", 52);
while(isResizeNecessary())
{
setSmallerFontSizeAndRevalidate();
}

// other methods
private function isResizeNecessary():Boolean
{
var FONT_SIZE_STEPS:int = 2;
var isTextLabelToHeight:Boolean = 
textLabel.getPreferredBoundsHeight() >
getMaxHeightForTextLabel();
var isTextDownscaleable:Boolean = 
textLabel.getStyle("fontSize") >
FONT_SIZE_STEPS;
return isTextLabelToHeight && isTextDownscaleable;
}

private function setSmallerFontSizeAndRevalidate():void
{
var FONT_SIZE_STEPS:int = 2;
textLabel.setStyle("fontSize", 
textLabel.getStyle("fontSize") -
FONT_SIZE_STEPS);
textLabel.invalidateProperties();
textLabel.invalidateSize();
textLabel.invalidateDisplayList();
textLabel.validateNow();
invalidateDisplayList();
}






--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Scale-font-size-of-text-to-fit-into-a-label-with-fixed-dimensions-tp12424.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Sorting ArrayCollection not as expected

2016-03-25 Thread chris_d_k
Thanks a lot... the as3commons ArrayUtils mergeSort-Method solved my problem



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Sorting-ArrayCollection-not-as-expected-tp12355p12362.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Sorting ArrayCollection not as expected

2016-03-25 Thread chris_d_k
Hi Alex,

this has the same effect:

 private function sortArray(array:ArrayCollection):void
{
var sort:Sort = new Sort();
sort.compareFunction = consecutiveCorrectAnswersFunction;
array.sort = sort;
array.refresh();
}

private function consecutiveCorrectAnswersFunction(a:Object,
b:Object, array:Array = null):int
{
if(a.rank == b.rank)
{
return 0;
}
if(a.rank > b.rank)
{
return 1;
}
else
{
return -1;
}
}



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Sorting-ArrayCollection-not-as-expected-tp12355p12360.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Sorting ArrayCollection not as expected

2016-03-24 Thread chris_d_k
In the following test project the arrayCollection is changed after the
refresh... but why?


http://ns.adobe.com/mxml/2009;
xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="test()">









--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Sorting-ArrayCollection-not-as-expected-tp12355.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Progress Bar in mobile app spark image

2016-03-10 Thread chris_d_k
Hi Leokan23,

I just want to see som standard progress bar and thought some will appear
automatically ... That's not correct?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Progress-Bar-in-mobile-app-spark-image-tp12159p12170.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Progress Bar in mobile app spark image

2016-03-09 Thread chris_d_k
Hi,

I swiched from a BitmapImage to a Image to get a loading bar displayed - but
this bar is not displayed. What do I have to do to display the loading bar?

Best regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Progress-Bar-in-mobile-app-spark-image-tp12159.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Windows 10 for Air/Flex ... Astoria

2016-01-16 Thread chris_d_k
I found the thread https://forums.adobe.com/message/7980207#7980207 ... does
anyone know if it will be possible in the near future to get Flex/Air-Apps
on a windows phone?

Kind reards

Chris



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Windows-10-for-Air-Flex-Astoria-tp11762.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex mobile - List flickering on first drag

2016-01-08 Thread chris_d_k
Hi,

I have currently this problem
http://stackoverflow.com/questions/10490117/flex-mobile-list-flickers and
just wanted to ask if the solution with the fakeTouchEvent ist the way to
fix this or if there is now a better solution...

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-List-flickering-on-first-drag-tp11724.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex Mobile -> Getting Error #3747 sometimes when fxg is loaded

2016-01-06 Thread chris_d_k
Hi Alex,

I've read it but I don't get it... I have a flex application with an built
in swc and get the error on iOS when the code inside the swc creates
instances of the embedded fxg-files... So nothing from outside is loaded...

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Getting-Error-3747-sometimes-when-fxg-is-loaded-tp11645p11713.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex Mobile -> Getting Error #3747 sometimes when fxg is loaded

2016-01-06 Thread chris_d_k
Okay... I'll check this... strange is that at this point the app was loaded
long time ago... and the user navigated through some screens... and then the
error always occured always when calling the method createTorsoPreview() ... 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Getting-Error-3747-sometimes-when-fxg-is-loaded-tp11645p11715.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex Mobile -> Getting Error #3747 sometimes when fxg is loaded

2015-12-17 Thread chris_d_k
Can anyone tell me if this is a Problem with Flex or with Adobe Air?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Getting-Error-3747-sometimes-when-fxg-is-loaded-tp11645p11678.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Mobile -> Getting Error #3747 sometimes when fxg is loaded

2015-12-12 Thread chris_d_k
Error: Error #3747
at flash.display::Loader/loadBytes()
at mx.core::MovieClipLoaderAsset()
at
_MyProject_mx_managers_SystemManager__embed_mxml_com_mll_myproject_assets_splashScreenImage_swf_1390261946()
at flash.display::Sprite()
at mx.core::FlexSprite()
at spark.core::SpriteVisualElement()
at com.avatarLibrary.assets.maleTop::Male_Torso_7_1()
at com.avatarLibrary.manager::AvatarBitmapManager/updateTop()
at com.avatarLibrary.manager::AvatarBitmapManager/createTorsoPreview()
at
com.mll.myproject.components.avatarCreatorComponents::AvatarPartButton/updateImage()
at
com.mll.myproject.components.avatarCreatorComponents::AvatarPartButton/commitProperties()
at mx.core::UIComponent/validateProperties()
at spark.components::Group/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()


I cannont reproduce this but see this error on our productive system...
maybe an iOS
-only problem?

I have an avatarPart-Library with abount 1000+ parts... some of them seem to
create this error...

The graphics are created by somthing linke var x:SpriteVisualElement = new
SomeFXG(); addElement(x);
(external swc)

Kind regards

Christian




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Getting-Error-3747-sometimes-when-fxg-is-loaded-tp11645.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Mobile -> Bulk download of images?

2015-12-12 Thread chris_d_k
Hi together,

I want to download a set of images from the server and store them on a
device. What is the best way to do a "bulk download"?

Kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Bulk-download-of-images-tp11646.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


NPE in ButtonSkin

2015-11-13 Thread chris_d_k
Hi,

I have added a Standard Button (spark, no skin, ...)

in one of my component and get the following error. If I add the Button with
an time-offset (setTimout(addMyButton, 20)) it is working. Any ideas why?

[Fault] exception, information=TypeError: Error #1009: Cannot access a
property or method of a null object reference.
at
spark.skins::ActionScriptSkinBase/setElementSize()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/spark/src/spark/skins/ActionScriptSkinBase.as:600]
at
spark.skins.mobile::ButtonSkin/http://www.adobe.com/2006/flex/mx/internal::layoutBorder()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as:390]
at
spark.skins.mobile::ButtonSkin/layoutContents()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/mobiletheme/src/spark/skins/mobile/ButtonSkin.as:364]
at
spark.skins::ActionScriptSkinBase/updateDisplayList()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/spark/src/spark/skins/ActionScriptSkinBase.as:293]
at
mx.core::UIComponent/validateDisplayList()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/core/UIComponent.as:9531]
at
mx.managers::LayoutManager/validateDisplayList()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:744]
at
mx.managers::LayoutManager/doPhasedInstantiation()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:809]
at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/erik/Documents/ApacheFlex/git/flex-sdk4.14.1/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]

kind regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/NPE-in-ButtonSkin-tp11481.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: NPE in ButtonSkin

2015-11-13 Thread chris_d_k
Hi Alex,

the strange thing is that this is a project for developing a part of a
bigger project and in this state this whole project is NOT using any skin,
style, ...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/NPE-in-ButtonSkin-tp11481p11484.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: NPE in ButtonSkin

2015-11-13 Thread chris_d_k
Sorry, "not changed" any default skins, css, ...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/NPE-in-ButtonSkin-tp11481p11486.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Problem with prompt text in spark.skins.mobile.TextAreaSkin

2015-10-21 Thread chris_d_k
Hi,

I am using TextAreas and the spark.skins.mobile.TextAreaSkin.

I want to use padding to give make the TextAreas higher and still having the
text centered vertically.

When I just add the padding via css the height of the TextArea is as heigh
as before until I enter text. The prompt text inside the text are is cutted.

How can I fix this/ what am I doing wrong?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problem-with-prompt-text-in-spark-skins-mobile-TextAreaSkin-tp11358.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Event when all effect ended

2015-10-20 Thread chris_d_k
Hi,

when I want to do something after an effect has ended for all targets..

fadeOutEffect.addEventListener(EffectEvent.EFFECT_END,
handleFadeOutEffectEnded);
fadeOutEffect.targets = [aLotOfTargets];
fadeOutEffect.play();

will it be reliable to check this in the handleFadeOutEffectEnded by
checking

fadeOutEffect.isPlaying == false

or do I have to count the targets and the number of times the
handleFadeOutEffectEnded was called?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Event-when-all-effect-ended-tp11354.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Event when all effect ended

2015-10-20 Thread chris_d_k
It is working... just was wondering what is the *correct *way as I found
nothing about this in the web (handling effects of all targets ended...)



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Event-when-all-effect-ended-tp11354p11357.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Mobile - Resize Image and send to server with blazeds

2015-09-27 Thread chris_d_k
I have taken a photo with the camera roll and I am able to display it :

private function imageSelected(e:MediaEvent):void
{
var mediaPromise:MediaPromise = e.data;
this.mpLoader = new Loader();
this.mpLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onMediaPromiseLoaded);
this.mpLoader.addEventListener(IOErrorEvent.IO_ERROR,
onMediaPromiseLoadError);
this.mpLoader.loadFilePromise(mediaPromise);
}

private function onMediaPromiseLoaded(e:Event):void
{
var mpLoaderInfo:LoaderInfo = e.target as LoaderInfo;
mpLoaderInfo.removeEventListener(Event.COMPLETE,
onMediaPromiseLoaded);
mpLoaderInfo.loader.removeEventListener(IOErrorEvent.IO_ERROR,
onMediaPromiseLoadError);

imageDisplay.width = CONTENT_WIDTH;
imageDisplay.height = (CONTENT_WIDTH / mpLoader.width) *
mpLoader.height;
imageDisplay.source = mpLoaderInfo.loader;
}

I have a button and when I press it I want to send the image scaled
(proportionally to 1000px) to the server (we use BlazeDS). What's the best
way to achive this?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Resize-Image-and-send-to-server-with-blazeds-tp11237.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Text position in an IconItemRenderer wrong at the first time the list is displayed in a view

2015-09-01 Thread chris_d_k
Hi,

I have tried to set the width in this way:

var iRenderer:ClassFactory = new ClassFactory(MyItemRenderer);
 iRenderer.properties = {ownUser: quizUser, width: CONTENT_WIDTH};
 myList.itemRenderer = iRenderer;


and this doesn't work. It really seems like the one line texts sometimes are
measured as two-line-texts...

Any tip what more I can try?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-position-in-an-IconItemRenderer-wrong-at-the-first-time-the-list-is-displayed-in-a-view-tp10743p4.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Text position in an IconItemRenderer wrong at the first time the list is displayed in a view

2015-09-01 Thread chris_d_k
Some traces to the problem:

in layout contents:


trace("");
trace(labelDisplay.text);
trace("---");
trace(labelDisplay.getPreferredBoundsHeight());
trace(labelDisplay.getPreferredBoundsWidth());
trace("---");
trace(this.getPreferredBoundsHeight());
trace(this.getExplicitOrMeasuredWidth());

=

[trace] 
[trace] Du hast gegen Liliana Löwenherz 3:3 unentschieden gespielt.
[trace] ---
[trace] 108.15
[trace] 339
[trace] ---
[trace] 120
[trace] 509

[trace] 
[trace] Du hast gegen Liliana Löwenherz 3:3 unentschieden gespielt.
[trace] ---
[trace] 66.15
[trace] 740
[trace] ---
[trace] 120
[trace] 910



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-position-in-an-IconItemRenderer-wrong-at-the-first-time-the-list-is-displayed-in-a-view-tp10743p6.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Text position in an IconItemRenderer wrong at the first time the list is displayed in a view

2015-09-01 Thread chris_d_k
When I trace the widths of the renderer and the label the first time it is to
short - what would be the best way to set the width of an itemRender in a
mobile app?  It's width should be 100% - a gap left and right defined in
css...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-position-in-an-IconItemRenderer-wrong-at-the-first-time-the-list-is-displayed-in-a-view-tp10743p5.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: RichText -> import HTML -> Space between List Items ()

2015-08-31 Thread chris_d_k
Is there any tutorial how to style a RichText with imported HTML?
Paddings/Spaces,...?




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/RichText-import-HTML-Space-between-List-Items-ul-tp10972p11103.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


RichText - import HTML - Space between List Items (ul)

2015-08-18 Thread chris_d_k
Hi, 

I am importing some HTML text:

label.textFlow = TextConverter.importToFlow(htmlText,
TextConverter.TEXT_FIELD_HTML_FORMAT);

inluding a list:

ul
liTest/li
litest/li
litest/li
/ul

The space between the list items is more than a normal line - can I change
this with css?





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/RichText-import-HTML-Space-between-List-Items-ul-tp10972.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-08-06 Thread chris_d_k
Hi,

my test result is that when returning back to active the enterFrame on the
ViewNavigatorApplication is called 24 to 25 times/seconds instead of the
setted 30 times.



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10905.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-08-05 Thread chris_d_k
Currently the issue doesn't exist anymore with buttons... only lists or
anymations... 

When I have sent the app to the background and reactivate it again and
scroll a list everything is blinking but not the list which is scrolling -
the same with animations... (Animation in fine, everything else is blinking)

and once the activeView is changed everything is working fine again... 

*But the problem is really the frame rate!!!* - witout changing the
framerate everything is working correctly ... but it is bad practice... or
not?

private function onApplicationActivate(event:Event):void
{
//app.stage.frameRate = 30;
sendNotification(AppConstants.APP_ACTIVATED);
}

private function onApplicationDeactivate(event:Event):void
{
//app.stage.frameRate = 1;
sendNotification(AppConstants.APP_DEACTIVATED);
}



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10898.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-08-04 Thread chris_d_k
Hi Alex,

I looped through every child of the navigators activeView and invalidated it
and called validateNow() on them - without any effect...

I also found out the Goal Manager-App in the flex showcase has the same
problem... at least... is it a bug with flex or adobe air?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10893.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-07-23 Thread chris_d_k
Is there a way to force an update of the complete screen and all of its
components? Maybe this can fix the problem as leaving the view fixes the
problem?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10842.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Text position in an IconItemRenderer wrong at the first time the list is displayed in a view

2015-07-18 Thread chris_d_k
Hi Alex,

the Probleme seems to appear when there is a text really close to have an
word wrap. The textfield seems to be measured for 2 lines but only has 1
line.

The screenshot is another example - there it is not in an ItemRenderer - it
is happening in a group...

http://apache-flex-users.246.n4.nabble.com/file/n10818/textProblem.png 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-position-in-an-IconItemRenderer-wrong-at-the-first-time-the-list-is-displayed-in-a-view-tp10743p10818.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-07-13 Thread chris_d_k
Hi,

is there anyone knowing how to solve the problem?  Is this problem only on
Sony Xperias?

I found an easy way to reproduce the problem.

- Create a new mobile project witha ViewNavigatorApplication
- Create a view with a list and some content (f.e. Strings from 1 to 10)
- Start the app and send it to the background for some times or rotate the
device (portrait/landscape) a few times and scroll the list 

- The screen starts flickering 

I am using Flex4.14.1 Air18. The problem existed also with previous versions
(f.e. Flex4.12.1 - Air14)

The phone (Xperia Z Ultra, Model C6833, Qualcomm MSM8974) is using Android
5.0.2 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10752.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Text position in an IconItemRenderer wrong at the first time the list is displayed in a view

2015-07-10 Thread chris_d_k
Hi,

I have a mobile app with a list and and ItemRenderer (extending an extended
IconItemRenderer) which is only using the label (not the messageDisplay).

When I first open the view containing the list (on a device) the text inside
the itemRenderer is not vertically centered. The measured height is about
60px. (IconItemRenderer Line 2230)
Forcing an updateDisplayList does not change anything (f.e. through clicking
the renderer) - the measured height doesn't change.

When I change the view and go back to the view with the list the text is
perfectly centered. The measured text height is about 20px. From this point
the view (which is always created from the scratch) is displayed correct.

Is there something I am doing wrong?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-position-in-an-IconItemRenderer-wrong-at-the-first-time-the-list-is-displayed-in-a-view-tp10743.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


How to get a Footer (TabBar) in a ViewNavigatorApplication

2015-07-05 Thread chris_d_k
Hi,

I have an App using the ViewNavigatorApplication. How can I create a
Footer which always stays on top like the ActionBar where I want to add
Buttons (for opening other views, external links, triggering events, ...)
depending on the current view. The footer should always stay on the same
position (no transition animations).

Do I have to create a special skin for this and tell that skin what buttons
to display depending on the current view or is there a better way to achieve
this?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-get-a-Footer-TabBar-in-a-ViewNavigatorApplication-tp10714.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Debugging on iOS - Problems finding Apples iTunes Library (iTunesMobileDevice.dll)

2015-06-18 Thread chris_d_k
There is a lot in the web about this topic but currently I haven't found a
working solution. 

I have a windows pc and want to run my flex mobile app an iPodTouch with iOS
8.3 - using intellij idea.

It worked a long time but something broke it. Installing any (also older)
iTunes-Version doesn't fix the problem.

So when I call adt -devices -platform ios I always get iTunes
MobileDevice library not found. Please ensure iTunes version 12.1.0.71 or
greater is installed.

Has anyone an idea how to fix it?





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Debugging-on-iOS-Problems-finding-Apples-iTunes-Library-iTunesMobileDevice-dll-tp10620.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Debugging on iOS - Problems finding Apples iTunes Library (iTunesMobileDevice.dll)

2015-06-18 Thread chris_d_k
flex-sdk-description
nameApache Flex 4.14.1 FP17.0 AIR17.0 en_US/name
version4.14.1/version
build20150325/build
/flex-sdk-description



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Debugging-on-iOS-Problems-finding-Apples-iTunes-Library-iTunesMobileDevice-dll-tp10620p10623.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Problems with IconItemRnderer, Truncating and positioning of elements

2015-06-18 Thread chris_d_k
So at least this had some strange side effects... 

When I want an itemRenderer with text which is truncated and where I want to
define the width of the text by myself, how can I achive this (when I want
to use the available optimized renderers)?

And is there also a way to define the maximum number of lines in one of the
optimized itemRenderers?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-IconItemRnderer-Truncating-and-positioning-of-elements-tp10618p10622.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Problems with IconItemRnderer, Truncating and positioning of elements

2015-06-17 Thread chris_d_k
Hi, I had a strange problem...

I extended an IconItemRenderer, added icons and did positioning by modifying
the x/y values.

The truncation of the labelDisplay was not displayed/rendered but in the
trace of its text-property i saw it was truncated...

Changing setting the positioning through setElementPosition() fixed my
problem and the truncated text was displayed correctly...

Why was this happening... is this a bug or something I don't understand?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Problems-with-IconItemRnderer-Truncating-and-positioning-of-elements-tp10618.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-05-06 Thread chris_d_k
Have you tried different AIR versions?
Yes.

Also, how about different rendering modes? 
No. As I think auto==cpu is the only making sense with flex



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10272.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex mobile - Screen is flickering on animations after app was in background

2015-05-04 Thread chris_d_k
On our mobile app we have the problem that there is a flickering in the
background when something is animated after the app was in the background...
When we change the view the problem is gone...

Is this a flex problem or an air problem?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex mobile - Screen is flickering on animations after app was in background

2015-05-04 Thread chris_d_k
*IT HAPPENS ON My Xperia Z Ultra with Android 5.0.2 but NOT on my Galaxy S2
with Android 4.2.2*

On the sony device and Android 5.0.2 it's not only happening with
animations... it seems to be happening also in interactions (click on
button, ...) so parts of the screen are flickering in black and white... So
when I press the button some componentes get completely black... when I
release the button they are again displayed correctly... 

All of this only happens if the app was sent to the background before... and
it happens on every view





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-mobile-Screen-is-flickering-on-animations-after-app-was-in-background-tp10246p10248.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


TextConverter.importToFlow - Bold text bigger than normal text

2015-04-22 Thread chris_d_k
Hi, when I use html formatted text in a RichText on mobile Devices the bold
text is bigger (higher) than normal text. Is this a normal behaviour?

http://apache-flex-users.246.n4.nabble.com/file/n10143/font_apache.jpg 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/TextConverter-importToFlow-Bold-text-bigger-than-normal-text-tp10143.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Best performance for ItemRenderer with FXG Icon?

2015-04-14 Thread chris_d_k
Hi,

 I have an itemRenderer with an fxg-Files as icon depending on the data. I
would prefer not to use special fxg-files for all densities - as it is a
vector. 
When I add the fxg-Class in the iconFunction I get an ugly scaled icon looks
like a not smoothly scaled bitmap. 
I think setting smooth = true on the iconDisplay would fix the problem but
would be bad for the performance. 

What is the best way to get the icon smooth (image quality and performance).
Should I use a LabelItemRenderer and add and scale the fxg manually instead?





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Best-performance-for-ItemRenderer-with-FXG-Icon-tp10081.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Tools for automated testing of flex mobile applications

2015-04-09 Thread chris_d_k
I have seen TestComplete from SmartBear but it seemed to me that it doesn't
support Air Mobile (written in a their forum - but wrote a mail to them if
this has changed)...

While searching a long time for a solution I only found some Providers
offering tools testing through image recognition/comparision... 
Flex objects have a lot of properties for automation... isn't there anything
out there using this for flex mobile apps ... (like Flex monkey years ago
for flex apps)



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Tools-for-automated-testing-of-flex-mobile-applications-tp10032p10038.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Tools for automated testing of flex mobile applications

2015-04-08 Thread chris_d_k
Does anyone have experiences with applications for automated testing of flex
mobile applications who can recommend a specific app for this purpose?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Tools-for-automated-testing-of-flex-mobile-applications-tp10032.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: App on iOS 8.2 (iPod) with black borders on top and bottom

2015-03-23 Thread chris_d_k
Okay... sorry... forgot to add it to Files and folders to package in
idea...




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/App-on-iOS-8-2-iPod-with-black-borders-on-top-and-bottom-tp9856p9862.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: App on iOS 8.2 (iPod) with black borders on top and bottom

2015-03-23 Thread chris_d_k
I added a 640 X 1136 image called default-5...@2x.png.

That should fit the iPod G5... but 1 have about 1/2 inch black at the top
and at the bottom...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/App-on-iOS-8-2-iPod-with-black-borders-on-top-and-bottom-tp9856p9861.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Cursor starts in the middle of an TextInput on iOS

2015-03-23 Thread chris_d_k
Is there a way to get the cursor startet in the middle - also any text in the
input moving in the nirvana when its left of the middle...



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Cursor-starts-in-the-middle-of-an-TextInput-on-iOS-tp9857.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


App on iOS 8.2 (iPod) with black borders on top and bottom

2015-03-23 Thread chris_d_k
Has anyone an idea how to remove them - it's not on android...





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/App-on-iOS-8-2-iPod-with-black-borders-on-top-and-bottom-tp9856.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Flex Mobile / Air app - restarting when long time inactive

2015-03-16 Thread chris_d_k
I only found:

keyUIApplicationExitsOnSuspend/key 
true/

to stop the app when it gets in the background but this is not set in my
App... Any idea what I need to fix my problem?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Air-app-restarting-when-long-time-inactive-tp9800p9802.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Mobile / Air app - restarting when long time inactive

2015-03-14 Thread chris_d_k
Hi,

when we put our flex based air app in the background and put them active
after some time the app not just opens again - it restarts. (the only thing
we do when the app goes to the is deactivated is setting its frameRate to 1)

Is this a common problem?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-Air-app-restarting-when-long-time-inactive-tp9800.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Use styles for another applicationDPI possible?

2015-03-04 Thread chris_d_k
Hi I am develloping a flex mobile App... I looks great on a nexus 4.7 but not
on the huge Sony Xperia Z Ultra (6 Inch). Is it possible to use for a big
Phablet or Tablet the css styles for another applicationDPI as the device
actually has or can I manipulate the
FlexGlobals.topLevelApplication.applicationDPI for this case in any way?

Best regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Use-styles-for-another-applicationDPI-possible-tp9732.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


What is the best way to have on demand scrolling in flex mobile views?

2015-02-19 Thread chris_d_k
I want to add scrollbars to views only if this is necessary (need them on
iPhone 4 but not on 5 or higher).

What is the best and most performant way to achive this? My Views actually
have no skin.

What I did is to check in updateDisplayList if the content fits and if not:

scroller = new Scroller();
scroller.width = width;
scroller.height = height;
scrollingContainer = new Group();

scrollingContainer.layout = new VerticalLayout();
scrollingContainer.setStyle(horizontalAlign, center);
scrollingContainer.setStyle(gap, GAP_SIZE);
scrollingContainer.setStyle(paddingTop, GAP_SIZE * 2);

scrollingContainer.addElement(component1);
scrollingContainer.addElement(component2);
scrollingContainer.addElement(component3);

...

addElement(scrollingContainer);

scroller.viewport  = scrollingContainer;

addElement(scroller);

Is there a better way?




--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/What-is-the-best-way-to-have-on-demand-scrolling-in-flex-mobile-views-tp9638.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Namespaces in CSS - Subfolders

2015-01-25 Thread chris_d_k
Hi,

I have some Components in the package 
com.company.project.views.viewsOfTypeA
and in
com.company.project.views.viewsOfTypeB

when I want to define styles in a css file do I have to create seperate
namespaces for the two folders:
@namespace a com.company.project.views.viewsOfTypeA.*;
@namespace b com.company.project.views.viewsOfTypeB.*;

a|ViewA1, b|ViewB1
{
/*css definitions*/
}

or is there a way to use one namespace also for all subfolders
@namespace b com.company.project.views.???;



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Namespaces-in-CSS-Subfolders-tp9469.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Test multiplayerapp in one IDE

2015-01-24 Thread chris_d_k
Hi,

I am building a multiplayer app and want to start various instances of my
air app in the simulator (intellij idea). This does't work as I get 

C:\flex_air_sdks\flex_4_13_air_15\bin\adl.exe -profile extendedMobileDevice
-screensize iPhoneRetina -XscreenDPI 326 -XversionPlatform IOS
C:\XYZ\AirClient\out\production\AirClient\my-android-descriptor.xml
C:\AFolder\AirClient\out\production\AirClient
invocation forwarded to primary instance

Is it possible to test a flex air mobile multiplayer app on one PC?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Test-multiplayerapp-in-one-IDE-tp9467.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Test multiplayerapp in one IDE

2015-01-24 Thread chris_d_k
Copying and rennaming the IDs in the Application Descriptor Files seens to
work for me



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Test-multiplayerapp-in-one-IDE-tp9467p9468.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: How to scale the icon in flex mobiles navigationContent for different devices/applicationDPIs

2015-01-22 Thread chris_d_k
No... this doesn't change anything... (tried it)



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-scale-the-icon-in-flex-mobiles-navigationContent-for-different-devices-applicationDPIs-tp9448p9455.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: How to scale the icon in flex mobiles navigationContent for different devices/applicationDPIs

2015-01-21 Thread chris_d_k
Sorry... did't write that the icon is a scalable FXG-File... 

Under this circumstances - isn't there a better way?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-scale-the-icon-in-flex-mobiles-navigationContent-for-different-devices-applicationDPIs-tp9448p9451.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: How to scale the icon in flex mobiles navigationContent for different devices/applicationDPIs

2015-01-21 Thread chris_d_k
?xml version=1.0 encoding=utf-8 ?
Graphic version=2.0 viewHeight=50 viewWidth=50 ATE:version=1.0.0
flm:version=1.0.0 d:using= pd:backgroundColor=10066329
xmlns=http://ns.adobe.com/fxg/2008;
xmlns:ATE=http://ns.adobe.com/ate/2009;
xmlns:d=http://ns.adobe.com/fxg/2008/dt;
xmlns:flm=http://ns.adobe.com/flame/2008;
xmlns:pd=http://ns.adobe.com/xfl/2008/pd;
  Library/
  Group d:type=layer d:userLabel=Ebene 1
Path x=0.05 y=0.05 data=M50 -0.05 50.05 50 50.025 50.025 0 50.05
-0.025 50.025 -0.05 0 -0.025 -0.025 50 -0.05
  fill
SolidColor color=#24408A alpha=0/
  /fill
/Path
Group
  Group
Path x=11.85 y=33.4 data=M26.35 -0.075 26.425 4 26.4 4.025 0
4.075 -0.025 4.05 -0.075 0 -0.05 -0.025 26.35 -0.075
  fill
SolidColor color=#FF/
  /fill
/Path
  /Group
  Group
Path x=11.85 y=26.5 data=M26.35 -0.075 26.425 4 26.4 4.025 0
4.075 -0.025 4.05 -0.075 0 -0.05 -0.025 26.35 -0.075
  fill
SolidColor color=#FF/
  /fill
/Path
  /Group
  Group
Path x=11.85 y=19.55 data=M26.35 -0.075 26.425 4 26.4 4.025 0
4.075 -0.025 4.05 -0.075 0 -0.05 -0.025 26.35 -0.075
  fill
SolidColor color=#FF/
  /fill
/Path
  /Group
  Group
Path x=11.85 y=12.65 data=M26.35 -0.075 26.425 4 26.4 4.025 0
4.075 -0.025 4.05 -0.075 0 -0.05 -0.025 26.35 -0.075
  fill
SolidColor color=#FF/
  /fill
/Path
  /Group
/Group
  /Group
  Private/
/Graphic



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-scale-the-icon-in-flex-mobiles-navigationContent-for-different-devices-applicationDPIs-tp9448p9453.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


How to scale the icon in flex mobiles navigationContent for different devices/applicationDPIs

2015-01-21 Thread chris_d_k
s:navigationContent
s:Button id=menuButton icon={ActionBarMenuIcon}
click=openMenu() /
/s:navigationContent

How can i get the icon of the button scaled to fit to the different devices?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/How-to-scale-the-icon-in-flex-mobiles-navigationContent-for-different-devices-applicationDPIs-tp9448.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Text in CheckBox cropped - Flex 4.13 - Mobile

2015-01-03 Thread chris_d_k
http://apache-flex-users.246.n4.nabble.com/file/n9311/problem_cutted_text.png
 

The n is cropped.

This happens with a standard CheckBox - same result if its width is 400px or
450px - had the same Problems sometimes with buttons.

Is this a known problem?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Text-in-CheckBox-cropped-Flex-4-13-Mobile-tp9311.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


BlazeDS Point-To-Point messages

2014-12-30 Thread chris_d_k
With BlazeDS on the server, we want to create a game in which clients can
play against each other, one on one. Now, we wonder how is the right way to
send Point-To-Point messages with BlazeDS. Subtopics means sending messages
to all clients, what, for me, seems not to be the right and scaleable way.
What is the best way for a one-on-one gaming system?



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/BlazeDS-Point-To-Point-messages-tp9305.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Performance Problems with SkinnableContainer when adding multiline Label

2014-12-20 Thread chris_d_k
Having a skinnableContainer as some panel I get huge problems with
performance when putting some multiline label in it...

What can I do to fix that?

(Is there actually any component available where I can add children in a
special (sub-)container in mxml (contentGroup like) without skinning?)

Here the test code... 

?xml version=1.0 encoding=utf-8?
s:ViewNavigatorApplication xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark

s:navigationContent
s:Button label=test1 click={navigator.pushView(TestView)} /
s:Button label=test2 click={navigator.pushView(TestView2)} /

/s:navigationContent

/s:ViewNavigatorApplication

*TestView:*
s:View xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
s:Panel percentWidth=94 
s:Label percentWidth=100 text=This is a Test. /
/s:Panel
/s:View

*TestView2:*
s:View xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark

s:Panel skinClass=TestSkin percentWidth=94
s:Label percentWidth=100
text=This is a Test. This is a Test. This is a Test. This
is a Test. This is a Test. This is a Test. This is a Test. This is a Test.
This is a Test. This is a Test. This is a Test. This is a Test. This is a
Test. This is a Test. This is a Test. This is a Test.  /
  /s:Panel
/s:View


*The Panel*
package
{

import spark.components.SkinnableContainer;

public class MyPanel extends SkinnableContainer
{

public function MyPanel()
{
super();
setStyle(skinClass, TestSkin);
}

override protected function commitProperties():void
{
super.commitProperties();
}

}

}



*The Skin*
?xml version=1.0 encoding=utf-8?

s:Skin xmlns:fx=http://ns.adobe.com/mxml/2009;
xmlns:s=library://ns.adobe.com/flex/spark
alpha.disabled=0.5

fx:Metadata
[HostComponent(MyPanel)]
/fx:Metadata

fx:Script



/fx:Script


s:states
s:State name=normal/
s:State name=disabled/
/s:states

s:Rect percentWidth=100 percentHeight=100 
s:fill
s:SolidColor color=#FF /
/s:fill
/s:Rect

s:Rect top={sidePadding} left={sidePadding} right={sidePadding}
bottom={sidePadding} 
s:fill
s:SolidColor color=#F6F6F6 /
/s:fill
/s:Rect

s:Rect height={getStyle('titleBackgroundHeight')} x={sidePadding}
y={sidePadding} width={width - sidePadding * 2}
s:fill
s:SolidColor color=0xFF /
/s:fill
/s:Rect

s:Rect id=lineRect  
s:fill
s:SolidColor color=0xFF /
/s:fill
/s:Rect

s:BitmapImage id=titleIcon scaleMode=letterbox smooth=true /

s:Label id=titleLabel styleName=panelHeader /


s:Group id=contentGroup contentBackgroundColor=0xFF
contentBackgroundAlpha=1
/s:Group

/s:Skin





--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Performance-Problems-with-SkinnableContainer-when-adding-multiline-Label-tp9276.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Flex Mobile font looks bolder in Label...

2014-12-03 Thread chris_d_k
http://apache-flex-users.246.n4.nabble.com/file/n8961/toFat.jpg 

@font-face
{
src: url(../assets/fonts/arial.ttf);
fontFamily: StandardFontAsCFF;
fontWeight: normal;
embedAsCFF: true;
}

@font-face
{
src: url(../assets/fonts/arialbd.ttf);
fontFamily: StandardFontAsCFF;
fontWeight: bold;
embedAsCFF: true;
}

@font-face
{
src: url(../assets/fonts/arial.ttf);
fontFamily: StandardFont;
fontWeight: normal;
embedAsCFF: false;
}

@font-face
{
src: url(../assets/fonts/arialbd.ttf);
fontFamily: StandardFont;
fontWeight: bold;
embedAsCFF: false;
}

s|Label
{
fontFamily: StandardFontAsCFF;
fontWeight: normal;
color:  #848484;
}
/*The Style I used for the label...*/
.smallText   
{
fontFamily: StandardFontAsCFF;
fontLookup: embeddedCFF;
fontWeight: normal;
fontSize: 14px;
}

/*The Style I used for the ItemRenderer*/
itemRenderer|NewsItemRenderer
{
fontSize: 14px;
}

Is this normal???



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Flex-Mobile-font-looks-bolder-in-Label-tp8961.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: What is the best way to show html-formatted text in a flex mobile app?

2014-12-02 Thread chris_d_k
Thanks for the great responses... But one question left...

Aren't there problems with performance when using a RichText in a Mobile Air
App? I remember Adobe warned to use it in Mobile Apps. Has something changed
...

Thanks

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/What-is-the-best-way-to-show-html-formatted-text-in-a-flex-mobile-app-tp8917p8941.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


What is the best way to show html-formatted text in a flex mobile app?

2014-12-01 Thread chris_d_k
I just want to display a text with some bold or colored words in an
itemRenderer. What is the best way (performance, ...) to achive this?

Best regards

Christian



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/What-is-the-best-way-to-show-html-formatted-text-in-a-flex-mobile-app-tp8917.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Mobile - Problems with List and HorizontalLayout and pageScrollingEnabled

2014-11-14 Thread chris_d_k
Here is my list:

s:List id=myList preventSelection=true
percentWidth=100 percentHeight=100
verticalScrollPolicy={ScrollPolicy.OFF}
itemRenderer=MyItemRenderer
interactionMode=touch pageScrollingEnabled=true
dataProvider={arrayOfFourElements}
s:layout
s:HorizontalLayout gap=1 /
/s:layout
/s:List

Strange things:

- when setting the gap to 0 the scrolling don't work anymore... a bug?

- I set the itemrenderers width to width of the list - 1. The first item I
see is the second item and just scrolling 1 pixel will switch instantly with
a flashing to the first item (without scrolling) - another bug?

override protected function measure():void
{
super.measure();
var parent:DisplayObject = this.parent;
while(parent is List == false)
{
parent = parent.parent;
}
measuredWidth =  parent.width  1 ? parent.width - 1
: parent.width;
// this also will break the list...: parent.width - 1;
}
(Is there a better way to get the lists with from within an itemrenderer?)

Best regards,

Christian 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Mobile-Problems-with-List-and-HorizontalLayout-and-pageScrollingEnabled-tp8794.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Mobile - Problems with List and HorizontalLayout and pageScrollingEnabled

2014-11-14 Thread chris_d_k
Setting the size of the itemRenderer this way is working ... and I can still
scroll with a gap setted to 0...

private function setItemRenderer(event:FlexEvent):void
{
var renderer:ClassFactory = new ClassFactory(MyItemRenderer);
renderer.properties = { width: myList.width  };
myList.itemRenderer = renderer;
}



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Mobile-Problems-with-List-and-HorizontalLayout-and-pageScrollingEnabled-tp8794p8795.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Multiline Label in Spark Mobile Button

2014-10-31 Thread chris_d_k
Is there any example for a multiline button in flex mobile skin written in
ActionScript? 



--
View this message in context: 
http://apache-flex-users.246.n4.nabble.com/Multiline-Label-in-Spark-Mobile-Button-tp8562.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


  1   2   >