var tabData0: Object = new Object(); tabData0.tab1 = new Object(); tabData0.tab1.names = new Array();
[Code]....
I want to combine this output with a few more to refer to my object / array. The remoteHolder contains the value I need to know which object (tabData0, tabData1, etc) to retrieve the info from.
Here's my scenerio: in my product info MC, user can select from 4 categories which gotoAndStop a nested MC. Each of the 4 categories has 5 hit areas on an "imagemap". The problem that I'm running into is that on each of those hit areas (mc's), I have actionscript - so that's 5 x 4 of essentially the same actionscript. Only difference is text information and _x & _y co-ord's (code is for caption/images boxes) Could I store all that data in an array in the product info MC rather than having 20 blocks of actionscript??
it's very simple thing i have a swf file try.swf, and it have little bit animation, I stop it's animation on timeline frame 1and i use this code... to load try.swf in other flash fileimport flash.display.Loaderimport flash.net.URLRequestvar ld:Loader=new Loader()var rq:URLRequest=new URLRequest("try.swf")ld.load(rq)addChild(ld)now i hv load try.swf in ld Loader now I want when this loaded then try.swf gotoAndPlay though frame 2 and start showing animation.
I am trying to add a child in a movie clip and perform basic operations on the child but I cannot get access to the child.
It loads the child to the movieclip "FLine1MC" but it says FLine1MC.ClipArt1 does not exist when I try to change the x location.
function AddArt1(evt:MouseEvent): void { var ClipArt1Request:URLRequest = new URLRequest("images/mypic.gif"); var ClipArt1:Loader = new Loader(); ClipArt1.load(ClipArt1Request); FLine1MC.addChild(ClipArt1); FLine1MC.ClipArt1.x = 550; } Anybody know what's my error?
By that token, is there a way we can check the exact path of an object?
I am developing a shopping cart for my web store. What I am trying to do is initially a store front is rendered where a user selects the products and adds them to a shopping cart. The "cart" is a vector that holds all of the products selected. The user is then sent to a review page where he/she can review their order. It is then communicated to a PHP page for the final checkout and what not.[code]...
This is probably super simple, but for me.. not!I am loading external swf into my main swf.How do I access a movieclip within a child. This is my code:
function loadFolio (event:MouseEvent) :void{ var request:URLRequest = new URLRequest("folio.swf"); contentLoad.load(request);
I have written this little script, as i want to remove some of the text fields that are currently contained within the Display Objec, however it does not like to see the TextField as a varaible name. How would i convert the object from an array to become a textfield that can be removed, after being added through addChild()
This is the script
var delayHeading:Number = 1500;var repeatHeading:int = 1;var setShow:Timer = new Timer(delayHeading, repeatHeading);setShow.start();setShow.addEventListener(TimerEvent.TIMER_COMPLETE, maybeLater);
add a child to each movieclip in the array below?I want the code in bold to increment with the wObj movieclips.
e.g. wObj1 contains a loader called wObjIcon1 loading an image from wIconURL1 wObj2 contains a loader called wObjIcon2 loading an image from wIconURL2 ..and so on.
Code: public function makeWObjects(numNewWObjects) { for (var i:uint=1; i<=numNewWObjects; i++) { wObjCounter++;
regarding adding multiple childs to an array these childs are added using timer after a time interval.actually there two classes and child of both classes are added to stage one through timer as i described and other through keyboard event. now is it possible to do this if yes than how?? and is it possible to apply hittest object between these two array.
I've created a card (that extends movieclip) in flash and after that I've created an array and pushed some cards inside of it. The name of the mcs is already set, but now, I want to add them to the stage and set their x and y position.
Code: Select allvar test:Array = new Array(); var testMC1:Card = new Card(); var testMC2:Card = new Card();
[Code].....
How can I access the property x of this card? The next code is wrong, of course, but it gives the idea of what I need...
Code: Select alltest[1].x = 100 // or test[card3.x] = 100;
Is there a way for the child of a movieclip object to not inherit the paren'ts properties? Because I scaled down the parent movieclip height and width and I'm loading external images into the parent movieclip and images are also scaled as well so I'm wondering if there is a way for it not to inherit the properties but remain inside the parent?
I have a movieclip and in it/on it I have a few layers. 1 layer is for buildings and 1 layer is for props. When i add/sort specific objects to an array from this main movieclip only objects in the top layer are added. What is up with that? How do I let the array access all layers of the movieclip?
I was wondering - lets say I have a bunch of code on the main stage and then an array variable located inside of a movieclip that's in my library. There is a button on the main stage that when clicked will load the library movieclip containing the array. Is it possible to access the array variable that's in the movieclip from the main stage even if its not on the stage from the get go?
I know this would probably be much easier to do this using classes and setting global variables, but was wondering if its possible without taking that approach.
I'm using an onLoad function (importing variables from a text file) and I'm creating arrays within a for loop in the onLoad function. I'm using something like this:
Code: this["dvdAry" + i] = this[indexAry[i]].split("##"); So say the first array is called dvdAry0 .
How can I access that Array from a function? Please note the function, the onLoad function and the arrays are all being created on the same timeline.I've tried tracing the array dvdAry0 from the function after the array is created in the onLoad function, but it comes up as undefined. Is the array created on the object that I'm using onLoad on?I'm using a loadVars Object called loadDVDsText.
I am making a profile sort of thing, basically what happens is: You start the program... it loops, and generates 500 text fields, it stores them in an array called profile_name[]; it names them "Profile + (i+1) (i being the var used in the loop). Changes the colour to yellow, changes the size to 13. Removes the border from it and makes it unselectable (the text). It then converts the text into a movie clip (as if you made a dynamic text area, on the stage, and clicked it, and pressed f8, and converted to mc). It stores that in an array called profile_mcs[]. I need a way to access the text inside the movie clip in both they're arrays...
Example If you go to your flash stage, make some dynamic text, call it "ptxt1", you make it unselectable, remove any border if it has one... you name the text "test", you select it, press f8, then convert to a movie clip called "test_text" you name it "pbtn1" (the instance name I mean, when I say name) If you go to the first frame of your main timeline and press f9 (action script section) type pbtn1.test.text = "NEW TEXT", it will name the text "test" inside the mc "pbtn1" to NEW TEXT...
However, if you store them into an array (both text and mc) you can no longer reference them like this: MyMC_Array[0].MYText_Array[0].text = "NEW TEXT", It doesn't show up, and making 500 if statements is to much (I think my problem may be when I traced my dynamic text inside the movie clip (that I've made on the stage) it appears as undefined.
Code: var profile_name:Array (my text var) = [ptxt1, ptxt2, ptxt3, etc..]; I've tried doing Code: var profile_name:Array = [pbtn1.ptxt1, pbtn2.ptxt2]; etc.. None works,
i have problem with swfLoader in flex, when i close following code in click method i can easly add many swf to main application
<mx:VBox id="content" width="100%" height="100%" ></mx:VBox> public function doIT():void {[code]....
when i close adding those swfs in loop i have the same error, it looks like child apps couldn't access certain objects that were instantiated by another child app, so what can i do?
I am trying to use two buttons in an array that use the same information in that array, so I'm trying to lump them together so I don't have to write them separately. This is what I've come up with, which doesn't work. One of the buttons works, but the other one doesn't:
var arrNavigation:Array = [{button:(n1_mcButton, n2_mcButton), page:bucktown, popup:popUp1, imgNumber:9},
n1_McButton and n2_McButton are two different buttons, but all the other information is the same.Is it possible to write this more efficiently than listing the buttons out separately?]
I've seen some discussion on how to load a child swf using swfLoader and accessing it's variables but I am wondering if it is possible to do this without adding any code to the child swf.Either accessing public vars or listening for funciton calls would work fine