Actionscript 3 :: Flex 3: Run A Function After A Repeater Is Completed Done Loading The Children?

Jun 10, 2011

I have a repeater which creates a child named "wholeProject" each time the repeater loops.

<mx:Repeater id="projectRP" dataProvider="{projectsHttp.lastResult.project}">
<Block:project
id="wholeProject"

[Code]....

As you can see from the last line of the piece, i have a the creationComplete option run two functions. What I would LIKE to happen is once the repeater is done loading all of the block:project pieces for each function to run once and only once. Instead, the two functions are running after each is created. I tried putting the creation complete in the tag, but that didn't work.

Is there a way to tell the creationComplete piece to run only when the last piece of the repeater has been created?

View 1 Replies


Similar Posts:


Flex :: ViewStack With A Repeater - Repeater Gets Placed At The Bottom?

Sep 2, 2010

I have a problem when creating a ViewStack, with a repeater along with other components (i.e. vBox) inside the ViewStack. The repeaters get placed at the bottom of the view. Despite the repeater is listed before other components, it is placed at the bottom.Is there a workaround where I can get the repeater drawn before the other components?Here is an example:

<mx:ViewStack id="viewStack" width="100%" height="100%" backgroundColor="#FFFFFF"
backgroundAlpha="1" paddingLeft="5" paddingRight="5" paddingBottom="5">
<mx:Repeater id="editorsRP" dataProvider="{dynamicFields}" [code].....

View 2 Replies

Flex :: Catch The Event Of Image Loading Completed?

Oct 24, 2010

Core of my code is following:

var img:Image = new Image;
img.source = 'http://..........';
img.autoLoad = true;

[Code]....

I found that, the complete event does not occur for some images. How can I catch complete event without signal leaks?

View 1 Replies

Flex :: Dispatching Custom Event From Repeater Component And Listen Event In Other Repeater Components

May 4, 2011

I have a repeater component with custom event. My repeater components fires custom event holding data. My need is to dispatch event so other repeater components can access data from dispatching component.

Edit: Added whole stuff here.

<!-- AttributeMapping.mxml -->
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code].....

View 1 Replies

Flex Get Height Of Children When To Call Function?

Jun 8, 2009

I have a function I wrote that gets the height of the application without scrolling. Meaning the height it would need to be to not have to scroll.

[Code]...

This function works well but the problem is knowing when to call it. I planned on calling it after I add/remove any children from it. However thats still too soon because I don't get the correct height yet if I run it then. The fix I currently have is using a Timer to call the function about 300 milliseconds after a child is added/removed which seems to work well but I think this is a very risky fix. So I was wondering a better solution. I am thinking there has to be some sort of event I can listen for that will tell me when its ready for me to run this function, I just don't know what event that would be?

View 1 Replies

ActionScript 2.0 :: Executing Function After FLV Is Completed?

Feb 3, 2010

So I've got a flv embedded on my stage and I want to call a function (a getURL) after it finishes playing

View 2 Replies

ActionScript 2.0 :: Starting A Function After One Has Completed?

Aug 13, 2007

I have multiple functions in one frame. Each function runs an seperate animation. I would like to have the first animation run, and then as soon as that animation is complete, I would like to have the next animation play, and on so on.

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.*;

[Code].....

View 6 Replies

ActionScript 2.0 :: Cancel Loading Before Completed

Aug 15, 2006

I am getting some strange results while loading large files dynamically, and testing my movies. Even if I delete the object in which the external file is loading, the bandwidth of the loading seems to continue. Either Im not doing a good job of cleaning up after myself, or the test environment when exporting a movie isn't accurate, or ... there is no way to cancel the effects of

[Code]...

Is this going to be the case online? (difficult for me to test right now) Is there a way to break off the loading once it has begun? (I thought by deleting the object that called the loading function, I would end the loading)

View 2 Replies

ActionScript 3.0 :: Disabling A Button Once The Function Has Been Completed?

Jan 25, 2010

How do i disable this button (portBtn) once the function has been completed?

[Code]...

View 9 Replies

ActionScript 3.0 :: Clearing Output Panel After A Function Is Completed?

Oct 16, 2009

Is it possible to clear the output panel after a function is completed?

View 7 Replies

Flex :: Dynamic - Flex Repeater Horizontal Scrollbar?

Dec 7, 2011

