Flash :: Bring DisplayObject On Top In DataGroup?

Feb 27, 2012

I have DataGroup with custom item renderers, which can partly overlap each other. I have possibility to select these items. And I want selected item to be above others in the datagroup. But since DataGroup sets childIndexes (from left to right) to its children and we cannot change childIndex of items explicitly, selected item is above all items to the left and under all items to the right. So, what is the way to place selected item above others? I thought of using PopUpAnchor, but may be other solutions exist.

View 1 Replies


Similar Posts:


Flash :: Check If DisplayObject A Is A Descendant Of DisplayObject B?

Oct 26, 2010

I would like to be able to quickly check if a given DisplayObject is a descendant (not in the inheritance sense - ie. child, grandchild, great-grandchild, great-great-grandchild, etc.) of another DisplayObject. There doesn't seem to be a native way to do this and I can only think of two ways to achieve it: Create the mother of all nested loops. Seems a bit, I dunno, wrong? Dispatch a bubbling event at the 'child' and check if the potential 'parent' receives it.

[Code]...

View 2 Replies

Flash :: Dispatch Event From ItemRenderer To Datagroup?

Apr 27, 2011

Eventdispatching here we are again...

I'm trying to dispatch a custom event from an custom ItemRenderer inside a Datagroup with no success.[code]...

From what i saw in the debugger, the events are dispatched from the ItemRenderer, but they never get catched by the listener (listener handler is never called). Many suggestions fly around about that in stackoverflow, but most for older flex versions or not practicle for my scenario.

View 1 Replies

Flash :: Call A Method Of A Child Of A Datagroup

May 2, 2011

I'm looking for a way to call a method for ALL children elements of a DataGroup from the DataGroup. The problem is that when using the creationComplete event to call a method of a child that method is only called once for every itemrenderer (child) object. after the item was drawn once. now i want the children component to call a function everytime the datagroup containing it changes its data. Using "updateComplete" or "dataChange" inside the children (itemrenderer) component would work, BUT "updateComplete" and "dataChange" is called everytime i change the view (e.g. scroll my list) - thats not what i want.

[Code]...

View 1 Replies

Actionscript 3.0 :: Bring To Front - Bring Into Focus?

Jan 25, 2010

bring my correct uiloader/swf to the front/into focus when the relevant list item is triggered? This is my code at the moment

Code: Select allimport fl.containers.UILoader;
import fl.controls.List;
var list1:List = new List();[code]........

View 3 Replies

Xml :: Flex 4 Using Datagroup With Item Renderer

Sep 8, 2010

I have a Datagroup with a custom item renderer the momment I bind it to XML from an http service it stops working.

[Code]...

View 2 Replies

Flex :: DataGroup TileLayout Autoheight?

Oct 26, 2010

I have DataGroup with TileLayout. How to make datagroup resize accordingly to number of elements in datagroup?For example 1 have 1 row with 4 elements. Each element is 20 pixels tall. So I want my datagroup to be 20 pixels tall as well. If I have 7 elements which will be 2 rows I want my datagroup to be 40 pixels tall and so on.Right now for datagroup with 1 row is about 100px tall.

View 1 Replies

Flex :: Datagroup Item Renderer Coordinates?

Nov 24, 2009

I'd like to have an overlay that draws lines between selected items in different Flex 4 List controls.

The problem is I can't figure out how to access the x, y coordinates of the list's item renderers.

View 2 Replies

Flex :: Access Datagroup's Itemrenederer's Component?

Jun 9, 2010

I have a datagroup where I use a custom itemRenderer with a datagrid inside. What I want is to access each datagroup's itemRenderer's datagrid and get it's dataProviderAll I know is that you can access the ItemRenderer by using myDataGroup.getElementAt(index)

View 1 Replies

Actionscript 3 :: Flex 4: Descending Vertical DataGroup?

Aug 12, 2010

I am currently working on a Photoshop-like transformer application to work with DisplayObjects as layers. I have an ArrayCollection which serves as my data provider for my List of values, but the problem is that the items are appearing in ascending order in the List:

0 - Item 1
1 - Item 2
2 - Item 3
3 - Item 4

Since it's a layer manager application, I need the items to appear in descending order like so:

3 - Item 4
2 - Item 3
1 - Item 2
0 - Item 1

This is because layer 0 is at the bottom of the stack, whereas layer 3 is at the top, rather than the other way around which is the way Flex is currently displaying things.

I know that I can simply apply a Sort to my ArrayCollection to cause the items to be sorted in reverse order, but this breaks functionality in my application. I was wondering if it would be possible to essentially modify my Spark List or DataGroup to have the layout render items backwards.

View 1 Replies

