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




Random Moyion Tute



i've just completed the random motion tutorial and since it was basically just cut and oasting code i figured not much could go wrong but...... all my little graphic does is JUMP randomly around the screen. not with nice little tweening type motion??
any ideas....anyone???
thankyou
brad



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 06-18-2003, 09:20 AM


View Complete Forum Thread with Replies

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

AS Tute - Random Movie Placement
I have a clip in the library with the linkage ShootingStar, and I need this to be randomly placed all over the stage at intervals of between 0.1 and 1 second, as well as random sizes between 100% and 300%.

Oh, and having a random tint to it.

I cannot for the life of me find a suitable tutorial, though I imagine something generating water drops would be along similar lines.

Thanks!

AS Tute - Random Movie Placement
I have a clip in the library with the linkage ShootingStar, and I need this to be randomly placed all over the stage at intervals of between 0.1 and 1 second, as well as random sizes between 100% and 300%.

Oh, and having a random tint to it.

I canno't for the life of me find a tutorial, though I imagine something generating water drops would be along similar lines.

Thanks@

Random Movement In Flash MX Tute Side Effect
Hi

I downloaded the Random Movement in Flash mX tutorial by kirupa chinnathambi and made some moving molecules (RandomElectrolytes.fla)- so far, so good!!

I dynamically loaded the RandomElectrolyte.swf into another "holder movieClip" in the main swf (Electolytes.fla). RandomElectrolytes.swf runs well, however, alert box components in other frames of the main movie have had their title length distorted and most other Mclips (used as buttons) embedded in the movie don't work properly.

Samething happens if I embed the mc directly in the main movie.

Can I immunize the main movie from the script in the MovieClip.prototype created in the tutorial?

Looking For A Tute...
anyone no a good tutorial 4 a teagames style bmx/motocross game or anything like that?

How'd They Do That? (Tute Request)
http://www.arizonaguide.com/home.asp

Very cool banner at the top of the page. Hope this isn't a totally off the wall question, but I'd love to know how they did that. Better yet, if someone here were willing to post a tute, I'd be most grateful.

Thanks in advance.

Tute On Formatters
Hi. does anyone konws the url of a tute on formatters (the tab on component inspextor). tnx

Code From A Tute ...
Is there anyway to change the code in this tutorial - http://www.actionscript.org/tutorial...IE/index.shtml - so that it will prompt the user to make a certain page their homepage rather then just add to their favourites ?

Thanks,
Stephen.

Help Problem With Tute 38
Hello I have searched for the answer for this question in multiple threads all being unanswered so I hope that some one can answer mine, When i try to Follow the tutorial "building games in flash" Number 38, When I arrive at the part where it says to watch keyboard, My computer puts the ascii code for the Up,left,down,and right key as 0 as well as some other ones, This becomes a problem because when I get to the next part, The computer does not reconize the key so The ball does not move, I am running Flash mx 2004 profesional, and Windows Xp if those factor in please let me know and if any one else has had this trouble and fixed it please please help me by posting on this forum Thanks!

