Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Modify This Function



Hi guys. I use the following function to make a few mc's visible on the stage with a setInterval.
Code:
function showClips() {if (clips.length) {clips[0]._visible = true;clips.splice(0, 1);} else {clearInterval(id);}updateAfterEvent();}var clips = [];var index = 0;while (index++<15) {var clip = eval("thump_"+(index<10 ? "0" : "")+index);clip._visible = false;clips.push(clip);}var id = setInterval(showClips, 1000);
This way the clips appear with a intervalof one second untill all are visible. Attached is the zip. What i want is that they appear using a fade function instead of _visible. and that the entire process start all over again when all are faded in! Anybody an idea? Thanks in advance



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 02-18-2005, 02:31 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Modify This Function
Hi guys. I use the following function to make a few mc's visible on the stage with a setInterval.
Code:
function showClips() {
if (clips.length) {
clips[0]._visible = true;
clips.splice(0, 1);
} else {
clearInterval(id);
}
updateAfterEvent();
}
var clips = [];
var index = 0;
while (index++<15) {
var clip = eval("thump_"+(index<10 ? "0" : "")+index);
clip._visible = false;
clips.push(clip);
}
var id = setInterval(showClips, 1000);
This way the clips appear with a intervalof one second untill all are visible.
Attached is the zip. What i want is that they appear using a fade function instead of _visible. and that the entire process start all over again when all are faded in!

Anybody an idea?

Thanks in advance

[F8] Modify A Tween Function
i'm using the following code functions to control alpha values of my MC's


PHP Code:



function fade90(MC)
{
    extendTween = new TweenExtended(MC,["_alpha"],
    easingType3,[MC._alpha],[90],0.75,true);
}

function fade0(MC)
{
    extendTween = new TweenExtended(MC,["_alpha"],
    easingType3,[MC._alpha],[0],0.75,true);
}

function fade40(MC)
{
    extendTween = new TweenExtended(MC,["_alpha"],
    easingType3,[MC._alpha],[40],0.75,true);
}




i would like to clean my code to combine the function into one, where i can name the alpha value and MC in one single function.

eg

mc1 alpha 10
then
mc2 alpha 40!!!

my scripting skills are poor in that i can not work out how to do this?

cheers
rat

Modify A Global Variable From A Function
Hi,

I have this simple function:


Code:
cbListener.change = function(event_obj:Object) {
var selected_font = event_obj.target.selectedItem.label;
trace(selected_font);
}
and I want the variable selected_font to be globally modified when modified in this function. How can I do that?

Tiled Background In AS3, Help To Modify A Function.
Hello you all.
Ok i'm new here and really new to AS3, i was beginning to understand AS2 (lol) and now I have to compile this working AS2 function to AS3, can you help me and comment it so that I can understand. Many many thanks.
(ps. can you maybe give me the url of a website where I can look for simple commented AS3 to learn again cause I'm lost with all these removed and new functions)

Thhis script is to tile a file loaded in the Library and called 'pattern' all over the stage.


Code:
import flash.display.BitmapData;
var tile:BitmapData = BitmapData.loadBitmap("pattern");
this.beginBitmapFill(tile);
this.lineTo(Stage.width, 0);
this.lineTo(Stage.width, Stage.height);
this.lineTo(0, Stage.height);
this.lineTo(0, 0);
this.endFill();

Help Modify
Hey

I am using an awesome scrolling dynamic text movie that I found here:

http://www.flashkit.com/movies/Scrip...92/index.shtml

The only problem is that I'm trying to use html text within the scroll. When I do that, the scroll then stops working properly.

Can anyone give me some help as to how I can use this with html text?? Or maybe guide me to a similar one??


Thanks!!

Is It Possible To Modify A .swf?
Is it possible to modify a .swf?

Help Me Modify RGB
I want to set the colours of normColour and atColour on the main timeline so if they change I can modify them all at once but cannot seem to get it to work... can anyone help??

Cheers in advance Oll

onClipEvent (load) {
atcolour = "FF0000";
normColour = "009933";
}
onClipEvent (enterFrame) {
trace([i]);
trace("ox"+[i]);
if (_root.curFile=="02") {
i = [atColour];
myColorObject = new Color(this);
myColorObject.setRGB("ox"+[i]);
} else {
i = [normColour];
myColorObject = new Color(this);
myColorObject.setRGB("ox"+[i]);
}
}

Modify This
i'm having trouble modifying this code to work in a different way.

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(1000, 0.8, 0.1);
} else {
elasticScale(80, 0.8, 0.03);
}
}

