Basic Actionscripts For A Flash Site?
hey..
i'm trying to make my design work for a flash site, and i came accross this guys tutorial for putting together something basic using the loadMovie script and an empty movie clip that loads ext. swfs. i thought it was pretty rad because i don't know actionscript, but i definately got that.
what i'm looking for is suggestions for other script that would be particularly useful in putting together a flash site.
i know this is very general, but if i could get the names of some scripts commonly used in site-building that i could read up on.
thanks.
FlashKit > Flash Help > Flash Newbies
Posted on: 07-26-2005, 03:22 PM
View Complete Forum Thread with Replies
Sponsored Links:
Basic Actionscripts
I'm new to flash and trying to learn and understand actionscripts. I would like to know of some good tutorials on basic things to get me started. I have messed around with many things and can't get anything to work right. If you have any help I would greatly appreciate it. this is about as far as i have been able to take the program. www.halo-elite.com/test.html
View Replies !
View Related
Basic 1st Steps For Actionscripts
So, I'm wondering what the basic 1st steps are for Actionscripts in Flash applications? Being new and making no assumptions, I'd say that the file starts with Frame1 of the main timeline. Does that actionscript ever get 'processed' or 'run' again? Or do you need everything else to be in 'functions' and event driven by using listeners?
Can someone clue me in to more of an overall flash way of programming?
Some questions are:
- If there is code in frame1 of the 'actions' layer, and code in frame1 of 'mylayer' (both on the main stage), does one run before the other? If so, based on what? Which one is on top?
- Also, I've tried a 'GotoandPlay' command from my initial actionscript in Frame1 of 'actions' layer, but since it's outside of a function it only seems to advance the frame of the object to the proper frame lablel. But it doesn't run from that point on. So what's the thinking here?
View Replies !
View Related
[F8] Problem With Basic Flash Site
Hi guys, I'm new to this and am working on one of my first basic flash sites.
This is pretty generic and I'm having trouble making the buttons link to a different frame to load...
I want it so when I click on one of the buttons, it will load a different frame and/or page.
Any help in the right direction would be great and apologies for my noobiness
Thanks in advance
View Replies !
View Related
Basic Site Construction
Hi,
Just a simple question really, but I'm pretty new to building complete websites in flash and I was wondering how they are built, specifically when you have a menu system and other elements reacting from that menu i.e. http://www.wmteam.de
any help/direction greatly appreciated.
cheers,
Rob
View Replies !
View Related
Basic Site Animation
Hello,
Need some help with website set up. Every site I go to has a basic animation for each of its sections, and then provides different content depending on the section. How do I supply the diffenent content depending on the section the user clicked on.
I was thinking it was different frames of a movie clip, but does that mean I have to repeat the basic animation for each section. Seems redundant.
Any help is appreciated,
Thanks,
View Replies !
View Related
[F8] Basic Site Help For Links
I need some help with a basic flash site im putting together, im not great in flash but i know my way around, i need a script for the buttons so that when you press it a luttle box apears and becomes bigger, but the rest of the website doesent move around..
something like this http://template-download.net/previews/t105/index.html
but more simple, i want this instead of a new page opening every time you click on a link
View Replies !
View Related
[F8] Basic Site Help For Links
I need some help with a basic flash site im putting together, im not great in flash but i know my way around, i need a script for the buttons so that when you press it a luttle box apears and becomes bigger, but the rest of the website doesent move around..
something like this http://template-download.net/previews/t105/index.html
but more simple, i want this instead of a new page opening every time you click on a link
View Replies !
View Related
BASIC SITE NAVIGATION
Hello
I am new to Flash and totally stuck. I have managed to scrape together a site at www.lostdubs.com. However I have two problems:
1. I can't get any preloaders to work.
2. I want all of the content to load at once to eliminate the "blips" as the content changes. Or I want each .swf to have its own preloader.
As you can imagine I am not too good with code. I am super frustrated. Any help will really be appreciated!I am in Sydney, if there is anyone here who wants to trade work for help I'm up for it.
Thanks!
View Replies !
View Related
Basic News Like Site
hi frs
pls chk the code below
this is just to display a news like display in a texbox component
the file is a XML file (headlines)
what happen is when the file is loaded it displays a news like site
headlineXML = new XML();
headlineXML.onLoad = myLoad;
headlineXML.load("headlines.xml");
function myLoad(ok) {
if (ok == true) {
Publish(this.firstChild);
}
}
function Publish(HeadlineXMLNode) {
if (HeadlineXMLNode.nodeName.toUpperCase() == "BROADCAST") {
content = "";
story = HeadlineXMLNode.firstChild;
while (story != null) {
if (story.nodeName.toUpperCase() == "STORY") {
lead = "";
body = "";
URL = "";
element = story.firstChild;
while (element != null) {
if (element.nodeName.toUpperCase() == "LEAD") {
lead = element.firstChild.nodeValue;
}
if (element.nodeName.toUpperCase() == "BODY") {
body = element.firstChild.nodeValue;
}
if (element.nodeName.toUpperCase() == "URL") {
URL = element.firstChild.nodeValue;
}
if (element.nodeName.toUpperCase() == "DETAILS") {
DETAILS = element.firstChild.nodeValue;
}
element = element.nextSibling;
}
content += "<font size='+2' color='#3366cc'><a href='"+URL+"'>"+lead+"</a></font><br>"+body+"<br><br>";
txt.htmltext=content;
}
story = story.nextSibling;
}
}
}
example
<link>This is the Headlines</link>
this is the headlines. this is the message "more>>"
what i want is to add a "more>>" link like we do in "read more"
and when cliking the link the DETAILS element's value should be displayed in the new window and
cud anyone pls tell me how i can i do that
it cud be a gr8 help
thx
View Replies !
View Related
Basic Site Construction
I have gaping holes in my knowledge of Flash when it comes to putting up a site. Despite having created hundreds of .SWF files for inclusion in sites or for stand-alone consumption, I don't know how to put a three-part site together.
Here's the goal:
Part 1 is a SWF file of a menu I created using the Dynamic Menu code found elsewhere. Works fine, but I want to drop THAT code into a movie clip below the _root, drop another "Content" panel where the goods show up based on menu choices, and finally, I want a Part III, just a footer with mainly static text and and image or two.
Here's the menu all by itself, and only one item loads, but it loads RIGHT on top of the menu. Dynamic Menu beta
Can you get me on the right track?
View Replies !
View Related
CGI And Flash Actionscripts
Hi,
I am looking for help. I have tried to use several tutorials but never seemed to work properly and I am wondering if you know a good tutorial that would help me building a flash form with a submit button. I am using an apache server with perl, cgi-bin. The latest version. I would like to be able to receive the form via my email located on hotmail.
Thanks.
View Replies !
View Related
Flash 4 And Actionscripts
I have Flash 4 and would like to know where I can find out about all the actionscript commands available to me and how to use them.I have both the original manual plus another FLASH 4 help book but neither list the commands which I think is pretty poor.
Thanks.
View Replies !
View Related
Basic Site Construction Question
I'm an extreme "newbie" and this has gotta be a stupid question, but I have no pride...
I am trying to design a flash movie for my portfolio. And I guess I really don't understand how to make different sections for navigation. For example if I have an opening animation (nothing complex) and when the final animation has ended all the navigation would be in place. If I wanted to see a section for logos, do I put all my samples and animation into a mc? If I do that, I cannot seem to get the loadMovie script to work. And then what if I want to switch sections and look at print samples? How would that work exactly?? I've tried one of the tutorials in here about loading mc, but it really didn't help. Here is sorta an example
http://www.squarewaveinteractive.com/swi_frame.html
I dunno what else to say. Hopefully many of you will be able to recommend a source or tutorial that is straitforward and clear. Thanks for your patience!
View Replies !
View Related
LoadMovie / Creating A Basic Site
Hey guys,
I'm trying to create a fairly basic flash site. I have a bunch of 'pages' so to speak, which will be loaded into a movie clip 'bodymc' on the root timeline. I have tried the loadMovie function, but that is not helping or doing anything. Please feel free to download the .zip, it holds the main page and the homepage, which will be loaded into the mainpage movie clip. Any help would be most appreciated, I really can't figure this one out.
God bless,
- TK
View Replies !
View Related
Flex / Flash Actionscripts
Does Adobe Flash and Flex Builder uses the same compiler / runtime?
if I tested a flash actionscript under Flex Environoment, will it be 100% working under Flash environoment too? and vice versa?
Is it easy to export Flex project to continue on Flash and vice versa?
View Replies !
View Related
Help Examples Of How To Use Actionscripts In Flash
Greetings.
I just started on a little assignment regarding actionscripts in flash. Sadly for me i cant even call myself a beginner. I have been looking around various sites trying to find help on how to get started. However the world of actionscripts seems to be bigger then i expected.
Either way im hoping some of you have the spare time to get me on the right path. As the topic says i need to make examples of how to use actionscripts in flash. If anyone have any good ideas/links/guides on something i could get started on, i would be over the moon. The more simple it can get, the better. Using and explaining a little bit of code is the important thing, unlike making something big and complicated.
Im sorry if you have seen anything idiotic like this a billion times on here before, posting the wrong place or explaining myself like a monkey. Im just having a hard time figuring out how and where to get started.
Regards Troels
View Replies !
View Related
ActionScripts.TXT <-- Flash MX STUFF
// 3D CUBE
vertex = function (x, y, z) {
this.x = x;
this.y = y;
this.z = z;
};
vertex.prototype.rotateXY = function(sinX, cosX, sinY, cosY) {
//rotation around of axes X and Y
var yp = this.y*cosY-this.z*sinY;
var zp = this.y*sinY+this.z*cosY;
var xp = this.x*cosX+zp*sinX;
var zp = -this.x*sinX+zp*cosX;
this.x = xp;
this.y = yp;
this.z = zp;
};
vertex.prototype.perspective = function() {
//calculation 3d to 2d
var perRatio = 1/(this.z/dist+1);
this.rx = cnx+this.x*perRatio;
this.ry = cny+this.y*perRatio;
};
face = function (c, v1, v2, v3, v4) {
this.c = c;
this.v1 = v1;
this.v2 = v2;
this.v3 = v3;
this.v4 = v4;
};
face.prototype.draw = function() {
var shadow = 140+((v[this.v1].rx+v[this.v2].rx+v[this.v3].rx+v[this.v4].rx)-(v[this.v1].ry+v[this.v2].ry+v[this.v3].ry+v[this.v4].ry))/4;
_root.lineStyle(0, 0x000000, 100);
_root.beginFill(shadow << 16 | shadow << 8 | shadow << 0, 100);
_root.moveTo(v[this.v1].rx, v[this.v1].ry);
_root.lineTo(v[this.v2].rx, v[this.v2].ry, v[this.v3].rx, v[this.v3].ry);
_root.lineTo(v[this.v3].rx, v[this.v3].ry, v[this.v4].rx, v[this.v4].ry);
_root.lineTo(v[this.v4].rx, v[this.v4].ry, v[this.v1].rx, v[this.v1].ry);
_root.endFill();
};
face.prototype.fill = function() {
var vis = ((v[this.v2].rx-v[this.v1].rx)*(v[this.v3].ry-v[this.v1].ry)-(v[this.v2].ry-v[this.v1].ry)*(v[this.v3].rx-v[this.v1].rx));
if ((this.c+2)%2) {
vis *= -1;
}
if (vis>=0) {
this.draw();
}
};
_root.onLoad = function() {
cnx = 250;
cny = 250;
dist = 200;
var sx = 75;
var sy = 75;
var sz = 75;
rad = Math.PI/180;
amount = 7;
// initialization of the vertex
v = new Array();
v[0] = new vertex(sx, -sy, sz);
v[1] = new vertex(sx, sy, sz);
v[2] = new vertex(sx, sy, -sz);
v[3] = new vertex(sx, -sy, -sz);
v[4] = new vertex(-sx, -sy, -sz);
v[5] = new vertex(-sx, sy, -sz);
v[6] = new vertex(-sx, sy, sz);
v[7] = new vertex(-sx, -sy, sz);
// initialization of the faces
f = new Array();
f[0] = new face(0, 0, 1, 2, 3);
f[1] = new face(1, 2, 3, 4, 5);
f[2] = new face(2, 4, 5, 6, 7);
f[3] = new face(3, 0, 1, 6, 7);
f[4] = new face(4, 0, 3, 4, 7);
f[5] = new face(5, 1, 2, 5, 6);
};
// ####################################################
// -- © 2002-2003 Grigory Ryabov.
// -- http://www.flash.plux.ru
// ####################################################
this.onEnterFrame = function() {
var xa = -(cnx-_ymouse)*rad/25;
var ya = (cny-_xmouse)*rad/25;
var sinY = Math.sin(ya);
var cosY = Math.cos(ya);
var sinX = Math.sin(xa);
var cosX = Math.cos(xa);
for (var i = 0; i<=amount; i++) {
v[i].rotateXY(sinY, cosY, sinX, cosX);
v[i].perspective();
}
_root.clear();
// fill the right side face
f[0].fill();
// fill the front face
f[1].fill();
// fill the left side face
f[2].fill();
// fill the back face
f[3].fill();
// fill the bottoms face
f[4].fill();
// fill the top face
f[5].fill();
};
stop();
------------------------------------------------------------------------------------
// 3D Splines Like
initialization = function () {
cnx = 250;
cny = 250;
mas = new Array(0, 0.5, 0, -0.5, 1, 1.23, 1, 1, 1.23, 1);
radius = 120;
spline = 10;
amount = spline*3;
rad = Math.PI/180;
i = 0;
v = new Array();
for (var next = 0; next<=3; next++) {
var am = amount*next/3;
do {
var angle = (i*Math.PI*6)/amount;
v[i] = new ver(Math.cos(angle)*radius*mas[next+3], Math.sin(angle)*radius*mas[next+6], radius*mas[next]);
} while (i++<am);
}
dist = radius*((mas[5]+mas[8])*0.5)*2.5;
};
ver = function (x, y, z) {
this.x = x;
this.y = y;
this.z = z;
};
ver.prototype.rotate3d = function(ya, xa) {
var zp = (this.z*Math.cos(ya*rad))-(this.x*Math.sin(ya*rad));
var xp = (this.z*Math.sin(ya*rad))+(this.x*Math.cos(ya*rad));
var yp = (this.y*Math.cos(xa*rad))-(zp*Math.sin(xa*rad));
var zp = (this.y*Math.sin(xa*rad))+(zp*Math.cos(xa*rad));
this.x = xp;
this.y = yp;
this.z = zp;
};
ver.prototype.perspective = function() {
var perRatio = 1/(this.z/dist+1);
this.rx = cnx+this.x*perRatio;
this.ry = cny+this.y*perRatio;
};
curveThree = function (x1, y1, x2, y2, x3, y3) {
var nx = 2*x2-0.5*(x1+x3);
var ny = 2*y2-0.5*(y1+y3);
this.moveTo(x1, y1);
this.curveTo(nx, ny, x3, y3);
};
splines = function () {
var df = amount/3;
clear();
lineStyle(16, 0xFFFFFF, 100);
for (var i = 1; i<=df; i++) {
curveThree(v[i].rx, v[i].ry, v[i+df].rx, v[i+df].ry, v[i+df*2].rx, v[i+df*2].ry);
}
lineStyle(14, 0x000000, 100);
for (var i = 1; i<=df; i++) {
curveThree(v[i].rx, v[i].ry, v[i+df].rx, v[i+df].ry, v[i+df*2].rx, v[i+df*2].ry);
}
};
// ##################################################################
// -- 3D SPLINES LIKE v2.0
// -- © 2002-2003 Grigory Ryabov.
// -- http://www.flash.plux.ru
// -- original idea - Den Ivanov | CleoAG.com
// ##################################################################
initialization();
this.onEnterFrame = function () {
for (var i = 0; i<=amount; i++) {
v[i].rotate3d(-(cnx-_xmouse)*0.05, (cny-_ymouse)*0.05);
v[i].perspective();
}
splines();
};
stop();
View Replies !
View Related
BASIC Action Script Tutorials On This Site
right i really want to learn this action script but iom not sure what is basic anymore.....there is too much of it
will you direct me to a beginners guide to using actionscript on this site, or any others for that matter......i mean beginning as it will tell me what AS it is with a simple example
cheers
View Replies !
View Related
Learning To Make Basic Interactive Site
I want to learn to make a basic interactive site with Flash. My ultimate goal is to design a portfolio website including video and graphic design samples, but I want to start by learning how to make a basic interactive site. I know the basics of drawing and animating in Flash 5, but I don't know how to make Flash interactive. I don't even know where to start on creating a website in Flash. All I'm asking for is a starting point. Any help would be appreciated. Thanks.
View Replies !
View Related
Basic Movie Site Creation Steps
Hello
Here is a link to movie site creations in AS (3):
http://www.adobe.com/devnet/flash/samples/video_gallery_as3/
I wondered how I might begin with just, say, four movies (not the huge amount Adobe have used in the link), with AS (2).
What are the first basic steps I would take?
Many thanks.
Steve
View Replies !
View Related
How Do I Use Flash MX To Directly Edit Actionscripts In An Swf File?
After creating several swf files using flash MX for my website, and after testing them I found a few errors in the action script in one of the files, is there a way that I can directly edit the swf file's actionscript using flash MX?
I tried importing the swf file into flash MX, but I can't find where the list of actionscripts are, that I created, the preview pane shows the first scene, but there's nothing in the action pane, even when I step through the frames, there's still no actions listed.
What I'm looking for is a list, something like:-
-frame1
action
-frame2
action
etc, etc
and by double clicking on the required action, a type of text editor opens, allowing the script to be edited, then compiled back into the original swf file.
I can use swf decompiler and view the scripts as a list, but the decompiler doesn't allow editing.
View Replies !
View Related
Urgent Requirement For Flash/actionscripts Developers...
Hi,
Greetings from M&R. (A CMM I Level 3 Co)
We are M & R Consultants Corporation, a leading softw! are development firm headquartered at Burlington , Massachusetts with a global delivery center in Mumbai , India . Our primary focus is to provide onsite & offshore software consulting services to our clients in USA along with arranging and providing the services of experienced IT professionals in Software Engineering, Client Server Technology, Inter & Intranet, Mid to Mainframe, and DBA to Network Administration on a case by case basis to fit our clients' specific requirements.
We are looking out for Flash, Actionscripting,PHP & Xml professional on a freelancing assignment.
The assignment would be carried out in the ODC itself. The professionals have to devote atleast a couple of hours & on weekend the max they can devote.
The major activity would be in Flash& actionscript with Integration with the .NET framework.
Later on the professionals would have an option to join MRCC as a permanent employee.
Kindly revert with the ref of the professionals at the earliest.
Thanks & Regards,
Rahul Vaze - (HR - Recruitment)
‘Lexington’ - 6th Floor,
Hiranandani Estate, Patlipada,
Ghodbunder Road,
Thane (W) - 400 607.
Mobile: 9820887449
Tel : 91-22-2586 2586
Visit us @ www.mrcc1.com
View Replies !
View Related
Secret Actionscripts In Flash (eg: Right Click Detect Sorted...)
Hey All,
ok, i saw on this forum or were-here that there was a method to check for a right click. this is not my code and i don't take credit... i don't know who's it is actually...
so basically, you'd make a prototype:
Code:
Mouse.isDown = function(click) {
// click = 1(detects left) or 2(detects right)
var click;
return asNative(800,2)(click);
}
ok... so then instead of making a messy set of clip event statements, you can say:
Code:
onClipEvent(mouseMove) {
if (mouse.isDown(1)) {
trace("you're dragging the mouse");
}
}
Ok now if you've followed all that (and if you've also read the huge post on prototypes in were-here), here's the question...
ok so what the hell is the "asNative" and more importantly ... are there any other built in function that anyone knows of that Macromedia hasn't told us about?
View Replies !
View Related
Importing Flash 5 Actionscripts (.FLA) To Flash MX
A Simple question.I am trying to make use of the action scripts filled .FLA created in Flash 5 into Flash MX.But the Flash MX doesn't accept some of the actions and gives some errors.why is it so?is it a known bug or am i doing some thing wrong.pls clarify dear friends.
also the visa versa.from FlashMX to Flash 5
Thanks in Advance
View Replies !
View Related
Actionscripts?
im pritty new to flash mx (infact i only got it 5 days ago) and i have been doing the tutorials on flashkit.com. In the tutorial it keeps saying things like "insert action script in the actionscript propertys blablalablalblablabla ect." Is actionscript important? Do i need to learn it? Where can i learn it? Any tutorials?
View Replies !
View Related
ActionScripts.txt
vertex = function (x, y, z) {
this.x = x;
this.y = y;
this.z = z;
};
vertex.prototype.rotateXY = function(sinX, cosX, sinY, cosY) {
//rotation around of axes X and Y
var yp = this.y*cosY-this.z*sinY;
var zp = this.y*sinY+this.z*cosY;
var xp = this.x*cosX+zp*sinX;
var zp = -this.x*sinX+zp*cosX;
this.x = xp;
this.y = yp;
this.z = zp;
};
vertex.prototype.perspective = function() {
//calculation 3d to 2d
var perRatio = 1/(this.z/dist+1);
this.rx = cnx+this.x*perRatio;
this.ry = cny+this.y*perRatio;
};
face = function (c, v1, v2, v3, v4) {
this.c = c;
this.v1 = v1;
this.v2 = v2;
this.v3 = v3;
this.v4 = v4;
};
face.prototype.draw = function() {
var shadow = 140+((v[this.v1].rx+v[this.v2].rx+v[this.v3].rx+v[this.v4].rx)-(v[this.v1].ry+v[this.v2].ry+v[this.v3].ry+v[this.v4].ry))/4;
_root.lineStyle(0, 0x000000, 100);
_root.beginFill(shadow << 16 | shadow << 8 | shadow << 0, 100);
_root.moveTo(v[this.v1].rx, v[this.v1].ry);
_root.lineTo(v[this.v2].rx, v[this.v2].ry, v[this.v3].rx, v[this.v3].ry);
_root.lineTo(v[this.v3].rx, v[this.v3].ry, v[this.v4].rx, v[this.v4].ry);
_root.lineTo(v[this.v4].rx, v[this.v4].ry, v[this.v1].rx, v[this.v1].ry);
_root.endFill();
};
face.prototype.fill = function() {
var vis = ((v[this.v2].rx-v[this.v1].rx)*(v[this.v3].ry-v[this.v1].ry)-(v[this.v2].ry-v[this.v1].ry)*(v[this.v3].rx-v[this.v1].rx));
if ((this.c+2)%2) {
vis *= -1;
}
if (vis>=0) {
this.draw();
}
};
_root.onLoad = function() {
cnx = 250;
cny = 250;
dist = 200;
var sx = 75;
var sy = 75;
var sz = 75;
rad = Math.PI/180;
amount = 7;
// initialization of the vertex
v = new Array();
v[0] = new vertex(sx, -sy, sz);
v[1] = new vertex(sx, sy, sz);
v[2] = new vertex(sx, sy, -sz);
v[3] = new vertex(sx, -sy, -sz);
v[4] = new vertex(-sx, -sy, -sz);
v[5] = new vertex(-sx, sy, -sz);
v[6] = new vertex(-sx, sy, sz);
v[7] = new vertex(-sx, -sy, sz);
// initialization of the faces
f = new Array();
f[0] = new face(0, 0, 1, 2, 3);
f[1] = new face(1, 2, 3, 4, 5);
f[2] = new face(2, 4, 5, 6, 7);
f[3] = new face(3, 0, 1, 6, 7);
f[4] = new face(4, 0, 3, 4, 7);
f[5] = new face(5, 1, 2, 5, 6);
};
// ################################################## ##
// -- © 2002-2003 Grigory Ryabov.
// -- http://www.flash.plux.ru
// ################################################## ##
this.onEnterFrame = function() {
var xa = -(cnx-_ymouse)*rad/25;
var ya = (cny-_xmouse)*rad/25;
var sinY = Math.sin(ya);
var cosY = Math.cos(ya);
var sinX = Math.sin(xa);
var cosX = Math.cos(xa);
for (var i = 0; i<=amount; i++) {
v[i].rotateXY(sinY, cosY, sinX, cosX);
v[i].perspective();
}
_root.clear();
// fill the right side face
f[0].fill();
// fill the front face
f[1].fill();
// fill the left side face
f[2].fill();
// fill the back face
f[3].fill();
// fill the bottoms face
f[4].fill();
// fill the top face
f[5].fill();
};
stop();
View Replies !
View Related
Help With Actionscripts
I am designing a game and I have a dynamic text box with the variable named power. Throughout the game the number in this box will rise. For an enemy in the game I will have a health bar that will decline as the enemy gets hit. How can i use the number in the power text box to determine how much the health bar will decline. Please give me an example of a script. It will be greatly appreciated.
Thanks,
Chad Conger
View Replies !
View Related
Help Me On Actionscripts
I have figured out how to use "HitTest".
but I have a game I'm making, and I made an invisable moveclip, and when my player goes on it or "hitTest" it. Then it will move to the next frame and play...
could someone help me wih this problem...
here is my code:
If _root.player, HitTest (_root.object2) then
telltarget "?my movie"
gotostop "56"
but I want to know how do you tell the movie to move to a specific frame?
that only thing I know is how to tell a moveclip to move a specific frame inside of it.
how do you tell the movie to move...
View Replies !
View Related
Actionscripts
How can I trace Fps for the movie with actionscript?
How can I trace Cpu for the movie with actionscript?
I have seen this in other flash movies/games and wonder
how it is done..
View Replies !
View Related
Actionscripts
hello,
i am new at this flash thing. heres the situation. I have a looped from frame, say, 135 to 195 - i.e. the movie plays within these frames. I have written an action script to jump to frame 196 on a button click. simple so far. the trouble is once it reaches the 196th frame, the movie doesnt display anything even though there are clips and objects beyond it.
i have been at it for hours and cant figure out why does it not display the clips beyond 196. help!
View Replies !
View Related
FULL Actionscripts For EVERYTHING?
One quick question for you guys. A guy wants a Flash site where ALL the tweens are in actionscripts. Although I doubt this is possible, (tell me if it is or not) but let's just say it is. Tell me something, as developers, would you want to waste your time writing actionscripts for EVERY single motion tween out there? I mean, really, can someone tell me how much file size (give me a percentage) it would save? I seriously doubt it'd help any more than about a 5% file size decrease, if even that. Oh, and I'm not talking about extreme tweens where things bounce around, etc, I'm talking about your BASIC Flash sites. As a developer, what do you think is optimal as far as doing the least for the most?
Riki
View Replies !
View Related
Sliding MCs With Actionscripts
here's the deal. I have five menu items(buttons) lined up vertically. In front of those menu items I have a MC that magnifies them (covering one item at a time). That part works fine.
I want to be able to click on another menu item and have that button set the Y axis variable so the magnifying MC slides along the y axis to the click item. Sliding being the part I can't make happen. I've found similar examples in Flash 5 but I need to do this project in Flash 4. And am have had no luck converting the code. Does anyone have a flash 4 example they could share?
Any help you can offer is greatly appreciated.
-feeling very mini
View Replies !
View Related
How Do I Consolidate These Actionscripts?
What is the best way to consolidate all of this? I apologize for the length of the post.
_root.resumeButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.resumeButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.resumeButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.resumeButton.onRollOut = function() {
this.gotoAndStop("_up");
};
_root.bioButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.bioButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.bioButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.bioButton.onRollOut = function() {
this.gotoAndStop("_up");
};
_root.dirButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.dirButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.dirButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.dirButton.onRollOut = function() {
this.gotoAndStop("_up");
};
_root.shakButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.shakButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.shakButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.shakButton.onRollOut = function() {
this.gotoAndStop("_up");
};
_root.proButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.proButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.proButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.proButton.onRollOut = function() {
this.gotoAndStop("_up");
};
_root.masterButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.masterButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.masterButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.masterButton.onRollOut = function() {
this.gotoAndStop("_up");
};
_root.physButton.onRollOver = function() {
this.gotoAndStop("_over");
this.swapDepths(2);
};
_root.physButton.onPress = function() {
this.gotoAndStop("_down");
};
_root.physButton.onRelease = function() {
this.gotoAndStop("_up");
};
_root.physButton.onRollOut = function() {
this.gotoAndStop("_up");
};
View Replies !
View Related
PageFlip From Actionscripts.org
hello.
im disecting the PageFlip file from ActionScrits.org Originaly from Pixelwit.com
Look exelent BUT ive been trying to code a sort of menu that appers on the second page of the book or even outside of the actual book that jumps say to the 3rd 2nd or 5th page but still keeps the order when u flip back or forward from that page.
But with no sucsess.
Could some one take a look @ the attached file "the attached file is the original from pixelwit.com as my file is to large to upload here.
and also i would post my code here but i exeeds the character limit of this board some thing like 150000 characters.
Thanks.
View Replies !
View Related
Problem With Actionscripts
I am making a brickles-type game for fun and I have run into a problem. The ball can't get the _x and _y or any other value of the paddle. I am sure it is just some simple problem with how I worded it:
if (paddle._y <= _y) {
}
That should do something when the paddle's y value is less than the ball's y value. It doesn't.
Even doing this:
trace (paddle._y);
doesn't work. Therefore I think I worded it wrong. What do you say instead of "paddle._y" to get the y value of the paddle?
View Replies !
View Related
DuplicateMovieClip And Actionscripts
Hi,
i created a matrix of squares with the function duplicateMovieClip and set some properties on the duplicated clips.
This is the code that does it:
Code:
amount = 100;
perrow = 10;
counter = 0;
while (amount>0) {
duplicateMovieClip (square, "mc"+i, i);
if(amount % perrow == 0) {
FromTop = FromTop + 10;
counter = 0;
}
setProperty ("mc"+i, _x, counter * 10);
setProperty ("mc"+i, _y, FromTop);
setProperty ("mc"+i, _alpha, 100 / counter);
i++;
counter++;
amount--;
}
Now I want that when someone rolls over one of the duplicated clips, this clip will get other properties (width, height, alpha, wathever)
I also want that every time a movie loops (onClipEvent(enterFrame) ) it changes the alpha of that clip. In that way I want to create a kind of "wave" in the alpha values of the squares.
I hope this make any sense ?
Thankx for the help,
kGP
View Replies !
View Related
Actionscripts Along The Timeline
If I have a actionscript at frame 1 (just a on(press) action) and then I put a different actionscript at frame 50, it seems that my button doesn't work anymore after frame 50, unless I repeat the original on(press) script at frame 50.
Make sense?
View Replies !
View Related
Button Actionscripts
I really suck at actionscripts, especially in Flash. I'm not very good in the program and I have made this website which uses different scenes for different pages. You can surf throught the scenes with a menu. Everything is ready but the problem is that I have to connect the buttons to the scenes. Which actionscript do I need?
And do I have to use a 'stop' in every scene?
Thanks in advance
Nepeace
View Replies !
View Related
|