Snow Tute - Thanks
Hi to everyone here, I'm new here - first post. How did I get here, well I frequent a forumwww.actionscript.org and somebody posted a Q asking how to make a snowStorm in MX, someone else answered by supplying the link to the tute here.
So, I just wanted to say thanks v. much for the tute, I was in fact looking to create a bubble effect for a site I am working on for a tropical fish shop (yeah its really true (lol!!), so I downloaded the tute, read the explanations and then played around with some stuff until I got the snow to go UP , all I have to do now is make the graphic look like a bubble.
For anyone else that is interested - here is the code to reverse fall of the snow:


onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
basically, just changed the + & - signs around on this._x & this._y
works a treat.
Again many thanks and look forward to visiting many more times in the future. Happy New Year to all

SteveD

Help With Transition Tute
I'm using the below code from the tutorial but yet when the movie is loaded in externally into another movie file when I click on each link only the aboutme.swf is playing for all links, I can't understand why? I know its an AS problem but I can't see where I went wrong.

All AS is in a frame.




ActionScript Code:
_root.currMovie = "aboutme"; //loading about me swfcontainer.loadMovie(_root.currMovie+".swf");//tells flash to add .swf to the currMoviethis.about_mc.about_butt.onRelease = function(){//begins actions for the about me buttonif (_root.currMovie == undefined) { _root.currMovie = "aboutme"; container.loadMovie("aboutme.swf"); } else if (_root.currMovie != "aboutme") { if (container._currentframe >= container.midframe) { _root.currMovie = "aboutme"; container.play(); } } };this.about_mc.about_butt.onRollOver = function(){    this._parent.gotoAndPlay("rollover");}this.about_mc.about_butt.onRollOut = function(){    this._parent.gotoAndPlay("rollout");}this.skills_mc.skills_butt.onRelease = function(){ //begins actions for the skills buttonif (_root.currMovie == undefined) { _root.currMovie = "skills"; container.loadMovie("skills.swf"); } else if (_root.currMovie != "skills;") { if (container._currentframe >= container.midframe) { _root.currMovie = "skills"; container.play(); } } };this.skills_mc.skills_butt.onRollOver = function(){    this._parent.gotoAndPlay("rollover");}this.skills_mc.skills_butt.onRollOut = function(){    this._parent.gotoAndPlay("rollout");}this.goals_mc.goals_butt.onRelease = function(){//begins actions for goals butttonif (_root.currMovie == undefined) { _root.currMovie = "goals"; container.loadMovie("goals.swf"); } else if (_root.currMovie != "goals") { if (container._currentframe >= container.midframe) { _root.currMovie = "goals"; container.play(); } } };this.goals_mc.goals_butt.onRollOver = function(){    this._parent.gotoAndPlay("rollover");}this.goals_mc.goals_butt.onRollOut = function(){    this._parent.gotoAndPlay("rollout");}stop();


thank you for your time.

Snow 2.0 Tute Help
http://www.kirupa.com/developer/mx2004/snow.htm

Help! I can't get the tutorial to work! Even if I open the source and just copy everything into my animation, it doesn't work.
It just says that the script causes the computer to run slowly, do you want to abort the script?

I don't get it!

Help With Menu Tute
For two days I've been trying to get the sliding menu to work. Can someone please look at this file and help me figure out what's wrong. I've redone it a bazillion times and can't get it to work. Can anyone suggest a different tutorial that can load a bunch of pics with that nice motion/easing. I'm not very AS savvy.

Thanks in advance!

Help Banner Tute
Hey guys,

I have been seeing these rotational banners on websites and I wanted to know if you guys know where there is a tutorial for it. I have listed a couple sites below that has it

http://www.gamespot.com

http://www.pga.com/home/

http://www.thegolfchannel.com/

If you can help me out here that would be great.

Thanks!

Help With Transition Tute
I'm using the below code from the tutorial but yet when the movie is loaded in externally into another movie file when I click on each link only the aboutme.swf is playing for all links, I can't understand why? I know its an AS problem but I can't see where I went wrong.

All AS is in a frame.




ActionScript Code:
_root.currMovie = "aboutme"; //loading about me swfcontainer.loadMovie(_root.currMovie+".swf");//tells flash to add .swf to the currMoviethis.about_mc.about_butt.onRelease = function(){//begins actions for the about me buttonif (_root.currMovie == undefined) { _root.currMovie = "aboutme"; container.loadMovie("aboutme.swf"); } else if (_root.currMovie != "aboutme") { if (container._currentframe >= container.midframe) { _root.currMovie = "aboutme"; container.play(); } } };this.about_mc.about_butt.onRollOver = function(){    this._parent.gotoAndPlay("rollover");}this.about_mc.about_butt.onRollOut = function(){    this._parent.gotoAndPlay("rollout");}this.skills_mc.skills_butt.onRelease = function(){ //begins actions for the skills buttonif (_root.currMovie == undefined) { _root.currMovie = "skills"; container.loadMovie("skills.swf"); } else if (_root.currMovie != "skills;") { if (container._currentframe >= container.midframe) { _root.currMovie = "skills"; container.play(); } } };this.skills_mc.skills_butt.onRollOver = function(){    this._parent.gotoAndPlay("rollover");}this.skills_mc.skills_butt.onRollOut = function(){    this._parent.gotoAndPlay("rollout");}this.goals_mc.goals_butt.onRelease = function(){//begins actions for goals butttonif (_root.currMovie == undefined) { _root.currMovie = "goals"; container.loadMovie("goals.swf"); } else if (_root.currMovie != "goals") { if (container._currentframe >= container.midframe) { _root.currMovie = "goals"; container.play(); } } };this.goals_mc.goals_butt.onRollOver = function(){    this._parent.gotoAndPlay("rollover");}this.goals_mc.goals_butt.onRollOut = function(){    this._parent.gotoAndPlay("rollout");}stop();


thank you for your time.

Snow 2.0 Tute Help
http://www.kirupa.com/developer/mx2004/snow.htm

Help! I can't get the tutorial to work! Even if I open the source and just copy everything into my animation, it doesn't work.
It just says that the script causes the computer to run slowly, do you want to abort the script?

I don't get it!

Help With Game Tute
game help?
I'm not sure the subject line reflects what I am after...but....after all, I am a noob What I am looking for is a good basic tute on how to create a simple movie using the wack a mole type scenario. I've seen many flash banner ads that use this approach. I know it involves creating a custom cursor to use as the weapon or wacker if you will
and I'm think some collision detection?

Can someone out there point me in the least painful direction please?

TIA

Bob

Papervision Tute Help
Hey guys Im pretty new to scripting in AS3 so bare with me. But Using the files from the paervision tutorial as a starting point. I wanted to add 3 more images (planes) for a total of 4 images that not only rotait on the axis of the centre of the stage but to the centre of there individual axisis. Also how would I go about controling the depth (z property) right now all the planes go very fare off into the stage I would like to reduce that if possible.

Any help would be great. Many thanks in advance.

Here is the code Im starting with
Code:

import org.papervision3d.scenes.*;
import org.papervision3d.objects.*;
import org.papervision3d.cameras.*;
import org.papervision3d.materials.*;

// Create the container Sprite
var container:Sprite = new Sprite();
container.x = stage.stageWidth * 0.5;
container.y = stage.stageHeight * 0.5;
addChild(container);

// Setup the 3D scene
var scene:Scene3D = new Scene3D(container);
var camera:Camera3D = new Camera3D();
camera.zoom = 5;

// Create the material
var bam:BitmapAssetMaterial = new BitmapAssetMaterial("cover");
bam.oneSide = false;
bam.smooth = true;

// Create the 3D planes
for(var i:uint=0; i<10; i++)
{
   var p:Plane = new Plane(bam, 234, 236, 5, 5);
   scene.addChild(p);
   p.x = Math.random() * 1000 - 500;
   p.y = Math.random() * 1000 - 500;
   p.z = Math.random() * 1000 - 500;
   p.rotationY = Math.random() * 360;
}

this.addEventListener(Event.ENTER_FRAME, render);

function render(e:Event):void
{
   camera.x += stage.mouseX - (stage.stageWidth*0.5);
   camera.y += stage.mouseY - (stage.stageHeight*0.5);
   scene.renderCamera(camera);
}
// Render the 3D scene

Lee's Proximity Tute
hi i was wondering if there is anyway that i can change the code in lee proximity tutorial to say

if (at say a quater of the stage from the top)
then size = 0

and if it at the bottom section then it is 100 percent and any mc in between keep the vanishing point

kind of like the starwars writing at begining

thanks for any assist

Preloader Isn't Working (from Tute)
I just tried the Bytes preloader from the tutorials and i can't gett the last stage to work...

everything works (it counts and "preloads")
but when its done it jumps to the 100th frame on the next scene and stops..??!?!?!?!?

here's the code.. (same as the given .fla and still doesn't work..)
----------------------------
loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1000);
totalkbytes=Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
----------------------------


