ActionScript 2.0 :: Stopping MC On Contact With Wall?
Feb 28, 2010
use a hitTest, but I can't seem to change the value of moveSpeed (my variable for... well, speed).Here is the script without my failed attempt:
Code:
onClipEvent (load) {
moveSpeed = 6;
[code]......
View 9 Replies
Similar Posts:
Dec 10, 2003
[URL]
This is the URL for an awesome game. I have decided I would like to extend my flash knowledge by making a game like this. Now I have the movement downpat, but using hittests, thats how to create the game so you can not walk in certain places/areas. how to use hittest and give me the code for stopping movement when you hit a wall.
View 2 Replies
Sep 26, 2008
the source files work perfectly when I upload them to my server - but when I insert the form into my flash website - I am unable to receive the contact email at all. The problem must be with the flash file becuase I have not altered the php (except to send to my email)
I am using Flash CS3 (but publishing for action script2) I have double checked all my input field sare named correctly with var_names that match the php code. The form fields have been created as a moviclip named "form" and the following action script attached:
[Code]....
View 7 Replies
Feb 18, 2009
I want it to while still easing into place like the iphone does. For example my stage is 550px. The drag and throw MC is 1650. That's 550x3. If the first image is showing starting at x axis 0 and you drag to the left it will ease into place stopping and showing the second image stopping the image at x axis 0. And the same thing scrolling to the next one and scrolling back. So the code is below and I've attached the movie that I'm working on.
[Code]....
View 8 Replies
Dec 25, 2011
flash pro. as 3.0.animation . almost no codes except ends of scenes having :
import flash.media.SoundMixer;
if(SoundMixer.areSoundsInaccessible() == false)
{
SoundMixer.stopAll();
}
[Code]...
i got this scene, with this specific bgm , individual frame layer. and the sounds at another layer. what i want is to stop the sound without stopping the bgm . (yes, i know the above code wouldn't work as it stops all sounds)
View 1 Replies
Jan 7, 2012
I am making a character walk. This code will make him wobble to the right and when thats done it will trigger him to wobble to the left and then call the function again to continue the loop.I can get the loop to work fine by calling the function but how do I STOP the function? Also I want to call it later on. Is there a way to start and stop a function?
function wobble()
{
var ws = .1;
var dis = 1;
[code]....
View 2 Replies
Nov 20, 2011
I'm trying to make it so that when the ball hits the wall, it bounces off of it.. this is my code
Actionscript Code:
var elastic:MovieClip = _root.createEmptyMovieClip("elastic", 1);var point1:MovieClip = _root.attachMovie("sling", "point1", 3, {_x:50, _y:200});var point2:MovieClip =
[code].....
View 3 Replies
Dec 18, 2009
i have one ball and one rectangle in my fla file. i have finish to move ball using arrow on keyboard. but i want to check the collision when the ball hit the wall. i just can check the collision on the right side of the wall, the collision isn't work on the left, bottom and the top side of the wall
View 8 Replies
Dec 10, 2011
I'm writing an app for Android using Adobe AIR 3.0 and facebook action script 3 sdk to enable user social experience. I can't call facebook methods using ExternalInterface, so I have to make all request using GRAPH api. [URL]
So, working with this SDK, provide me with code example how can I post to users wall (text + URL link + image) using:
1) app requests
2) streamPublish.
View 1 Replies
Apr 2, 2012
I'm trying to learn how to get my own facebook & twitter wall status into flash so that I can export it out and install it in my iPhone.After reading the facebook and twitter API documentation, I'm still very confussed on how to use them.
View 1 Replies
Nov 18, 2011
Is there any tutorial how to make a wall which is not straight
View 6 Replies
Jun 9, 2009
I'm trying to place the 3d photo wall inside a container mc to enable a full-screen scroller also. I get the repeated error "1120: Access of undefined property con.
View 1 Replies
Jan 24, 2007
I have this following situation.Basically, I want my balls to move around a border and bounce off the walls when it hit the walls.
[code]...
View 3 Replies
Apr 26, 2010
I have created a flash AS3 file with two movieclips. One is a ball (ball_mc) and a wall (wall_mc). The ball bounces around off the outer walls of the stage, in horizontal lines.
The ball also changes direction if it bounces off the wall. However its not bouncing off the wall in the right direction?
Code:
var dx:Number=3; //the amount the ball will move horizontally each frame
var dy:Number=5; //the amount the ball will move vertically each frame
this.addEventListener(Event.ENTER_FRAME,moveBall); // call the function moveBall every frame
[Code].....
View 6 Replies
Apr 12, 2005
below is the code I am useing I have created a simple frame with 2 layers one named body and one named Code in the code frame I have
[Code]...
In the body I have 4 walls all named top bottom right and left they are movies and they are named in there instance the same I have a circle I named ball and made it into a movie and named it ball yet when I run the flash file the ball flys off the page and doesnt bounce inside the boxes?
View 7 Replies
Oct 30, 2009
I like to create a Flex application, an image gallery, which comes like 3D wall. How can I do that? Is there any examples available?
View 2 Replies
Nov 24, 2010
I got Facebook to work with Flash as I wanted it to using the Facebook-Actionscript-Api. Works great and I got get Graph api working so that I'm able to post stuff to ppl's walls using the Facebook.api("/me/feed") post stuff without asking the user permission, as it's already got that permission, and it's great for many occasions. But not all.
View 1 Replies
Dec 23, 2010
I have been asked to design an LCD wall application for a display like the one in this ad. Requirements are that the wall can display full screen video or partition the wall in different sections to display multiple video or images and video. I would like to understand what platform can be used to drive such beasts (what OS? what video card?). I wonder what software platform can drive multimedia on such a scale. Html5 + JavaScript would be OK on a single monitor, but on that scale would it slow down? Flash also is an interesting platform, as it is Air, but, once again, can it scale like that?
I am also considering the server architecture that is needed to drive a set of walls in the same location and the slideshow designer to create storyboards, but this is dependent on what client architecture will be embraced.
View 1 Replies
Feb 6, 2011
How do I add a widget to Facebook wall? So when a user clicks on wall post, it gets opened there only, like YouTube video/audio.
It's certainly possible, as Slideshare app [URL] does it.
And, I see that it's a Flash component. I have an iframe (Javascript/html) widget.
View 1 Replies
Jul 31, 2011
Can I get the user wall status in Facebook using as3? Using me/feed/...something ?
View 1 Replies
Dec 15, 2011
In the comments of this question, users have commented that it's possible to insert a Flash applet into a Facebook wall post. I was under the impression this isn't possible without making a FB app.
I'm aware that FB will convert links to various media types - e.g. a link to a MP3 becomes automagically a SWF MP3 player, but the Flash applet used is chosen by FB's internal logic, not by the content of the post. Is it possible to embed a SWF applet of your own choosing?
As I haven't been able to find any documentation on this, has anyone else? Or, do you have some PoC code that does this?
View 2 Replies
Feb 29, 2012
I'm absolutely new to programming and just managed to learn the basics of ActionScript 3. Now, I would like to learn how to post on my Friends' Walls via the as3 SDK using the UI class (taken from a nice Tutorial):
[Code]...
View 1 Replies
Mar 19, 2012
Is posible to build a site like youtube, that when is shared in facebook users can run the app (in this case the video player) in the user wall without enter to the youtube page. if is posible, this is only for videos?... can i get an interactive app, like a game do the same. this can be only achieved using flash? or there is any way to do it using HTML5?
View 1 Replies
Jan 4, 2010
Imagine loop that contains a ball_mc that bounces off walls for how ever long the loop. I am asking what the math part would be to make the ball_mc bounce off at the correct angle and such.
View 1 Replies
Dec 9, 2010
So how to stop others videos in a Video Wall when clicking another video?
I'm having a video wall, which was created with a for loop so that every i a new VideoPlayer instance was created. The source was inputed through XML.
Code:
for (var i:int = 0; i < 3; i++)
{
video = new VideoPlayer(source);
this.addChild(video);
}
When I click the play button the clicked Video is playing great. And when I click another video on the wall it also starts playing. BUT HOW can I stop the other video(s) when another is clicked?
I know I need to kinda get access to the Netstream of all other videos and close them
Code:
netstream.close();
I tried is with a Custom Event inside the VideoPlayer class:
Code:
this.addEventListener(PlayerStopEvent.STOP, stopVideos);
function stopVideos(event:PlayerStopEvent)
{
[Code]....
From the output panel I can see the stopVideoPlayer function is being launched, but I'm guessing it's being launched only in the clicked video not in All videos, even though the code is in the VideoPlayer class.
When I tried using a timer event, to close the netstream after 5 seconds it worked for all videos.
How can I make this work? Or make an event similar to the timer event? Access the netstream for all videos?
View 5 Replies
Feb 8, 2009
I'm making a game where the ball bounces off several walls to get to its destination: the portal. When the ball reaches a high speed it glitches through most of the walls.Here is my scene for the 3rd level of my game where the most glitches occur (attached file)In the picture there lists all the variables i put in the objects. You will also notice that I put a "Stuck" button since there were many glitches.[code]
View 2 Replies
Dec 12, 2003
make a character jump by using spacebar make a boundry (character can go no further than a wall or something)
View 1 Replies
Jan 9, 2009
I am currently working on a game and I am stuck. I do not know how to make a rounded surface that will act as a wall/barrier. It is pretty much a semi-circle. I know you can make a circle act as a barrier but I would need to use the perimeter of the circle. Also is there a way you can make an actual image a barrier? I am new at this but I know from reading up that making a rounded wall is pretty tough. I am going to use this wall to make a ball bounce or "roll" around it. Below is a picture of what I am trying to do. The black dot is the ball.
View 3 Replies
Feb 26, 2010
I'm using Flashcs3 in AS2.[code]My character gets stuck in walls and slows down trying to get out, also, hes about 10x faster now. any suggestions? Im working on a flash overhead shooter, multiplayer only. and I need the script to work so there can still be a bullet collision on each wall and not to be able to walk through it.
View 6 Replies
Dec 20, 2010
I have this code:
wall.rotation = sp.rotation;
wall.width = sp.width;
wall.height = sp.height;
When I then trace the width and height of both wall, and sp, they are just not the same. Width is the same on both objects, but height is not. height just stays the same. I see that the order in which I set height and widht matters. I don't get this. How do I just set the width and height separately?
View 2 Replies