Jumping Aroung In Flash / ?
Hi,Is there a way to jump to the middle of a flash website without having to go to the start page and then move through the website?For example, I want to be able to sent a link to specefic information contained in my website without the person having to go to the main or starting point and then work there way through the website. To sum it up I want to give a link to something other then the main website page...is this possible?Thanks,Scott
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-16-2007, 02:39 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving Aroung A Map
This code is driving me crazy:
Code:
screen_x = 230;
screen_y = 133;
map_width = 670;
map_height = 311;
ini();
function ini() {
poz_x = -(map_width-screen_x)/screen_x;
poz_y = -(map_height-screen_y)/screen_y;
}
function mapmove() {
this.onEnterFrame = mapmoveloop;
}
function mapmoveloop() {
map._x = map._x+(_xmouse*poz_x-map._x);
map._y = map._y+(_ymouse*poz_y-map._y);
}
Basicly it controls the position of a movie clip based on the postion of a mouse.
But it only works when the pointer is in the upper-left corner, and not in the maps original position.
how can I fix that?
Here is the SWF
http://www.hunter.cuny.edu/icit/trc/su-temp/test.swf
PS. This code is on the movie clip
Code:
on (rollOver) {
_parent.mapmove();
}
Flash Jumping On Click
I'm having a irritating problem:
In my flash(5) movie I have a few links and they link to different html pages with the similar swf file embeded on them...the problem is when i click on a button, it goes to the required page but jumps up and left...when I "refresh" the page it gets back where it should be.It is very annoying and I've already tried everything in the html code but it keeps doing the same #&%@=?%& thing...
Help! I've alredy ate half of my keyboard...
Thanks
Jumping To Anchor From Flash
Hello,
Please somebody help.
I'm trying to make the browser jump to the top of page when particular button pressed inside the flash movie.
So, I defined the anchor inside my HTML page: ... <a name="pagetop"> ...
And inside the code for the button I tried:
1. ... getURL("#pagetop"); ...
2. ... getURL("index.html#pagetop"); ...
but all of these are making the page to reload
So how do I make this work properly without reloading - only jumping.. ?
Thank you!
Jumping To Anchor From Flash
Hello,
Please somebody help.
I'm trying to make the browser jump to the top of page when particular button pressed inside the flash movie.
So, I defined the anchor inside my HTML page: ... <a name="pagetop"> ...
And inside the code for the button I tried:
1. ... getURL("#pagetop"); ...
2. ... getURL("index.html#pagetop"); ...
but all of these are making the page to reload
So how do I make this work properly without reloading - only jumping.. ?
Thank you!
Jumping In Flash Animated Gif
I create a simple animated gif (image starts as alpha 0% and in 5 frames goes to 100%). When I play the animated gifs back it jumps about. I have tried different settings with no change.
Any ideas? Many thanks.
Jumping Flash Movie.
Hi
I have come across a problem that has me a little confused. I have a php webpage that has a flash gallery. Gallery works perfectly.
But when I click to go to another page the flash movie jumps up about 50px. This problem is happening on two different website using two completely different galleries.
The web page uses master pages but I don't think that should cause a problem.
Can anyone make a suggestion as to what might be causing the problem.
Regards
Jen
Is There Any Jumping Statement In Flash AS
Dear & Dearest
I want 2 know whether there is a facility to jump from one line to another line in actionscripting ...... if so then tell me how ? with one simple example or if not so then please provide any alternate way to jump ...... in AS
cheers
sundaram
Music Jumping In Flash MX
Hi,
I recently downloaded this tutorial:
http://www.entheosweb.com/Flash/flash_sound_button.asp
I find that when I visit three or more pages on my site the music starts to jump.
Does anyone know what is going on and what I need to do to make it stop, any input would be appreciated.
Thanks
Sam
Flash Help - Jumping Scene
I have created a movie that is supposed to load a movie clip for transition purposes and then automatically move on to another movie without the user clicking on a button. At the same time I have created an external preloader using the "myMCL.loadClip." I have been successful in loading the transition (that's easy enough) but not to load any other movies using the external preloader. I am trying to avoid running an internal preloader per movie, hense the external preloader, but it's not working. I tried "_level0.myMCL.loadClip("movie.swf",_root);" where level 0 the preloader loads but the rest is not happening.
Any thoughts on this one? Thank you.
Is There Any Jumping Statement In Flash AS
Dear & Dearest
I want 2 know whether there is a facility to jump from one line to another line in actionscripting ...... if so then tell me how ? with one simple example or if not so then please provide any alternate way to jump ...... in AS
cheers
sundaram
Flash Jumping When Published
Hi all.
I have created some text in flash that fades in and out using motion tweens.
Everything works fine until I test and publish the file, and the the fade affect is not present.
The movie appears to jump to the keyframes.
This ocurs no matter what format I publish it in. e.g. executable, flashmovie or html.
I know this isnt my flashplayer because I have others that I created which are functioning perfectly.
Can anyone help...
Flash Jumping Out On Html Pages
hey i was on espn the other day reading a article when all of a sudden a puck comes outta the screento make it look 3d, how did they do it when i didnt see a container for a swf movie,os this a new feature in mx any tutorials on this
Flash Jumping Out On Html Pages
Can u tellme how this is accomplished on this web page.
http://www.weather.com/index.html
there is a nextel ad done in flash on the right where a man jumps onto the page with an umbrella. If the flash is contained in the box how do they make the remainding transparent
Trouble With My Flash Game: Jumping
Okay, I've been working on a project in Flash: I'm remaking Super Mario Bros. Anyway, I've been having trouble making him jump. I tried the following using an if statement to gradually add to the location of the movie clip, but that just crashed flash over and over again. If anyone has any suggestions, please, tell me.
If needed, I can post what code I do have here on request.
Thanks kids.
-Rob
[CS3] Help With Flash Jumping To Wrong Scenes
Hey guys,
I was just wondering why my flash file is jumping to the wrong scenes. The buttons are pointing to the correct scenes, but it just aint working!! Here's the file...
https://rcpt.yousendit.com/633767440...a5ca3adb8314a0
In the main window, I'm using buttons nested within a MC and code pointing to the nested buttons. It will then jump to completely different scenes than where I wanted it to point to!! It's not happening to all the buttons, but the images button definitely isn't working.
Any help would be greatly appreciated!
Jumping Between Published Flash Movies
I am trying to create my own personal website in Flash to showcase my talents. After I create the Flash File, I then Publish it as HTML so that it goes faster for the user online.
Right now I have two Flash Files:
The first Flash .fla is my interactive Resume menu - contains options (like Objective, Education, Experience etc..)
The second Flash .fla contains one of those options (for example: Objective)
My question is this: If I publish both files from Flash to HTML, is there any way for a button in my Objective.fla to target a specific frame in my Menu.fla?
My ultimate goal is to be able to jump back to the Resume Menu frame from the end of the Objective.fla flash file.
Thanks,
Nathan
Jumping Frames In Flash 8, And Some Other Things...
hi all,
What I'm trying to do is, when a button is released, have the playhead play for 10 frames, and then on the 10th frames, jump to a specific frame. can anyone help me? I'm not a programmer but I am somewhat familiar with the program.
thanks,
val
[help] + Flash Game + 2 Character Jumping
I am busy with a flash game at the moment, I have finished everything EXCEPT for the character movement.
I have 2 characters and a seesaw. When the one character jumps down onto the seesaw then the other one flies up. If you don't understand then take a look at this game...
http://www.cartoonnetwork.com/games...ight/index.html
That is exactly what I'm trying to achieve (only the jumping), but I can't seem to get it right.
I have tried to make a MC of the movement and then have it so that when the user pushes SPACE on the keyboard everything moves like it should, but this doesn't work because it doesn't run smoothly or all in one shot.
Does anyone have ANY idea of how I can achieve it?
I am about to pull my hair out!! I am desperate for help. I would really appreciate it if someone would help me. please!
Jumping To A Different Scene When A Movieclip Is Clicked On - Flash MX
G'day,
I have a movieclip symbol which when clicked on should jump to a different scene, it doesnt.
onClipEvent (mouseDown) {
gotoAndPlay("Scene 2", 1);
}
i placed a brake point at the gotoandplay line so i know the handler is fireing. im guessing theres something wrong with the targeting of the gotoandplay line. I have checked the name of the scenes.
any help is greatly appricated.
Mysterious Frame Jumping In Flash Cs3 Timeline
Hi,
I have designed my personal website using flash CS3. It consists of a number of "pages" which can be navigated to by pushing buttons. When a button is clicked, a short animation takes you via a tween to the desired frame where one finds the particular page's content. There are links back "home" or in this case back to frame #1 on each page. When I test the movie, everything works fine the first time through, but then if I try to revisit a page, it mysteriously jumps from page to page without playing the animated tweens. This only happens after the first time a given button is clicked, and all buttons work one time no matter what order you click them in or if you click one multiple times before clicking a fresh one. When I debug, it says it is playing all the tweens, but it is clearly not. Any ideas about why this is?
Thanks,
Jon
Jumping From Flash Intro To Dreamweaver Site
Hi People,
Hope you can help. I have a flash intro that directs the user 2 ways, either to a flash site or to a html site. When you click the html icon for example, an animation happens (15 frames long). After the flash animation has run I want the intro to then go to my dreamweaver html site. I have tried putting geturl in frame 14 actionscript, but no luck yet.
Any ideas as to why or what I need to do?
Thanks in advance
Karl
Calling Lingo In Flash And Jumping To Wrong Place
Hello all,
I'm working on a Director project that has flash buttons to navigate through a part of it. I'm using this script, in my Flash MX movie, for example:
on (release) {
getURL('Lingo:go to frame "Photo Gallery"');
}
This is all well and good but it seems to behave randomly. In some cases, it links correctly but in other cases, it links to a spot 20 frames ahead of the marker. I went back in and used the frame number istead of the marker name:
on (release) {
getURL('Lingo:go to frame 1940');
}
and it still advanced too far. It's so bizarre.
Has this ever happened to anyone else? Does anyone know how to combat this?
thanks,
jessicuh
Flash 8 Display 'jumping Text' Bug After Blur Filter
I think I found a display bug/glitch with blur effect in Flash 8.
(I'm using the MC TWEEN actionscript method.)
I need to apply a blur filter to a Movieclip with dynamic text.
When scrolling this Movieclip the text 'jumps' about causing visual glitch
and a slow down...
I have tweened the blur filter back to 0 and I have also set
Movieclip.filters=[];
Has anyone else experienced this problem? Is there a fix?
Thanks,
David
Player Is Jumping Faster And Faster Each Time You Go To Frame 2(flash 7 Script 2)
whenever i want to gotoAndPlay(2) from frame 3, my player jumps faster and faster each time. this is the code i used on frame 2:
Quote:
stop();
var jumpRate:Number = 4;
var dropRate:Number = 0.5;
var overallAmountofTime:Number = 10;
var groundPosition:Number = 119;
var dropping:Boolean = false;
var jumping:Boolean = false;
var jumpAllowed:Boolean = true;
var jumpInterval = setInterval(boardJump, overallAmountofTime);
function boardJump() {
jumping ? (skateBoarder._y -= jumpRate, jumpRate -= .1, jumpAllowed = false, skateBoarder.gotoAndStop("Jumping")) : null;
dropping ? (skateBoarder._y += dropRate, dropRate += .1, skateBoarder.gotoAndStop("Dropping")) : null;
jumpRate <= 0 ? (jumpRate = 4, jumping = false, dropping = true) : null;
skateBoarder._y >= groundPosition ? (skateBoarder._y = 119, dropRate = 1, dropping = false, jumpAllowed = true, skateBoarder.gotoAndStop("Stationary")) : null;
}
onEnterFrame = function () {
jumpAllowed && Key.isDown(Key.SPACE) ? jumping = true : null;
};
frame3:
Quote:
stop();
again.onRelease = function(){
gotoAndStop(2);
}
here's the swf(hit the blue things and click again to see what i mean):
http://skate.websitedork.com/skateboard_game.swf
please help
Jumping From Swf To Swf? Help Please
Hello flashkit,
I have a flash movie that is too large. I want to break it up into 3 or 4 different swf. Is it possible, to have a "Mainpage" swf. in which the buttons link to various parts in other swf. movies. I do not want to have multiple swf. playing at once. For ex. On the mainpage there might be a button that says images. This button would link to another swf movie that is strictly about images.
The "Image" swf would replace the "Mainpage" swf. until you press the "back to main" button which would then take you back to the "Mainpage" swf
-- Another ex. is the "Mainpage" swf might have buttons that say "Images" and "Images2 ". Both of these buttons would link to the same "Images" swf, but different scenes or sections in the "Images" swf.
Is this possible, and if so can I have a button that says "main" inside the "images" swf that actually links back to the "Mainpage" swf. (I seriously hope you guys can understand what I am trying to say.)
All guidance would GREATLY appreciated, this is a major project that is due this week.
Jumping?
I have a character sprite, he can walk right and left perfectly. Now, how can i get him to jump? Could I simply play an animation of him jumping or, to make it more fluent how would I do it with gravity controls? Thanks alot
Jumping MC
I Need A Code That Makes A MC Jump And Falls Down To A Ground "Instance Name : ground"
Thanks
Jumping From One Swf To Another
I currently have a movie on level 1 when you click a button another movie gets loaded onto level 2. I amusing the unloadMovie action to get rid of the movie on level 1. At the end the movie on level 1 everything looks the same as everything at the begining of the movie on level 2.
My problem is I can't seem to transition from one movie to another without the screen going white (level 0 background) for a split-second. What am I doing wrong?
Thanks
Jumping To An Url
I'm trying to jump from a flash movie to an html page, but I can't get the action to work. help!
Jumping Out Of Mc
I am using a buttton within a movie clip from which I want to jump to a frame on the main timeline (not within the clip). Now I'm using the 'go to' action but don't know what code to add.....do I need to use another action?
Seb
Jumping
Iv got this code:
Code:
onClipEvent (load) {
grav_y = 0;
jumping = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP) && !jumping) {
grav_y = 10;
jumping = true;
}
if (jumping == true) {
grav_y -= 1;
if (grav_y<=-7.5) {
grav_y = -7.5;
}
this._y -= grav_y;
}
if (_root.ground.hitTest(this._x, this._y, true)) {
grav_y = 0;
jumping = false;
}
}
when i press up it goes up a bit then falls forever
how do i stop this?
Jumping
Hey guys,
I built the site posted in my footer and I have checked it out on a couple of different computers...most works just fine, however, some of the computers display the movie very poorly...the movie jumps and slows down...why?
Jumping From Swf To Another Swf.. How?
as u can see www.karlaweb.tk . i've save the swf and i have decompiled it to see how it's done but i can't figure it out.
what i want is... u see,it seems the presentation is the same.... actually when u click certain buttons, it will jump to another swf (when a new preloader come out).
how to do that??
Jumping
Here is my command:
onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { _x = _x-10; } if (Key.isDown(Key.SPACE)) { _y = _y-70; release; _y = _y+70; } if (Key.isDown(Key.RIGHT)) { _x = _x+10; } if (Key.isDown(Key.DOWN)) { _y = _y+10; } }
Im trying to make it so when you press SPACEBAR you jump directly in the air and then come back down. All the movements work find im just trying to get this jumping thing done and I cant seem to do it.
Jumping
could someone please tell me the actionscripting to make a side scrolling character jump, or a tutorial that tells me. I would really apreciate it, thanx.
i'm using mx 2004
Jumping
could someone please tell me the actionscripting to make a side scrolling character jump, or a tutorial that tells me. I would really apreciate it, thanx.
i'm using mx 2004
Jumping
could someone please tell me the actionscripting to make a side scrolling character jump, or a tutorial that tells me. I would really apreciate it, thanx.
i'm using mx 2004
Jumping
How can I make a character jump in the scene and back to the floor by gavity?
if (Key.isDown(81) and jumping==0) {
jumping = 1;
starttime = getTimer()/1000;
startpos = _y;
}
if ( jumping==1) {
time = getTimer()/1000-starttime;
_y = _y-(startspeed-gravity*time);
if (_y>startpos) {
_y = startpos;
jumping = 0;
}
}
I use something like this script. The character can jump up but he will only jump up 1 pixel. I should continue to press jump button many times and then he will jump continuely.
any help is appreciate
Jumping
when ever the player jump he goes into the ground sometimes
how can i fix it
Code:
onClipEvent (load) {
jumping = true;
jump = 0;
speed = 0;
maxmove = 15;
}
onClipEvent (enterFrame) {
if (!_root.ground.hitTest(this._x, this._y, true) && !jumping) {
this._y += 4;
}
if (_root.dead) {
this.gotoAndStop("dead");
} else {
speed *= .85;
if (speed>0) {
dir = "right";
} else if (speed<0) {
dir = "left";
}
if (dir == "right"){
this._x += speed;
}
if (dir == "left") {
this._x += speed;
}
if (Key.isDown(Key.LEFT)) {
if (speed>-maxmove) {
speed--;
}
this.gotoAndStop("run");
this._xscale = -100;
} else if (Key.isDown(Key.RIGHT)) {
if (speed<maxmove) {
speed++;
}
this._xscale = 100;
this.gotoAndStop("run");
}
if (speed<1 && speed>-1 && !attacking) {
speed = 0;
this.gotoAndStop("idle");
}
if (Key.isDown(Key.UP) && !jumping) {
jumping = true;
}
if (jumping) {
this.gotoAndStop("jump");
this._y -= jump;
jump -= .5;
if (jump<0) {
falling = true;
}
if (jump<-10) {
jump = -10;
}
}
if (_root.ground.hitTest(this._x, this._y, true) && falling) {
jump = 8;
jumping = false;
falling = false;
}
if (speed<1 && speed>-1 && !attacking) {
speed = 0;
this.gotoAndStop("idle");
}
}
}
[F8] Jumping
Ok, it would be nice to have some jumping in my game, and it has many different heights so it has to be real jumping and gravity. I know pretty much the ins and outs of platformers, but I suck at jumping!
[F8] Jumping
What code should you make to jump and is there anything that goes with it?
[F8] Jumping
Ok, so this is probably an overasked question, but im confused on how to go about jumping. I have been able to make it possible to jump but, unfortunately it wasnt that good an enabled the player just to keep jumping in mid air.
Anyway, i re-wrote one and here is what i came up with
PHP Code:
/* CHARACTER MOVEMENT */
...
// Initial Vars
jump = 0;
speed = 10;
jumping = 0;
/* JUMPING */
onEnterFrame = function () {
function goJump(){
onEnterFrame = function(){
if(jumping == 1){
dude._y -= speed;
jump++;
if(jump < 10){
speed *= 0.9;
}else if(jump < 20){
speed *= 0.5;
}else if(jump < 30){
speed--;
}else if(jump < 40){
jumping--;
speed = 10;
}
}
}
}
if (Key.isDown(87)) {
jumping += 1;
goJump();
}
}
The problem is that after Jumping is set to 0, i cant push "W" to make it equal to 1 anymore. Please help! Thanks
[CS3] Jumping From One MC To Another MC?
Hi guys,
ok so I have two layers accompanied by frame labels, layer#1(frame label) has the main_mc in it, layer#2(frame label) has an intro_mc. I want when intro_mc is finished playing to jump to a specific frame inside main_mc.
I used this code in the last frame of intro_mc:
Code:
_root.gotoAndStop ("layer#1", 84)
it worked but it played the whole main_mc, but I want it to go to frame number 84 within main_mc
any advice?
Jumping Twice
hello people,
ive posted this problem everywhere except here so hopefully i can get some results, finally.
i have been trying to make one of my characters jump twice for a project im making, but i can only seem to get it to jump once or jump forever.
heres my code:
if (Key.isDown(Key.SPACE) && _root.ground.hitTest(_x, _y+3, true) && (jumping == false) && (jumping2 == false) && (grav == 0)) {
grav = -jumpHeight;
jumping = true;
_y -= 4;
this.gotoAndStop(2);
}
if (Key.isDown(Key.SPACE) && (jumping == true) && (jumping2 == false)) {
grav = -jumpHeight;
jumping2 = true;
}
thx, D
Jumping...
i'm making a platform game now... (gave up on my rpg one cuz i know i dont know enough yet) and i need help with a jumping code.
where can i find one?
Jumping
does anybody have some code that i could get a guy to jump with???
Edited: 12/13/2006 at 09:51:04 AM by sk8morestudyless
Jumping From 1 To Another
i have an idea for a movie clip that might be a bit big. i was wondering if its possible to have serval external movie clip but have them in a chain reaction to load one to another and so on. if so , please guide me the way
|