so ??! has anyone else had this problem?!>
on the given .fla he only has 1 frame on the "scene 2" i have obviously more..

but i dont think it would have affected it..

??!?

Thanks for the help

James

AS Tute Problem BUGGING ME
I am trying to do this tute : http://www.flashkit.com/tutorials/In...29/index.shtml

Now, when I get to the section highlghted below, on page 2 of the tutorial, things start to go wrong.

Finally, place your text box and your two buttons on the main timeline, select everything, and press F8 to convert to a movie clip. Name it «containerMC» . Our setup is now done.

OK, once I have done this, and carry on thru the tutorial, I assign all the AS in the right places, but when i test the movie, it says that onclipevent only works with a movieclip instance, and for some reason when i go back and look, the WHOLE of the containermc is being read as a button. Is the tute wrong? or am I doing something wrong?

I have follwed the tue over and over again, word for word, but it turns out the same each time.

A Little Tute On Double-clicking
|re: dblclick in f4|
/
if you guys want to make a very easy and intuitive double-clicking interface (for your site or for an os), do the following.
create a button that sets the visibility of your movieclip (referred to by its level hierarchy, of course) to 1, then put it in a movieclip. insert 5 frames into the movieclip and keyframe the first 2. for the first keyframe, get a stop action. and for the button get a play action. for the second keyframe, leave the button action as the setvisibility to 1.

