Help Needed Finding Tutorial In Making Stationary Objects Look 3d
as said in the subject line, I'm looking for a tutorial in making a stationary object look relatively 3d
I'm not talking about moving the camera around the screen or any action scripting special effects
I'm talking about a tutorial that shows me some tips and tricks into creating an object that looks relatively 3d
for example, the 3 in the attached .fla file
I have tried looking on the internet and forums and stuff but either i'm blind or stupid cause all i could find was stuff to do with moving the camera around the screen or using actionscript to do special looking things.
ur help will be greatly appreciated
FlashKit > Flash Help > Flash General Help
Posted on: 04-02-2005, 04:12 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Detect Keyboard Release / Help Making A Walking Character Return To Stationary Stance
Hi,
Im making a walking character which moves <left> <right> <down> <up>. Im using a simple button which looks at which key the user is pressing and getsproperty for the correct action. Its all very nice until i found out i don't know how to make the character return to its normal forward stance.
Is it possible that on a button i can detect a keyboard release, or somehow insert the button (which has all the actionscript on) into a loop checking for if a key is being pressed?
thanks for your help and time
Jim
Finding Objects In _root
Is there a way to find via Actionscript a list of objects that reside in the root timeline?
I'm think there must be a way to find out say what movieclips or textfields exist in a movie or the root timeline.
Finding Sound Objects
Hi,
I was wondering if anyone had any idea how to find a reference to a sound object in AS3.0.
I am loading in a swf that has a sound object embedded in the timeline. I do not have the fla for that swf. So i cannot set linkage to the library asset.
I need to read properties in that sound object once i have found it
Please, any help or direction would be great. After hours on end of attempts, I am stuck
thank you for any help or insight
devcajun
Finding An Objects Stage
hello,
i'm trying get the stages "Document Class" (_root) of an object in its controller class with the following code:
ActionScript Code:
var targetClass:Class = Object(this.stage).constructor;
but it gives me #1023
what can i do to this?
thanks for any help
Finding Sound Objects
Hi,
I was wondering if anyone had any idea how to find a reference to a sound object in AS3.0.
I am loading in a swf that has a sound object embedded in the timeline. I do not have the fla for that swf. So i cannot set linkage to the library asset.
I need to read properties in that sound object once i have found it
Please, any help or direction would be great. After hours on end of attempts, I am stuck
thank you for any help or insight
devcajun
Finding Unused Objects
Is there an easy way to find out which objects in the library are no longer being used in a flash 8 movie?
Finding All Channel Objects?
I am working on an audio player that will take a parameter from a web page and play the appropriate MP3 file. Each page in a series of pages calles the same movie. It works but I have a seriouis problem with the code. If the user navigates to the next page while the current page is still playing the audio, the new audio is played on top of the older clip. I suspect that each time the same movie is called, a new SoundChannel object is being created.
I'd like to come up with a function to search all current objects that are not in the display list and issue a Stop command to all existing SoundChannel objects.
Does anyone know if it is possible to write a function to do this? Have you written such a function? I can't come up with any other way to stop the currenlty playing audio automatically. I can't rely on the user to stop it manually...
The SoundMixer.stopAll(); doesn't work, I've tried it. :-(
TIA
Peter H.
Finding Objects Within Area
Hey guys,
I need a method of finding all the objects over the top of another object...
I realise I could use hitTest to check if something is intersecting, but I can't use it to find the names of the said objects.
I also realise I could just cycle through all the objects on the stage and calculate it that way, but considering there's over 300 objects that could 'possibly' be covering this particular object, thats a lot to calculate, and i'd like it to be snappy...
Any ideas? Is there something already avaliable that i've been missing?
Cheers in advance for your help...
Finding Sound Objects
Hi,
I was wondering if anyone had any idea how to find a reference to a sound object in AS3.0.
I am loading in a swf that has a sound object embedded in the timeline. I do not have the fla for that swf. So i cannot set linkage to the library asset.
I need to read properties in that sound object once i have found it
Please, any help or direction would be great. After hours on end of attempts, I am stuck
thank you for any help or insight
devcajun
Finding An Objects Center Point
How do I find an objects centerpoint to make it's _xscale & _yscale change from the center instead of from the upper-left side?
So far I've gotten this far, I'm not a math whiz, that's for sure:
halfX = this._width / 2
halfY = this._height / 2
this._xscale = (this._width + _xmouse) - halfX;
this._yscale = (this._height + _ymouse) - halfY;
Finding An Objects _x And _y According To Its Position On Stage
Hey I was wondering if anyone knows how to find a target objects _x and _y value according to the stage... while that object is located within another movie...
i've tried something similar to this
Code:
with(_root){trace(this._x)}
but it doesn't seem to work...
Help Finding A Tutorial
Hi all,
I once saw a tutorial here that could be really helpful on a current project but for the life of me, I can't find out where it is!!! If someone could help me, I would be so greatful.
It was to show how using buttons you could manipulate what was in the main screen. God, Im so bad at explaining things! Here look, I drew a picture of what it looks like. Hopefully this will jog someones memory.
Finding A Tutorial
Hello.. theres a tutorial in kirupa that i can't find, it involves pics and when you rollover the pic, it fades out a nother new pic fades in very cool. hope you now what i am talking about !
Thanks.
Finding A Tutorial
Hello.. theres a tutorial in kirupa that i can't find, it involves pics and when you rollover the pic, it fades out a nother new pic fades in very cool. hope you now what i am talking about !
Thanks.
Help Finding A Tutorial[MX04]
firstly i appologise if i have placed this thread in the wrong part of the forum.
I want to be able to draw the outline of an object and i want it to be animated. so it looks like its being drawn in real time but you dont see the pencil drawing the line (sorry if im rambling).
I would be grateful if anyone could point me in the direction of a tutorial that could help me with this.
Help Needed In Finding The Angle Between Two Lines
I'm doing a project, and I need help to do the following...
I create a line first by clicking first and a second point. Then I create a second line by clicking on the second point of the first line and second click somewhere else. Now can I find the angle between those two lines?
Making/finding A Flash Calendar
I'm sort of new to Flash in the sense that I don't know many complicated techniques. I'm a print designer by trade, but I'm trying to learn, and what I'm trying to do is find a way to create an 'events calendar' in flash that is updatable by the client, by updating a text file, etc. on their end.
Is this even a realistic question?
I haven't fully comprehended the extents of flash.
Help Finding Dynamic Scroll Tutorial?
Hi,
Im new to flash, and ive been searching the web for any help on getting started.
I need a vertical scroller that takes its text from either an ordinary text file or directly from a mysql database.
Then i need the content to be updated every minut.. so if there is any new tags it will include thoose to the scroll.. make any sense?
Could someone please point me in the right direction?
Thanks
Cosmodk
Finding Values In An Array Tutorial
Hi all,
Firstly im new to strings/arrays and dont erally get the difference, forgive me if i sound silly
i was looking at the tutorial Finding Values in an Array here
and was wondering if i could replace
Code:
dataValues = [10,9,8,7,6,5,4,3,2];
with a string value thats is read from a text box eg,
Code:
dataValues = [myStringValue];
. myStringValue holds
Code:
"1,2,3,4,5,6,7"
and only finds it if i type in the full value, how do i get it to find each value seperatley after each comma? Everytime i try that it doesnt work correctly.
Could someone please help me out
Thanks
[F8] Finding The Unique Identifier Of A Mc And Making Into String
I'm making mcs by attatchMovieClip and appending a number (1,2,3 ect.) to the end of the name. Is there any easy way to take that number and put it on the end of another mc's identifier that I create after that? Seems that if I tried I'd get the whole _level10.blah.blah.blah1 thing. Is there any easy way to just get "blah1" string?
Hope that makes sense, any help?
Gallery Tutorial Finding ChangePhoto Function
i went through the sabreeners tutorial and my gallery mc worked alone fine...but when i put the movie clip into another movie i was not able to control the gallery mc. my arrows are in the main mc rather then the original gallery mc. i not sure how to find the path to the changePhoto function so that the arrows will work outside the gallery mc in the main mc. please help..
Gallery Tutorial Finding ChangePhoto Function
i went through the sabreeners tutorial and my gallery mc worked alone fine...but when i put the movie clip into another movie i was not able to control the gallery mc. my arrows are in the main mc rather then the original gallery mc. i not sure how to find the path to the changePhoto function so that the arrows will work outside the gallery mc in the main mc. please help..
Making Or Finding A Flash Image Selector For A Form?
I want to start selling custom made clothing online where people can choose the style, fabric, color, shape, etc in the order form. Many of the options will be pictures they just have to click.
Are there any templates/tools like this that I can download from the internet? So far I didn't find anything.
If not, how long of a project would this be if I learned some flash and did it myself. Right now I know nothing about creating flash websites, but I am very interested in learning flash.
thanks,
Perry
Finding Width Of Externally Loaded Image, Making It A Variable And Doing Stuff...
Hello,
All help very very much appreciated!... This is very much a learning curve for me...
I'm doing a fade in fade out slideshow, it all works fine. The images are loaded externally. Basically I'd like to know if there's a way of getting what the width of each externally loaded image is, assigning it to a variable and then that dictates where the title of the image is displayed... but I'm not that clued up!
Each image has a different title - I've done a "createTextField" which changes every time you press a button. The text in this image is right aligned (with the image), but some of the images are different sizes, so it would be really nice to automatically get the width of the externally loaded image, rather than find out what it is manually and then work out where x position of the type needs to be (so their aligned properly)... plus in the long term it would be quicker to update with new images...
errr, I hope I'm making sense and I'm not sure I do! Again, all help would be appreciated.
I think its something along the lines of....
(Stage width - width of text field) - (Stage width - width of externally loaded image) = x position of text field if its to right align with image.
Many Thanks,
here's a sample of some of the actionscript...
_root.createTextField("mytext",105,125,428,300,100 );
mytext.text = "TITLE OF IMAGE 1";
mytext.embedFonts = true;
myTextFormat = new TextFormat();
myTextFormat.font = "Arial";
myTextFormat.size = 11;
myTextFormat.color = 0x000000;
myTextFormat.align = "right";
mytext.setTextFormat(myTextFormat);
textInstance.setTextFormat(myTextFormat);
container_mc.loadMovie("images/1.jpg");
function fadeIn() {
var MyfadeIn = new Tween(container_mc,"_alpha",Strong.easeOut,0,100,3 6,false);
}
function fadeOut() {
var MyfadeOut = new Tween (container_mc,"_alpha",Strong.easeOut,100,5,20,fal se);
}
buttons_mc1.one_mc.onRelease = function() {
new Tween (container_mc,"_alpha",Strong.easeOut,100,0,20,fal se).onMotionFinished = function(){
container_mc.loadMovie("images/1.jpg");
fadeIn();
}
mytext.text = "TITLE OF IMAGE 1";
mytext.setTextFormat(myTextFormat);
}
Making Objects Go Behind And In Front Other Objects
Say I wanted to tween something so that it like rotates around it.
IE: a moon rotating around a planet, an electron orbiting a nucleus
How would I make the orbiting object go in front and behind the stationary object?
Stationary Carousel
I would like the carousel to be stationary and when you click on a picture or mc that it comes to the front (if mc play that mc). Than when you click on it a second time it will do what the carousel would normally do when you click on the picture now (go to the holder) and move to the side like in the carousel tutorials. I do not want the carousel to move based on the movement of the mouse. Kind of like this one at Adobe http://www.adobe.com/products/photoshop/family/?promoid=BPDEK thanks for any help that anyone can provide.
This based on the tutorial by Lee Brimelow at www.gotoandlearn.com which I am able to load swf files instead of text. Please help.
Stationary Cursor Following
OK..So I want to create an mc or something in the upper left corner of a page that acts like a compass. So that where ever your cursor is on the page the arrow on the "compass" points to it. Is there a fairly simple tutorial for this is can someone help me with the AS. (basically cuz Im retarded when it comes to AS). Thanks.
Reflect Of A Stationary Circle
Im working on a baketball game in which you drag and arrow in the distance and direction in which you wanna shoot, and the thorw it.
I can't figure out how to calculate the direction at which the ball would come off of the back/front rim of the basket.
So basiclly what im looking at is collision detection amung a moving circle and a stoped on, so i can't swap move values like i've seen in some of the tuts and submissions here.
Any ideas are great. Thank You.
[CS3] Stationary Mouse Follow
I am trying to create a tv remote control, with a mouse following thumb. I do not want the thumb to always follow the mouse, only when the mouse is over the remote. The thumb should also be stationary, or attached to the hand at all times. Is this possible, I believe it is. Can someone please help?
Stationary Object Within The Carousel
Hello,
I was wondering what would be the best way to add an object within the carousel. Basically, I would like to create the carousel so that it looks like it is spinning around a stationary object.
Any help would be appreciated!
Thanks!
Moving Buttons - Stationary Text
I am creating a simple interface that has several buttons for navigation. I want to create a behavior that displays a description of the button when you mouse over. Simple enough using the "over" state. However, once a button has been clicked, it slides to a new location on the screen. I want the descriptions for all buttons to always be in the same location regardless of where the button has moved. I'm guessing that this could be accomplished by setting up a text box that displays some variable and that mousing over the buttons changes the variable. Am I close? I have not yet dealt with action script so I am not sure where to start.
Thanks in Advance!
-Tex-
Buttons Not Stationary At Movie Start?
Can someone please have a look at this fla file. It is a compilation of borrowed scripting and customization but I for the life of me cannot figure out why the buttons fly in from the left of the movie when it starts. They should just be stationary in one place.
Please help me!?
Creating A Stationary Pop Up Video On A Web Page- Help
I am working on a web site for my company and we specialize in creating a lot of internet videos. I really want to create an effect where one of our videos can pop up on top of our web page with a transparent background and play through without moving as people scroll. The model I am using is on jokeland.com for a better idea of what I am talking about. Any help would be greatly appreciated. Thanks!
Dynamic Objects Help Needed
Goal:
To create animated objects that move dynamically
For example:
I have 2 rectangles, red and blue. Their y positions on the stage are -100. Their vertical sizes are both 100.
I have 2 buttons, red and blue. When the user clicks the red or blue button, I want the respective rectangle to move to a y position of 100. Upon clicking a second button, I want the rectangle currently at 100 to move back to -100, and then have the new rectangle move to 100. If the same button is clicked twice, the respective rectangle will toggle between moving up and down. The only two static positions for either rectangle are 100 and -100. The effect is that never will both rectangles be visible at one time.
I have struggled with this for a few days now and have not solved it perfectly. I would appreciate anyone's advice with this problem. Email me at kbarnoski@yahoo.com if you want any of my less than par attempts. Thanks in advance!
Two Objects Collide Help Needed
Hello!
I am putting together a fighting game sort of thing. And the way I figure Im going to do it is that I put squares underneath the actual images where the fists and feet should be and then bigger squares for the bodys.
These shapes follow the images depending on what key the user presses.
what I want to do is have it so when the shapes collide it will que an event to occur. i.e. the health will lower of the player.
I dont know how to make this happen - Im sure its something to do with _x and _y functions but I dont know what - anyone have tips?
Also how do I set up boundaries? My character can walk back and forth on the screen but he can also go off screen and I want to stop him from doing that- again Im sure its another very simple script that has to do with _x .... thanks a lot!
ALex
Making Objects Spin...?
Hi there,
I would like to make a square spin on an axis.
i can make it rotate but i want to make it spin clockwise like some of the globes on the web do. except mines a 2d square...asking the impossible? im fairly new at this so the more simple the way to do this is ... the better.
Thanking you in advance
kam
Making Objects Snap
I have a childrens collage program that basically is a FLASH Mr. Potato head. you have a figure on the stage and a list of items ie, nose, hair, lips, eyes and so-on.
The problem I am having is I want these objects to snap into place or be able to snap to another object for example I have a set of eyes on the stage and I want to add glasses I would want the glasses to snap to the eyes so they are aligned correctly...
Matt
Making Text Go Around Objects
Is there anyway to make text automatically form around a picture or other object. To give you another idea of what i'm talking about, i want to know if flash can form text around picture like in microsoft publisher. Where if you have a picture and you have a text box around it text will automatically go to the edge of the picture.
Making Objects Solid- Please Help
Hi! I'm new to flash, and I have made some simple things. I am trying to make a game, and am having trouble with ActionScript- I have movement of my "player" down pat but how can i make things like walls, obstacles etc?
Here is what I have so far, if it helps.
My simple flash
Making On/off For Objects - Urgent
hi,
I am making a layout template in flash, and i needed the layout to be visible and invisible using a on/off switch..could any one help in telling me the steps to do this...im new to action script.!
Let me know guys
max
Making Objects Pause
I have a simulation with characters running around in a tile based game.
What i needed to do was for when a character collided with another object, they would pause for afew seconds before carry on their normal movement.
How can you pause certain objects or movieclips on the spot for a number of seconds?
Many thanks
Making Objects Draw?
Hey all, I'm a newb at AS 3.0 but learning pretty fast. I know how to draw with AS and have recently completed my first drawing, a pencil (told you I was a newb). I have the pencil moving with the flow of the mouse via an Enter Frame event.
What I would like to do is have the pencil draw lines when I press down on the mouse. Is this possible? And if so how would i go about doing it?
Thanks all, looking forward to working with you all from here on out.
Making Objects Move
Hello,
I have the following code:
ActionScript Code:
package{
import flash.display.MovieClip;
import flash.events.*;
class tower_defense extends MovieClip{
var lives = 20;
var waypoint_x = new Array(120, 120, 66, 66, 248, 248, 150, 150, 433, 433, 352, 352, 510);
var waypoint_y = new Array(215, 94, 94, 30, 30, 262, 262, 331, 331, 222, 222, 140, 140);
var delay = 35;
var new_monster = 0;
var monsters_placed = 0;
public function tower_defense() {
addEventListener(Event.ENTER_FRAME,main_lvl);
}
public function main_lvl(event:Event){
if (monsters_placed<25) {
new_monster++;
}
if (new_monster == delay) {
monsters_placed++;
new_monster = 0;
var min:minion = new minion();
min.point_to_reach = 0;
min.speed = 1;
min.x = -20;
min.y = 215;
min.addEventListener(Event.ENTER_FRAME,minion_enterframe);
addChild(min);
}
}
public function minion_enterframe(event:Event){
var current_minion:minion = (event.currentTarget as minion);
var dist_x = waypoint_x[current_minion.point_to_reach]-current_minion.x;
var dist_y = waypoint_y[current_minion.point_to_reach]-current_minion.y;
if ((Math.abs(dist_x)+Math.abs(dist_y))<1) {
current_minion.point_to_reach++;
}
var angle = Math.atan2(dist_y, dist_x);
current_minion.x = current_minion.x+current_minion.speed*Math.cos(angle);
current_minion.y = current_minion.y+current_minion.speed*Math.sin(angle);
current_minion.rotation = angle/Math.PI*180-90
if(current_minion.x > 500){
removeChild(current_minion);
lives--;
//_root.path.lives.text = lives;
if(lives == 0){
// game over
}
}
}
}
}
and i have the 2 objects, minion and the background (which is just on the main scene)
Now my problem is that, when i compile it (gives no errors) and run it. It just doesn't do anything. Did i do anything wrong with the listeners? (I ported it from AS2 as i want to learn AS3)
Many thanks, Smurf Minions
Making Objects Fade Out
So I am really new to actionscript 3.0. I have been programming for about 4 years now. Anyway, I have a very simple question. I have made a movieclip (represented by a circle on the stage) and I want to make it fade, so I used this code: (note that i named the instance ball)
ball.alpha = 1;
while(ball.alpha > 0)
{
ball.alpha-=0.01;
}
So anyway the problem with this seems to be that it waits until the whole section of code has to run before it refreshes the screen, which makes sense. So what I need to know is if there is a simple way to force the drawing after ball.alpha-=0.01;. Maybe something like:
while(ball.alpha > 0)
{
ball.alpha-=0.01;
StageDraw();
}
Remeber I am new to Actionscript. I understand coding in other languages, but even making a variable in Actionscript seems unnecessarily long and overcomplicated.
Making An Objects Array...
Hi, first of all sorry i'm asking many questions, I want to make an objects array. I made somthing like this:
---------------------------------------
var all:Array = new Array()
var xx:Object = new Object()
xx.age = 5
all.push(xx)
xx.age = 6
all.push(xx)
trace(all[0].age)
trace(all[1].age)
---------------------------------------
but the output was 6 & 6 so the first value also changed : ,, is there another way to do this using the same idea ?? i need this because i need to change the propertise of an object and push it into the array,, and then change the propertise of the same object and push it again,,, plzzzzzz i need this,, how to do it ???? thaaaanx
|