Flex :: Why Does MouseOut Of A DataGroup ItemRenderer Cause A State Change

Oct 21, 2010

I've found a very annoying problem with the itemRenderers in a DataGroup in flex 4, when I mouseout of the itemRenderer is returns to its default state. Here's an example:

<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">

[code]....

When the user clicks on the button the VGroup is collapsed as expected, but then if a user moves their mouse out of the item renderer it then collapses, i.e. returns to its default state.

View 1 Replies

Flex :: DataGroup - Setting Height Of Item Renderer

Nov 28, 2011

I've been playing around with renderers the last few days for a mobile application. I'm creating a gridlike renderer that has columns that is light weight for a mobile app. It is a bit of a poor man's datagrid. The layout is fine. The question I have is controlling the height of each row in the list.

When measure() is called, I set the measuredHeight to:
measuredHeight = getElementPreferredHeight(ld) + verticalPadding;
Where vertical padding is:
var verticalPadding:Number = getStyle("paddingTop") + getStyle("paddingBottom");

When I debug on the desktop, the measuredHeight is set to 12 and on the device (Motorola Atrix), it is set to 12. But when layoutContents is called, the unscaledHeight is a number much larger than my measuredHeight value (44 on the device, 66 when running on the desktop), resulting in more vertical whitespace surrounding each item than I care to have. How do I control that row height? I happen to be using a Datagroup for this particular example but in some playing around I did with just a simple list, I had the same issue. Somewhere the system is overriding my measuredHeight with some other value.

View 1 Replies

AS2 :: Bring A Php Variable On Flash With It?

Jun 1, 2010

Can you show me an example of a very easy implementation in AS2 (action script 2.0) to bring a var from a php file. I have a php script who return a value into the var $result when it is executed, how can i use this var on flash?

View 1 Replies

Bring In An Image With Transparency In Flash CS4?

Oct 21, 2009

What's the best way to bring in an image with transparency in Flash CS4?I have a logo in Photoshop that looks great on a black background.  But when I bring it in as a GIF or PNG in Flash, the edges get really jagged.Is there a preferred way to import this so the edges are smooth?

View 2 Replies

ActionScript 1/2 :: Bring XML Into Flash Using A Variable

Dec 2, 2009

I have a movieclip (jobImage) which I'm loading an image (Image1, a subnode of Job1) into using XML. But I want to be able to click on any one of a series of buttons which will have that image replaced by a new image (eg. Button2 will load Image2, another subnode of Job1, Button3 will load Image3, etc.).So I have the selected button pass a number back to a variable called "_root.imageTarget". If Button2 was pressed, this would happen: _root. imageTarget = "2";This variable is then combined with the word "Image" to form a new variable (newImage)[code]

View 7 Replies

ActionScript 1/2 :: Bring XML Into Flash Using A Variable?

Feb 8, 2012

I have a movieclip (jobImage) which I'm loading an image (Image1, a subnode of Job1) into using XML. But I want to be able to click on any one of a series of buttons which will have that image replaced by a new image (eg. Button2 will load Image2, another subnode of Job1, Button3 will load Image3, etc.).So I have the selected button pass a number back to a variable called "_root.imageTarget". If Button2 was pressed, this would happen:

_root.imageTarget = "2";
This variable is then combined with the word "Image" to form a new variable (newImage)
newImage = "Image" + _root.imageTarget;

[code]....

View 1 Replies

Actionscript 3 :: Libraries That Bring CS4 To Flash CS3?

Feb 12, 2010

Are there any custom libraries available that allow me to code/publish in CS3 using some of the features of CS4?

EDIT: I say "some", because I understand that it is obviously nearly impossible to reimplememnt CS4 in CS3.

View 2 Replies

Flex :: Differentiate Between A Data Provider Update And A Itemrender Being Recycled When Using A Custom Itemrenderer In A DataGroup?

Oct 18, 2010

How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup?I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned the same object they had before the update. This has made it almost impossible for me to distinguish between a data update and an itemrender being recycled. Also, the data never seems to get set to a value = null, so that seems to be out as well.

View 2 Replies

Bring The Video Into Flash And Export Out Of There To Get The Transparency?

Nov 24, 2009

I have created an animation using illustrator files in AE CS3 and now want to convert this to flash so it will play on my website.The problem I am having (or rather my web designer) is getting the transparency in flash.

1. How should I export out of AE

2. Do I need to bring the video into Flash and export out of there to get the transparency?

3. Can this workflow even be done?

4. What is the best way for me to deliver the files to my web designer?

I have attached a movie file of the look I am going for. The birds were done in AE and I want them to move across my home page.

Attachments:Hone Bird Anim DEMO.mov (983.4 K)