voila.
/

Looking For A Picture Slide Tute
hey. need help with creating a picture that slides in relation to the position of the mouse. have got a few general zibes on how it may be done but what i really need is a tutorial that explains the process and scripts. looked everywhere with no luck. hope you can help.

cheers...

dave@aerdesign.com.au

Is There A Tute On Keystrokes And Txtboxes?
Hi, I'm having a real problem understanding how to get this to work.
I have 2 textboxes input_txt and display_txt.
The text I want is "The cat", when text is entered (input_txtx) it it shown "as is" in the display_txt (eg *t? c@#). If kid wrote The cat we go to next frame, if not new frame shows the dispay text now in the input_txt to be edited until correct.
thanks,
ja


onClipEvent (keyDown) {
trace(String.fromCharCode(Key.getAscii()));
};
//the corresponding letter output when you press a keystroke except function keystrokes.

input_txt = 'The cat';
display_txt = '';

input_txt.addEventListener(TextEvent.TEXT_INPUT,on TextEntered);
function onTextEntered(event:TextEvent):void {

}

input_txt.addEventListener(Event.CHANGE,onChange);
function onChange(event:Event):void {

display_txt.text= event.target.text;

}



keyListener = new Object();
keyListener.onKeyDown = function() {
if(display_txt == "The cat"){
gotoAndStop(3);
}else if(display_txt != "*?????? c?t")// shows what the kid put in {
gotoAndStop(4);
input_txt = display_txt;
}

};
Key.addListener(keyListener);
Selection.setFocus("input_txt");
stop();

Do You Have A Simpler Tute For This Fla File?
hi guys, i attached a flash file here, i was checking it out but i couldn't understand it as it is not in english. can you please check and if you have a simpler tute, i wll be very grateful.

thanks so much.

Some Editing In The Motion Tute?
I read the tute on continuous motion but i want continuous motion of a jpeg with no mouse action to effect it ,unlike the tute, just smooth continuous motion ,how can i do that?I also read the tute on Cont. motion with clouding technique , don't want that too.
THankyou.

Magnify Tute Update?
can anyone update this code to MX?

it's a great tutorial but doesn't work in MX -

http://www.flashkit.com/tutorials/Sp...-144/index.php


T H A N K S