the above code lives on the MC and calls elasticScale function when i rollover the MC, but i want to link it to the timeline without the mouse effect. Hence when i reach a certain frame it calls the function to the MC target?

any ideas i cant see this being too complicated yet i still cant work it out!!!

rat

Help Me Modify This Please
hi all i found this is this site (duplicated movie )
i have just one request how to remove the duplicated movie
see the fla

Help Me Modify This Please
hi all i found this is this site (duplicated movie )
i have just one request how to remove the duplicated movie
see the code
thanks very much for your help
/as
frame 1
fall = function (target, weather) {
// target - where the leaves are falling, weather - frequency (msec)
target.weather = weather;
// right bottom corner of the stage
target.br = {x:300, y:400};
// array of the leaves
target.lfs = [];
target.fallLf = function(index) {
if (index == undefined) {
var index = this.lfs.length;
} else {
clearInterval(this.lfs[index]);
}
var neo = this.createEmptyMovieClip("leaf"+index, index);
neo.attachMovie("leaf", "core", 3);
neo.idx = index;
neo._y = -30;
// _y coordinate where the leaves appear
neo._x = random(400);
// _x coordinate where the leaves appear
neo.dx = neo._x;
neo.core._xscale = 150-random(5)*10;
neo.core._yscale = 150-random(5)*10;
neo._rotation = random(180);
neo.amp = {x1+random(15))*10};
// Amplitude _x
neo.amp.scale = Math.PI/2*(1+random(3));
neo.onEnterFrame = function() {
if (this._y<430) {
// Bottom line where the leaves disappear
var ph = this._y/this._parent.br.y*this.amp.scale;
var cs = Math.cos(ph);
this.core._xscale = 30+Math.abs(70*cs);
if (this._x<=400) {
// it's limit _x coordinate where the leaves may fly
this._x = this.dx+this.amp.x*cs;
} else {
var id = setInterval(this._parent, "fallLf", this._parent.weather, this.idx);
this._parent.lfs.splice(this.idx, 1, id);
removeMovieClip(this);
}
this._y += 3;
// Speed of fall. Try to change this value
} else {
clearInterval(this._parent.id);
var id = setInterval(this._parent, "fallLf", this._parent.weather, this.idx);
this._parent.lfs.splice(this.idx, 1, id);
removeMovieClip(this);
}
};
this.lfs.splice(index, 1, neo);
return neo;
};
target.fallLf();
target.id = setInterval(target, "fallLf", weather);
};
fall(this, 300);
stop()
frame2
stop();
removeMovieClip(neo);
/as

Anyway To Modify An Swf?
i recently had a major virus takeout my machine and most of my web design stuff is safe, but i have one swf that i do not have the fla, file for and there is one button at the end of the file i need to change the link to, am i stuck? or can i some how fix it?

Need To Modify
have 800 lines of actionscript. program is running, programmer left. need to modify code. any suggestions on the best way to gauge which set of code/functions are running at which time?

Modify Right-click
Hello --

I've seen several sites where they disable the tools that you can get when you right-click on a flash object, like Zoom and such. So when you right-click, all you see is the link "About Macromedia Flash 5" or something like that. For example, the little box of flash animation in the upper-right corner of http://www.expn.com

Does anyone know how to do that?

thanks for your time,
Brig.