View 3 Replies

Actionscript 3 :: Bring Object To The Front In Flash

Apr 29, 2010

i have the below code, which is basically animating object across the screen, when roll-over happens it pauses the anim, and displays some information. Everything works fine, but when its paused, i wold like that current object to be 'on top' so other items run behind. I have looked at setChildIndex, but didn't have much luck.

[Code]...

View 4 Replies

Actionscript :: Bring Object To Front Flash?

May 23, 2010

I have a menu set up that has about 20 menu items in a circle. When you mouse over each item, a title comes up. The only problem is that because of the depth order, it's hidden behind the other menu items.

View 2 Replies

Html :: Bring A Div In Front Of A Fullscreen Flash?

May 26, 2011

Is it possible to bring a div in front of a flash movie that is in full screen?How can I do this if it's possible? I want to make a little box in my site and put some links in it and position it on top of a flash movie that is playing in my site so the user can have shortcuts there.I don't want to put the links inside the flash animation :D

View 1 Replies

ActionScript 3.0 :: Create A Dynamic Menu In Flash Using PHP & MySQL And Bring It Into Flash Using DataProvider?

Dec 2, 2010

I'm trying to create a dynamic menu in Flash using PHP & MySQL and bring it into Flash using AS3 DataProvider. My menu works fine with a local Array, but I seem to have an issue with the Type being a String and not an Array, but how do I set it up properly so the types are correctSo I started with a typical, non-dynamic array and it works to create my menu:

Code:
var items1:Array = [
{myClass:"SCI101", question:"What color is the sky?"},
{myClass:"MATH110", question:"What is the square root of 81?"},[code].....

View 1 Replies

ActionScript 3.0 :: Bring PHP Uploaded File On Server Into Flash?

Jan 1, 2010

I am currently trying to create an application that allows a user to upload a photo into flash and then manipulate it. I am building it with AS3 and really cannot have the flash player any higher than 9 if possible.So far i have my upload script working using php from a basic html form. This uploads a jpeg to the 'images' folder on the server giving it a unique filename.Once the upload is successful the user is taken to '../upload.php' with the Flash swf on and tells them it has been successful and 'echo's' back "$newname" (variable for the new file name)How can i get this uploaded image on the server into my swf to display in an emptymovieclip with an instance of 'myObject' (currently a picture of a cat). What is the actionscript needed to call the file into my movie?Have come to a complete standstill on i have attached the fla file and also the upload.php file. The code on upload.php is also posted below

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

[code]....

View 3 Replies

Actionscript 3 :: Flash Removing A Child - Bring It Back?

Mar 31, 2011

i just started learning flash. Anyways, I have a movieclip that is removed when i quit the game from the menu e.g. removeChild(character). When i press "start" on the menu, i would like the character to re-appear. How can i add him again ONLY if he's been deleted?

View 6 Replies

Bring A Flash Banner / Movie In Front Of A Fullscreened?

Jun 23, 2011

I want to know if it is possible to bring a flash banner or movie in front of a fullscreened flash.

View 2 Replies

ActionScript 3.0 :: Save Flash Array To Xml Then Bring It Back Into It?

Oct 11, 2009

How can I save information created by an array in flash to an XML file and then bring it back info another flash movie?

THe basic idea of what I want to do is have a bunch of checkboxes that when ticked add an item to an array the array can then be saved and I can pick up the information to be used in another part of the site.

View 5 Replies

ActionScript 2.0 :: Break Up All The Info In XML In Order To Bring It Into Flash

Jul 16, 2008

I am working on a projects showcase page. I don't quite understand how to break up all the info in XML in order to bring it into Flash. I have played around with a bunch of tutorials and samples but none go this deep.... I have 5 categories. In each category there will be a number of projects.

Each project has a description, title, subtitle, and its own image gallery. There needs to be a thumb, medium size, and large size for each image. Its the fact that there are multiple categories, multiple projects and multiple images along with a few individual facts. I am almost considering making an xml file for each category, but that seems silly.

[Code]...

View 2 Replies

ActionScript 2.0 :: Event Calendar - How To Bring In Data To Flash

Mar 28, 2004

I have to set up an list of events in sort of a calendar format. I'm trying to figure out how I should bring in the data. The data will be stored in a mySQL database. Should I just bring it straight into flash with PHP, or should I use PHP to convert it to XML and then bring it to flash?

View 1 Replies

Data Integration :: Use An External File To Bring Text Into Flash?

Apr 15, 2010

We have a client who wants to share with us flash widgets whose contents can be updated using an external file. Our question is: Is it better to use a .txt  file (such as notepad) or a .xml file to input data into Flash?

View 4 Replies







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