Panorama Controls On Buttons
http://www.scormsource.com/downloads/pan.zip
The panorama works on the above file, but Id like to scroll at a certain speed automatically and put the controls on buttons.
Can anyone lend some help with that?
Code: /* ================================================================= PANORAMA 360 START ------------------ Rob @ Republic of Panama / 2004 11 16 */
onClipEvent (load) { /* myPanoramaDuplicates: i know this variable can be programmed to be set automatically depending on the movie stage width ... any volunteers? */ _root.myPanoramaDuplicates = "2"; // duplicates necesary for visual continuity of your panorama image }
onClipEvent (enterFrame) { /* myStageWidth: i know this variable can be programmed to be set automatically depending on the movie stage width ... any volunteers?*/ myStageWidth = 487.9; // the width of your Flash Movie
/* myPanoramaSpeed:
*/ myPanoramaSpeed = 150;
// panObj = this; panObjWidth = panObj._width; panObjHalf = panObjWidth/2; xPos = _root._xmouse; // next line centers the menu drag to the screen xPos = xPos-(myStageWidth/395); panObj._x = panObj._x-(xPos/myPanoramaSpeed); if (panObj._x<-panObjHalf) { panObj._x = 0.01; } else if (panObj._x>9) { panObj._x = -panObjHalf; } }
/* PANORAMA 360 END ================================================================= */
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-02-2006, 08:12 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Panorama For Buttons And Picture
I wonder how to make a moving panorama where buttons are on top on the picture. The buttons are basically moving together with the picture. Please visit www.abeautifulmind.com. Then u'll know what am i talking about.
Music Controls, Buttons Not Doing Anything
Hi, I'm trying to create a basic music player to add to a portfolio, there're 4 buttons (all in one MC); one changes the track, one puts the volume up, one volume down, and the last one mutes or unmutes the track.
I've written up the code, no errors before running but when I click NextTrack button this appears:
Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.
at flash.media::Sound/_load()
at flash.media::Sound/load()
at musicPlayerMC/nextTrack()
Also have traces on all the buttons, they register a click but don't do what they're meant to. Music just keeps playing, no changes.
Code:
package {
import flash.events.*
import flash.display.*
import flash.media.*;
import flash.net.URLRequest;
public class musicPlayerMC extends MovieClip {
private var soundReq1:URLRequest = new URLRequest("dev_files/track1.mp3");
private var soundReq2:URLRequest = new URLRequest("dev_files/track2.mp3");
private var soundReq3:URLRequest = new URLRequest("dev_files/track3.mp3");
private var music:Sound = new Sound();
private var soundControl:SoundChannel = new SoundChannel();
private var volumeControl:SoundTransform = new SoundTransform();
private var trackNum:Number = 1; // used to change track
private var vol:Number = .5; // used for muting track
public function musicPlayerMC()
{
music.addEventListener(Event.COMPLETE, trackPlay);
up_btn.addEventListener(MouseEvent.CLICK, volUp);
down_btn.addEventListener(MouseEvent.CLICK, volDown);
music.load(soundReq1);
}
private function trackPlay(event:Event):void
{
mute_btn.addEventListener(MouseEvent.CLICK, mute);
next_btn.addEventListener(MouseEvent.CLICK, nextTrack);
music.play();
}
private function volUp(event:MouseEvent):void
{
trace("vulUp works");
volumeControl.volume += .5;
soundControl.soundTransform = volumeControl;
}
private function volDown(event:MouseEvent):void
{
trace("vulDown works");
volumeControl.volume -= .5;
soundControl.soundTransform = volumeControl;
}
private function mute(event:MouseEvent):void
//this should mute or unmute the track
{
trace("mute works");
if (vol == .5)
{volumeControl.volume = 0;
soundControl.soundTransform = volumeControl;
vol = .5;}
else if (vol != .5)
{volumeControl.volume = .5;
soundControl.soundTransform = volumeControl;
vol = .5;}
}
private function nextTrack(event:MouseEvent):void
// this should switch to the next track in the playlist
{
trace("nextTrack works");
if (trackNum == 1) {
soundControl.stop();
music.load(soundReq2);
soundControl = music.play();
trackNum = 2;}
else if (trackNum == 2) {
soundControl.stop();
music.load(soundReq3);
soundControl = music.play();
trackNum = 3; }
else if (trackNum == 3) {
soundControl.stop();
music.load(soundReq1);
soundControl = music.play();
trackNum = 1; }
}
}
}
Any help appreciated!
:: | Movie Clip W/ Buttons That Controls Scenes | ::
I think this is pretty simple, but I cannot figure why it is not working. I am using Flash MX 2004. I am pretty new to all of this so I will try to explain what is happening as best as possbile. I have a Flash file with multiple scenes. I have a draggable control box movie clip ("controlBox_mc") that I dropped onto the stage in Scene 1. "controlBox_mc" displays informational text for the current scene. Inside the "controlBox_mc" movieclip, I have 3 buttons, "goScene_btn" that should take the user to the next Scene, a "backScene_btn" to go back to the previous scene, and a "attachMovie_btn" to start the current Scene's animation ("animScene1_mc"). I am using the following script in Frame 1 of Scene 1:
//stops the playhead at frame 1
stop();
//This script takes the user to Scene 2 when goScene_btn is released
goScene_btn.onRelease = function(){
gotoAndStop("Scene 2", 1);
unloadMovie("animScene1_mc");
};
//function plays animScene1_mc when attachMovie_btn instance is released.
attachMovie_btn.onRelease = function(){
_root.attachMovie("animScene", "animScene1_mc", 1);
animScene1._x = 275;
animScene1._y = 200;
};
I have used the Linkage Properties method to give Scene 1's animation ("animScene1_mc") a linkage identifier name of "animScene1"
I believe that this script is not working because the buttons that control the scenes are inside of a movie clip that is dropped into the stage. If I put these buttons on the stage directly, the script works, I just need to find a way to tell the buttons to work when they are not on the stage, but in a movie clip ("controlBox_mc") that is on the stage. Anyone have an example, or advice on how to script this? I am building a product demo, and need to have the document set up this way.
Thanks in advance!
[MX04] - Movieclip 1 (with Buttons) Controls Moveclipe2 - How?
I have searched and searched and I must not know the proper search terms because I can't find the answers and have spent many hours trying to figure it out on my own to no avail.
Basically I want a one frame timeline with 4 layers: background, movieclip 1, movieclip 2, and actions. movieclip1 is the navigation and has buttons on it. I want each button to correspond with a specific frame in movieclip 2. Each movieclip on the main timeline has been given an instance name. What should the code for each button look like?
I've even tried using tellTarget but I understand we shouldn't be using that any more.
FLA is at http://www.noodledesign.com/model.fla. Buttons have code on them but it's old and obviously doesn't work. Thanks in advance! ~ Carrielyn
AS2 How To Make A Single Mouseover For An Area Which Controls Buttons/etc. Inside It?
I'm not sure how to even ask the question but my situation is this:
I have a 400x300 area that needs to detect a rollover and animate several buttons, text fields, etc. sliding into it when the mouse rolls into the area so that they can be manipulated, and animate them sliding out when the mouse rolls out of the area to hide them from view. (example here: http://redruin.com/video/MultiPlayer/)
What is the best way to do this? The only way I have got it to work so far is by using a listener to track mouse position, but it's not reliable since you can move the mouse quickly in some areas of the movie and the listener doesn't catch it.
Someone elsewhere suggested using an empty movie clip to control buttons and such beneath it, but I'm not sure how to go about that since I can't even seem to resize an empty movie clip, though I haven't tried it with actionscript, and I would assume it would have the same problems with losing focus when the other buttons are rolled over, or blocking them.
Can anyone tell me the best/easiest way to do this. It seems like I must be missing something obvious, it feels like there must be a way to detect rollover/rollout in an area without overriding buttons and fields within that area, and I just don't know what it is.
Any help you could give me would be intensely appreciated!
How To Make A Single Mouseover For An Area Which Controls Buttons/etc. Inside It?
I'm not sure how to even put the question but my situation is this:
I have a 400x300 area that needs to detect a rollover and animate several buttons, text fields, etc. sliding into it when the mouse rolls into the area so that they can be manipulated, and animate them sliding out when the mouse rolls out of the area to hide them from view. (example here: http://redruin.com/video/MultiPlayer/)
What is the best way to do this? The only way I have got it to work so far is by using a listener to track mouse position, but it's not reliable since you can move the mouse quickly in some areas of the movie and the listener doesn't catch it.
Someone elsewhere suggested using an empty movie clip to control buttons and such beneath it, but I'm not sure how to go about that since I can't even seem to resize an empty movie clip, though I haven't tried it with actionscript, and I would assume it would have the same problems with losing focus when the other buttons are rolled over, or blocking them.
Can anyone tell me the best/easiest way to do this. It seems like I must be missing something obvious, it feels like there must be a way to detect rollover/rollout in an area without overriding buttons and fields within that area, and I just don't know what it is.
Any help you could give me would be intensely appreciated!
(I'm using Flash CS3 and Actionscript 2 btw)
2 Player Game. Moving Cars Controls Help With Controls
hi i have the controls for car number 1 that would be the arrow keys if
(Key.isDown(Key.RIGHT)) {
this._rotation += manuverSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._rotation -= manuverSpeed;
}
if (Key.isDown(Key.UP)) {
if (speed<speedMax) {
speed += accel;
}
} else if (Key.isDown(Key.DOWN)) {
if (speed>-speedMax) {
speed -= accel;
but how can i make controls for car 2 ... i wann use wasd but i cant figure out how the key.a doesnt work.
Drag Controls Override All Other Controls On Movie?
I have a movie that loads into the main timeline and can be dragged around using:
on (press) {
startDrag("");
}
on (release) {
stopDrag();
}
That works great except that to close that movie again I've added a little button to say on press, unload movie.
Problem is none of the buttons or links on that page will work while it is being dragged around. How can I make the links and buttons work but still make the movie draggable?
X,Y Panorama?
Hello
X or Y Axis looped MC - normal panorama/scroll is no problem.. but if I need X and Y loop?
Or..in other words left/right and top/bottom.. (wrap around edges and
cornes (like in old-fashion games)
(not random generated background)
Heh.. ok time for AC:
Clear scene with 1 MC - named "kolko" and 3 action frames.
Frame 1 actions
dl_sceny = 500; scene width
ro = dl_sceny/2; scene width /2
max_speed = 5;
coef = ro/max_speed;
ende = kolko._width/2;
endeh = kolko._height/2;
Frame 2 actions
x = _xmouse;
y = _ymouse;
speedx = -(x-ro)/coef;
speedy = -(y-ro)/coef;
kolko._x += speedx;
kolko._Y += speedy;
removeMovieClip ("kolko1");
removeMovieClip ("kolko2");
if ((kolko._x)>dl_sceny) {
kolko._x = 0;
} else if ((kolko._x)<0) {
kolko._x = dl_sceny;
}
if ((kolko._y)>dl_sceny) {
kolko._y = 0;
} else if ((kolko._y)<0) {
kolko._y = dl_sceny;
}
if (kolko._x+ende>=dl_sceny) {
duplicateMovieClip ("kolko", "kolko1", 1);
kolko1._x = kolko._x-dl_sceny;
} else if (kolko._x-ende<=0) {
duplicateMovieClip ("kolko", "kolko1", 1);
kolko1._x = kolko._x+dl_sceny;
}
if (kolko._y+endeh>=dl_sceny) {
duplicateMovieClip ("kolko", "kolko2", 1);
kolko2._y = kolko._y-dl_sceny;
} else if (kolko._y-endeh<=0) {
duplicateMovieClip ("kolko", "kolko2", 1);
kolko2._y = kolko._y+dl_sceny;
}
Frame 3 actions:
gotoAndPlay(2); // hahah yea...
Any idea how to do It corrrect?
sorry for my english
VR Panorama - Help
Hi - im trying to recreate a quicktime vr panaroma in flash with pretty good results (something exactly like the virtual tour of the sydney opera house). ive got the thing working absolutely spot on - here's what ive done - http://www.geocities.com/djsid2000/office360.html , although using a bit of borrowed code from a flashkit tutorial - http://www.flashkit.com/tutorials/Ac...67/index.shtml . so i decided to rewrite everything from scratch but im having a bit of trouble.
heres what ive done so far.
1. taken the pics
2. stitched them together to create a seamless image.
3. placed this in an MC (called mainPhoto)
4. placed a mask over this
5. placed 5 transparent movie clips over these to trigger movement as well as speed changes. the left outer most MC will control fastest left movement of the mainPhoto MC lying below it while the right most one will control the fastest right movement, with the centre mc controlling the stopping.
If you had noticed earlier, the one based on the FK tute had buttons over them to trigger the movement, but this doesnt work for me for two reasons. one, i dont want the cursor to change to button state, and two, the mainPhoto MC itself will contain buttons for navigation or information, and having these buttons on top of the ones in the MC disables the latter. so ive used mcs to control the movement.
6. The Trigger MCs contain onClipEvent(enterFrame) actions that monitor if the mouse is over it and then pushes the mainPhoto MC left or right in the right speed.
Here's my first question - i need the image to keep looping when it reaches the end so that it appears seamless - i know the duplicate movie clip was used in that tutorial, but cant seem to figure out exactly how and where it should be placed. i tried it but i seem to get it over the mask, not under it and seamless.
The second one - If you take a look at the tutorial and the one ive done, you will notice that the zoom button zooms from the registration point only, so if you are way off centre, you will notice that the point you are trying to zoom into will move to either the left or right, sometimes pushing the point you are trying to zoom into off the viewer.
Third - When zoomed in fully, you will notice that when you are panning, the image will suddenly jump from one point to another. this happens unless you are zoomed out fully - why does this happen and is there any way around it?
thats the lot and i would appreciate any help or feedback.
PHEW!!!
[Edited by sidrao on 12-13-2001 at 01:38 AM]
Panorama
Hi.. I been using the drag control to control my panorama-picture but I want to asign hotspots in this, but cant get it to work right.
anyone tried this ?
Panorama - VR
Hi... looking a simple script that can be used for panorama VR -tours. Right now in the movie archive I can not find
some that you can ad hotspots - new movies on so on....
Have a nice day.. :-)
Panorama
Hi,
I am trying to make a 360 degrees movie (Flash 5), with 2 roll-over buttons for moving to the left or to the right, does anyone know how to let it go round and round, cause now it stops at the end of my picture.
Thanks,
ichbins
Panorama
hey guys im working on a panorama view of a room at the moment but i am unble to make a flat strip of the images placed together i have tried using photoshop or fireworks myself and other programs but they still dont turn out proper if anyone else has already done this how were you able to make a flat strip?
p.s yes i am using a tripod :P
any ideas plaesae say
Panorama 360
hi,
i'm looking for any script (mx, 8) to panorama viewer controling.
Have a tips?
thanx
robur
[F8] Panorama
hiya. does anyone have any tips for creating a panorama moveable by the mouse? I have a long panoramic image, and i've tried a few tutorials scattered over the web, none of them having ANY effect! i have knowledge of how to create clickable buttons and the like, but i'd also like to know if there's any specific coding needed for buttons to be accessible if placed on this moveable panoramic background?
Panorama
i need to make a panorama of an area like a room ..checked out actionscript.org virtual reality tut....but got errors when using mx 2004 ..
do u know of any mx 2004 panorama tutorials
Panorama 360
hy! Can anybody tell me how can i put on my website a panorama 360? http://www.panoramas.dk/fullscreen6/f39-chateau-chenonceau.html . i have one but i don't now how to put it. pls help me!
Eu.lee.com Panorama
Hello,
I am trying to use the Interactive Image Panning tutorial to create an effect like... http://eu.lee.com/ when you open the page right-click or cntrl-click on the funky lady and select "Summer Collection". You will see a looping set of images. What we like about this is the fact that the bg moves at a different pace than the midground and the mid at a different pace than the foreground.
Issues I have been having. I can get it to loop I can get it to move at different rates. What I am not able to do is get it to loop so that the different areas have returned to their original positions. What i mean by that is if you look closely the fore/mid/bg always begin at the same spot without a strange jump. Also, they don't ever move too far apart. they don't just keep going they are constricted to a specific distance.
It is the 3-d space movement and the restraint effect that is eluding me. I can make the foreground move independant of the BG and the mid but they move too independantly. and the fore moves out of the midground context.
make sense?
If you need clarification on anything I wrote let me know.
j
Panorama
is it possible making a flash application that can make panoramas?
Panorama
Hi! a very simple question.
I've come across numerous panorama examples that changes direction according to the direction of the mouse cursor. But can anyone suggest me how can i make an image scroll by pressing buttons, instead of following the mouse cursor ?
How To Do A Panorama Like This One?
hey all,
how can i do a panorama like this one?http://www.virgintrains.co.uk/redirect.asp?137
i can do a normal moving pan easy, but zooming is a whole different ball game. can anyone point me to a sample fla?
cheers
- d
360 Flash Panorama
Dear flashers ! I've the following problem: how to create flash 360 degrees panorama photo, with left-right-up-down scrolling. Also I know about iPIX technology, maybe anybody know how to transform iPIX to Flash? But if you want to help me through QuickTime importing to Flash, please don't do this. I want to do panorama only in Flash. Thanks for answers.
P.S. Sorry for my bad English ))
Sliding Panorama
Can anyone help me with this script. I want to create a sliding image like the one on this site http://www.motown.com/classicmotown/fullscreen.html I"ve seen .flas that do the slidig bit, but I want to contro lit with buttons If you know the script I need to use, or where I can find a .fla, it'd be really appreciated.
cheers
yeffer
__________________
Panorama Problem
I am working on a panorama flash movie. ie. a series of photographs have been stitched together to make a 360 degree view of the area. this single image scrolls left of right depending on the mouse position. This i can do.
The problem is obviously the image doesnt loop so the illusion of turning around and around is broken when the image moves to the left and the end is reached.
Does some one know how i can perhaps duplicate the image and join it to the end of origonal, as to make a continuous stream? or perhaps an alternative? Thanks. the code i have used so far is below.
FRAME 1
center = 280;
reelPos = reel._x;
leftStop = -220;
rightStop = 50000;
FRAME 2
if (_ymouse>1) {
photoSpeed = (_xmouse-center)/10;
photoPos = Math.round (photoPos+photoSpeed);
if (photoPos<leftStop) {
photoPos = leftStop;
}
if (photoPos>rightStop) {
photoPos = rightStop;
}
photo._x = photoPos;
}
FRAME 3 loops the movie back to frame 2
jamus
Code For Panorama
Hello,
I need to finish a project simulating a panorama. So I found this code to get a panorama working in flash by moving the mouse to the left and to the right. But I don't understand what the code means? Could maybe someone shorthly explain what the lines mean?
This would be of greates help for me!!! :-) Thank you already. Oliver.
onClipEvent (enterFrame) {
if (_root._xmouse <50) {
if (this._x <380) {
this._x += 5;
}
}
if (_root._xmouse > 380) {
if (this._x > 10) {
this._x -= 5;
}
}
}
Help With Panorama View
What is the best way to create a pan’ view in flash?
I have an object and I’m trying to achieve an effect that when the movie is played it zooms out in a pan’ style and at the end shows the whole object.
Does this sound like a tween or a job for Ascript?
Quicktime Panorama
hi does anyone know if it's possible to load a quitime panorama inside a flash movie? i have tried to load in as usual but no great results.
i am using flash mx
tnx
180 Degrees Panorama
Hi. Ho do you do if you want to make a 360 panorama be less.. like 180?
/*
================================================== ===============
PANORAMA 360 START
------------------
Rob @ Republic of Panama / 2004 11 16
*/
onClipEvent (load) {
/* myPanoramaDuplicates:
i know this variable can be programmed
to be set automatically depending on the
movie stage width ... any volunteers?
*/
_root.myPanoramaDuplicates = "2"; // duplicates necesary for visual continuity of your panorama image
}
onClipEvent (enterFrame) {
/* myStageWidth:
i know this variable can be programmed
to be set automatically depending on the
movie stage width ... any volunteers?*/
myStageWidth = 400; // the width of your Flash Movie
/* myPanoramaSpeed:
*/
myPanoramaSpeed = 20;
//
panObj = this;
panObjWidth = panObj._width;
panObjHalf = panObjWidth/2;
xPos = _root._xmouse;
// next line centers the menu drag to the screen
xPos = xPos-(myStageWidth/2);
panObj._x = panObj._x-(xPos/myPanoramaSpeed);
if (panObj._x<-panObjHalf) {
panObj._x = 0.01;
} else if (panObj._x>0) {
panObj._x = -panObjHalf;
}
}
/*
PANORAMA 360 END
================================================== ===============
*/
den skulle fungera fint med stop på ungefär 180..
180 Degrees Panorama
Hi. Ho do you do if you want to make a 360 panorama be less.. like 180?
/*
================================================== ===============
PANORAMA 360 START
------------------
Rob @ Republic of Panama / 2004 11 16
*/
onClipEvent (load) {
/* myPanoramaDuplicates:
i know this variable can be programmed
to be set automatically depending on the
movie stage width ... any volunteers?
*/
_root.myPanoramaDuplicates = "2"; // duplicates necesary for visual continuity of your panorama image
}
onClipEvent (enterFrame) {
/* myStageWidth:
i know this variable can be programmed
to be set automatically depending on the
movie stage width ... any volunteers?*/
myStageWidth = 400; // the width of your Flash Movie
/* myPanoramaSpeed:
*/
myPanoramaSpeed = 20;
//
panObj = this;
panObjWidth = panObj._width;
panObjHalf = panObjWidth/2;
xPos = _root._xmouse;
// next line centers the menu drag to the screen
xPos = xPos-(myStageWidth/2);
panObj._x = panObj._x-(xPos/myPanoramaSpeed);
if (panObj._x<-panObjHalf) {
panObj._x = 0.01;
} else if (panObj._x>0) {
panObj._x = -panObjHalf;
}
}
/*
PANORAMA 360 END
================================================== ===============
*/
That one would work nice with a stop at aproximatly 180 degrees
360 Degree Panorama
How can I do it in Flash? Please please please help.
I want to have an image: say, of a sky and if I move my mouse to right image should move slowly to left and if I move my mouse to left then image should move slowly right same for the up and down as well.
Can anyone help me out please? I wish to have a FLA but anything will do.
Thanks in advance.
Help With Panorama Hot Spots
I am trying to put hotspots on a panorama file i downloaded from flashkit. But for some reason the btns do not work, can someone help?
I am including the flash file.
Help For Someting Like A Panorama
I have searched Flashkit and found a number of 360 panoramas.
Basically there's a image, that gets duplicated automaticcaly. When the user moves the mouse to the left (or right) the image scrolls to the left (or right) The image appears to wrap forever seeing how it is duplicated.
I want to achieve a similar thing but have no idea where to start. Can anyone help? Please read the following...
I have a wide landscape image, which I have turned into a movie clip. I have made certain elements of the image 'hot areas'. Basically, when you move your mouse over them a caption fades in, when you roll off the particular element it fades away.
I have created little left and right arrows.
If you roll your mouse over - lets say - the left arrow I want the movie clip to slowly move to the left. When you roll out of the arrow I want the movie clip to stay at that position. BUT rather than wrapping around forever, if the image comes to its edge it basically stops and cannot go any further - obviously then they'd use the right arrow to get back to the other end.
See what I mean?
Any help?
ANT!
Panorama Scroll
Hi. I have just finished my new Flash site and I've got this one final problem.
It would be great if you could help me somehow. Please, visit this link: www.trusthead.com/main.html
As you might guess, I don't like the way background scrolls left or right. On my site, it starts to move even when the cursor is nearly in the middle of the page which can cause some problems when a viewer wants to click on any button. The best solution would be to tell the panorama to scroll only when the cursor reaches the left or right end of the movie. I have a good script but dunno what to add to make the background less sensitive.
The first frame contains this script:
Code:
// Xphoto = startposition of the scoll image
xphoto = 399.9;
//
// Widthmovie = This variable hase to be set to the
// same amount of the moviewidth /
widthmovie = 800;
//
// Scrollspeed = The scollspeed of the image (high numbers result in slow scrolls 10=average)
scrollspeed = 15;
//
// widthphoto = the width of your scrollable image in pixels/
widthphoto = 2400;
_root.info.gotoAndPlay(2);
The second:
Code:
// Setting the xmouse to 0 in the centre of the movie:
ypozycja = _ymouse;
if (ypozycja>0 and ypozycja<490) {
xmouse = _xmouse-(widthmovie/2);
// Setting the speed:
speed = (xmouse)/scrollspeed;
// If the speed is negative, the speed will be made positive here:
if (speed<0) {
speed = -(speed);
}
// If the mouse moves to left, the photo will scroll to the right:
// (That makes sense.... Doesn't it!! ;-)
if (xmouse<0) {
xphoto = xphoto+speed;
}
// If the mouse moves to the right, the photo will scroll to the left:
if (xmouse>0) {
xphoto = xphoto-speed;
}
// Checking for the left end of the image:
if (xphoto>1200) {
xphoto = 1200;
}
// Checking for the right end of the image:
if (xphoto<-400) {
xphoto = -400;
}
// Placing the moviclip (photo) on it's new postition:
setProperty("photo", _x, xphoto);
//trace(_ymouse);
}
It would be great if you could help me with this thing. I tried to figure it out but now Im lost.
360/360 Panorama In Flash
Hi friends!
Please I REALLY need help to answer a question, especially from the PRO actionscripters here.
In the next days I'll sign a contract to create a 360/360 Virtual Tour in Flash.
The company asked me if I can make it just like these:
http://www.vox360.in/gallery.php?bob=1
A friend of mine is a very skilled actionscripter, but I'm still not sure if it is possible to create a FLASH ENGINE to run something like that above (Java).
I need to know what do you think about it, is it possible with Flash 8? Maybe Flash 9 with Actionscript 3.0?
Thank you!
[F8] Panorama Problem
I've adapted a panorama file from the movies section for a site I'm working on. It works fine by itself, but won't work when I load it into another movie. Any idea why?
In addition if I export it for Flash player 8 I get the error message:
Code:
**Error** Symbol=slide object, layer=city scene, frame=1:Line 9: Syntax error.
dup = "butn" add m;
But it's OK for Flash player 6.
Any help much appreciated.
360/360 Panorama In Flash
Hi friends!
Please I REALLY need help to answer a question, especially from the PRO actionscripters here.
In the next days I'll sign a contract to create a 360/360 Virtual Tour in Flash.
The company asked me if I can make it just like these:
http://www.vox360.in/gallery.php?bob=1
A friend of mine is a very skilled actionscripter, but I'm still not sure if it is possible to create a FLASH ENGINE to run something like that above (Java).
I need to know what do you think about it, is it possible with Flash 8? Maybe Flash 9 with Actionscript 3.0?
Thank you!
Panorama Idea
Hey all. Im trying to create a panorama in flash, so far, I have my test image, which has been stiched together as you would with a regular panorama, and i'v put it inot flash. However what I would now like to do, is to stretch the image closest to the edges of the viewing area upward, so that the image is not distorted and actually looks 3d, anyone got any ideas on how I can achieve this.
Any help is greatly appreciated, cheers in advance
-Willie
Making A Panorama
What is the best way, hardware and technique wise, to build a panorama of a room that can be navigated in Flash?
Thanks
Panorama + Easing At The End
Hello, everyone.
I'm being overwhelmed with this project I have to do at work... I'm wondering if someone could help me out with what I'm trying to accomplish.
What I'm basically trying to do is the panorama effect that certain area can be viewable as it moves left and right. But I (well, my boss!) want to have easing effect as it gets closer to the edge of base image (which is moving as mouse moves) and stop at the edge.
I found this Pano function by Madokan (http://www.actionscript.org/forums/s...threadid=25925) which successfully made me layed out basic stuff on the stage, but I'd like to stop the movement at the edge with easing.
I'm a graphic designer for print, but my boss just put me in charge of this flash project... with a begginer/ level of understanding. Could you please someone help me with this??
Thank you very much!
356 Panorama - Flash 8
Hi, I would be very grateful for any suggestions, methods and Flash extensions that will help me to make a 360 Panorma movie using Flash 8. Many thanks, Simon
Panorama Viewer
There are panorama viewers available in flash that basically just scroll a flat image from side to side like this:
http://www.360dof.com/example-flash...._final.jpg.swf
I was wondering about the possibilities of a flash viewer that would also warp an image so that you could view a 360 image and then be able to look straight up and down also since the image is mapped to the inside of sphere.
Here is an example in a jave viewer that warps the image:
http://virtualgeorge.com/tours/altima/altima2.html
I can create a shockwave 3d pano using director but I would like to have a flash viewer. It must be hard or impossible since I have not seen one available yet in flash.
Thanks
Help For Partial Panorama
Does anyone have a way to display a partial panorama (not 360).?
A sample 360 panorama is at http://www.flashkit.com/movies/3D/Ps...es-9/index.php
that does a complete 360 and direction of the pan is by mouse position.
We have panoramas that we would like to display whereby the image displays from one end to the other and just 'sweeps' the image constantly.
There is a display that is Java based at http://www.imageviewer.co.uk/pan4/ that shows what I would like to do... the difference being is that the control would be by mouse position like the first flash example
.
I've worked on this for days but haven't figured out how to do it yet.
I'm new to Flash and I'm learning as fast as I can but I have a long way to go and sure would appeciate the help.
.
Panorama-rama
did this a little while ago, thought there might be someone that might benefit from it.
http://www.marcpelland.com/kirupa/pan_final.fla
http://www.marcpelland.com/kirupa/pan_final.html
Panorama Viewer
Hi!
I have a panorama picture which is a movie clip It is moving horizontally when mouse is pressed from left to right and right to left (and a little bit up and down). My mission is to do "endless" picture so how I should do the movie clip that that never ends? Should I use duplicateMovieClip or something like that? If someone knows some tutorial…
Flash Panorama
I'm looking for a tutorial to build my own panoramic image viewer in flash complete with image distortion. I'm not talking about just panning an image. I'm talking about something that distorts the image near the sides in order to create a realistic 3d effect. There are plenty of standalone apps out there for $70 and up, but I'm looking for some instruction to build one myself. Thanks!
Scrolling Panorama
Hi.
First of all, I am a new user of Flash, stumbling through really.
What I need to find out is if anybody know how to put one of those scrolling panorama's in their flas site?? The kind that loops round when you drag left or right.
I'd be extremely grateful if anyone could help.
Thanks
Roach
Scrolling Panorama
I have a panoramic image that scrolls left and right depending on if the cursor is left or right of center.
I've placed a button inside this scrolling panel and given it an instance name of b1. I want that button to stop the scrolling on rollOver, and restart the scrolling on rollOut.
Although I understand the theory of what I need to do, I'm totally lost when it comes to actually applying it to the code I already have, and my attempts so far only kill the scrolling effect entirely.
Can someone please show me how to code my button correctly?
The current code in my first frame is like this:
Code:
stop();
panel.onRollOver = panelOver;
function panelOver () {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel () {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 0) {
panel._x = 0;
}
if(panel._x <= -6390) {
panel._x = -6390;
}
var xdist = _xmouse - 400;
panel._x += -xdist / 75;
}
How To Make A Panorama?
does any one know a good tutorial, source or what ever so i can learn how to make a panorama?
I want to use it for a project on school but cant fined a tutorial anywhere.
help me please
thanks
(oh, and i'm using flash mx)
though if you only have a flash 8 tutorial thats fine too)
|