ActionScript 2.0 :: String To MovieClip Is That Possible / XML-Related
Jun 26, 2008
I'm trying to put together an XML based Flash map. On the right side, is a dynamically loaded XML menu. Now, my problem is that the rollover and rollout effects for the menu doesn't work. Basically, I have a movie clip that contains a dynamic textfield and another movieclip (the latter contains a button.I wanted it so that when the user rolls over this button, it plays, and when the user rolls out, it plays an exit "fade")[code]
I've tried using "var menuItem=this._name" to retrieve the "path" of my buttons when you rollOver them (which should be something like "mcContainer.menuItem.bCountyBG.gotoAndPlay(2) ;"), although I need the menuItem to change to whatever this._name is.It doesn't work because menuItem's returned value is considered a string, so I can't use it in my command---> "mcContainer.menuItem.bCountyBG.gotoAndPlay(2) ;I was wondering if anyone can tell me if it's possible to convert this string to a movieclip by some sort of function or other means?
View 2 Replies
Similar Posts:
Jun 24, 2011
What i want to do and keep failing is this : I have 2 buttons (A and B). After each of them is pressed one certain animation plays. Let's say when A pressed, we see the animation and later I want to see the Movieclip or page related to A. If B pressed, we see the same animation but after that Movieclip or page related to B should pop out.
A pressed = Intro(animation) Plays ==> A Movieclip or Page shows up
B pressed = Intro(animation) Plays ==> B Movieclip or Page shows up
View 1 Replies
May 30, 2007
I have created a class and I would like each object of this class to be related to a movieclip which I would be able to move around the scene.But I have to admit I don't really know how to do that.
The best would be that each of my objects have a movieclip called "graphical_representation"
[Code]...
View 1 Replies
Mar 22, 2012
I have some movieclips like this one: game_mc.substage_mc.rightHand and inside the rightHand i have a thread_mc like this:
game_mc.substage_mc.rightHand.thread_mc
Ok so here is the thing, i need to access the thread.x and thread.y position related to the stage or substage_mc i donīt really care, but if i do this[code]...
View 3 Replies
Jun 17, 2010
I'm trying to create a game and have come across something that I have never really played with and am not sure if it is what I need to use in this instance or if it's as powerful of a resource as I am hoping.I have a movieClip that is an animated man. I can move him around my stage by clicking on him and then clicking where I want him to go. But I'm eventually going to need to store information about him. Such as his x and y position on the stage, attributes about him that are custom to my game.Real Quick: The man represents an army and when the user clicks on him, I want to display things like, Military Units in this army, number of men remaining in each unit, experience and so on. If you have ever played any of the "Total War" games you will know what I'm talking about.
View 1 Replies
Jan 15, 2010
I am trying to cast a String (from an array of strings generated by a for loop) which is referencing a MovieClip already on the stage.
[Code]...
View 4 Replies
May 20, 2004
I'm doing a simple hex converter with a input window(hex) and output window(dec)Currently i'm using a simple script on a button to covert the hex to dec [code] This is ok if you want to convert one hex number at a time, what i want to do is input lots of hex values (in the input window) and convert them to dec (to the output window) in one go.
View 8 Replies
Jan 24, 2009
I want to know what this error means and how ca i fix it[code]...
View 1 Replies
Jan 29, 2009
I am designer and working on some Flash Banner design projects.client need it according to Google terms as it is going for google Adwords Program , so i am using this code:[code]but my probem is that i have done all the animation inside a Movie clip and i the button is inside the movie, can i paste the code on the insode button or i should create a button on main stage ?
View 2 Replies
Mar 12, 2010
I have this FLV player that plays movies in a library style.Where you get thumbnails for all different videos with the ability to add different categories.I have a fla and XML file as my source files.xml has all the information about the list of movies titles description and all that and my fla file has info about the way player looks.I want to be able to add a tab called related videos, kind of like YouTube where when you play a certain movie it show a list of similar videos.
View 5 Replies
Apr 2, 2012
What I would like to do is to use ASP.NET impersonation to authenticate a Flash app as a user in IIS so that the file dependencies related to the flash file ( XML config files, and PHP API calls ) are not anonymously accessible when users try to access them directly through the URL. So, instead of displaying the contents of an XML config file, it should tell the unauthenticated user they do not have permission to view the file.
Is this possible? Right now I'm looking into request headers and the settings in IIS for authentication.
So I found out how to use Basic Authentication through help posted here. The problem I'm running into is that even though the flash app sends the appropriate request. Which is handled fine in FF, Chrome, and Safari. It still displays the login pop-up box for Opera and IE. Does anyone know why IE and Opera behave differently with Basic Authentication?
View 1 Replies
May 3, 2010
I want to update 50 "Circle sprites" (sprite with a circle in graphics object) on a timer event. Each circle's radius and position is calculated with a formula based on preloaded xml data.
[Code]....
View 4 Replies
Sep 1, 2010
how to make objects on a site communicate. Not using spaghetti code or event. For those that have just begun programming in AS3 this is a neat trick.
[URL]
View 9 Replies
Nov 12, 2010
I'm wondering about this for some research i'm doing.
View 9 Replies
Apr 10, 2010
I am facing a problem while using textAreacomponent in Flash cs4.I set the text of this component at run time with coding i.e dynamic text and after that i am rotating this component with -2.After rotation it dosen't show the text why is it so?
View 1 Replies
Dec 24, 2008
I'm trying to make a slideshow of sorts for a friend of mine in which a php script lists the number of files it's found in a directory as well as the relative links to each file. The slideshow parses these values and is supposed to individually fade between two different pictures after loading the new one... but it works erratically at best.
I've got everything working up to a component related to onLoadInit that honestly is just driving me crazy because I cannot for the life of me figure it out, as it works sometimes, other times not at all, etc. It's also supposed to loop infinitely, but it won't.
If you'd like to see what's going on, go to[URL]../moveit to see how weird it acts. Following is the brunt of the code, which I'm just about 100% sure should work correctly.
[Code]...
View 1 Replies
Dec 10, 2011
I haven't been here for a while but as a resource of excellent ideas I am back to ask something that I feel you guys would know about.I am a teacher thinking of going self employed and I want to set up an online business charging for access to resources I create myself online to any students that would be interested.I can figure out how to set up password protected areas on my website where access is given when payment is made.
Of course this is for a limited period, say a week and then the password would automatically and randomly change.
I would give the password to those that had paid for access for the agreed period for access.As I aim to have more than one person at a time, this needs to be self regulating. Is this at all possible?Online teaching resource not exactly flash related!
View 3 Replies
Apr 15, 2011
We got in below message in the eventViewer. "Faulting applicaion FMSAdmin.exe, version 2.0.5.88, faulting module unknown, version 0.0.0.0, fault address 0x00d1bee0."
View 2 Replies
Aug 29, 2011
I seem to have hit a bug in the current flash player (tested on 10.1.52.14): If I programmatically change the color of a sprite consisting of a text and a circle the output is different if the application is in fullscreen mode (the text is not re-colored in fs). Inside the mousedown event handler of my class I call the following (somewhat simplified code to make things easier to understand here):
var cTrans:ColorTransform = new ColorTransform();
_hColor=0xD78500//recolor the clicked sprite cTrans.color = _hColor;
this.transform.colorTransform = cTrans;
This is what I get in windowed mode (expected behavior):
That's the same sprite in fullscreen:
I can switch between windowed and fullscreen and the text gets colored or not as shown above.
View 4 Replies
Nov 5, 2010
I'm using flash cs5... I've made a file uploader and it works great, only problem is it makes this textLayout_1.0.0.591.swf file (in addition to my actual swf)... is this really necessary? I have an embedded font that I think is putting this here and the whole thing doesn't work unless this swf is here.
View 2 Replies
Jun 11, 2010
I have a small flash project. I created a SWF from the flash sources.Unfortunately all my flash sources related to the project are deleted.
I left with the SWF file. Is there any way that I can retrieve all the flash source files from the swf file ?
View 1 Replies
Jun 23, 2011
I have an AIR application in which I have to start some native applications in a windows machine.But the problem I am facing is that whenever I try to create a NativeProcess instance,I am getting a compiler error because NativeProcess is not getting imported into the project.I tried import flash.desktop.*; Even then no use.I have also added <supportedProfiles>extendedDesktop</supportedProfiles>
in the application descriptor file.I am using FlashBuilder 4 with Flex 4 SDK
View 1 Replies
Jul 12, 2011
We got in below message in the eventViewer. "Faulting applicaion FMSAdmin.exe, version 2.0.5.88, faulting module unknown, version 0.0.0.0, fault address 0x00d1bee0."
View 2 Replies
Sep 21, 2011
If I'm attempting to create a file that takes information a user inputs using input fields,save them, and then load them again later after the file has been opened and an option selected, what sort of things would I need to most research? I know there's something called sharedObject I need to research. What else? I've been searching Google, but I'm not finding anything covering this particular aspect.
View 1 Replies
Dec 12, 2011
I'm writing a game that involves cargo, and I plan to have a large number of cargo types. Currently I have a Cargo class, and a ship carrying cargo has an array of the Cargos it is holding. I'd really rather not have each ship with a bunch of objects when all I really want to know is how much of which cargoes each ship has. Especially when these ships will be created and discarded a lot.
I'm sure the thing I'm looking for is so basic I'll look dumb for even asking, but I know there's something similar to an array that holds an object and a related value. I want to use that to reference the Cargo type from the static array, and hold the quantity.
What's it called? How would I use it (ie what are common functions used for it)? Some code snippets and terminology would be ideal.
View 2 Replies
Dec 5, 2007
I don't know if this is even possible, or if I'm going the right way about this.Here's what I've got:
ActionScript Code:
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageProgressHandler);
function imageProgressHandler(event:ProgressEvent):void {
[code]......
View 3 Replies
Oct 24, 2009
i'm trying to get randomly moving objects to scale up as they move further away from their point of origin, I'm haveing trouble with this. I've attached the current random movement code below:[code]
View 0 Replies
Jul 6, 2010
I've previously posted for help using AC3 but now I've changed to AC2. Its regarding this duplication movieclip. What I've done is this, the side movie clip is supposed to duplicate another movieclip that can be dragged and dropped. Even after it is dropped, it is able to drag and drop again. When the user is done with it and needs to drag and drop another one, all they do is click on the template movieclip, and it should duplicate another one on the same spot of the template, allowing it to be able to drag and drop.So far, I've only been able to make it drag and drop and duplicate, but the duplication did not duplicate on the template's position. The clip that is dropped could not be moved after duplication.
View 9 Replies
Apr 5, 2007
I have a question regarding the photogallery tutorial on this site. Currently, all tutorials related to it (including adding of thumbnails) is written in such a manner that they assume all photos would be of equal size ie 300x200.
However, I do not have any such luxory and am stuck as I am not able to get it to work here.
The code is more or less related to the following We are doing a picture.loadMovie() to load the external jpeg.
Now, how do we make sure it's always in the center and has maxWidth as 300 and maxHeight as 200? ie, if width > 300 then width = 300 and height = proportionate to 200
and so on?
I am not able to capture the height and width of the "picture"
[Code]...
View 1 Replies
Oct 13, 2009
I'm working on OOP skills by creating a fun Mahjong game. I made a working concept (not very OOPed yet), and am trying to get everything OOPed before its too late. I want the tiles to transition in, maybe teleport in like a Star Trek movie. The tile object is a movie clip, so it can play the transition as it is added to the stage. Tiles will be added in, in increments so there's a cool wave-like effect of teleporting.
How would I know when the tiles have finished transitioning in? Would the tiles generate an events that the game object detects, starting the game after receiving X 'finished' events? Or should I create a timer in the game object where the amount of time to wait for the transition depends on the number of tiles being added to the board?
I think I'm close, but could use any general feedback on the concept. The coding is not an issue. I'm just trying to wrap my head around things.
View 2 Replies