AS :: Flex - Loading And Setting Saved Value For A Menu?

Jan 24, 2012

I have a simple popup menu in flex, a mx Menu, and I use e Menu.initMenu to create the menu relying on an XML List defined as the data provider.The menu has check box items, and every time I call a load(values:Array) function in the class which contains the menu's instance, I want to check the relevant items.

View 1 Replies


Similar Posts:


Flex :: RowItem Saved On Tab Don't Proceed To Next Editable Item Datagrid?

Apr 12, 2012

I'm using a Flex datagrid where only 1 rowItem is editable. All the other row items are non editable. When I edit the value of the row, and press ENTER or TAB the focus is send to the next editable item in the datagrid. In this case the editable field on the next datagrid row.

I don't want this standard behaviour... I don't want the focus to be processed to the next editable item. Since the data is saved instant, it's quite strange that the focus is given to the next field. The focus has to be remained on the item that was edited.

View 1 Replies

ActionScript 2.0 :: Moving Menu - Setting The Mc On The Initial X And Y Coordinates?

Mar 21, 2004

I m having some problems with my menu I m working on.Its weird cus I d already have done the same menu once and worked fine..The selector mark is suposed to "mark" the selection on the menu after a selection is pressed. But I m having problems with the X and y coordinates and scales of the MC and when I click on the option,the MC gets smaller and then bigger to the size I want.Its suposed change scale and position but its not working like it is suposed to work.I m not sure either if I m setting the Mc on the initial x and y coordinates.

View 4 Replies

ActionScript 2.0 :: Setting Up A Keypad Navigated Button Menu Using An Array

Aug 23, 2009

I've gotten code that would circle through this with menu without an array, but I have been looking trying to complete it for the sake of better learning about arrays.

I have 3 buttons and I want to use the up, down, arrow keys to cycle through the buttons. So far I have the code to switch the up state once they are clicked on but I am unsure how to incorporate the navigational aspect into the array and have it cycle through.

Below I have posted my file with actionscript. Here is the actionscript set up right now:

[AS]btn1.gotoAndStop(1);
btn2.gotoAndStop(1);
btn3.gotoAndStop(1);

[Code]....

View 9 Replies

ActionScript 3.0 :: Setting Up Expanding XML Tree Menu And Linking Button Listeners?

Dec 19, 2011

I'm making an application that uses a branching tree type structure, and need to get the buttons to refer to and be able to manipulate individual XML nodes. I tried putting a button reference directly in the XML and setting the reference to that node with the event data, but it didn't work, because the XML didn't recognize the event.currentTarget as an actual button, so couldn't find the node that contained the click target. I assume there is a standard way to do this, since it's so common. Just for clarity, the tree will basically look like this:

PrimaryNode1
Subnode1
Subnode1a

[code]....

I need to be able to keep track of which subnode goes where for determining other data as well as graphically positioning the node and subnode data); PrimaryNode2 etc., with add and expand buttons. I can't set static references, since all of the nodes are added through the program depending on if they're needed. I tried doing this with multidimensional arrays, but since I want each level to be theoretically (but not practically) infinite with infinite subnodes, checking through the arrays got kind of messy. I just figured there has to be a standard way to set this up, since it's so common.

View 0 Replies

Actionscript 3 :: Flex - Create Context Menu In AIR Application - Add Sub Menu Against Any Parent Item?

Sep 21, 2011

How create Context menu in AIR application plus how add sub menu against any parent item in Flex?

View 2 Replies

ActionScript 3.0 :: Loading SWFs And Setting Z-index?

Jun 18, 2011

know how to load them using one container. The problem I have is that when a new SWF loads, it covers the main navigation's drop menus from main container. The navigation bar on main container is a movie clip labeled nav_btns.Here is my code, which works when loading SWFs

import flash.display.MovieClip;import flash.display.Loader;import flash.net.URLRequest;import flash.events.Event;
var Xpos:Number=10;var Ypos:Number=115;var swf:MovieClip;var loader:Loader=new Loader();var

[code].....

View 1 Replies

Actionscript 3 :: Menu Bar Control In Flex , Handle Separate Method For Individual Menu Item?

Jun 26, 2009

i need to fire separate method for individual menu item clicked ,so that individual item can handle separate method.and i need know what all the properties are available in menu item like type="radio".

<mx:MenuBar id="jj" labelField="@label" itemClick="MenuItemClick(event)" x="23" y="228">
<mx:XMLList>
<menuitem label="File">[code]......

View 2 Replies

ActionScript 3.0 :: Loading External Swf And Setting Its Relative Path?

Nov 1, 2009

I am trying to create a flash viewer, which will load various other flash movies. The viewer will be in the root directory, but the flash movies it will load are a few directories deep.

/flashViewer.swf
/myContent/someProgram/program.swf
/myContent/someProgram/audio/sound1.wav

