ActionScript 2.0 :: Grab The Names Of Mc On The _root Timeline?
Aug 26, 2004
Im using a for in loop to grab the names of my mc on the _root timeline and push() them into an array named bricks. i then use a prototype function fade them in one at a time. The problem is that it only works to a piont and then stops.
I thought posible causes could be the time it takes to build the array as i do have 713 mc on my timeline.
this is my code i tried attaching the fla but its to big
fadespeed = 9;
function init(){
brick = new Array();
[Code].....
View 2 Replies
Similar Posts:
Dec 19, 2006
I need to send a variable (zipcode) to a coldfusion script and also load the cf page that displays the results (same script) in the browser window (_self) is getURL the appropriate choice for this? (never done it this way before). if so, does using POST in a getURL just grab any variables on the _root? where does it get its variables?
View 3 Replies
Dec 10, 2007
i can not get it to work. I have this code embedded in a MC (2 Lvls) and i tried to add MC names after the _root to hope to make it work, but to no result. The rest of the kirupa transition is on the root timeline
MAIN TIMELINE:
_root.currMovie = "Template_Intr_1";
container.loadMovie(_root.currMovie+".swf");
The code below is what i placed in the MC, i think it is a matter of levels, but i am missing something...
EMBEDDED INSIDE MC's
on (release) {
if (_root.currMovie == undefined) {[code]....
View 2 Replies
Feb 26, 2006
I have this actionscript with a MC._root.containerMC.loadMovie(loadswf+".swf");however, it will online work if i put this action on the _root timeline
View 2 Replies
Jan 21, 2004
is _root same as _level0? or is _level1 the timeline inside a movieclip on the _root?
View 5 Replies
Jul 12, 2010
Have a question about the _root.stop(). I have a pause and play feature in a flash player so the user can stop the presentation along with all the voiceover that streams with the presentation. I used the _root.stop() in the flash player hoping it will stop the main timeline, but also other embedded movieclip timelines. It stopped the main timeline, but not the other ones. How do I stop both timelines at the same time? the _root.stop() was not working for me.
View 3 Replies
Aug 14, 2007
I'm using this complex rollover button on my site i found here --> [URL] What i'm looking to do is have this effect trigered when a second button is rolled over as well. Is there a way to target this movie clip effect from the _root timeline? I was able to achieve this halfway by using labels but I am not able to reverse the animation on roll out with this method.
View 2 Replies
Jan 14, 2010
In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.
var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();
[Code].....
View 1 Replies
Feb 27, 2003
im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore
[Code]...
View 2 Replies
Jul 3, 2008
I'm working on a site that I received from a co-worker and it�s done with AS2 and the code and instance names are all over the place and it�s really hard for me to follow the code path to change things. I know how to track down what frames and elements have actions through the actions panel but what kind of stumping me is how to find instances with instance names on the stage that are scattered all over the instances that make up the movie. Is there a way to get a log of what instances have instance names attached to them and where they are located in the timeline?
View 1 Replies
Sep 14, 2004
if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();
View 16 Replies
Jul 27, 2010
I have the following code on the main timeline. I have soundLoad_mc assigned to the SoundChgUrl class.soundLoad_mc.mp3URL = "climbing.mp3";soundLoad_mc.swfName = "journey.swf";The code below is from SoundChgUrl. The import to mp3URL works. The one to swfName does not - it throws "1119: Access of possibly undefined property swfName through a reference with static type classes:SoundChgUrl." This doesn't make sense to me.
package classes{ import flash.display.MovieClip; import flash.net.URLRequest; import flash.net.navigateToURL; import flash.events.Event; import flash.media.Sound; import
[code].....
View 2 Replies
Oct 26, 2010
I'm trying to trace Mc Identifier names on timeline keyframes. But it does not work for keyed frames...
-I have an ordinary keyframe animation on the root timeline. -each keyframe is a movieclip (exported for actionscript and a class created in the library/properies)
-I try to trace every frame, but for some reason my script ignores the ones with a keyframe in them and reads the emty(grey) timline areas.
since the whole deal for me is to create a very simple timeline exporter
how to get the names for frames with a key in it?
(I pasted this clip on first frame in timeline)
Code:
import flash.events.Event;
import flash.display.MovieClip;
this.addEventListener(Event.ENTER_FRAME ,getStageChildren);
[Code].....
View 1 Replies
Apr 21, 2008
I've been searching the forum for an answer, but I'm either not searching for the appropiate keywords, or having really really bad luck... so feel free to point me to any threads that might contain the solution to this.
Here's what I'm trying to do:
I have a site which is fully made in flash, and has one big index.swf file. Each section loads dinamically into it with a preloader (this works OK).
I didn't make a preloader for the main index.swf at first because it was really small, but as I've added more and more features to the site, the index.swf grew bigger and bigger, until I felt I need a prealoader for it as well.
However, I NEED the index.swf to load into the ROOT of the main timeline, as there are some functions in the site that call movieclips with absolute paths ("_root....") rather than relative ones ("_parent._parent...."), and I can't change that for various reasons, so I need to keep that hierarchy intact.
But there's an obvious problem if I try to do this via a MovieClipLoader:
If I tell the MovieClipLoader object to load the clip into "_root" like this[code]...
View 2 Replies
Jan 26, 2009
I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?
View 2 Replies
Aug 26, 2010
We've got an Illustrator file with something over 1,000 layers. We're trying to import this into Flash and keep the layer names intact, such that they become the names of the movie clips that are imported for each layer and can be used programmatically. (It is a diagram and arrows, boxes, etc all have callout names that will eventually allow them to link to a database.)As near as I can tell, the Import dialog will NOT pass this info across between the two parts of the dialog.
View 1 Replies
Mar 20, 2011
I started a thread about a reference to a symbol House, in the output window, which was: House_1. A lot of people said some useful things about that. All day I've been thinking about it, and I came to the conclusion that I don't understand things, at a very basic level.
Consider:I make a movieclip which I give the Symbol name Drawer. (I don't export it for AcitonScript.)On the stage I manually place two instances of this Symbol. The first one I give the Instance Name drawer (in the properties panel). The second one I leave nameless.Now if I trace the names of both these clips, by
trace(this.getChildAt(0).name);
trace(this.getChildAt(1).name);
the output window gives me
drawer
instance2
Now I know that the so-called "instance name" which I gave in the Properties Panel (drawer) is, in reality, a variable name which Flash gives my first instance behind the scenes. And instance2 is a name that Flash gives my second instance. What exactly the nature of that name is, I do not know.My point is: both names (drawer and instance2) are the .name property of these movieclips. Otherwise I could not have traced them through asking for the .name property, in the above. Yet only the first of these two can be manipulated:
drawer.x can be set;
instance2.x can (as we know) not be set.
But...why? What is the real difference between these two kinds of names? How can they both be the .name property of their underlying movieclip, yet be of such a different nature? What IS the nature of the instance2 name? If it's a String, how come the .name property of one movieclip can be a variable name, while the .name property of another (but identical) movieclip is a String?
I've searched every bit of web page on the net I could find. But it looks as if nobody addresses this issue. We all just work with it - but it makes no bloody sense. A name property = a name property, you'd think. Whether Flash set it or I set it should not make a difference. The x property of a clip, for example, does not change in nature according to who set it - me or Flash.So, again, just to emphasize the problem: how can a property (the name property) of a movieclip change in NATURE depending on who set it? After it's been set, shouldn't the name property of a clip be of exactly the same nature as the name property of another clip?
View 8 Replies
Jun 7, 2010
For a site I'm developing with a user login that uses cookies to store the session ID, a separate section of it uses Flash to provide content and such. Is there some way it can access the cookies that were set the by login? The name of the cookie will not the be same every time, as it is randomly generated, as well as its value. I then need to send the name and value of the cookie back to a page on the server to do additional stuff. Anyone know how to do this? Note that I didn't write the Flash interface, an the person who did doesn't know how to do this.
View 1 Replies
Jul 11, 2010
I am trying to grab a webpage with actionscript, but keep getting this error
[Code]...
View 1 Replies
Mar 18, 2010
I have some buttons named bt1, bt2, bt3 etc
They have a common function for when each is clicked called buttonclicked.
Within the function buttonclicked, I'd like to grab the number off the end of each button name so that I can compare the number to a global variable I have called global.data.clicker
so...
if (number at end of event.target.name == global.data.clicker) {take action...
Is it possible, and if so, what code do I need to put in the first part of the if statement to make it work?
View 2 Replies
Jan 8, 2012
How to create a script of some kind to grab a still picture from a live stream and save it as a JPG file?
In this way a cron job can tricker the script and thereby grab a picture fx every 10'th minute and the picture can be shown on a website so people that are not attending can have a look into what is happening in the live stream.
View 3 Replies
Jun 23, 2010
I need to grab values from the querystring and inject them into a getURL(""); snippet that's in the on (release) {} for a button.So if the URL that contains the embedded swf is
[URL]
I'd like to get that otherdomain.com and inject it. Something like
var returnUrl = "";
// do magic querystring getting
getURL(returnUrl);
*Edit: I need to snag the querystring because I don't have access to the embed code. It's being rendered by a third party (Articulate) and loaded into a frame. I do have access to the code that renders the frame html, which is why I figured query string would be the best route, and one button that's used in the presentation.
Note, I live in C# land, not ActionScript land so I most likely butchered the syntax. I just need to get this button working as a one off and I'll probably never deal with it again.BTW, I've seen the abdulqabiz QueryString object that's floating around out there but it kind of seems like overkill, like there should be something baked into the framework for this. I also lack the knowledge of how to incorporate this into my little button on (release) {} event
View 2 Replies
Jan 28, 2011
I need to grab a parent node in flex without an event listener.
View 1 Replies
Jan 22, 2009
I wanted to know if it is possible for AS2 to grab the base domain and set it as a variable. This would also need to work for any domain possible. For example for [url].. what ever the combination it would always return "yahoo". This would need to work with the domain the swf is being viewed on so the domain wont just be 1 domain.
View 2 Replies
Apr 8, 2009
Ive just made a "browse" button with FileReference and it works well, now Im trying to "catch" the location of the file that you select and put it on an input text.
[Code]...
So far Ive tried with that code and works but ".name" only display the name and the extension of the file, and I need the full location.
View 4 Replies
Jan 29, 2010
how to to a grab website in flash? Like: [URL] were u can drag around at the content with your mouse by yourself and not using the scrollbars.
View 1 Replies
Jul 26, 2007
anyone saw some open-source or tutorial where u can grab an object and move it around and at the same time rotate the object deppending on the place you grab it. some physics maybe. like a cd-case moving on ice
View 10 Replies
Apr 2, 2008
I am trying to grab the attributes of a node, and can't target it.
Code:
<?xml version="1.0"?>
<header>
<scoreboard url="simpleScoreboard.jsp"/>
<background>
<folder url="media/headers/" count="10" prefix="header_bg_" suffix=".jpg" override="false" startTime="10" />
[Code] .....
Will trace the url attribute of the first node but I can't find the correct targeting for the node I need. I've been using AS 3 to do all my XML stuff but I can't use AS 3 for this project unfortunately and I don't really get it with AS 2.
View 6 Replies
Apr 2, 2009
I've been trying to find a solution through books and online about how on earth to highlight just the in-between and edge areas of the object tweens, and either delete a certain amount of them like you can with classic tween, or be able to grab those little diamonds and move them along the timeline.
Of course this may be a stupid question since the new tween is all about the OBJECT, and the motion line that it creates on the stage with the "ticks" that are keyframes, may be what needs to be manipulated like the object itself instead of the timeline. I'm not sure.
At One point I had a whole lot of extra frames hanging off the edge of my one motion tween--(after I copied & pasted frames) --I highlighted them to remove any portion of it, but it removed all the rest of my keyframes as well.
View 2 Replies
Mar 27, 2004
I've just started playing with arrays in MX, part of my project needs to have information from an array loaded into a dynamic text box one by one, ie
Click the button, text[0] displays, click again, text[1] displays, etc.
So all I have to do is grab the first index and add one each click right?
View 3 Replies