Modify Properties
I have many problems in manipulating properties of objects that are inside buttons. For example, when I want a simple menu with buttons that are "marked" when clicked (to show what topic from the menu is being accessed), like "visited".
- I could use a movieclip, but I don't know how to set mouse events for it. Is it possible?
- I thought that I could use a variable to indicate while a button (topic) is being visited. (I don'd want to indicate it in some other way - with objects outside the button).... i only want to do something like to change the color of the button text and undo this change when another button is clicked (indicating that, at that time, another topic from the menu is being accessed)

could anybody help me, please ??
thanks,
Leandro

Shape Modify Please Help
First is it possible.
Second how do you modify a shape in action script I want to change the points.

Cheers

Modify Jigsaw
I downloaded the "Jigsaw Puzzle with Timer" by porter235 from the Games / Full Game Source section.

I would like to modify it to use my own images, and hopefully a higher quality image. I tried just replacing the image it is using with what I thought was another of the same size, but when tested mine shows as being much larger.

Could anyone tell me how to edit this Flash to use my own images? I would like to use images that are 400x300, but if I have to use the same size as in the original I can.

Modify Brightness Through AS?
Can it be done? I don't see it on the list of properties anywhere, and I could just use alpha, but in this certain effect im going for brightness looks better. Is there a way to modify it through actionscript?

Modify Document
I need some help here. I have a file that has a number of scenes in it and the document now needs to be a larger size. When I modify the document in FlashMX the contents of the file are in the top left of the document...

How do I get the larger version of the content to CENTER on the stage? I cant just select all and use the alignment because there are multiple layers and everything would re-arange.

Is there a preference that I cand find to automatically center the contents when a modification takes place? Please let me know. Thanks.

Modify Scene?
hey guys, i've got a question for you. you all probably remember you could modify ur scene in flash, but, in flash mx 2004, i can't find that function , anyone can tell me where (the hell) it went to?

SOSWho Can Help Me To Modify It?
I need a flash menu just like this,I've downloaded it from internet!
look at it:
http://www2.yn.cninfo.net/ad/sep/flashmenu/menu.swf
and it's source file is here:http://www2.yn.cninfo.net/ad/sep/flashmenu/menu.fla

I met a trouble.They are same,both named "OPTION" in the menu.But I need to modify it and let them be different.For example,"1","2"¡_¡_"9.

Any good man can help me?I need your help.
SOS!!!!!!!!!!!!!!

SOSWho Can Help Me To Modify It?
I need a flash menu just like this,I've downloaded it from internet!
look at it:http://www2.yn.cninfo.net/ad/sep/flashmenu/menu.swf
and it's source file is here:http://www2.yn.cninfo.net/ad/sep/flashmenu/menu.fla

I met a trouble.They are same,both named "OPTION" in the menu.But I need to modify it and let them be different.For example,"1","2"¡_¡_"9.

Any good man can help me?I need your help.
SOS!!!!!!!!!!!!!!

SOSWho Can Help Me To Modify It?
I need a flash menu just like this,I've downloaded it from internet!
look at it:http://www2.yn.cninfo.net/ad/sep/flashmenu/menu.swf
and it's source file is here:http://www2.yn.cninfo.net/ad/sep/flashmenu/menu.fla

I met a trouble.They are same,both named "OPTION" in the menu.But I need to modify it and let them be different.For example,"1","2"¡_¡_"9.

Any good man can help me?I need your help.
SOS!!!!!!!!!!!!!!

Xml Modify In Flash
Hi Folks,
i need some help concerning flash & xml. For now i can load an xml file into flash and display it in a way i want (for a portfolio). Now i want to modify it in my site online. I just want to edit, delete or make new elements along with its attributes. Do I need to use server-side scripts such as php or asp or can i do this directly in flash and over-write my xml? I searched for some tutorials on this but i can't seem to find the good answers. Can anyone give me a direction? Would be realy-realy great...cuzz i'm stuck on this.
Greetings from Belgium-Antwerp

Xml Modify In Flash
Hi Folks,
i need some help concerning flash & xml. For now i can load an xml file into flash and display it in a way i want (for a portfolio). Now i want to modify it in my site online. I just want to edit, delete or make new elements along with its attributes. Do I need to use server-side scripts such as php or asp or can i do this directly in flash and over-write my xml? I searched for some tutorials on this but i can't seem to find the good answers. Can anyone give me a direction? Would be realy-realy great...cuzz i'm stuck on this.
Greetings from Belgium-Antwerp

Modify Swf With Tga, Bmp Or Jpg Image?
Is there a script or command line tool that modifies swfs by overlaying an image onto the swf?

Modify - Instance?
Quote:





Hightlight frame 1 and click Modify - Instance. Change the Alpha level (in the Color Effect) to 0%. Repeat the process for frame 30.






Where's the Modify Instance command? I can't find it in the modify menu....

Modify Ticker
Hello!

I've found this excellent news ticker on the tutorials, but I would like to make an alteration to it.

As the news ticker comes it will go through the XML list and display each line one after another. What I would like it do is randomly select which line it will display within the list.

I've tried to make changes, but with it using Dutch variable names and my extreme noobieness to action scripting, I'm struggling

link: http://www.flashkit.com/movies/Scrip...7266/index.php

If anyone can help it would be appreciated

I have emailed the original developer for feedback but waiting on reply.

thks!
z3ph.

Help Modify This Code Please
So I found this really awesome open source engine to animate a page turning.

Im working with this code on a 468x60 banner and want to modify the code so that you can only tear the page off... and not turn the page.

Take a look at my code and see if you can help me out -

thanks!

Need To Modify The Script....
Hi,
I have attached a FLA, in this actionscripting movie, i want to modify a little bit, but do not understands how to do it. Before proceeding let me tell you that i am not an expert in Actionscripting. Neither i am an scripting user. I just use codes from their authors and use them onto my movies for educational purposes.

What i actually want to do here is that, i want to create a CORRECT and WRONG kind of game for kids, in which kids have to drag an image to its correct name or place. If a kid dragged that image onto the wrong name or place, a MC plays which indicates that the user has dragged it onto the wrong place AND IT A KID dragged an image onto the correct name or place then a MC plays indicating that the user has done the correct thing.

A file is attached here and i want you guys to please take a look at it, this file was made by one of my friend, who accidently cannot work further onto it. Therefore i need assistance from you guys, please take a look at it and try to make it enhance.

Your support and help me highly appreciated.


Amir

Modify Databases
hi, i got a problem, i don't know how to oprn a database, i just want to give an instruction and that flash, open , modify, and close the database, the database is in acces, i would like that sombody can help me... thanks by the way.

sorry for my english, i'm form mexico hehe

Modify Menu In MX Pro
I have searched thru the MX Professional help for what the Modify menu applies to. In particular I cannot get the Arrange > <commands> from the Modify menu to do anything. IE: Bring to Front - What exactly is it supposed to bring to the front? The Layer? The Symbol? What? This is making me feel really really stupid, but I usually fly thru new programs and Flash MX Pro is just a complex sucker.

I have on occasion been able to get the Align feature to work and it will bring a symbol in alignment chosen with respect to the stage, but other than that the other functions are just not working for me. I'm sure its me and that I'm using them wrong, but it would be nice to have someone tell me who's used the product a lot more. Thanks. Feel free to flame me as long as you answer the questions.

Anybody Able To Modify This Code For Me?
Hey guys,
Had alot of hits on the other post but it wasnt responded to so i think i was asking too much from you all,

i realise you have lives unlike me (always working)

could someone please be able to do two(or one thing if you can)
1. in the following code

choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image1.swf");
break;
case 2 :
location.loadMovie("image2.swf");
break;
}