In my application I'm using a canvas and repeater inside HBox it is Dynamic,..now I want to keep a horizontal scrollbar for the same, I may display more than 50 canvas addresses inside that Hbox and repeater.Here is my code:

<mx:HBox id="addrBox" x="42" y="161" width="1000%" styleName="ContextPanel" resizeEffect="resize" horizontalGap="5" height="0" paddingLeft="15">
<mx:Repeater id="rpt" maxWidth="1000" dataProvider="{ customerAddress }" >[code]....

Kindly give some idea for getting horizontal scroll bar for the Repeater.

View 2 Replies

Flex :: Change Label In Repeater?

Nov 21, 2009

In actionscript, when I click a button I would like the label to replace from "add to list" to "added" without override with super method.

Is this even possible to change label in repeater?

View 1 Replies

Flex :: Get Text From A Repeater Object?

Mar 3, 2010

I have a label that is using a repeater to get information form a database. Now I'm trying to pass the information in that label to another label component, but I haven't had any luck.[code]...

View 1 Replies

Flex :: Modify The Vertical Gap In A Repeater?

Jul 2, 2010

I Have a VBox, and set the verticleGap = 0. Inside the VBox I have a Repeater. When I run the App, the items listed from the Repeater have a large gap between each line. Is there a way to set the verticleGap on the Repeater, or reduce that space?

View 1 Replies

Flex 3 - Conditional Statements For A Repeater

Jul 12, 2011

I have an xml file that has a start date and length of a project... I use a repeater to load each project. The users' screen only shows 2 weeks at a time. I would like to make it so that if a project doesn't fall within the two weeks on screen, that the project isn't loaded. I could do this by sorting through the XML and finding the correct projects to load, and putting them into an array collection, but there's a "move date" button which allows the user to change the two weeks that are showed. Once the two weeks are changed, I would need the projects that fit into that new 2 week window to show.

[Code]...

View 1 Replies

Flex :: Use Repeater For Components Inside Swc?

Nov 4, 2011

I build a swc file by Flash CS5 contains some interface component like TextInput, Label.And then I use it in a flex program.

But I meet the problem when I want use flex repeater for this component.

Following is the a component defined by myself in swc file using Flash CS.[code]...

View 1 Replies

Flex :: Repeater Component With Grid Layout?

Aug 3, 2009

I have a randomly-sized array of items. I'd like to display one label for each item in a Repeater component. I want them to display in a grid layout with 5 columns and as many rows as needed. How do I do that in Flex / ActionScript?

View 2 Replies

Flex :: Checkbox Visibility Binding In Repeater?

Nov 20, 2009

I am trying to dynamically bind the visibility of a checkbox control to a data field of a repeater as follows.

[Code]...

View 1 Replies

Flex :: Repeater With Dataprovider Flickers A Bit When There Is An Update

Dec 16, 2009

i have the following code:
<mx:Repeater id="user" dataProvider="{data}">
<mx:VBox styleName="repeaterVBox">
<mx:Text text="{user.currentItem.a}. {user.currentItem.b}"

[Code]....

the dataProvider 'data' updated itself every 3 seconds, so every 3 seconds that is a flicker of some sort, i see for a really short time an empty area and then it gets redrawn again. is there a way to make the update somewhat faster ?

View 1 Replies

XML :: Flex 3 - Using Repeater And Sending XML Information To Component

Apr 26, 2011

I trying to import an XML file, and send bits and pieces to a custom component. My XML file is structured like this:

<projects><project>
<projName>{Insert title of project here}</projName>
<startDate>{Insert date here}</startDate>
<positions>
<daysOffset>{Insert a number here}</daysOffset>
[Code] .....

When I save the project, I do not get any errors or warnings. However, when I attempt to output the values in the component, the projectPositions piece comes back as Null.

View 1 Replies

Flex 3 :: Refreshing Repeater After Adding A Child

May 23, 2011

Within a child, I have an XML element with the following structure:[code]I then use a repeater to list each out onto the screen. There's a button I have created that is used to create a position. So, once the user clicks this button, I call the following function:[code]The above function creates a new XML object, puts some default values in, and appends it to the list of project positions. After appending the new information, I made the height of the project larger and then check to make sure the new project height isn't overlapping any other projects... but that information is irrelevant to this post.My problem is this - once i append a new child to the XML variable, it doesn't appear on the screen. Is there a "refresh" or "re-render" option i can do to the repeater in order to make the new child show?[code]Once i make the changes, and use the XMLListCollection as the dataprovider in the repeater, the information no longer loads on the screen.

