Actionscript :: Flex4.5 - Change Defined States?

Jul 20, 2011

I use states in a Flex application to switch from normal to fullscreen view. These states are defined in mxml and in a specific tag:

<local:RSVideo
id="video"
width.normal="534"

[code]....

View 1 Replies


Similar Posts:


CS3 To Change States Of Button?

Feb 22, 2010

ive got an image with text pasted on the top. i want to turn into a button as when the mouse rolls over it i want it to go lighter. so i changed it into a button by pressing f8 convert to button and changed the alpha value in the over status, the brightness changed but the text diasappeared.take 2 - tried the same again minus the text, converted just the image to a button but now when i double click it to get the various hit, over down etc stage theyre not there! i tried to select edit but seemingly that just edits the alpha property but not in any particular stage

View 12 Replies

Flex4 - Change Mouse Cursor To A Bitmap?

Jun 24, 2010

In Flex 4, how can I change the cursor to a Bitmap image determined at runtime? All the examples I've seen use CursorManager.setCursor to set the cursor to a class specified at compile time.

What I want to do is change the cursor to a bitmap whose bitmapData is determined by the context.

View 3 Replies

ActionScript 3.0 :: CLICK Not Firing When MovieClips Change States?

Dec 22, 2009

I have a MovieClip Button, btn, made up of 2 MovieClips, sqrT and sqrB on top. sqrB is stopped at an empty frame. On Down, sqrB stops at a MovieClip frame, on Up, it goes back to the empty frame. On Click, it traces "Clicked!", but Click never fires. Why is this, and is there a way to make it work without using alpha?

Code:
btn.sqrT.gotoAndStop("square");
btn.sqrB.gotoAndStop("blank");
btn.addEventListener(MouseEvent.MOUSE_DOWN, onDown);

[Code].....

View 1 Replies

Flex :: Change Children Of Dynamic Created States?

Nov 30, 2009

I'm building an Xml-driven application. I create new states in a separate actionscript-class.These states all contain a DataGrid. I can switch the states in the Main.mxml.

But now I would like to access certain children of the DataGrid. In this case I would like to toggle the visibility of GridItems, from a Button in the Main.mxml.

How do I have access and apply this to the already created states ? I tried to create RemoveChilds and override/push it to the state.All I archieved was to remove an entire GridRow at the very last state, but it should be just one GridItem at every state.

View 2 Replies

Flex :: Changing States Sometimes Fail To Change Display?

Jul 6, 2011

I have a flex3 web application that displays some data from the server on the same page by using the states class.

The MXML code part is this:

<mx:states>
<mx:State name="Chart">
<mx:AddChild position="lastChild">

[Code]....

View 1 Replies

ActionScript :: Change A States Click Event Dynamically?

Aug 30, 2011

<s:Button id="btnNext" label="Next" width="80"
click.Title="changeState('Info');"
click.Info="changeState('Organ');"
/>

How do I dynamically change the "click.Title" event in actionScript?

