ActionScript 2.0 :: Wrote The _root.clip Part?
Sep 19, 2003
i know its something to do with how i wrote the _root.clip part.. im sure its a quick fix:this is on one:
onClipEvent (load) {
highMax = 100;
lowMax = 30;[code]....
and on the button that calls the function:
on (rollOver) {
_root.test = function() {
_root.test._alpha += speed;[code].....
View 14 Replies
Similar Posts:
Mar 8, 2005
I tried to connect a mc to the _root, with the statement
Code:
_root.attachMovie("missile", 'missile'+x, x+10);
It was linked and everything but for some reason didn't work. Am i overlooking something?
View 1 Replies
Nov 8, 2009
been away from Flash too long and am probably making a stupid error in spotting it! (ActionScript 2.0, Flash CS3.)I have only a single scene, with a looping frame and movie clips displayed via attachMovie.Within each movie clip instance is a looping script that does the following in a certain circumstance:
Code:
trace (GAME OVER TEST);
_root.gotoAndStop("gameover");
[code]........
View 5 Replies
Dec 8, 2006
I have an object (with it's own timeline) and on the last frame of that timeline I have the following code:
Code:
stop();
_root.createEmptyMovieClip("mainLoop_mc", 2000);
with (_root.mainLoop_mc){
[code]....
The problem is, when the "mainLoop.swf" file loads it obliterates my main UI SWF instead of attaching itself to a particular spot on the UI. So one SWF is replacing the other.
View 3 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
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 13, 2010
here is some AS3 code I wrote to have a bunch of buttons load some MoveClips. I am using a label to tell the button where to go to play the appropriate movie clip.
It all works fine, but it seems so repetitive and I keep reading about making the code more streamline, but I am having trouble doing just that.
[Code]...
View 4 Replies
Jan 20, 2005
// code to find out all the movieclips on _root
for (var property in _root) {
if (typeof _root[property] == "movieclip") {
var clipName = _root[property]._name;
// I am trying to use the var clipName to find the location of each movie clip found on _root in the next line
//the next line gives me "undefined" why?
clipBounds = [clipName]getBounds(_root);
}
}
View 2 Replies
Apr 6, 2010
i've been trying to make a scrollbar and everything works fine, until i have to connect it with the text. theres an image and a title that i want to scroll with the (static) text so i created a movie clip (instance name cafe_txt), and when i wrote the script and tested the movie, i come up with the 1120 error that cafe_txt is not defined.So i changed the clip(thinking that the problem was the scrollbar had to be in the same instance as the text) so that the scrollbar was inside, and i come up with error 1067(1067: Implicit coercion of a value of type flash.display:MovieClip to an unrelated type flash.text:TextField.)
I've tried changing names, double checking that instance names are correct,moving things, changing the text so that its dynamic not static(if the scrollbar is connected to just the dynamic text it works,it just doesnt scroll the full length of the text) here's the code in my stage:
scrollbar_mc.textField = cafe_txt
and my code from the scrollbar.as file:
package com.lynda.ui{ import flash.display.*; import flash.events.*; [code].....
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
Aug 23, 2010
I wrote it through the equation (n, k) = n!/(k!(n-k)!).But I found it will loose precision quickly after 12th row.So I change the way. I tried to use the properties of triangle(each row is the sum of previous row)Than I get slow in running when function reach higher degree.
I just keep changing a little and a little... try to make it run faster.
Quote:Function binCoef(70) :
1,70,2415,54740,916895,12103014,131115985,11987747 [code]..
View 0 Replies
Dec 9, 2009
is it possible to clip children that are part of a DisplayObjectContainer? If I have a parent object with size x 100, y 100, width 100, height 100 and a child that has the coordinates x -50, y -50, width 100, height 100, I can still see the full child staying at x 50, y 50, but I want the child to be cut off by the parent.
View 3 Replies
Jul 1, 2010
Is there a way to change the color of just part of a movie clip? For example, if you had a space ship composed of a movie clip that uses several colors and you would like to change the color of the just the nose of the space ship, is there a way to do that? That is to say can you replace one just the pixels of one color with the pixels of another color.
I essentially have some game pieces that I would like to change to different colors for different computer players without drawing all the pieces again for each of 10 different colors. But I don't want to change the color of an entire game piece--just part of it.
View 1 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
Apr 9, 2012
I am having trouble loading an image where i really want. Here is the code that i am using:
[Code]...
The CELL movie clip it has 3 more movieclips inside, i want to load the image in a particular one inside the CELL movie clip... the previous code works, but seams that it is loading in the cell movie clip... The other 3 movieclips are A, B, C... i want to load the image in cell.c
View 2 Replies
Aug 15, 2011
Question: i have to make an animated header for the web site. several seconds it's going on and is stoped with action script command stop(); but i need one elenment inside flash-header continue animating like here: [URL] a rolling logo in upper left corner of header. If somewhere the answer has already been written - it would be nice someone write a link to this source.
View 1 Replies
Jun 13, 2004
i'm trying to do an infinate loop for my m.clip.the looping part does not want to loop...it loops back to my firrst frame even though there are two same picture in the movie clip.....here's a sample of what i use for the infinate loop script..
[Code]...
View 2 Replies
Mar 9, 2011
Ok perhaps ive bitten off too much here...I know you are not supposed to parse xml/html to regex but the thing is there just arent many other options.Im using AS3.im parsing the source of textflowlayout text to a different format.
string to parse :
< fontFamily=Verdana encoding=unicode fontWeight="bold"> some text < fontFamily=Verdana encoding=unicode > some text < fontFamily=Arial encoding=unicode fontStyle="italic"> some text < fontFamily=Arial encoding=unicode fontWeight="bold" fontStyle="italic"> some text
what i really need is:
< fontname=Verdanabold encoding=unicode> some text < fontname=Verdana encoding=unicode > some text < fontname=Arialitalic encoding=unicode > some text < fontname=Arialbolditalic encoding=unicode > some text
logically i think of it as taking apart the string into substrings
checking if there are fontWeight or fontStyle in the substring
if there is then appending the font name with the weight or style so so that the font name becomes font NameWeightStyle.then rebuilding the string.The font could be any font with variouse styles or weights..so far:
pattern = /<(.*?)>/gixsm;
var matches:Object = pattern.exec(str);
var finalstring:String = "";[code]...........
View 1 Replies
Mar 11, 2012
I'am looking for a flv/video player which allow to seek for not loaded part of the video,just like on youtube.
View 1 Replies
Jul 6, 2009
what does it mean _root and how to convert in AS3 for _root. Is _root supportable in AS3 ?
View 4 Replies
Mar 2, 2009
I an trying to get the _root node of an FLA via JSFL. A co-worker wrote a script that uses _root via actionscript. I was trying to wrap that code into a panel. I have all the trace functionality running and everything running accept I can't seem to access the "_root". I have tried _level0, and almost everything I can think of... I am looking to have JSFL return the _root object from the current file the same way can can hand "_root" to a function. (IE: myfunction( _root ); ) here is my current attempt:
Code:
var doc = MMExecute( "fl.getDocumentDOM()._root;" );
View 1 Replies
Jun 2, 2009
I have an external swf, that is a photo gallery, loading into my main swf. When the external swf loads, everything works fine except when you click on a thumbnail in the external swf, the jpg doesn't load. I have it set up that an empty movie clip is created first, then the jpg is loaded into that. I have a feeling it is something with the fact that I am using _root, but I don't have any guesses whats causing the issue and how to fix it.
Code:
News.onRelease = function(){
if( !this.up ){
[code].....
View 4 Replies
Oct 27, 2004
explain to me what _root and this. do
View 5 Replies
May 29, 2009
in my root I have this code:
Code:
//score node selection
var i:Number;
var scoresUserName = new Array() ;
var scoresFbid = new Array();
[Code]....
View 1 Replies
Nov 9, 2010
Edit - managed to find an answer to this by using _parent instead of _root
I've got a swf loader that loads a swf obviously but in the swf that's being loaded I have a button inside of a movie clip which I use...
Code:
on (release) {
_root.gotoAndStop("page1");
}
When viewing the swf file on its own this works perfectly, however when it gets loaded into the first file it no longer works because the root has now changed to that first file.
View 0 Replies
Mar 24, 2012
Why isn't this working?I've tried everything.Here's a resume on what's the part with errors:
Code:
var Bl:Object = {x:-18, y:174};
_parent.mwall.globalToLocal(Bl);
[code].....
View 0 Replies
May 2, 2004
I was jsut wondering if it is possible to have the _root fade out, when e.g. loading a something into level1 and then have _root fade back in when unloding level1?
View 7 Replies
May 19, 2004
to change the fps for only one mc and not the whole _root and if so how would i do it radomly?
View 4 Replies
Jun 14, 2007
I used the tutorial on Kirupa on loading external swf's. Before writing here I tried to find an answer in the forums, but no luck so here I go.[URL]..If you look at my files: Open portfolio.swf and hit one of the first two images (that initially flies in). here you will see that if you hit the second one, the rpesent one displayed makes an outro and the second one makes an intro, PERFECT!
Now, if you open default.swf (that has portfolio.swf loaded into a movie clip as you can see by looking at the source) and if you hit the second image, the first one makes the outro, and then makes an intro. So the shift to the second one is not happenening. Please, can someone help me to make this happen?
View 4 Replies