Flex :: Mobile: Can't Position The Component Properly In Titlecontent Area Of ActionBar

Apr 5, 2012

Things go weird when i tried position a button in titleContent of ActionBar. Set both the "left" and "horizontalCenter" can't move my button.Code as below:

<s:titleContent>
<s:Button label="HELLO" left="50"/>
</s:titleContent>

How can I position a Button at the middle of this Actionbar??

View 1 Replies


Similar Posts:


Flex :: Get ActionBar At The Bottom In Mobile Application?

Aug 22, 2011

ViewNavigator has ActionBar on top by default. I want move at the bottom.

navigator.actionbar.y=415 //gets actionbar at bottom

but in next view it comes back on top. You can set height in each view but it will show bar at the top for few seconds before bring back to bottom.

View 1 Replies

AS3 :: Flash - Remove Button From Flex Mobile App Actionbar?

Sep 27, 2011

How exactly would i remove a Button from the actionBar "actionContent" in a flex mobile appI tried these:

this.stage.removeChild(menu_btn);
this.removeChild(menu_btn);
stage.removeChild(menu_btn);

[code].....

View 1 Replies

Flex :: Embedded Font Won't Work In Flex Mobile ActionBar?

Jul 20, 2011

i've got a few fonts embedded and am using them in my mobile application, and they are all working, except for the ones i try to use for the "ActionBar". They work everywhere else, and substituting "Comic Sans MS" for "titleCGF" changes it to Comic Sans. So why won't it work with my custom fontFamily?

[Code]...

View 5 Replies

Actionscript 3 :: Flex4.5 - Adobe Air Mobile - Change The Height Of The Actionbar On All Views?

Jul 29, 2011

I am working with Flash Builder 4.5 using Adobe Air, Flex and Actionscript 3, to develop a mobile application that works with multiple views. I want to change the height of my actionbar on all my views. I know that I can dynamically change it in actionscript 3 using:

navigator.actionBar.height = newHeight;

However, I would prefer to have the height in my style (.css) file, or if that's not possible, in the mxml code in every view, so that the actual height is reflected in the design-view. How can I accomplish this?

View 1 Replies

Ios ::Properly Preventing Orientation Change In Flex Mobile App

Jan 17, 2012

Is anyone able to actually make it work properly in Flex SDK 4.6?

Here's a short snippet :

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

[Code]....

What I'm trying to achieve is to support Landscape mode in both orientations, so if user turns the device 180 degress, the screen should also rotate. But there should be no action at all, when user rotates the device to one of portrait orientations. Instead, I'm seeing width changes to navigator action bar and sometimes content in portrait orientations, so apparently preventing the event is not enough. I'm using the "official" way Adobe suggests, but the problem is that it's not working very well. Granted, the stage does not change, but it seems that there's something firing in navigator anyway, since you can see the action bar width changing.

I had some success with explicitly setting layoutbounds to fixed width in handler method - this prevents changing the actionbar width, but it's only a temporary solution - if the view is a subject to a transition, or some other redraw - it will again render with bad sizes. As if there was something below that was telling it that it's in portrait mode, even though I'm trying to prevent it.

Before you detonate with some silly ideas like "autoOrient = false", don't. It's clearly not a solution for this problem. Obviously it's a bug with Flex SDK - did anyone find a way to fix it or a stable workaround?

[URL]

View 1 Replies

Flash :: Map Component For Flex / AIR Mobile

Feb 24, 2012

Is there a component I can use in my mobile app to display maps (like Google Maps)? I need the following features:

-add markers / drop pins

-show a path (shape polygon)

View 2 Replies

Flex :: Reduce The Scrolling Speed Of The Flex Mobile SpinnerList Component?

Mar 26, 2012

I'm using the SpinnerList component in a flex mobile application, the spinner turn too fast for my need, is it any way to reduces its speed.

There is many answer regarding the speed of the mouse wheel but no answer concerning the spinner itself.

View 1 Replies

Flex :: Creating Custom Component With A Drawing For Hero Mobile?

Dec 30, 2010

I'm trying to create a custom component which displays a red rectangle in the middle with the following Flex Mobile project for Android (in Flash Builder 4.5 Burrito) -

MyComp.mxml (has no errors):

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

[code].....