View 1 Replies

Flex :: Flex Forcing Resizing When The Image Source Update Is Completed?

May 31, 2009

I have what seems a straighfoward situation: I update the source property of an image, when the image is loaded i want to redraw the border skin to fit the new size of the image.

newImgEdit.addEventListener(Event.COMPLETE, loadImgComplete);
newImgEdit.source = myurl_ressource;
private function loadImgComplete(evt:Event):void {

[Code]...

View 2 Replies

Flex :: Limit The Number Of Items In The Repeater Object?

May 19, 2010

I'm using a Repeater object in Flex. Would be possible to stop the repeater after 50 iterations.. even if my dataProvider is bigger ?

I want to display only the first 50 items. I'm using MXML to implement the repeater.

View 1 Replies

Flex :: Delay Repeater Until Rest Of View Has Loaded?

May 30, 2010

I have a flex repeater for an accordion inside a TitleWindow that is quite slow, I've already set recycleChildren to true, which has helped, but it's still slow on the first load and causes the animation to stutter when I open the TitleWindow.

The repeater is just one part of what's visible in the TitleWindow, what I would like to do is have the repeater load after the rest of the content in the TitleWindow so the animation of the TitleWindow being opened doesn't stutter (the main problem).

View 1 Replies

Flex :: Components Inside A Repeater Not Resizing As Expected?

Jun 3, 2010

I have an mxml panel in which I'm using a repeater. The panel can be resized horizontally and I would like for the repeated components to resize together with panel. Here is a simplified example of how things look like:

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" ...>
<!-- scripts and some controls -->
<mx:VBox width="100%">

[code].....

View 2 Replies

Flex :: Ensure An Item Gets Deleted Inside Repeater?

Aug 4, 2010

I have a code like this:

<mx:Repeater id="allItemRepeator"
dataProvider="{_model.allItems}"
>
<components:ComponentSelector id="componentSelector"

[Code]....

When code changes for allItems the item disapears from screen as expected but still sits in memory! I know this by a function inside a compoenent that has "trace" so the trace output still displays even after the component disappears from screen. How do I ensure that the element is deleted when it's reference is deleted? Will using List-based component to display items instead of "Repeator" solve the problem (it requires significant refactoring of my code so I'm asking before trying it out)

View 1 Replies

Flex :: Repeater Item As An Array Index (binding)?

Oct 12, 2010

I have a label inside a repeater (rptInfos), and I have an arraycollection (Texts) that has the translations. The "Texts" content is changing when I change the language, and normally I use {Texts.getItemAt(219}} for example when I need a translated text. But in the repeater I have a translateable column, so I want to use it like this:

<s:Label text="{Texts.getItemAt(rptInfos.currentItem.DictID as int)}" />

but it says "Syntax error: expected a definition keyword (such as function) after attribute , not target".I wanted to translate it in the labels creationComplete event, but than I can forget about binding, so only when reloaded can I have the content to update.

View 2 Replies

Flex :: Unable To Generate Initialization Code Within Repeater?

Feb 22, 2011

Following error is arising if I use NavigatorContent in Repeater. Is there a way to initialize image and lable on which I am encountering following error: Unable to generate initialization codewithin Repeater, due to id or databinding on a component that is not a visual child.

Code:
<mx:Repeater id="rep" dataProvider="{usersArray}">
<s:NavigatorContent width="100%" height="100%" label="{rep.currentItem.name}" >

[code]....

View 1 Replies

Flex :: Add Event Listener To Components Inside A Repeater

Oct 11, 2011

I want to add an event listener to each component inside a repeater, but don't know how. Here's some code I have tried:

<mx:Repeater id="rp" dataProvider="{dataProvider}" width="100%">
<mx:Button id="attach" creationComplete="addListeners(attach[rp.currentIndex])"/>
</mx:Repeater>

This doesn't work. creationComplete is not called until the repeater has finished instead of (as I expected) when the creation of the button is complete. I'm not sure how to accomplish this.

BTW - I also tried placing the creationComplete on the parent component to the repeater, but it would only be called the first time the component was rendered (the data inside the repeater sometimes changes) so that didn't work.

View 1 Replies

ActionScript 3.0 :: Flex: Send Event Or Something To Repeater Item

Feb 13, 2010

I have a Tile with a repeater. I need to select a repeater item or the tile and change its values, or fire an event, or something.

View 1 Replies







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