It seems that when I load one of these movies into my viewer, the loaded movie is looking for the sounds in an audio folder in the root directory, and not relative to the swf I loaded. Is there a way to set this? I would rather not have to make the changes in each of my other movies to use the absolute path

View 7 Replies

ActionScript 3.0 :: Loading Image From ByteArray And Setting Dimension?

Feb 13, 2009

I want to load an image from a ByteArray and then set the dimension of the image. I'm doing it in the following way.

var img:Image = new Image()
img.load(byteArray);
img.width = 200;
img.height = 200;

The problem is that if my original image is for example 90x100, I would get displayed an image of 180x200. It seems it cannot modify the proportion of the image! How can I instead obtain a 200x200 image?

View 0 Replies

ActionScript 3.0 :: Setting Index Of MovieClip - Loading Images?

Mar 31, 2011

I am working on a simple action-script3 slideshow. The thing that I have modified is the movie loads the list in two separate sections. The problem is I want the movie clip to load one image on the right then one image on the left. When the one on the left loads, it loads over top of the right image. I want send the image on the right to be on top again when the left image loads.

Here is my code specific to the images loading:
ActionScript Code:
function nextImage():void{
if(my_times > 0){
var my_image1:Loader = Loader(my_loaders_array[my_playback_counter]);
my_image_slides.addChild(my_image1);
my_image1.x = 26.1
[Code] .....
The idea is, when my_image1 is loaded, I want to have the depth of my_image to be on top.

View 4 Replies

Actionscript 3 :: Flex - Hide A Menu Item From Menu?

Feb 22, 2012

How to hide menu item from Menu object ?

View 1 Replies

Flex :: Menu Control - Click A Button And A Menu Is Displayed. Click That Button A Second Time And Hide That Menu?

Jun 20, 2010

Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.

How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:

<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;

[code]....

View 1 Replies

Flash :: Setting Up Frame By Frame Menu Navigation Vs. All Code?

Jan 6, 2010

I am All Programmer when it comes to anything including flash. I got into making games not to long ago and some people use frames to navigate from the main menu to the game screen and so on (which I have no idea how to do). and some people encapsulate the game inside of a class and call it from the document class and add and remove it when please

View 4 Replies

Flex :: Setting Compiler.theme Option For Halo/Flex 4 In FlashDevelop?

Jul 12, 2010

Here's what works with ant build.xml:

[Code]...

I tried the following values in Project > Properties > Compiler Options > Additional Compiler Options but none of them worked:

View 2 Replies

Flex :: Security - Setting Wsdl Service In Flex Project Crossdomain.xml?

Apr 7, 2011

How can i settings crossdomain.xml my flex project.* this is my crossdomain.xml.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>

[code].....

I've tried lots of different methods but my project send error message "Security error accessing url Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL [URL]"

put the file in different places

C:wampwwwMYPROJECTin-debugcrossdomain.xml
(my swf url : http://localhost/bin-debug/test.html checked http://localhost/bin-debug/crossdomain.xml its ok)
C:wampwwwcrossdomain.xml

I added the load line of the project

protected function application1_initializeHandler(event:FlexEvent):void
{
Security.loadPolicyFile("http://localhost/MYPROJECT/bin-debug/crossdomain.xml");
}

if flex server type select none everythings ok. but server type select PHP need crossdomain.xml how can i fix.

View 1 Replies

Flex :: Itemrenderer - Referencing And Setting A Single Item Renderer Instance In A Flex Tree At Runtime?

Oct 17, 2010

Anyone know how to change a single instance of an item renderer for a Flex tree item at runtime? To reiterate, I'm not trying to change the entire tree's item renderer like this:tree.itemRenderer = new ClassFactory(ItemRenderer2);I'm trying to change the item renderer of a single tree item like this (the following code does not work):tree.selectedItem.itemRenderer = new ClassFactory(ItemRenderer2);To put it more simply, does anyone know how to reference an instance of an item renderer and set it to a new item renderer class? I've tried using the Tree's itemToItemRenderer() method with no success.

View 1 Replies

Flex :: Limit Pyamf Flex Sessions Or Setting A Timeout?

Feb 22, 2010

How do I limit my amf sessions to flex over pyamf?

I have set up a pyamf gateway to that serves value objects that originate from a django admin panel, through sqlalchemy to my authenticated flex client. It's working great, however there is a problem. My sessions are persisting and clogging up the server, so after about 20 or so AMF sessions are authenticated, it refuses any more until I restart the server.

View 1 Replies

Flex :: Setting Background-color For Flex Tree Component?

Oct 21, 2010

I have a Flex Tree component in my app. I set the icons for open and close.
BUT I can't find something about changing the default background-color from white to something different.

obviously there is no background-color setable in css...

View 1 Replies

Flex :: Setting Disabled Button Appearance In Flex?

Apr 11, 2011

I'm making a trivia in an Air application, a question, three buttons, after you choose one, the right button gets coloured green, the wrong ones get coloured red. I was trying to do this changing the styles, so I created a Button.Right and a Button.Wrong style, but I also need to disable the buttons so they don't get clicked more than once while I'm showing the correct answers.

So I'm having trouble making it so the buttons don't look greyish and with the alpha turned down when I set their enabled property to false. I'm trying to be as minimalistic as possible here, changing disabled-overlay-alpha or disabledOverlayAlpha in the css file doesn't seem to do the trick, neither does changing disabledBorderColor

View 3 Replies

Professional :: Last Changes Not Saved?

Sep 12, 2011

I have an issue with Flash CS 5.5When creating content and publish the swf and then save the fla file , all seem fine.When closing the fla and reopen it later, the last changes I made are not saved??This happens NOT every time.At first I thought it was me that I didn't save the document before closing, but no this really happens!
  
Menno
 
running Win7x64,  24 GB Ram,  GTX 580

View 20 Replies

Professional :: Cannot Publish A Saved Document In CS4

Feb 28, 2009

I only get this error when publishing in CS4 ''The parameter is incorrect' if I save the document. I really like saving my work,

View 9 Replies

Movie Won't Play Once It's Saved Or Published?

Jun 10, 2009

I am testing Flash CS4 at the moment, but something is wrong with it. What I did hundreds of times in CS3, here it just doesn't work.I used Adobe Media Encoder to make F4V from AVI. Then I imported that file to flash (load external video with playback component). Then I previewed it (ctrl+enter) and everything was fine, but once I saved (or published) it, the movie didn't play anymore. There was just background and no movie nor playback component.I tried encoding that file to FLV, even for older flash versions (I have the newest one installed), but that didn't help.

View 5 Replies

Increase Size Of Movie When Swf Saved?

Sep 3, 2009

How do you increase the size of an entire movie into an actual swf file? I note that increasing the stage size increases the "frame" that the movie opens in, but does not increase the size of the movie itself. I find a lot of stuff on the internet about sizing a flash movie using html embedding, and perhaps that is what I need...but what I really mean is change the size of the whole movie before it is saved as an SWF and within Flash itself. Is there a simple way to do this? I mean, once you have the movie in place but have simply not saved it to SWF yet. Again, I note that cghanging "size" on document properties enlarges the frame that the movie opens in but not the movie itself.

View 4 Replies

Professional :: Resizing Flas That Were Saved For A Cd Rom?

Mar 26, 2010

I have a client who has a Flash project that was used for a cd rom. The flas are 1000 x 1043. I need to know the best way to be able to save the entire presentation for the web. I already tried re saving the flas publishing in percentage that doesn't work. If I make the actual stage smaller the mc's and all dimensions would have to be made smaller manually am I correct.

View 1 Replies

Flash :: Pro V 11.5 Won't Load Graphics From Saved Fla

Aug 23, 2011

I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result.  This is Flash Pro 11.5.0.325 on XP SP3.

I made a small slideshow swf consisting of two jpeg images and nothing else. No music or other bells or whistles.Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.The slideshow runs perfectly and as I expect.

I save the slideshow as a .fla file.I need to add some more functionality from this plateau to show that the product can do what we need to the boss.

When I later load this .fla file, I don't see my graphics on the stage anymore. I right-click on the images and click on the option in the dialog to update the images. I see that the white stage now has the image I expected. When I close the dialog that lets me update the image flash pro abends and I get the crash dialog from microsoft.

Why can I make this slideshow and have it run perfectly, save it successfully (so I think) and then it won't load properly or let me work on it after one save?I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result.  This is Flash Pro 11.5.0.325 on XP SP3.

I made a small slideshow swf consisting of two jpeg images and nothing else.  No music or other bells or whistles.Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.The slideshow runs perfectly and as I expect.

I save the slideshow as a .fla file.I need to add some more functionality from this plateau to show that the product can do what we need to the boss.

View 3 Replies

ActionScript 3.0 :: Import A Saved Class?

Oct 14, 2011

if I created a customized class and I saved it as a "*.as" file, and now, I want to create a new "*.FLA" project and to use inside the "FLA" project at my customized class. how do I import my class into this project?

View 8 Replies

Flash :: SIFIR Does Ot Work When Saved In CS4

Jul 13, 2010

I am trying to use (sIFR) version 3, revision 419 When i test the defaults SWF files( that came whit the package ), it works fine. But when i edit with my own fonts, it does not work properly. Is there any issue, or something that i must to do?

View 1 Replies

ActionScript 3.0 :: Saved File Is Not Same As Original

Oct 30, 2008

i have files (.pdf, .doc or whatever) that i have to save from a CD projector to the user's computer.My problem is that the saved file is not the same as the original.[code]

View 4 Replies

Loading Flash Menu In Background?

Aug 25, 2009

I've inherited a website with a huge (2.5MB) flash menu system and would like to know if there is an elegant way to load it in the background from maybe an intro page that redirects to the home page after a certain amount of time - or possible when the menu is done loading.

View 11 Replies







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