ActionScript 2.0 :: (MX 2004) Load To One Of Two Containers?
Apr 7, 2006
I have this code below which works well to a certain extent. This code is on the 'PROFILE.swf'. On this page there is a sub menu containing 4 buttons: Biogs, Awards, Charity, Publications. When one of the the last 3 buttons are clicked the text already on the page fades away and the relevant, new, swf is loaded in place. Now because within each new swf there are more catergories in the sub menu to choose from, the buttons are also loaded with the new swf.
This means that after the first button is clicked, this code nolonger works as the target path changes. Initially the buttons are in Container2, then once the first button is loaded the buttons are in sub_cntr. My question is: Is it possible to write the code so that the target path is checked to both CONTAINER2 and SUB_CNTR?
[Code]...
View 4 Replies
Similar Posts:
Mar 15, 2011
I have an XML file with 1 parent node that has 1 child node inside it. The parent node is straight forward. It only has one attribute.
The child node has 3 attributes in it - Title, Photo, URL
I want my Flash file to have 3 containers - 2 Text list containers and 1 image holder. The first text container will load all of the Names of parent node. The second text container will load all of the Title of the child node.
The 3rd container will be a MC holder that will load the Photo and will link it to the URL specified in child node.
How do I script my Flash file?
Right now, my script is as follows and it successfully loads the name from parent node in one of the containers. I'm confused with other two!
Code:
function onXmlLoaded(success:Boolean) {
if (success) {
// make a handle to the root node in the xml
[Code]....
View 3 Replies
Mar 30, 2004
1.Load thumbnails from an XML file.
2.On click load the actual image which again is generated via XML file.
Now in the past I have used XML for a menu system, but I'm finding it hard to come up with this by myself from scratch. I can't seem to break the concept of how I would set this up. If anyone can lead me in the right direction with a link or example etc,
View 3 Replies
Jan 16, 2005
I am playing around with movieClipLoaders and have run into problems. My application wont load my movieClip. I am trying to do it the [URL] way, but it works poorly.
[Code]...
.fla and check so Im not making any lame fix-it-in-5-seconds errors? I have put the .fla and the .swf in the same directory, so that is no the problem.
View 3 Replies
Aug 2, 2005
[URL] the tutorial above worked fine for the standard images kirupa used, all were 300x200 and faded into position perfectly, however if another picture is used that's the same size even, it won't load, nor will it load if the same images kirupa used are edited with the tiniest pixel changed. i know it's definitely not the hyperlinks in the .xml file.
View 1 Replies
Jan 16, 2005
I am playing around with movieClipLoaders and have run into problems. My application wont load my movieClip. I am trying to do it the [url]... way, but it works poorly.
Code:
this.createEmptyMovieClip ("mcHolder", this.getNextHighestDepth());
var Loader:MovieClipLoader = new MovieClipLoader();
Loader.loadClip ("Red.swf", mcHolder);
I m not making any lame fix-it-in-5-seconds errors? I have put the .fla and the .swf in the same directory, so that is no the problem.
View 3 Replies
May 25, 2010
Im trying to load my xml into a pattern that places the information found in a for loop nested inside a contentional MovieClip instance. For example: I have a movie clip (basically a main container) on the root timeline that should load 3 other instances of a movie clip which is just a back ground (or container) I created to present the xml data to the viewer. The Xml data is just a name, date, text, and thumbnail.
I am having issues with making my for loop nest my data from the xml into firstly create instances of the needed movie clips when they are needed and then nest the xml information inside of them...
Right now it works... It just that the information isn't nested so some of the movie clips appear on top of others due to how the code is set up and the display list... I formated it with the setChildIndex so it looks normal, but I want to develop a pattern to where the information fits into the containers correctly.
[Code]...
View 6 Replies
Apr 20, 2011
I am having a problem adding my containers. I have a class that holds all my players containers, x & y cor etc. They are all pushed into a single array. Then I have another class my main class. But I cant add my containers to the stage though my main class.
Heres ActionScript Code:
package com.shoot {
import com.BlackJack.CardDeck;
import com.BlackJack.Players;
import flash.events.*;
import flash.display.Sprite;
[Code] .....
View 0 Replies
Mar 30, 2010
If I wanted to store multiple, related sprites, would it be more efficient to store them in a container Sprite and cycle through them by child number, or to use an Array.
Code:
//Basically
var container:Sprite = new Sprite();
container.addChild (obj1);
container.addChild (obj2);
[code]....
View 8 Replies
Nov 9, 2010
I'm newly migrating over to AS3, so this may be a silly question, but is there a way to use only one Loader to load in three external swfs into different MC containers on the stage? Or, do I have to specify a new Loader for each swf since I am loading into different containers?
Say I have (containerA, containerB and containerC) on the stage of my main movie -- would it be possible to only use one Loader here to load them all in simultaneously? If so, what would the proper syntax be?
Again, I know this may just be a simple fix, but so far I can only get this working by declaring three different Loaders, and it just seems like there should be a more efficient and simple way to accomplish this.
View 6 Replies
May 17, 2009
[code]I add alot of containers to the stage, but I would like to be able to remove the containers again outside the function.I was thinking that I could maby write removeChild(snipper1), but I can't access them after they are created ?
View 1 Replies
Jul 7, 2011
I have the following scenario: I create an HBox with a width of 1000000px (one million pixels of width). this big HBox is contained inside another small HBox that has a width of 1000 px
[Code]...
Inside this big HBox I create a bitmapFill of a simple image, its just a pattern of lines the problem is that the scrollBar of the small hbox doesnt work well, it just stops halfway, the thumb of the scrollbar keeps going, but the scrolling stops and the end of the big hbox is not beign reached. Here is the part of the code that makes the bitmapfill:
[Code]...
View 1 Replies
Aug 30, 2011
Is mx.containers.HDividedBox deprecated by some spark container in Flex 4.5? I'm new to Flex programming and can't find any spark replacement for it.I want to have 2 Lists separated by movable vertical bar.
View 1 Replies
Jun 6, 2010
Does flash supply 'invisible' containers, to make object management a little easier ? eg. add some objects to the container, then add the container to the stage, then later on remove the container (i.e removing also the objects) ?
View 2 Replies
Aug 10, 2010
So I have multiple containers made dynamically in AS3The content of these containers exceed the container, so I have scrollbars.My question is, how can I scroll in these containers with only a mouse.move.The other mouse.move articles I read is for one container.
View 0 Replies
May 14, 2010
I'm using TitleWindow with PopupManager.
I programmatically add the children to my TitleWindow and I would like the TitleWindow changing its size in order to avoid scroll-bars.
Is there any property to mek the windows wrapping the content in Flex ?
View 1 Replies
Aug 9, 2010
[Flex 4] Float left or right in layouts or containers?i have a main container, that is dynamic, 100% width, and in it there are 3 components. one should be floating to left, to right and the other will be centered. how do i do that?
View 3 Replies
Dec 17, 2010
Is it possible to create Accordion with only the headers without adding any containers in it? Is there a way so that I can just create the Accordion with three sections with only labels?
View 2 Replies
Dec 29, 2010
I'm new to Flash Builder 4 and Actionscript 3 (actually, to programming as a whole beyond some very simplistic stuff). I have watched / read a bunch of tutorials, and started a project but now seem to have hit a wall. The answer is most likely simple, but seems to be alluding me.
How do I (or What approach should I take) to control visual elements, for instance, BorderContainer's, that I created dynamically?
As is, I have an Application containing a BorderContainer and a DataGrid. At runtime, 3 new BorderContainers (which are dragable, and resizeable) are created based on XML data that contains X & Y co-ordinates, and Height and Width values, and then added to the pre-existing BorderContainer. How would I go about getting the properties of these children BorderContainers to be displayed and remain up-to-date in the DataGrid (such as when they are moved/resized)?
View 2 Replies
Mar 21, 2011
I would like to modify an Accordion class to suit my needs.Instead of simply extending Accordion, I would like to copy and paste the whole class as a start, with the new class name "MyAccordion", into the src folder; to gain the maximum freedom(I assume).
However, several problems encountered. For the "include "../core/Version.as";" error, I had solved by replacing it with a explicit Version static const string. But for the problems lead by the inheritance, e.g. AccordionHeader, etc, I found that there would be too many files to be edited when going down the stream. I suspect I mis-understand the whole logic of editing the class.
View 1 Replies
Feb 10, 2012
Is there a way to link two Scroller containers in Adobe Flex? As in, when one scroller is modified, the same modifications will be reflected in a second scrolling container?What I am trying to do is have an image and label on different areas of the screen that are swipable, and when they are swiped/changed I want the same change to be reflected in the other Scroller container.
Here is my initial Scroller container with images that the label Scroller container should correspond to:
[Code]...
View 2 Replies
Nov 5, 2009
Not sure if I am doing something wrong, or completely misunderstanding how this works. I have three sets of objects that will always be in back, middle and front wrt to each otherSo I thought I could have three containers and add the objects in their respective locations.
back= new Sprite();
front = new Sprite();
addChild(back);
[code].....
View 1 Replies
Dec 27, 2009
Im trying to animate a set of empty movie clip containers. When I select them and try to apply a motion tween.
View 2 Replies
Aug 6, 2009
My problem is pretty simple: Flex containers do layout based on un-transformed children, and so rotated children are positioned as if there were no rotation, but then they're rotated around the top-left of that position. I've attached an image to show what I mean. Can I wrap the components in something? Or do I have to resort to custom components or fixed layouts? The image inlining doesn't look like it's working to me. Link to example image: [URL]
View 2 Replies
May 4, 2011
I have a panel and i have set minWidth and width for it. The code looks like this <s:Panel id="adg1" x="199" y="164" width="200" minWidth="300" title="Title">
Here the expected behaviour is width of the panel should be 300 since the minWidth > width,but the panel width is 200.I dont understand where i have went wrong.
View 2 Replies
Sep 25, 2011
i am trying to make a some groups within a predefined group at run time. i can make groups, the code is working fine. Now i have added two buttons in each group which is created in run time. now the problem is one of the button is x . the property of button should be when i click on it it should delete the very specific group in which it is built. please check out the code and tell me what additions should i make.
[Code]...
View 2 Replies
Oct 16, 2010
I've got a problem with a (seemingly) simple equation that i can't quite figure out.
My problem is as follows:
I've got a pretty basic for loop that creates a 'thumbnail' and puts it next to the previous one (With a little padding) inside a containing movie clip.[code]...
View 9 Replies
Apr 13, 2011
I am developing an AS3 website (client's request) but have run into a little trouble. My template.swf contains a fixed Header/ Footer and is resized to fit the browser window. The middle content is resized when the browser is resized using:
[Code]
View 3 Replies
Nov 7, 2005
[URL]. I'm trying to load multiple swf's on a key-press. Loading to one mc is not a problem, but when I try to define multiple containers from multiple sources it doesn't work. This is an XML example:
<menu><item name="item1" >
<sub name="item2" >
<subsub name="item3" action="item3.swf" texte="text.swf"/>
function on menu mc:
function executeAction(action, texte) {
trace(action);
trace(texte);
loadMovie( action, _root.content);
loadMovie( texte, _root.texte);
}
View 2 Replies
Jul 16, 2010
I have a VBox, I assigned a handler to click, and inside the VBox I have components such as images and texts with no handler assigned for click. Would the click function be called when I click on the text and image? If not how can I make it so without assigning handlers individually, but on the container level?
View 3 Replies