Flash :: Viewstack With Components - Wait Component To Load
Dec 14, 2011
I'm having a viewstack with a few components. Those components have to execute a function with parameters coming from other components. Therefore the other component may not me loaded directly. Is there any way to load a component via AS3 with a function?
View 2 Replies
Similar Posts:
Dec 14, 2011
I have a viewstack in my main application
public var currentStep:int;
<mx:ViewStack id="step" selectedIndex="{currentStep}">
<comp:Choosecar id="choosecar" />
<comp:Configcar id="configcar" />
</mx>
I'm using a drag and drop inside to choosecar component, so I want to change the 'currentstep' - which is a variable of the main application - with +1 so the viewstack changes to the second component 'configcar'. The only solution I found is calling a component from the main application, I need it the other way around but I can't find it.
View 1 Replies
Aug 22, 2010
Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.
View 1 Replies
Aug 2, 2011
I want to add a component into a Viewstack dynamically in flex4. Like code below
[Code]....
But the code in comment doesn't play the effect. How can I implement it? Does the canvas have any hideffect or showeffect to Bind
View 2 Replies
Mar 22, 2010
I have a viewstack with 3 items in it. Now my problem is that I want all these components to be of the same size. Its simply enough to do this manually but is there any other way of setting the size for all the components at once?
View 2 Replies
Feb 12, 2011
I have a viewstack with two tabs.In one of them there is a data grid shows a list of notes. The other one is includes a form that can edit notes or crates new note. I want the user to be able to add new note or edit existing note when clicks an item in data grid. I mean when user clicks an item the viewstack must become editor.
View 1 Replies
Aug 10, 2011
I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.
Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?
View 1 Replies
May 2, 2009
How do I wait for an external .txt file to load in ActionScript 3? If I use URLLoader, I have no guarantee that the file has loaded, since it dispatches an event when it's complete. I'm calling the loader function from another class, so I can't simply stick the next actions into the event listener.
View 1 Replies
Nov 10, 2003
I am trying to use the preloader component (components set 2) within flash mx. The code I have so far is: The preloader has the instance pre_load_pic1.
[Code]...
Unfortunately the preload bar does nowt even though the jpeg does load into the browser.
View 3 Replies
Jul 11, 2011
I'm embedding a flash object in an html page and calling windows.onload to initialize the Flash movie. The problem is that the windows.onload does not wait for the Flash object to completely load. Is there way to make sure that the Flash object has fully loaded?
Here is the code I'm using:
<head>
<script>
var falshObj = null;
function pageInit() {
thisMovie();
[Code] .....
View 1 Replies
Jul 13, 2010
I'm looking for an alternative to native Flash components. They are way to heavy for my needs. I'm looking for something light, simple, still customizable if possible for AS3. I'm specifically looking for combobox, checkbox, radio button.I'm looking for something reliable with support eventually...so basically I'm ready to pay the price of a good alternative.
View 1 Replies
Jan 25, 2010
I'm using loadMovie() to load external swf's and then send the swf to a specific frame, depending on the button that is pressed.
Code:
on(release){
_root.mc_mainloader.loadMovie("Main.swf")
_root.mc_mainloader.gotoAndPlay("fadeup");
}
Unfortunately it ignores the second line, which appears to be because the movie hasn't loaded by time it gets to the next line. As a work-around I made an interval to check for the movieclip width to be more than 0 and then run a function that chooses the desired frame, but this is very unreliable. Is there a simple way to load the clip and wait until it is finished, then immediately choose a frame on load?
View 4 Replies
Oct 7, 2010
i believe it is quite simple but i'm not able to do this. situation is something like this:
function name123():void //i m already in a function.
{
....
var a:Loader = new Loader(); //define a loader
[Code]....
i know if i give set width and height in eventComplete function, i could do but the situation is different and i've to set the sizes in name123 function only.
View 8 Replies
Jun 4, 2009
In this app/website I'm building, I will be making many requests for data (via an external PHP file that queries a MySQL database). I'd like to build this request mechanism into its own class so I can reuse it.What's the best way to handle this? I'm thinking the following would work, but I'm a bit lost on the last step:1) From the main class, call a method in the query class (with whatever arguments apply, to specify what data I need etc).
2) Set up a listener in the main class and make the program enter a sort of "wait" state (possibly visually, if these requests wind up taking more than a half-second or so)3) From query class (upon receiving the data), dispatch event to let main class know it's received the data.4) Send data to main class. <---- How should this be achieved?For #4, should I create a custom event that dispatches with the data inside the event object for the main class to receive when it's notified? Will this be a problem if I have lots of different types of requests (will I need a new custom event for each type?)? Or is there some other sort of "return" I can/should use (similar to calling a function that returns a value)
View 1 Replies
Feb 9, 2010
I have seen flash sites that wait to load different parts of the flash file until you click on a link, thereby starting a loading graphic that then loads the content you're looking for. I can't find any information on how to do this, and I'm guessing I just can't find the right terminology.
View 11 Replies
Sep 19, 2008
how do I load a random jpg of say 100 jpgs have it appear for a fraction of a second then unload or go invisible?
View 2 Replies
Jan 20, 2003
I cannot find a fla or a tutorial. I have seen this effect many times before. I have been trying and I cannot figure out how each component reacts with the other components. The example is in the navigation seen here:[URL]
View 16 Replies
Sep 16, 2011
how can I load in flex spark Image control and wait for complete loading? MX:image have method load() and listen COMPLETE event this is not in spark Image...is there only source?? or how can i listen when image is complete loading??
View 1 Replies
May 4, 2010
Is there a way to load a file and waiting for the event listener with out continuing executing other code.
I tried using a while loop with a flag that is set by the on Complete in order to exit the wait loop.
This generates a timeout error. private var loaded:Boolean = false;
function SpriteLoader(filepath:String){
trace("Attempting to Load File:" + filepath);
FileLoader = new Loader();
var FileRequest = new URLRequest(filepath);
[Code]...
View 2 Replies
Sep 8, 2009
I am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....
[Code]...
View 1 Replies
Oct 12, 2011
I want to use a Spark ComboBox with numerous MX Components but the Spark ComboBox does not look the same as the MX Components. Is there a skin I can use to Skin Spark components like MX components?
[Code]...
View 1 Replies
Dec 10, 2011
My component has lots of inner components.When i resize the container component (panel), i want all inner components resize with same ratio. Which function should i use?
View 1 Replies
Apr 20, 2010
How do i wait for the entire document class to load before a custom event dispatches.....my problem is it dispatches before the class with the listener is envoked by the "main" document class
View 8 Replies
Oct 14, 2010
There are lots of examples of how to create skinnable components in AS3 using the new Spark component architecture, however I've yet to find any such examples using MXML.What I'm mainly referring to is defining the skin parts and skin states. It seems as though the SkinPart metadata is supposed to be associated with properties and as such can't be used in MXML, is this correct?
View 1 Replies
Jun 26, 2010
I am trying to do a simple CSS declaration. However, I got the warning above and not sure how to solve it. I thought s|(type) should declare the style for me
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";[code]....
View 1 Replies
Mar 30, 2005
how to extend Components, like if i hav to place images next to the content inside a listBox Component, how do i do that?
View 1 Replies
Mar 9, 2011
I have a general question about AS3. I recently purchased a piece of code - an image scroller - as a component. I like the component, and it works well - except for one issue. When I first addChild the component to the display list of a Sprite, it works well, and the images begin with image 1. However, when I removeChild the component, and then later addChild it again, the images display at a seemingly random point along the image sequence. The component has a settings file and an images array which are xml files, and I have three separate pairs, one for each instance. My question is this: is their a way to force components to re-evaulate ("re-set") each time they load? I'd like to component to move to first image everytime.
[Code]....
View 3 Replies
Jul 21, 2009
In my flex project i used one option like Link button . If i like it will be open new page contain more information and components . Which container is suitable one ? Where is used viewstack and stages ?
View 2 Replies
Dec 17, 2009
Suppose I have a ViewStack like this:
<mx:ViewStack id="s" left="5" right="5" bottom="5" top="0" width="100%" height="100%" creationPolicy="all" minHeight="0">
<mx:Repeater id="repeater" dataProvider="{dp}" height="100%" width="100%" minHeight="0">
<mx:Box id="bx" label="{repeater.currentItem.label}" width="100%" height="100%" minHeight="0">
<mx:Label minHeight="0" width="100%" height="100%" label="bob" />
</mx:Box></mx:Repeater></mx:ViewStack>
With a large number of items in the stack (each having a large number of panels, databinding, etc), this gets extremely slow. The Repeater seems to trigger creation of all children regardless of the creationPolicy of the viewStack itself.
View 2 Replies
Apr 30, 2009
How to load flex components through xml?
View 1 Replies