Fading Grid Tute Help?
I'm new to AS and would like to know how to modify the alpha function in the Fading Grid tutorial so that the picture would fade back out in the same manner as it faded in. Kinda like the reversal of everything. Does this make sense?

Tsumani Tute Redone From AS.org
Alo all

Just been reworking the Tsumani flash piece tute from AS.org, updating it with the latest code and etc. Seems to work fine (although it would be nice if the text slides up into position in the background as well).

Also not to sure if the code is clean enough, can someone have a look and let me know how to make any improvments to it?

Thanks

Looking For A Tute Or Some Help Re: Movement Of Objects With AS
Hello,

I'd like to move a series of objects, nestled within two film clips on the main timeline, with a series of buttons, again nestled within two film clips on the main time line.

What I'd like to do is create an image frame that resizes to fit the image that is being displayed. So, for instance, if I press button 1, I'd like the frame to be 350px high...but when I press button 2 I'd like the frame to be 500px high...then I press button 8, and the frame goes to 400px high...then I press button 1 again and it goes back to 350px...and so on.

I'm thinking that this AS would need to be placed on the main timeline, on frame one. I'm also thinking that I would need to use the _root command to say where exactly the frames and buttons are...for example, _root.thumbs.button1 for the first button and _root.frames.frame1 for the first frame.

Oh, and the frames are only two horizontal lines above and below each image...not full square frames.

However, I have no idea how I would work this so that the frames don't jump from one position to the other with no continuity. I'd also like to add a bit of easing out to the movement.

Does anyone know of any tutorials that are similar enough for me to be able to mould them to my needs?

Cheers

Question About XML Slideshow Tute
Is there a way I can make the images fade out before the next one in the sequence fades in? I've been trying to figure this out for a while now and still can't seem to wrap my head around how to get it to work. Any ideas would be absolutely awesome. Here's a link to the tute that I'm referring to. Thanks.

Almost, My Kirupa Tute ASP To MDB Form
The error I am getting is:


Server.MapPath()error 'ASP 0173 : 80004005'
Invalid Path Character
/helpmail/processForm.asp, line 20 An invalid character was specified in the Path parameter for the MapPath method.

Line20: MyPath=Server.MapPath("http://www.cincinnati.enq/advertisin...eAdCounter.mdb")

The submit button AS:
on(press){
getURL("http://www.shopatcincinnati.com/helpmail/processForm.asp",0,"post");
}


My ASP script:

Code:
<%@language = "VBScript" %>
<%
strFirst = Request.Form("Name")
strLast = Request.Form("Advertiser")
strEmail = Request.Form("TypeAd")
strLast = Request.Form("Date")
strMessage = Request.Form("OnlineAdTypes")
strMessage = Request.Form("NonAdCustomOnline")
Response.Write(strName) & "<br>"
Response.Write(strAdvertiser) & "<br>"
Response.Write(strTypeAd) & "<br>"
Response.Write(strDate) & "<br>"
Response.Write(strOnlineAdTypes) & "<br>"
Response.Write(strNonAdCustomOnline)