even though I have added c:Program FilesAdobeAdobe Flash Builder Burritosdks4.5.0frameworkslibsmxmx.swc to Flex Build Path (by clicking "Add SWC" button in the project properties dialog).

PS: Power Stackoverflow-users, consider adding a tag for Android-AIR or Flex-Hero or maybe Flex-Mobile

View 1 Replies

Flex :: Layout - Arrange Component To Scroll Properly

Mar 23, 2012

In following code, I have one large component, and I'd like only the level4 panel to be scrollable, but instead, the whole application become scrollable.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel width="100%" height="100%" title="level1">

[Code].....

View 2 Replies

Android :: Make Dynamic List Component In Flex 4.6 Mobile Project?

Jan 4, 2012

how can i change my list component in Flex 4.6 mobile project with that when an item is pressed it would dynamicly resize and show an article description and a button [URL]

View 1 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

Flex :: Getting The Global Coordinates Of The Visible Area Of A Component?

Oct 19, 2010

I am trying to determine the global coordinates of the visible rectangle that is currently rendered on the stage.

Specifically, if a canvas has an explicit height and width and is a child of a panel that has a scrollbar, the scrollbar can "hide" a part of the canvas. ContentToGlobal(x,y) provides the global position of the content at the time, but content coordinates can scroll off the boundaries of the parent panel and continue to give x,y coordinates that are not visible.

Is there a way to determine the viewable rectangle that is not hidden by anything?

View 2 Replies

Flex IFrame Component Not Rendering Outside Viewable Area?

Feb 4, 2011

Beginner Question: I am using the IFrame Component for Flex in Flex 4. The code below works when it is put at the top of the scrolling area. However, if I put it where it below the viewable area it will not render. I am a complete beginner to Flex. The interesting thing is when I resize the window while the HBox is in view, the Iframe will load. But scrolling to it will not. Below is my code. I have made sure everything is visible=true but it seems like I need to add a listener or somehow trick it to think that the window has been resized to get it to render. Anyone with an idea how to fix this?

[Code]...

View 1 Replies

Actionscript 3 :: Recognize A Holding/long Touch On A List Component In Flex Mobile?

Sep 13, 2011

IŽam trying to create my own custom list component in a Flex mobile Project which fires an Event when the user touches a listitem and holds the finger down for a given time.Some kind of "longTouch"-Event like its implemented on native android listitems to edit the entry for example.

I tried to listen for the MOUSE_DOWN Event to start a timer and dispatch an event when the timer finished. But this approach failed because i cant get the listitem that was pressed by the user because the List component updates the "selectedItem"-property only after the user lifts his finger from the list.

View 1 Replies

Flash :: "append" Html Text To Text Area In Flex And Flex Mobile Project To Display Sprite And Text Formatting?

Jun 7, 2011

I'm playing around with a messaging type of application. Does anyone know how, or of any tutorials on to "appending" html text to text areas in flex and flex mobile projects? And specifically how I could take that and basically "append" a sprite inline to the text when i need to? Something simple like:Username: some text right here!So, Anyone have any experience "appending" sprites or simple text formatting?how to solve these issues!EDIT:Based on an answer below it was sugguested that it's as simple as...textAreaInstance.htmlText += "<b>Username:</b> some text right here!";But its not. you can't do .htmltext with a text area. you can on a text field, so i tried

var TF:TextField = new TextField();
TF.width = 200;
TF.height = 200;

[code].....

View 3 Replies

Flex :: ModuleLoader Component Causing Memory Leak. How Can I Unload Modules Properly?

Jul 27, 2011

The application is too big to describe here, but I can tell you I have up to 20 modules or more that the client can use at any time. And if I go on loading screen after screen, my application can ocuppy 500MB and more.The script that I use to load and unload modules is:

public function createModule(modulo:String):void {
if(moduleLoader != null){
moduleLoader.unloadModule();[code]..............

View 2 Replies

Flex :: Get Global Coordinate Position Of A Component?

Aug 9, 2010

In flex, how to get global coordinate position of a component?

View 1 Replies

Actionscript 3 :: Position A Component In Flex That Is Fixed?

Nov 23, 2011

Just like in HTML / CSS you can set the position of a div to be 'fixed' using css. For example, a header that is fixed at the top of the web page when the user scrolls down the webpage.

Is this possible in Flex?

I have had a look at the

VDividedBox

control which kind of does what I'm after but don't like the 'divider'.

View 2 Replies

Actionscript 3 :: Text Area Not Updating Properly Missing Characters

Mar 30, 2012

I'm trying to update my text area via ActionScript code using this: scoreLabel.text = this.score.toString(); but it's not behaving correctly. When the score is 18, the text area displays just 1, when it's 26 it won't display anything at all... As a test, I tried doing this: scoreLabel.text = "this is a test"; and now the text area is just displaying e: [URL] This isn't a font issue, as I'm using Arial. What is going on here?

View 1 Replies

Flex :: Mobile Gesture Event : Slide Between 2 Views Like Google+ Mobile?

Mar 23, 2012

I would like to move (right or left according the current view) between 2 views when I move my finger on the mobile screen; for example with Google+ mobile application, in profil section, you can change the view just on move your finger on the screen, and the offset and the moving speed must be checked before change complete view.

View 2 Replies

Flex :: Mobile Supports Native Mobile Features?

Jun 27, 2011

Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).

View 2 Replies

Flex :: Add Textinput Component To Text Area As A Text

Sep 8, 2011

I have an problem that i want to add textinput or Any Component to TextArea Component..

View 1 Replies

Do Not Allow Editing At Specific Area In Text Area In Flex

Nov 10, 2011

I just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]

View 1 Replies

Actionscript 3 :: Make Mouse Position Detection Work Properly?

Sep 21, 2011

What I want to do is have a left arrow MC on the left side of the stage and right arrow MC on the right side of stage. When the mouse is over the left 1/3 of the stage, the left arrow appears, on the right 1/3 of the stage, the right arrow appears, but the middle 1/3 the arrows fade out.

I do NOT want to make large invisible MCs and detect the mouse movement that way. I just want it to be relative to the mouse position on the stage. I thought it would be very easy, but the eventListener fires everytime the mouse moves, so the left and right arrow MC animation is constantly being triggered, and they look like they are "shaking" for a lack of a better word.

[Code]...

View 1 Replies

ActionScript 2.0 :: Image - Position The Carousel In A Certain Area Of The Movie

Feb 1, 2010

I got this script for an xml controlled image carousel. It works really well, I just need to tweak it a bit to get it to work the way I want. I want to position the carousel in a certain area of the movie. The only parameter that I see to control where it's positioned is "var floor:Number = 20;" but this only controls the vertical position. I need to control the horizontal position, right now it's just centered. I see "xpos3D" but don't know what to make of it.

I also want to keep it from showing up outside of the frames I want it to appear. Right now when I put the script in the movie it shows up in every frame. How do I get it appear only in certain frames of the movie? When i put "stop();" at the end of the keyframe it still shows in the frames after it. The last thing I need is to position the animation on top of other layers. Right now it appears below all other layers in the movie. I don't know what parts to modify to accomplish this so of course I don't know what parts to post, which is why I'm posting the whole thing.

[Code]...

View 1 Replies

ActionScript 1/2 :: Mouse Position Inside A Movieclip Area?

May 20, 2009

how can i test the position of the mouse inside the area of a specific movieclip WITHOUT using rollover and rollout events?
 
the movieclip is the irregular shape (star)
 
i need to do some action according to the position of mouse (inside/outside of the movieclip area) but i can not use rollover event because i have a button placed over the movieclip.

View 1 Replies

ActionScript 2.0 :: Mouse Position In Certain Area's Triggers Code?

Jul 14, 2010

I'm wondering whether its possible to trigger some script by what area the mouse is hovering over. I know this would be simple with roll over buttons, but I already have buttons and thats where the problem comes in because they share the same space. So for instance I need something that says if the mouse is at X, Y ( or a broader area ) goto frame 2

View 1 Replies

Android :: Table Component In Adobe Air For Mobile Devices?

Jul 23, 2011

Is there any fast table components available for mobile devices (Anroids ,iOS) in Air?

View 1 Replies

ActionScript 2.0 :: Make Images Gallery Into Area Correct Position

Dec 19, 2011

I'm doing flash project slide images but i don't know how set images into area correct position. And textfield load file .txt.

[Code]...

View 3 Replies







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