could anyone tell me how to count how many swf there are in a target folder

and putting the value in like this
choice = Math.round(Math.random()*ValueCalledin);

instead of listing all the files and

2. set a limited time for that swf to play before it calls in the next random swf

im my very unexpert like way i thought (im a total AS beginner) that the script may look something like this

this.location = "Myfolder/";
choice = Math.round(Math.random(".swf")*value);
switch (choice) {
case random :
this.location.loadMovie(".swf");

for the first bit, i dont know lol
dont laugh too hard at my attempt lol

Modify Scroll Help
Hello,

I downloaded this .fla from Flashkit. I want to modify it so I can use it to have my whole website scroll. But I need it to only move left/right when you get close to the edges, the problem I am having is I put item on but when I test the movie and try to use a scrollbar for instance, it slides off screen. I was wondering if someone can help??

I would be very greatful!

I hope you understand what I mean, I just need it to move left or right only when you get close to the edges of the document. It seems as if the document is spilt in half now, and just the futher one way you go the faster it goes.

Thanks!
Jordan


http://www.destreedesign.com/Scroll.zip

How To Modify This Movie?
hi everybody
i've a question for you expert!
how can I change the interface of this movie

http://www.flashkit.com/movies/Scrip...2793/index.php


i've deleted the interface's elemnts from the scene but i continued to see them when i generate the swf.
and... when u search something and there's no match results how can i return to the search??

hope u can udestand d my english
thanks!!

Modify An Animation
Hi all!!
i have here an animation:
http://www.savefile.com/files/794685
its particules formed a word and after destroy the letters....
I want the particles formed the word and after , stop! the letter being not destroyed.
i want to change the colors blue for colours cyan too..
Someone can help me??

[F8] Cant Modify My MovieClip, Why Is That? Anyone?
Hi there.

I created some movie clips using duplicate movie clip. But when i try to modify them, by using their name stored in a variable, i just cant (please reffer to "HERE").

The process of creating the movie clips seem to be ok... But not sure if the way that i am calling the movieclip's names is ok.

Why is that?

Thanks.

Cheers.

Leo.


Code:

po_x = 100;
po_y = 100;
t = 1;
i=0;
while (i < 4)
{
duplicateMovieClip(mc_l_3.mc_l_2.mc_l_1.area_test, "area_test_" + (i), mc_l_3.mc_l_2.mc_l_1.getNextHighestDepth());
mc_l_3.mc_l_2.mc_l_1["area_test_"+i].onRollOver = function()
{
temp = this;
trace(temp);
un = temp.lastIndexOf("_");
l = temp.length();
temp = temp.substring(un+1, l);
//trace(temp);
};

i++;
}

for (c=0; c<30; c++)
{
mc_l_3.mc_l_2.mc_l_1["area_test_"+(c+1)]._x = po_x;
mc_l_3.mc_l_2.mc_l_1["area_test_"+(c+1)]._y = po_y;
po_y = po_y+102;
if (t == 19)
{
t = 0;
po_x = po_x+120;
po_y = -1109.1;
}
t++;
}

m_var= "mc_l_3.mc_l_2.mc_l_1.area_test_3"; //HERE
_root[m_var]._xscale = 1500; //HERE
_root[m_var]._yscale = 1500; //HERE

Modify Scroll?
Hello,

I could really use some help!! I am making a website for a friend and I am trying to make a little different type navigation than the normal.

So I found a horizontal thumbnail scroll .fla and I am starting to modify it to make my entire site scroll. Now, right now it is set up to scroll left or right based on if you are on the left hand or rigth hand side of the screen. The movie is divided in 1/2.

I was wondering if their would be a wonderful person out there who could modify my movie (because I don't know how to do this) to make it so the movie is divided in 1/4. As in, if you are on the far 1/4 left of the screen, it will move left, if you are on the far 1/4 right hand side, it moves right. And if you are in the middle 2/4 of the movie, it does NOT move.

Can anyone help me? I would be VERY VERY greatful!

http://www.destreedesign.com/messyfla.zip
(sorry for the uglyness of the .fla document, I just started on it)

Help Modify This Script?
I got a file on another forum that does almost exactly what I need as far as the cuepoints/scrubbing goes together. If you download MY FLA and observe the output window you will know what I am talking about.

Basically what I want is to load slide1, slide2, slide3 ect. into the EMPTY MC I made depending on which cue point it hits...so if I was to scrub backwards from c5 to c3 it would change slide 5 to 3 as I was scrubbing. Please Anyone I need help!!

Need To Modify The Script....
Hi,
I have attached a FLA, in this actionscripting movie, i want to modify a little bit, but do not understands how to do it. Before proceeding let me tell you that i am not an expert in Actionscripting. Neither i am an scripting user. I just use codes from their authors and use them onto my movies for educational purposes.

What i actually want to do here is that, i want to create a CORRECT and WRONG kind of game for kids, in which kids have to drag an image to its correct name or place. If a kid dragged that image onto the wrong name or place, a MC plays which indicates that the user has dragged it onto the wrong place AND IT A KID dragged an image onto the correct name or place then a MC plays indicating that the user has done the correct thing.

A file is attached here and i want you guys to please take a look at it, this file was made by one of my friend, who accidently cannot work further onto it. Therefore i need assistance from you guys, please take a look at it and try to make it enhance.

Your support and help me highly appreciated.


Amir

Modify Text Using Xml
Hey everyone,

Like the title says, I would like to know how to modify text I had setup in a xml file. What I mean by modifying is I have to adapt my clients site for a french version. For some reason when i change the text the accentuated e's only show up as symbols and not letters. I tried embedding the font and even changing the font all together to some generic font ie Arial, but still no luck.

can someone help me out

thanks in advance

Help Modify Gallery
Hi! I have downloaded a dynamic gallery from flashkit. I have tried to modify but cant. What i need to do is to get the thumbnails to appear 3 in a row, then the next one i loaded in a row under. When say 2 rows are loaded the scroller appears.
In the gallery alla pics are loaded in one row. This shouldnt be a problem for you actionscipters Please help.

How To Modify This Gallery?
I am making edits to a gallery for this company, they wan to change the layout (which I have done) and add the ability to downoad each shot so that the brides can download and print the images to keep.

I am having trouble loading the movie into my main timeline( i have used transitions between .swf in the kirupa tutorial) and I am not sure how to change the colour of the alternative shots and how to add the download feature for the pciture. Could someone take a look at www.mikaellabridal.com and see if you can help me.


thanks,

Modify Document? Help Pls?
Ok, i realized that after i exported my .swf file there was too much empty white space around the actual animation and that white (transparent) space was screwing my resizing up because the extra space was acting as padding in HTML.

SO i tried to modify the document to try to hug the edges of my animation.

i resized it and it cut away the height from the BOTTOM of the image and left me with this problem:
screenshot.jpg

Anyways..i figured "ok ill just move my animation up into the white space....but i cant really cuz i need to move every frame the same amount and i cant find a way to grab ALL the contents of my flash file and move it at the same time....

any ideas on how to make the empty space "hug" my actual content so it doesent throw off my webpage when i embed the .swf into an html table?

(the html thinks the .swf file is way larger in height than just the actual content, because of the white space around my animation)


There...i think thats understandable enough..i know its a crappy explanation.


Any help appreciated,

Luke

Modify Datechooser?
Hi, im new here but i know this site longtime ago. I have a question: how i can modify a datechooser for have some date who we can click and a window open with some information? Thanks you really much.

Help: Want To Modify Transition...
Is it possible to modify this transition so that the slide show changes by itself without the use of buttons and a delay between the pictures?

FILE

Thanks in advance.

Modify Preloaders
how can i modify "kirupa preloader with progress bar and percentage" for loading other SWFs, and not only this main swf ?

Help Modify Gallery
Hi! I have downloaded a dynamic gallery from flashkit. I have tried to modify but cant. What i need to do is to get the thumbnails to appear 3 in a row, then the next one i loaded in a row under. When say 2 rows are loaded the scroller appears.
In the gallery alla pics are loaded in one row. This shouldnt be a problem for you actionscipters Please help.

Modify SWF Without The FLA File
How do I edit a SWF flash movie without the FLA source file?

Modify .swf File
Hi,

I purchased a template that contains .swf file.
I need to make some changes to it. I have Macromedia Flash 8.
This is the first time I am using Flash. I guess this should not be hard at all.
Could you let me know how to modify the file?
For example I need to change an image.

Thank you.

Copyright © 2005-08 www.BigResource.com, All rights reserved