MyPath=Server.MapPath("http://www.cincinnati.enq/advertisin...eAdCounter.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"DBQ=" & MyPath
SQL = "INSERT INTO onlineAdCounter (Name, Advertiser, TypeAd, Date, OnlineAdTypes, NonAdCustomOnline) VALUES ('"&strName&"','"&strAdvertiser&"','"&strTypeAd&"','"&strDate&"','"&strOnlineAdTypes&"' ,'"&strNonAdCustomOnline&"')"
conn.Execute(SQL)
%>
The Access DB resides on an intranet
The ASP script is where all our ASP scripts reside, an external server


My form
http://www.cincinnati.enq/advertising/artistForm.html

Do You Have A Simpler Tute For This Fla File?
hi guys, i attached a flash file here, i was checking it out but i couldn't understand it as it is not in english. can you please check and if you have a simpler tute, i wll be very grateful.

thanks so much.

Some Editing In The Motion Tute?
I read the tute on continuous motion but i want continuous motion of a jpeg with no mouse action to effect it ,unlike the tute, just smooth continuous motion ,how can i do that?I also read the tute on Cont. motion with clouding technique , don't want that too.
THankyou.

Fading Grid Tute Help?
I'm new to AS and would like to know how to modify the alpha function in the Fading Grid tutorial so that the picture would fade back out in the same manner as it faded in. Kinda like the reversal of everything. Does this make sense?

Useful Date/time Tute?
Hey all, I am in need of a useful tutorial to show me how to display the date and time across the top of my page, I'm using flash 4. If someone could direct me to one Id appreciate it muchly

Loading % Tute For External Jpg's
Anybody know of a good tute for greating a loading % when loading external jpgs into an empty movie clip on the stage.

Preferably Id like to create one loading screen for any jpg loading into my 00_mc (empty mc) on the stage.

Is this possible, and if so any tutes or help anyone throws my way gets major thanks.

Do You Know A Good Tute On Dynamic Loading Jpg's?
Hi,

Although I study the Flash MX Action Script Bible, I couldn't find the answer to the following:

I want to build an MC, in which jpg's can be dynamically loaded. The jpg that are called from the server, should automatically fit to the size of the MC. Also, I need a preloader for that.

The example in the Actionsript Bible is with createNewMovieClip. But since I want to target the jpg into an existing MC, I was wondering how to code that.

I found pieces of the puzzle here on Flashkit and in the book, but I wondered if you might know a tutorial (or of course your own knowledge!) which covers what I need.

Many thanx!
Michiel

Bumping Molecules Tute Or Fla. File
Hi all,
Does anyone know of a tute or FLA that explains how to create a whole heap of randomly bumping movie clips. I want to create a scene like looking at molecule things bumping around under a microscope like you see in all those dna crime scene shows. Any help greatly appreciated.

Sliding Menu Tute In Flash CS3 / AS3
Anyone knows where I can find a AS3 tutorial to come up with a result similar to this thing: http://www.kirupa.com/developer/flash8/slidingMenu.htm ???

Thank you so very much

Mouse Follow: I've Read The Tute
I have read the tutorial on this and am using the following code:

onClipEvent (load) {
_x = 78;
_y = 163;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

My issue is this: I want the movie clip image (instance name: Check) to start at the location (X=78, Y=163) and not immediately "run" up to X=0, Y=0 when the movie loads. I just want it to hover in the middle of the movie until the cursor enters the image.

Thanks.

BTW: Great site.

Transitions Between External SWFs Tute Help
I know this questions has been asked a lot but i still can't find the straight answer that i am looking for!! Please help!
Here goes:

I am following the kirupa tutorial "transitions between external swf's"
The only difference is that I have my buttons in a seperate movieClip. And now none of my buttons work! I know it is probably a _root/_parent thing but I just don't know how to alter the actionscript!

This the actionscript in the one of the buttons:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "main";
container.play();
}
}
}

I have the container movieclip set up also.

Thanks for your time and sorry for asking this question again.

A

Slider Tute Math Problem
yo,
i don't understand the math behind the slider tute in the flash 5 section of kirupa's tutes. That is, i have a movie that is 650 by 500 that i want to slide. can someone explain what i have to change in the formula to get this to slide the exact same was as in the tute? i tried changing some of the numbers and got it almost perfect but ive been doing it with trial and error and its not the most efficient way

thanks
P

Foto Gallery Tute Question
Just considering the foto gallery tutorial with thumbnails
http://www.kirupa.com/developer/mx2004/thumbnails1.htm

