Ios :: Creating Own IOS-controls With Flex

Feb 6, 2012

I was looking into creating iOS-apps (especially for the iPad) with the Adobe-Flex framework. It looks very promising to code apps this way. Is it possible to create own controls/widgets? In the far future I might want to create my own kind of gantt-calender or whatever. Is something like this possible and are there any good tutorials/book out there?

UPDATE: I want to create iOS Components that I can use in Flex. Controls, that are not aviable by default in Flex. Is that possible? By derivating or something?

UPDATE 2: In the meanwhile I found FlexLib to be useful. How hard is it to create stuff like this on your own? Especially for mobile devices. Are there any good tutorials, books, etc.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Creating A Menu With Keyboard Controls

Sep 29, 2011

I need to make a menu (sort of like a game main menu) that the user can either use the mouse to click on the buttons, or they can use the up and down keys on the keyboard to navigate the menu and use enter to select the button. Like, a game menu.

View 5 Replies

ActionScript 2.0 :: Creating Controls - Button OnPress Function

Jan 9, 2010

I'm doing a school project in flash that basically has to be a movie trailer, just several photos compiled together with some music. I got bored and now am making controls in Actionscript. I'm using CS4, however I have the document based in Actionscript 2.0. Basically, I have created a rewind button that goes backwards, however now I want it to do one of the two things:

If the video was playing when the button was pressed, I want it to go back to playing when released. If the video was paused the the button was pressed, I want it to continue to stay paused when released. I've tried some very basic if statements, trying to assign boolean statements, but I'm stuck. Here's what I have thus far for my rewind button:

Code:
rewind_button.onPress = function () {
onEnterFrame = function() {
prevFrame();
}}
rewind_button.onRelease = function () {
delete onEnterFrame;
play();
}}

View 3 Replies

ActionScript 3.0 :: Creating Map Controls Such As A Zoom Sliding Bar And A Panning Function

Jun 14, 2010

I am making an interactive map and am having trouble creating map controls such as a zoom sliding bar and a panning function.

View 1 Replies

ActionScript 2.0 :: 2 Player Game Moving Cars Controls Help With Controls

Nov 13, 2005

i have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.

View 1 Replies

Flex :: Override Child Node Controls In A Flex Tree Control?

Aug 20, 2010

I am currently developing a dynamic LineChart in FLEX 4.I am implementing a Tree control next to my LineChart, which will filter the LineChart dataprovider and lineseries. The tree control has several branches and ultimately 5 children (leaf nodes) at the bottom of the last branch.I need the leaf node/children to be displayed as checkboxes inside the tree control.As I understand,this will require overrides in the TreeItemRenderer class.This is where I am a little confused on how to implement that.Currently I can distinguish between leaf and branches using this code, in my main MXML component.I added this because it may be helpful to some beginning FLEXdevelopers, such as myself, who cannot easily find this functionality documented well:

private function treeClick(e:ListEvent):void {
_selectedItem = Tree(e.currentTarget).selectedItem;
if(mainTree.dataDescriptor.isBranch(_selectedItem)) {[code].....

I am looking at the TreeItemRenderer override class from the following example here: In the example, they override the "createChildden" super function to add checkboxes to the tree control.My question is, can I override the createChildren function directly in my MXML component, and not have to use an entire class file to override this functionality? Must I re-invent the wheel to do this?Also, how can I distinguish that my treeItem is a leaf node and not a parent, in the override function? I only want to add checkboxes to the leaf nodes, how can I differentiate? The following example adds checkboxes to all branches and leaf nodes, but I want to add checkboxes only to leaf node/children. How would you approach that?

override protected function createChildren( ): void
{
super.createChildren( );[code]............

Here is my tree tag:

<mx:Tree id="mainTree" dataProvider="{treeData}" itemRenderer="TreeCheckBoxItemRenderer" labelField="@label" showRoot="false" width="100%" height="100%" itemClick="treeClick(event)" />

View 1 Replies

Flex :: Cannot Tab Between Controls On A Modal Popup?

Sep 25, 2009

Create a modal popup to popup with popupmanager (mine is a group with a skinnable container inside of it)Put field components (textinputs) on the modal popup Attempt to tab between controlsTab switches to controls behind the modal-popup and ignores the fact that the modal is there. The tab loop only contains controls behind the modal. I've tried everything from setting tabChildren, to hasFocusableChildren. I can't implement IFocusManager as it's Halo and my modal is a Spark group, but would that work in some capacity? It really seems like Flex just ignores the modal in its focusmanager.

View 3 Replies

Flex :: Add Controls To The Title Bar Of A Panel?

Jul 8, 2010

I'm trying to implement a collapsible TitleWindow popup by adding a handle to the top right corner of a Panel control. Unfortunately, the image that I add as the handle doesn't show up when the control is drawn. I can trigger a redraw by changing the source of the image, so apparently it's there, but it's somehow hidden. Is there a way to make this Image control visible to the user?Here's the code for the window:

package
{
import mx.containers.Panel;

[code]......

View 2 Replies

Actionscript 3 :: Add Flex Controls To Project?

Nov 24, 2010

I have a pure AS3 project that plays video from youtube (chromeless player). I need to add some controls to manage this player. I don't know how to do that? If I just add mxml file into the project nothing happens. How to bind this file to as3?

View 4 Replies

Flex :: Use ItemRenderer In Mx.controls.TextArea?

Jun 21, 2011

I want to integrate itemrenderers in a TextArea. The purpose is to visualize keywords with their own easy interface while the user still can treat the whole thing as normal text to select the font, fontsize, etc.

[Code]...

View 1 Replies

Flex :: Looking For A More Efficient Way To Clear Controls?

Jul 28, 2011

In main.mxml I have a bunch of textInput controls a combobox and a few checkboxes that I would like to be able to clear with some sort of loop. Right now, I do it like this:

[Code]...

I read a post on SO that recomended adding the controls to an ArrayCollection with the creationComplete event. I tried that and it worked fine but it was not any more elegant than what I have now. All of these controls are in mxml format and not generated with AS by me. I also tried looping like this:

I can't get past that part though. I cannot find a way to reference the values of the control.

View 1 Replies

Flex - Import Mx.controls.Alert?

Oct 25, 2011

I got a strange problem. Just using Flash Builder 4.5 and trying to use the Alert Popup for some user messages.

[Code]...

View 2 Replies

Flex :: Style Elements Reference For Controls?

Aug 22, 2009

Is there any documentation link where I can find list of styles applicable to flex controls? In particular the AdvancedDataGridControl. Like border, border-left,top,bottom,indent, etc like list of all possible style elements.

#1: Link provided by Lior below is the complete list.
#2 : found this looks quite cool.

View 2 Replies

Flex :: Why Can't Import Mx.controls Into ActionScript Project

Oct 1, 2009

I'm trying to do a simple import into an ActionScript Project that I've created in Flex Builder:

import mx.controls.Label;

It won't let me. Code hinting shows no 'controls' after mx.

View 1 Replies

Flex :: Force All Controls To Render At Start?

Oct 4, 2009

When I try to access the hidden TABs of my tab navigator control in action script, it returns a null error. But it works OK if I just activate the control in the user interface once. Obviously the control is not created until I use it. How do I make all the tabs automatically created by default ?

View 2 Replies

Flex :: Programmatically Add A Set Of Controls With Some Amount Of Pixels Between Them?

Nov 8, 2009

I need to programmatically add a set of controls with some amount of pixels between them. I can't seem to find how to do this in the Flex docs.

View 4 Replies

Flex :: Set Up Projects That Reference Common Controls?

Mar 30, 2010

I'm not a flash developer, I'm having issues figuring out how I should set up these two projects that I have in Flex Builder.I've already created projA which has a .mxml that references several custom controls & skins from com.xxx.controls within projA.I now have to build projB which also has a .mxml that will create a different .swf. I want to use some of the same controls from projA.I currently build projA through the command line and nant and will need to do the same for projB.

Should I create a new project to move all of the common controls into? How do I then use this library project in both the projects & compile via command?

View 1 Replies

Flex :: Builder Plugin In Eclipse - Some Controls Not Available?

Apr 7, 2011

I downloaded Flash Builder from here : Download I recently started writing some small programs in Adobe Flash Builder Plugin for Eclipse.I am trying out those programs by reading out the Adobe book : Training from the source.But, I found that some of the controls mentioned in the book for some e.g, such as ApplicationControlBar doesn't appear in the Adobe Flash Builder 4. That control is mentioned in the book, but unable to find in the Builder

View 2 Replies

Setup All Of Controls ( More Than 100 Visible ) On A Flex Application?

Jun 12, 2011

I am planing to setup all of controls ( more than 100 visible ) on a Flex application to alpha below 1, which will make them a bit transparent, but i am wondering if this will affect the performance of the application. So :I would like to know if alpha actually affecting performance on Flex applications ?

View 2 Replies

Flex :: Menu Attached To Mx.controls.PopUpButton Never Changes?

Jan 1, 2012

I have prepared a very simple test case to demo my problem.just place the 2 files below into a Flash Builder 4.6 project and they will run instantly.My problem is that the menu attached to my (slightly modified) custom PopUpButton never changes - even though the underlying Array data provider is changed when you click one of the 3 buttons on the right side of it:

AuxButtonTest.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application [code].....

I've commented my custom event out - it doesn't matter here.click at the buttons few times and then look at the menu - it always has 5 items and that is wrong.

AuxButtonText.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:PopUpButton[code].....

View 2 Replies

ActionScript 3.0 :: Possible To Use Flex Controls Directly In Flash?

Dec 8, 2009

Can Flex objects be referenced and used in AS3 in Flash? I tried to make a Button from the fl.controls but it said Button nolonger exists and I need to use SimpleButton, and that it didn't recognize the package I was refering to, fl.controls. I tried again with the Colorpicker since I thought part of the problem might have been the button, and I thought I had referenced fl.controls incorrectly since I tried to use fl.* the first time, similar to using flash.display.* and flash.events.* It had the same problem, though, and now I'm wondering if it's even possible to use the flex controls directly. I can't imagine why, though; they're a part of the FlashPlayer runtime, so if I'm calling them from Flash or Flex it shouldn't matter, right?

View 4 Replies

Actionscript 3 :: Adding Dynamic Controls To TabBar,Flex 3 Air As3?

Aug 28, 2009

I have a TabBar Control with 3 tab, i need to add controls(Button,Label) dynamically in to each tab, I can add the controls to the initial selected tab but when i add to next tab , i am getting Null exception error That is when TabBar property selectedIndex="0" means i can add to 1st tab.but not in 2 and 3rd. when Tabbar property selectedIndex="1" means i can add to 2nd tab.but not in 1 and 3rd.

View 1 Replies

Flex List-controls - Maintain Remote Data?

Aug 29, 2009

I have a TileList which represents some remote data. I also have a form which allows me to change the data. And the data may be changed by someone else too.

What is the best way to maintain data in the list in an up-to-date state? The simplest option I see is the following:

Select an item in the list Edit it in the form Save it. The form submits the data to the server When the server reports success the list re-fetches it's data The very bad thing about this workflow is that the list loses selection (a tree would also loose the nodes' expanded/collapsed state). I would really love to find out another option which would enable the list to maintain it's selection state.

View 1 Replies

Flex :: Accordion Child Controls Are Null Until Open The Panels?

Dec 18, 2009

I am using Flex AS3, i have a accordian with two tabs each tab contains some text boxes and i am trying to access these child controls from button event handler which resides outside the accordian, Problem is these controls are null until i open the tabs of accordian.

View 2 Replies

Flex :: Adobe AIR: Controls Flipped (mirrored) In Certain Build Environments

Aug 18, 2010

I'm having an issue where certain controls are flipped, depending on the machine that I'm building my project on. On my development machine, when I build it, everything is okay. However, when I build it on our build server, some things are flipped. It seems to be things that are on a higher layer - for instance, options in the select control (see first image below), alerts/overlays (see second image below), etc. It's not just the text, either - the entire content is flipped, images and all.

I have verified that the code is exactly the same in both instances, so it must have something to do with settings or the flex SDK version. On my development machine, the Flex SDK version is 4.0.0.14159, and on the build server, the Flex SDK version is 4.1.0.16076. I can downgrade the SDK on the build server if needed - but could it really be an issue with the SDK?

View 3 Replies

Actionscript 3 :: Custom Flex Component, Visual Controls In Design View?

Apr 1, 2010

Do you know how if you drag an <mx:Label> or <s:Label> component into your Flex project, when you go to design mode you get this panel on the right to set its properties like text etc.

I have a custom component that I can call with actionscript, or with mxml like this:

<comps:TheComp field1="OK" field2="Yes" />

The component takes this input and uses it for its internal operation

[Code]...

When I go to design mode, I can see the component under custom components, I can drag it to the stage and see it, but can't set its values field1 and field visually on the right like a normal <s:Label> or <mx:Label> would have. how I can add that? Do I need to make it inherit something or anything else

View 3 Replies

Actionscript :: Arranging Controls Based On Template Layouts In Flex Apps

Jul 17, 2011

Suppose you have a view, which contains three control A, B and C. The control A and B are in a HGroup, which itself is inside a VGroup with C.

Based on user interaction, I'd like to re-arrange the controls to new layouts. For example all three inside a VGroup. Or for example a layout, which hides A and B and maximizes C in size.

While I could hand-write the code, I'd like to use something like a layout template. A template, which contains placeholders for A, B and C. Give the current view, I'd like to pass the new template and the view should rearrange.

View 1 Replies

Actionscript 3 :: Detecting Out-of-view Flex Controls - Hide And Show Based On User Context

Sep 10, 2009

In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?

View 2 Replies

Flex :: Forcing Vertical Scrollbar Re-calcuation In A Hierarchical Tree Class Derived From Mx.controls?

Jun 28, 2011

I'm working (for my sins) on a Flex 3.3 project, which unfortunately cannot be upgraded to a newer SDK version at this stage, and have hit an issue with the custom hierarchical tree class (subclassing mx.controls.Tree) we're using. Excuse the spelling; the previous developer had a fear of dictionaries...

public class HierachyTree extends Tree
public function HierachyTree()
{[code].....

I'm using a solution somewhere between these two methods (basically, implementing ITreeDataDescriptor) in order to add live text filtering to the component, and it's working so far:

public class HierachyTreeFilteredDataDescriptor implements ITreeDataDescriptor
{
private var filter:Function[code]..........

The issue is that (with tree:HierachyTree) neither tree.maxVerticalScrollPosition nor the protected property tree.verticalScrollBar .maxScrollPosition updates when the search string is changed.I've tried calling invalidateList() and invalidateDisplayList() on tree — and calling invalidateDisplayList() and invalidateSize() on tree.verticalScrollBar — to no avail.

View 1 Replies

Flex :: Define A Control And A Skin Which Can Be Reused With Different Controls Inserted From Outside The Skin?

Mar 15, 2011

SkinParts are a great way to add event handlers and logic to an object that is instantiated in the skin, away from any business code. Often, though, I find myself wanting to do the opposite, and define parts that will be used in reusable, skinnable containers in the parent mxml files which will be inserted into the skinned containers.

What's the best practice for when you want to be able to define a control and a skin which can be reused with different controls inserted from outside the skin? Edit: A better way to put this might be that I want to use something that works a little bit like a SkinnableContainer, but that isn't limited to one area where content can be placed.

View 1 Replies







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