Flex :: 4 - Why Does Recognize PaddingLeft As A Property On A Component But Not As Part Of A Style?

Jun 8, 2010

In my application this works:

[Code]...

View 1 Replies


Similar Posts:


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

Css :: Add Custom Style Property To MXML Custom Component?

Jun 22, 2011

I have a Custom Component that has a couple of Canvas with some background colors assigned to them. Now i have hard coded the colors, i want to move them to an external css file. So i would like to have the css declaration like this :

[Code]...

My question is if i can define custom style names like dividerRightColor and if so, how can i use that value inside my MXML Component? I have seen examples of using them inside Pure AS components.

View 2 Replies

Flex :: Change PaddingLeft And PaddingRight Of Spark.components.Button?

Mar 27, 2012

The class 'Button' in package mx.controls has the style 'paddingLeft' and 'paddingRight'. But now I don't want to use this old Halo theme anymore, I'm moving everything to Spark.

However, I can't find these padding styles in spark.components.Button, and the documentation [URL] doesn't show that spark Button has those styles.

View 1 Replies

Flex :: Change The Style Property - TextInputStyleName Of A Combobox At Runtime?

Mar 18, 2011

I have a prompt string to be displayed in my combobox - this needs to be displayed in italics. When user makes any selection from the list - i need to change the style of the displayed content.

My css file:

.promptStyle
{
fontStyle: italic;[code].....

I am able to see the style change happening because the color changes; but the change specific to textInputStyleName does not get applied.

View 2 Replies

Actionscript 3 :: Flex: Setting A Style That Is Not Supported By A Component

Sep 2, 2010

I am wondering if flex enforce style settings and throws compilation errors if a style that is applid to a component that is not supported by it. Has any one tried it before ?

View 1 Replies

Css :: Flex - Custom Tooltip Style For A Single Component

Mar 7, 2012

How can we customize the background and font color of a single instance of a tooltip for one component? (Without changing all tooltips in the application.)

This is needed for the HALO component set (4.1 SDK), not Spark (css methods preferred).

View 1 Replies

ActionScript 1/2 :: How To Recognize FLVPlayback Component

Jul 13, 2009

Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
 
findCurrent = function (obj){ // RECURSIVE SEARCH FOR MOVIECLIPS for (var i in obj) {  if (typeof (obj[i]) == "movieclip" && obj[i] != obj) {   if (obj[i]._name == "pauser"{
continue;   }   var m = obj[i];   m.frameWas = m._currentFrame;   isCurrent.push(m);   findCurrent(m);  } }};
 
The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
 
I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
 
Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."

View 3 Replies

Flex :: Bind Class Property To Mxml Component?

Nov 25, 2009

Is is possible to bind class properties to mxml components ? E.g.: I have a class A.as with a String property nameValue. What I want to achieve is always having the latest value of a mx:Text component in nameValue.

View 2 Replies

Flex :: FCustom Button Component Protected Property

Jan 5, 2010

In my custom button component, I want to get a handle on the textField (The internal UITextField object that renders the label) in the Button so I can modify some properties on it. It exists as a protected var in Button.as How can I do that in my mxml component?

View 1 Replies

Flex :: Bind Variable To ItemRender Component Property?

May 16, 2011

I would like to bind a variable from my ActionScript to a property of a component that is in a ItemRender. But I always get this error:

1120: Access of undefined property currentRoom.

Here is my code

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:solutionItems="com.barco.components.ControlRoomConfigurator.solutionItems.*">
<mx:Script>

[Code]....

I would like to use the object currentRoom in my ItemRenderer component.

View 2 Replies

Flex :: Custom Component DataGrid SelectionMode As A Property?

Aug 3, 2011

I have a custom component of which have a advancedDataGrid inside it. I want thiscomponent to be reusable so need is set the datagid selectionMode as a component property.In mxml i want set property like this:

<comp:MyComp itemDataGridSelectionMode="singleCell" .../>
Inside MyComp actionScript i have a metatag like this:
[Inspectable(enumeration="singleRow, multipleRows, singleCell, multipleCells",

[code]......

View 3 Replies

Flex 4 Custom Component - Notify Skin Of Property Changes?

Jan 30, 2012

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

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

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

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

[Code]...

View 3 Replies

Flex :: Assign The Property Bottom In My Custom Component Class?

May 14, 2010

I would like to know if it is the same to assign properties to my custom component in its own class, or from the parent document. Here I assign the property bottom in my custom component class:

<?xml version="1.0"?>
<mx:LinkButton bottom="20" >
<mx:Script>

Here I assign the property bottom when I use the component in my main MXML file

<myComp:Brick bottom="10"/>

View 2 Replies

Flex :: HideEffect Not Triggered When Component Visible Property Set False Programmatically?

Feb 11, 2010

In Flex I've got a component, which is based on a Canvas.It looks like this (I removed the <mx:Script> for better reading):

<mx:Canvas verticalScrollPolicy="off" showEffect="showFX" hideEffect="hideFX" horizontalScrollPolicy="off" creationComplete="doComplete()" xmlns:mx="http://www.adobe.com/2006/mxml" width="63" height="63">[code]....

If I set customComponent.Visible to false, the component gets hidden (as expected). But doesn't trigger the hideFX at all. Am I doing something wrong? Or isn't this the correct way to use hideEffect and showEffect?

View 1 Replies

Flex :: Adobe - Get An Ordered List Using Htmltext Property Of Text Component?

Feb 1, 2011

how do i get an ordered list using htmltext property of Text component? I tried using this: <ol><li>item</li><li>item</li></ol> but it rendered like an unordered list.

View 2 Replies

Getting Error In Component Tint Style

Jul 1, 2011

I am facing an animation error while i applying tint style on component.when i am passing paramenter values in second component by refrencing first component name and then applyng tint style on it but when i compile it, the first component tint syle is working fine but as it comes on second component it get stuck & the second component appears 80% transparent.

View 1 Replies

ActionScript 3.0 :: How To Style The List Component

Jun 16, 2009

how to style the list component in as3. The setStyle("textFormat",myTextFormat) does not work. You have to use

myList.setRendererStyle( "textFormat", format);
myList.setRendererStyle( "embedFonts", true );

View 1 Replies

ActionScript 3.0 :: Applying Style To A List Component?

Nov 9, 2009

I'm trying to do this but I can't get rid of that ugly black Arial type the List items use by default.I've done it in two different ways, as seen on the internet:

PHP Code:
// first off I have to retrieve the reference to the list which I previously created_list = this.getChildByName("playlist") as List;_list.setStyle("fontFamily", "Century

[code]....

View 1 Replies

ITunes-Style Photo Scrolling Component

Jun 30, 2009

I was wanting to build a personal website that would showcase possibly hundreds of photos of my family and friends. I really like the way Apple iTunes scrolls album covers! Is there anyone that can point me to a add-in component of some type that will accomplish this?

View 1 Replies

Actionscript 3 :: Style A Spark Component With An Image?

Dec 3, 2011

I'm trying to use an image (embedded) for the thumb on my Spark slider component. This should be straightforward -- I know what to do in mx -- but I haven't been able to find what the Spark syntax is.

I don't even need states (up, down, over, etc) since this is going on a mobile app.

View 1 Replies

ActionScript 3.0 :: Applying Style To A List Component

Nov 9, 2009

I'm trying to do this but I can't get rid of that ugly black Arial type the List items use by default.I've done it in two different ways, as seen on the internet:[code]Please how can I properly change the style of the text in the List??

View 1 Replies

ActionScript 3.0 :: Positioning The TextField Part Of The Combobox Component In CS4?

May 18, 2010

I'm trying to move the textField (or the TextInput) part of a combobox up a few pixels... should be easy but it's not. I've tried this:

Code:
cb.textField.y+=5;
and this:

http:[url].....

I've viewed the properties of the TextInput, List, and Combobox components and can't find anything that will help me do this. I created the class mentioned in the link, and successfully linked the TextInput library symbol, but when I add a trace statement to the class I get nothing.

View 1 Replies

ActionScript 3.0 :: TextInput Component Value Passed To Dynamic Text Field - Part 02

Jun 28, 2009

The update to the Dynamic Text Box is always one character behind what is entered into the TextInput component. For instance my name is Shawn, if I enter "Shawn" into the Text Input the Dynamic Text Boxes will display "Shaw". It will only enter the "n" if I type another character then backspace it, deleting the extra character.

View 7 Replies

ActionScript 3.0 :: Rendering XML - Set Inline Style Sheet To Htmltext Of Textfield Component?

Dec 31, 2008

In the below XML...

[Code]...

How to set inline style sheet to htmltext of textfield component as mentioned in the xml CDATA. At present , i am using textfield.htmlText propert , but i am not able to get the
fontfamily as mentioned in the xml CDATA. The text is also not getting displayed in the correct format. The image is not coming in between the 2 question strings and its getting displayed at the bottom of the question while the 2 question strings("q text info",
"with images also") are displayed as a single string. How to reformat the xml so that the image comes in between.

View 2 Replies

ActionScript 3.0 :: Creating A Huge PLAY Button (YouTube Style) For An FLV Component?

Feb 3, 2012

I have an FLV component and I wanted to create a huge PLAY button in the middle of the screen so if the video doesn't start automatically a user can click on it and it fades out. If the video stalls a user can click on it again and start the video.I would like it to be arranged as follows:1.play_btn fades in on the startMY PROBLEM: I did it it works, but not sure if it is an optimal solution. I did not assign any function as this way tween starts automatically. Or it is better to assign something like ON_START or ON_LOAD and not sure what is the proper function.

2.If the video starts to play on its own without a user clicking a play button it should dissapear and if the video stops it should appear.MY PROBLEM: Presently I achieved it to fade out on the click, but it stays on the screen unless I am to click on it. If I make background of the button to the size of the video then when a video stops and a user just clicks somewhere around on the screen he hits an invisible play button and video resumes. The button does not come up if the video stops..Extra special desire. If a user clicks on the video then it is paused and a button changes to a pause symbolMY PROBLEM: This third option may be too complicated for me with all "if" statements, but if not too much to ask would like to see how it can be done.here is the code I was able to come up with:

var  play_btn_Tween:TweenMax = TweenMax.from(play_btn, .5, {alpha:0});
play_btn.addEventListener(MouseEvent.CLICK, onClick_Play);
function onClick_Play(event:MouseEvent) :void {

[code]......

View 1 Replies

ActionScript 2.0 :: Tree Structure Component Style - Replace Default Icon With A MovieClip?

Oct 11, 2006

Here i'm setting the disclosureClosedIcon as null setStyle("disclosureClosedIcon", "nullicon"); Anybody have idea about how to replace this default icon with a movieClip?

View 1 Replies

Flex :: Testing - QTP Can Not Recognize The Object?

Apr 5, 2011

I am using Quicktest professional 11 trial version. I have a flex application for testing. When I try to record action performed on the flex application. QTP stores it as MacroMediaFlashPlayerActiveX rather than the origin button or link. I am using flex 3.5.0 and internet explorer 7.

View 1 Replies

Flex :: ComboBox Selection Doesn't Recognize

Apr 19, 2011

My code snipet looks like :

[Code]...

Do you have idea about the reason for that error and how to prevent it? N.B. The code that triggers this error is as a result for click handler. If before encountering this error change the selection on my yearsCb, everithing is fine. EDIT: I forget to specify that this error is thrown when it is a selected item in my ComboBox. It seem that after container that holds the ComboBox loses the focus, it doesn't recognize it's ComboBox child as having a selected item anyway (this problem arise only after the modal popup close.).

View 2 Replies

Flex :: SequenceWaiter Doesn't Recognize Event?

Jul 7, 2011

I'm using this AsyncHelper. I would like to create basic test case where I would like to dispatch event from the test method (by Parsley MessageDispatcher), catch this event in any other method and dispatch it back (by flex EventDispatcher).

This is my test case:
package flexUnitTests {
import flash.events.ErrorEvent;

[code]......

View 1 Replies







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