and have this question :
i tried one like this before from gotoandlearn, and since i have my flash project set to No Scale , with code like this to center it :
Code:
Stage.scaleMode = "noscale";
Stage.align = "TL";
var resize_lis:Object = {};
resize_lis.onResize = resizeClips;
Stage.addListener(resize_lis);
function resizeClips():Void {
i am worried about how it will fit into my document which is set for 750x400.

i would like to do this tute and use on a site, but like i say, concerned about how it will fit with the existing .fla. thanks.

Kirupa Tute Worked Great Until...
Hi,
I just used Kirupa's tutorial, "Launching a Centered Pop-Up Window"
http://www.kirupa.com/developer/mx/centered_popup.htm
with great success.

It worked just like it was supposed to--in a test-page situation.

But when I tried to transfer it to my real-life situation, it refused to work.

My reality involves the test-page being called into a situation like this:
/*
_root.createEmptyMovieClip("loadExternalSwiffs_mc" , 1);
loadExternalSwiffs_mc._x = 0;
loadExternalSwiffs_mc._y = 103;
_root.loadExternalSwiffs_mc.loadMovie("introSplash Page.swf")
*/

Only it's even more complicated than that because the test-page isn't that introSplashPage, it's one (called "aaronCreditsList.swf) that's being loaded into that level from a button inside the root document, like this:
/*
on (release) {
_root.loadExternalSwiffs_mc.loadMovie("aaronCredit sList.swf")
gotoAndStop("collapsed2");
gotoAndStop("collapsed");
}
*/

I guess what I need to know is where--now--to put this Kirupa copy:
/*
_root.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {

getURL ("javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{myWin.focus();};void(0);");

}
*/

And/or how to modify it slightly so that it can "find" its way to Kirupa's button copy:
/* on (release) {

//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "aaronCreditsActor.html";
target_winName = "mainWindow";
width = 700;
height = 350;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);

}
*/

I've tried a bunch of things but, so far, nothing has worked.

TIA

Mouse Follow: I've Read The Tute
I have read the tutorial on this and am using the following code:

onClipEvent (load) {
_x = 78;
_y = 163;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}

My issue is this: I want the movie clip image (instance name: Check) to start at the location (X=78, Y=163) and not immediately "run" up to X=0, Y=0 when the movie loads. I just want it to hover in the middle of the movie until the cursor enters the image.

Thanks.

BTW: Great site.

Transitions Between External SWFs Tute Help
I know this questions has been asked a lot but i still can't find the straight answer that i am looking for!! Please help!
Here goes:

I am following the kirupa tutorial "transitions between external swf's"
The only difference is that I have my buttons in a seperate movieClip. And now none of my buttons work! I know it is probably a _root/_parent thing but I just don't know how to alter the actionscript!

This the actionscript in the one of the buttons:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "main";
container.play();
}
}
}

I have the container movieclip set up also.

Thanks for your time and sorry for asking this question again.

A

Movement Using Keyboard Keys Tute
Hi,

First, this site and the tutorials are great, thanks.

I am building a site for school in which i am using keyboard keys to control a character on screen. The character is only viewed from the side, and only moves left and right. In the tutorial, the bug changes direction using _root.bug._rotation = ###; Because it is a side view, the rotation does not suit my needs. (I need the character to flip horizontally when changing directions, not rotate, so it stays upright...)
Anyone able to suggest anything that might help me out? I am a bit of a flash noob, so forgive me if this is an ignorant question.
Thanks!

External SWF Preloading Tute And How To Unload An Swf
Hi,

The external loading tute is awesome, but I need to create a button within one of the externally loaded swf's that will UNLOAD the swf from the holder clip on the stage. (I have a scrolling panel that is the main content, these clips are loaded on top as a supplement and I want someone to be able to remove these clips when they are done with them) I really dont know where to start, i have tried unloadMovie .

Thank you so much for your help!!!!

damien

Centered Popup Window - Old Insta-Tute
I saw it a while back, and I seem to have lost it...

It was some javascript you put into a button in Flash, and opened a centered popup window with no scrollbar that was not resizable etc...

The nice part about it was it required NO coding into your HTML document....

Anyone seem to recall the code?

If so could you post it for me?

Thanks,

-Frog out.

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