btnNext.addEventListener(MouseEvent.CLICK, ??

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

Actionscript 3 :: Change Label Color On Button States (FLex 4)

Mar 11, 2011

I have a button in my application and I want it to respond a bit in a special way. Initially the label color of the button is White, I want the color of the text to change to 50% white on the Over State and to 25% on the Down state. Is this possible?

I tried an alternative way using css which does not do the percentage stuff but only changes the color (see css code below), but this does not seem to work. I more specifically want the color to change in terms of percentage like I mentioned above.

Note that I am using the Skin file only to loads images for each state on the button.

s|Button#specialButton {
downSkin: Embed(source="text.swf", symbol="btn_focus");
overSkin: Embed(source="text.swf", symbol="btn_hover");

[Code]....

View 1 Replies

ActionScript 3.0 :: Change Value Of Dynamic Text Box Inside Button's Up / Over States?

Jan 29, 2010

Is it possible to change the value of a dynamic text box inside a button's up/over states? For example, I have a button in my library which has a dynamic text field in both the up and over states. My AS loads XML data and adds the correct number of buttons while filling in the text boxes from the XML data. It seems like this should be possible, but so far I haven't made any progress.

View 3 Replies

ActionScript 3.0 :: Change MovieClip From A Defined Class?

Oct 15, 2009

I have a class that contains a MovieClip and a String.In my library there are 3 exported MovieClips: Movie1, Movie2, Movie3.I want to define 3 variables of this class and each with a different MovieClip and String.[code]...

View 5 Replies

ActionScript 3.0 :: How To Change Property Value Defined By Input Text Field

Feb 22, 2009

For example. I have a particle system with a set number of particles active on the screen at any time "numOfParticles". I am trying to be able to change "numOfParticles" to define itself based on whatever number you input in the input_txt field. So far I am able to display the number of particles into the input text box:

Code:
input_txt.text = numOfParticles.toString();
Now I want to be able to change that value based on user preference.
So far I have:
Code:
function changeNumber(event:Event):void{
numOfParticles = input_txt;
}
change_btn.addEventListener(MouseEvent.CLICK, changeNumber);

But it's not working. I don't think I have the proper identifiers, because I know I'm supposed to attribute the input text field as a ":Number" somehow...

View 3 Replies

ActionScript 3.0 :: 1061 Error (not Defined) When Call A Method Of A Self Defined Class

Feb 9, 2010

I am using flex builder 3.2, Action Script 3 and develop for Flash Player 10 and am quite new to it. when I call a method of a self defined class, I get the 1061 error (not defined). But the class and the method exist and are public, so what the hell am I doing wrong? Flash Builder is even offering me this method in the auto-completion, so at least the builder knows it... I have already tried cleaning the project (as this is the common source of strange errors when working with java/eclipse),

edit: solved... The problem was that a package had the same name as the variable I used for the class. Very strange error message, thumbs down for this .

View 0 Replies

Flex :: Toggling States - When Other Item Is Selected The First Item Does Not Change Its State?

Apr 26, 2011

I have used states in my application.The thing is I have made the first item in my list to be selected. so I gave like this,

if(itemIndex == 0)
this.currentState="selected";

this works fine.The problem is when other item is selected the first item does not change its state,it remains in the selected state until its clicked.My code looks like this,

<s:BorderContainer id="outerCont" width="275" height="100" borderVisible="false"
backgroundColor.normal="#3D3C3C" backgroundAlpha.selected="0.1"
backgroundColor.selected="{data.color}">

My states are like this,

<s:states>
<s:State name="normal" />
<s:State name="hovered" />[code]........

View 1 Replies

Flash :: Flex4: Loading Flex4 Swf Using Swfloader Shows Only The Loading Bar

Dec 23, 2009

I try to load an swf in my flex 4 project using the following line of code: <mx:SWFLoader id="game_swf" source="demo.swf" complete="init()" /> the demo.swf file is another project i created using flex 4. the problem is that when i run the application i see only the loading bar of the demo.swf flash file and nothing else. if i try to load a different swf file (for a example a game i downloaded), it loads just fine.

View 1 Replies

Flex4 :: Migrating CSS From Flex 3

Sep 10, 2010

Is there a guide or document that deals specifically with migrating CSS and style attributes from Flex 3 to Flex 4? I have an application that I'm keeping on the 2006 namespace, but I'm having trouble with a couple concepts, like the halo only styles, the CSS namespacing conventions, and styling child controls.

View 1 Replies

Flex4 :: Get Second Item From DropDownList

Jul 4, 2011

Does any one know how it's possible to get in Flex 4 a value of the second item from Drop Down list, assuming I have 3 items listed there?[code]

View 1 Replies

Flex4.5 Accordion With Checkbox?

Aug 4, 2011

I have the following code for accordion in Flex 4 with couple of checkboxes inside, since the checkboxes are plenty i made it inside a list so that it can scroll. but when I try to run this code the checkbox only shows as label and no checkbox beside it. what is wrong with my code.

[Code]...

View 1 Replies

Actionscript :: Flex4 And Facebook-api : Cannot Login

Jan 25, 2010

I wrote a simple application for facebook and it seems that i fail to login. I created a test application on facebook and i test my application by going to [URL] i have the following function that is being executed after ApplicationComplete event of my main application.

[Code]...

View 1 Replies

Flex4 :: Transition Not Playing First Time

Jul 7, 2010

The first time I change from state A to B it doesn't play the transition. After the first transition, the same state change does play the transition.

Before I let state B load, it parses an xml file and maps it to objects. When this is done, the state changes. Maybe it has to do with the parsing of the xml. But I can confirm that parsing is done, before it changes the state.[code]...

View 6 Replies

ActionScript 3 :: Flex4 - How To Embed Lot Of Images

Oct 11, 2010

I would like to know what is the more practical way to embed many images using actionscript. Firstly, I don't want to download an image every time from the server, and then I would like to change the number of images and/or their names. What do you propose for these requirements? I have been alerted for the Embed tag but it seems a little inconvenient in its use as you have to declare a new class for each asset and instantiate the class separately.

View 2 Replies

Xml :: Flex4 Finding The Name Of The Selected Item?

Feb 10, 2011

I have an XML object in Flex4 that is populating a tree (amongst other things).

I need to be able to find the name of the selected item when it is clicked in the tree.

For example:

<Object id="">
<Image></Image>
<Cycle></Cycle>

[Code]....

The tags are all predefnied by me so I will know what they are, but I need to be able to know if the item a user has selected is "Object" and do something, or if they select "Action" do something else.

What is the syntax to get the names of these in flex4 and compare them?

View 1 Replies

Css :: Make External Theme And Use It - With Flex4?

Mar 18, 2011

I made a SWC project (my new Theme), with these elements :

src/views/MyViewSkin.mxml
src/DefaultTheme.css

I made a SWF project (Flex app), with these elements :

src/views/MyView.as
theme/DefaultTheme.swc // theme building result

In the SWF project, I added this information in mxmlc compiler : -theme theme/DefaultTheme.swc. My problem is : how to build SWC projet (theme) with HostComponent[xx] is external ?

[Code]....

View 1 Replies

AS3 :: Preserve Tabs When Saving XML In FLex4/Air App?

Mar 31, 2011

I'm loading an xml file in AS3/Flex for an AIR app. When I save it, the indenting looks pretty, however all the tabs from the original file, are now spaces. Can I save to that the tabs remain?

open file code:

var file:File = event.target as File;
var fileStream:FileStream = new FileStream();
fileStream.open( file, FileMode.READ );

[code]....

View 1 Replies

Flex4 - Get It Working On FF And Chrome On Windows?

Apr 18, 2011

I am working on a modular application. The problem is that scrolling doesn't work with datagrid and AdvancedDataGrid even in a non-modular application on FF and Chrome on Windows, works fine on IE. On mac, it works fine with FF 4.0 and chrome. how to get it working on FF and chrome on windows?

View 1 Replies

Passing Network Credentials Through Flex4

May 4, 2011

i am new to flex4.i want to pass network credentials (username and password) through flex.i was not able to get appropriate results using [code]

View 1 Replies

Flex4 :: Creating A Scrollbar For Panel

Jul 18, 2011

I am new to flex development.[code]what happens here is that, the part of the panel goes out of the browser view and I need to include scrollbars so that I can scroll to the right end and bottom end of the panel itself.

View 2 Replies

Flex4 :: Remove A Component From Tab Order?

Sep 5, 2011

In Flex [4], when cycling the focus through components by pressing Tab, how can I remove particular components (eg. some buttons) from the tab cycle. I want those buttons to be skipped completely when pressing Tab.

View 1 Replies

Actionscript 3 :: Add Properties Files In FLEX4?

Oct 8, 2011

Is there any existence of properties file in FLEX4/AS3 ? my requirement is to read data from properties file that flex AIR loading time is minimized and should not occupy more memory. my data set is an array containing around 2000 objects in key:value pair format. How can I treat this large data set that it should not occupy more memory and less initial loading time.

View 1 Replies

Flex4 - Vertical Tabs In Flex 4?

Oct 21, 2011

I would like to have vertical tabs in Flex 4. I have started implementing this by having a vertical list down one side. On list selection I am updating the selection index of a view stack. This gives the functionality of vertical tabs.

My problem is the look and feel. How do I get the list to have a similar look and feel to the horizontal tab bar? Is it a case of overriding skins? I have found this post: Flex 4 vertical TabBar

which does implement vertical tabs. My problem with this is that I do not get any text in the tab. I think the problem is that this was originally written for flex 2. I am using flex 4 and am trying to put this component inside a

View 3 Replies







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