Yes... I'm Really This Much Of A Newbie. (Question On Scrolling)
Hey,
Sorry to ask something so lame but I've tried to figure this out but I just can't seem to. How on earth do you use the Flash UI Scroll Bar Component? I dragged it out and I made a dynamic text field and named the field... then I put that name as the target text in the properties for the scroll bar but its doing nothing. Can anyone help? Thanks!
Jason
FlashKit > Flash Help > Flash MX
Posted on: 03-27-2003, 10:29 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Newbie Help Scrolling Help
Hi Everyone,
I'm helping a friend (or attemption to!) put their site back online.
Basically the entire site consists of one big JPEG that scrolls left or right to show the portion of the page which is to be shown. Here is a link to the old site.
http://www.thefullblast.com/indexold.html
Is there a way to stop an animation at a certain frame then stop. For example stop at frame 10 then wait for a button press and scroll to frame 60 and stop? Sounds easy, but i'm pulling my hair out.
Thanks
Raino.
Btw. Awesome band, if your into Punk-Rock!
Newbie Needs Help With Scrolling Thumbnails
Hola,
I'm a newbie to both Flash and ActionScript. I'm trying to revamp the portfolio section of my company's web site. We want it to look and function almost identical to this:
http://www.cogneato.com/portfolio/
Obviously, we're going to use our own colors and style to the file, but we want it to scroll left and right via buttons, have clickable thumbnails that enlarge in a separate pane, and have the motion speed be just like the above sample.
I've scoured numerous forums and Flash-dedicated sites, but none of them seem to have a solution for the above method. I realize that all one has to do is extrapolate from the numerous examples out there to get something like the above sample, but as I said, I'm a newbie and my Flash and ActionScript skills are rudimentary.
Can someone show me how to achieve this effect, or at least where I can go to read or download information that will allow me to get this exact scrolling thumbnail gallery?
Newbie Needs Help With Scrolling Thumbnails
Hola,
I'm a newbie to both Flash and ActionScript. I'm trying to revamp the portfolio section of my company's web site. We want it to look and function almost identical to this:
http://www.cogneato.com/portfolio/
Obviously, we're going to use our own colors and style to the file, but we want it to scroll left and right via buttons, have clickable thumbnails that enlarge in a separate pane, and have the motion speed be just like the above sample.
I've scoured numerous forums and Flash-dedicated sites, but none of them seem to have a solution for the above method. I realize that all one has to do is extrapolate from the numerous examples out there to get something like the above sample, but as I said, I'm a newbie and my Flash and ActionScript skills are rudimentary.
Can someone show me how to achieve this effect, or at least where I can go to read or download information that will allow me to get this exact scrolling thumbnail gallery?
Newbie Needs Help With Scrolling Thumbnails
Hola,
I'm a newbie to both Flash and ActionScript. I'm trying to revamp the portfolio section of my company's web site. We want it to look and function almost identical to this:
http://www.cogneato.com/portfolio/
Obviously, we're going to use our own colors and style to the file, but we want it to scroll left and right via buttons, have clickable thumbnails that enlarge in a separate pane, and have the motion speed be just like the above sample.
I've scoured numerous forums and Flash-dedicated sites, but none of them seem to have a solution for the above method. I realize that all one has to do is extrapolate from the numerous examples out there to get something like the above sample, but as I said, I'm a newbie and my Flash and ActionScript skills are rudimentary.
Can someone show me how to achieve this effect, or at least where I can go to read or download information that will allow me to get this exact scrolling thumbnail gallery?
I Am Newbie... Pls Help On Scrolling Text Field
i have try up to 20 times to crate a scrolling text field, but can't success. i think the step goes wrong... or .....!The text i keying appear but can not scroll, Pls help to provide solutions. pls give step by step including scene, layer and timelines.... thank you very much!!!!!
Newbie Scrolling Text Message
Hello all,
Im trying to make this text scroll over and over in a loop, but I cannot seem to get it with the script that I have written, it goes through once then stops?
Any help would be appreciated
<Newbie> Scrolling Image Gallery
can someone help me figure out why my site isn't loading an external image gallery? the tutorial i used can be found here:
http://www.oman3d.com/tutorials/flash/imagegallery/
they made the image gallery is completely done with actionscript and it works in the .swf for the gallery, but as soon as i call it to be loaded into the home .swf it doesn't work. here's the link to the sites homepage:
(oh and dont worry i know the pics are pixelated and some things need fixed, i'm just trying to get the site working first)
http://lightboy101.110mb.com/bootleg/Splash.swf
--- here is the gallery----
http://lightboy101.110mb.com/bootleg/Gallery.swf
if anyone can help me, please let me know. or if you know a tutorial with a better scrolling image gallery, that would be great. thanks.
Newbie To Flash Wants Help With Scrolling Area
Hi everybody. I'm a newbie to flash design and would like some help please! I have used a template from a website I found a couple of months ago. Find my site here:
http://www.clearlinetelephones.co.uk/frames/site.swf
I would like to know how I can make a certain portion of the viewed area scrollable to allow me more freedom with the amount of information I can display. At the moment I am restricted to the text box which I would like to keep within the area defined by the design but I would also like the user to be able to scoll the area to access more info.
Newbie Needing Help..looping Scrolling Text?
Hi Im pretty new at this but,
I've gotten my script to display my text scrolling right to left, how do I make my text loop over and over again?
var myload:loadVars = new loadVars();
myload.onload = function()
{
textbox.Text = this;
}
myload.load("mytxt.txt");
setInterval(scrollDown, 25);
function scrollDown()
{
textbox.hscroll++;
}
Newbie Spotlight/sliding Curtains/scrolling Img Gallery Help
What I need to do is fairly simple, but i've only used flash on rare occassions and really need a hand to go in the right direction instead of mish mashing stuff from tutorials then end up not working when i put it together in the end.
as you can see, i've already done the artwork for the site. so a major hurdle is overcome. i know, it looks cheesy...lol
i would like to do some spotlight animation where the spotlights move around on the curtains. this will be the main page.
when users click on the left menu and choose a category, a preloader animation will play...
when it's finished loading the curtains will open to reveal the fist picture in the gallery while the right side has a vertical auto scrolling gallery that will scroll through the pics in the gallery. when the user moves the cursor to the arrows on the right it will speed up.
so, it seems simple enough, but i need some suggestions to get started. your help is much appreciated.
Scrolling Slides - Newbie Making Easy Seem Hard?
Greetings,
I am trying to scroll 12 or so slides on a continuous loop. I would also like to create a button corresponding to each slide, such that if a user hovers over that button the corresponding slide will be displayed and stay until the user moves off the button. Finally, I would like the buttons to change color as their corresponding image is shown during the loop.
My plan was to use slides and slide transitions to scorll the images sequentially. The scrolling was to be controlled by actionscript in sequential frames of the root timeline which displayed a slide, paused for a specified period of time, then moved to the next frame which had similar code.
This did not work, possibly because the slide transition effects needed actual frames on the root timeline to operate in. When a spread the keyframes with the actionscript out, the delays worked fine. Go figure.
Anyhow, I got the desired scrolling effect down quite easily. My problem is with the buttons. The plan was to have the buttons move to a frame and play, which triggered the appropriate slide, then stop. On rollout a play() would be issued so the scrolling starts again. I couldn't manage it.
In the attached .fla you can see the desired scrolling, and my attemps at the button coding on buttons 1, 2 and 3. Button 1 simply pauses the scrolling on rollover and works fine. Buttons 2 and 3 attempt to switch the slides too, with varying degrees of success.
Is this a sound approach in general? Is there an easier way to achieve the same thing? If not, any code hints would be much appreciated!
Thanks!
Gibbosniper Vs Munkie Or Newbie Vs Newbie
Ok Gibbosniper,
This is the start of the thread, for our contest of Newbies brains in action. Let us set a time limit of sorts, and go from there.
Again, I am far from an MX master, I just started just over a week ago, so it might take a while for me to produce something worthy of public display, but if you are patient, so am I.
Game on!
Munkie!
Keyboard Control-for A Very Newbie Newbie
I was wondering if there is a simple way to control flash animations when
pressing a key on the keyboard. Example: Scene 1 is an animation of a
circle, this scene will continue to loop until I press the 'f' key, and
then the flash movie will change to Scene 2 where we see the circle
explode. I looked around flashkit.com and found some tutorials, but I
think they used an earlier version of flash, because I can't find the
instance properties in order to change the action from mouse click to key
press. I own flash professional 8. Anyway, I can use as much help as I
can get, so if you know of an action parameter in which I can execute
this...action, it would be greatly appreciated! Thank you for your time!
-Timmy
Newbie Asking A Newbie Question
Thanks for looking at my post. I am very new to Flash and I want to make a simple movie withsome text. I know how to insert text and customize it, but I wanted to know how I could jazz it up a bit. Add some effects to it. I was wondering if anyone could help show me how to make it shine, or glimmer, or glow, or something of tht sort, you know? You know on the Ultrashock logo when you put your mouse over it, it shines? I wanna know stuff like that. Can anyone help? Is there a tutorial or we page I can go to? Thanks in advance, and thanks for looking even if you can't help...
Simple /:xpos Scrolling, However Load External .swf When Scrolling Stops
Hi guys I need some help with a simple horizontal slider. (See attached)
Basically I have a horizontal slider with 3 buttons which make the slider go to a specific position using:
on (release) {
/:xpos = -376;
}
Now what I want to happen is that when the button is pressed I want it to load an external .swf movie (say video.swf onto level 1)
I have tried just adding using:
on (release) {
/:xpos = 0;
loadMovieNum("video.swf", 1);
}
which just loads the movie and then scrolls. However I need it to be the other way around. It scrolls to the location and then loads the movie.
I would really like it to use some type of statement telling it that if xpos = -350 then load .swf onto level 1 and if xpos has not yet reached -350 to do nothing.
However the major principal is to get the scroll and then the load, rather than the other way around.
Cheers
Dom
Scrolling Text Field That Stays Scrolling On Rollover
on (rollOver) {
mytext.scroll--;
mytext.maxscroll = x;
}
Here is my code, you have to keep clicking the button to scroll the text field, how do I code it to just have the mouse rollover the button and the text field will continue to scroll automatically? Thanks.....
On Press Scrolling Problem. Scrollbar. Scrolling. Button
How do I make this actually work for on press? It works fine for when you just click it, but the on press function doesnt work.
thanks for any help.
on (press) {
textbox.text._y += scrollVal;
if (textbox.text._y>upperLimit) {
textbox.text._y = upperLimit;
}
lineLoc = slider.line._x;
linelength = slider.line._width;
slider.handle._x = ((textbox.text._y/lowerLimit)*lineLength)+lineLoc;
}
Using Flash Scrolling Text Box To Create Scrolling Schedule
Hi All,
For work, I'm creating a PowerPoint presentation which needs to include a really long schedule. I wanted this schedule to crawl up the screen. I thought of doing this part in Flash and inserting it into the PPT. Has anyone had luck with this sort of thing using PPT and Flash? Is there a better strategy. I have CS3 Web and Production and will be doing this portion of the project this weekend and thought I'd ask some pros. Is there another CS3 product that might be better. I am more Familiar with After Effects but haven't used it for anything quite like this before.
Thanks!
How To Smooth The Movement (scrolling Background And Scrolling Menu ) ?
hi! i'm new here and also a beginner in flash.. i need some help on how to smooth the movement in my flash project.. scrolling background with scrolling menu.. i got this script from a tutorial and i did some adjustment on it.. but somehow both the background and menu movement are not smooth as i want. its kept jerky along their movement. this is the script that i use to move both background and menu.. hope someone can help me to repair or to alter this script.. thanks! =)
//scrolling background with scrolling menu
//when mouse moves left, background and menu moves right
if ((_xmouse>-0.5) && (_xmouse<230) && (_ymouse>-0.1) && (_ymouse<450)) {
_root.back._x =_root.back._x +6 ;
_root.menu_mc._x =_root.menu_mc._x +10 ;
}
// when mouse moves right, background and menu moves left
if ((_xmouse>400) && (_xmouse<616) && (_ymouse>-0.1) && (_ymouse<450)) {
_root.back._x =_root.back._x -6 ;
_root.menu_mc._x =_root.menu_mc._x -10 ;
}
if (_root.back._x>1309.5) {
_root.back._x = -79;
}
if (_root.back._x<-697.8) {
_root.back._x =679;
}
//----------------------------------------------
if (_root.menu_mc._x>1200.5) {
_root.menu_mc._x = -99;
}
if (_root.menu_mc._x<-730) {
_root.menu_mc._x =569;
}[/size][/size][/size][/size]
(quickie) Scrolling HTML Field Not Scrolling To The End
Hey guys and girls,
I've got some data from a file displaying in a wrapped, HTML textfield. text is formatted and appears as expected but as i try to scroll, it only scrolls one line down and stops.
the maxscroll property returns 5, and the scroll goes down to 2 and for some reason won't go further down.
but, and here's the fun part driving me f*3%# nuts... if i select the field and then use arrows, i can scroll it that way... but then once i've done that, the buttons work too. I tried using the selection object .. but nothing... and i've turned off the HTML and seen that scroll (probably coincidently) would have a maxscroll of 2.
so question is... what the ****? how can i get thing to work? thanks world. peace.
Question: Text Scrolling Vs. Clip Scrolling
I'm working on a scrollbar right now, and have it working quite nicely for scrolling a movie clip. But I began to wonder, which is better, scrolling a clip with text or scrolling the text itself?
Any thoughts on this flash community?
Personally, I like the fact that you can implement easing and get a smooth scroll by scrolling the clip, but then again, with the scroll wheel now available for the text scrolling, that's cool too.
Anyway, just curious on everyone's thoughts on this. Which do you like to see when you visit a site?
Automatic Scrolling On Mouse Over For Text Scrolling
hi all, ive made a scrolling text box with an up and down button as listed in the tutorials. i know how to make it move 1,2,3,etc lines at a time when the mouse is over but what code/variable do i need to replace the number with to make the text scroll continously as long as the mouse is over it?
thanks
bast
Stopping A Scrolling Thumbnail Scrolling On Its Loadup?
Firstly hey all hope you can help me with what is hopefully an easy question.
Firstly I've made a vertical scrolling verison based on the actionscript of this Tutorial. However because of the lopped motion Tween it begins scrolling instantly after its loaded. I want it to load frozen until the mouse is rolled-on is there anyway in actionscript or by editting the tweens to make it this possible???
This link is an example of my thumbnail scroller (sorry for the shameless self promo of my website!)
http://seantooley.com/pages/Scars&Sp...sGallery15.htm
This is a link to the tutorial I used (tutvid.com) Though it was good!.
http://www.youtube.com/watch?v=2TrIQ...1DBDD6&index=5
Lastly the actionscript if it helps. which I hope someone can! I would be a very grateful man to whoever can provide the answer !!
_root.onEnterFrame = function(){
if(_root._xmouse<240) {
myVar=false;
}
if(_root._xmouse>2) {
myVar=true;
}
if(_root._ymouse<13 and myVar==true) {
ImageBar.prevFrame();
}
if(_root._ymouse>445and myVar==true) {
ImageBar.nextFrame();
}
}
Thanks again Sean Tooley
Scrolling Flash Pane On Scrolling Web Page
This is a repost, but I've still not figured out a solution.
I have a Flash movie that appears on a webpage. The Flash contains scrolling content ( scrollpane, text field, whatever).
The containing webpage is tall, and therefore also has scrollbars.
My Problem: When users try to use the MouseWheel to scroll through my Flash scrolling data, the browser page scrolls as well. It's very annoying.
I would like to be able to have the MouseWheel scroll my Flash scrolling content when it's over the flash, but scroll the webpage when it's not over the Flash.
Does anybody know a way to supress wheel-based browser page-scrolling while my mouse is over a Flash movie??? Is there a way to eat/stop propagation, whatever, of the wheel event in the brwoser, either from Flash or from Javascript?
Scrolling A Dynamically Created Mc (rollover Scrolling)
I've been trying to find a way to do this for a while...
Anyone have any good tutes, examples on creating the horizontal scrolling menu with dynamically attached clips? the style where if the user mouses over the right hand side of the menu it slides left, etc?
there's lots of tutes out there for simple scrolling but not much that take a dynamically sized clip into consideration!
thanks for any input.
Scrolling Photo Gallery But Not Flat Scrolling, Please Help Out
Hey everyone...
First off all, I thank you all to read my first thread in this website and also thanks Kirupa to give me chance to learn from you all masters.
As I am designing a website in which I am stuck where there is a flash script required. I am looking for a script which makes a small 5 to 6 Image scrolling photo gallery.
My problem is I don’t want flat gallery I am looking for a gallery which shows the perspective image coming from a deeper wall (e.g. image attached). In this Image below asume gray is a piller and the image have to scroll from the deep part of the piller in perspective.
Hope you guys and gals can help me.. I'm really stuck here.
Thanks
Rupesh
My Scrolling Pane Won't Stop Scrolling OnRollOut...
I'm having trouble getting the scroll to stop, and can't find a problem in the code. It's in a movie clip called "timeline."
Code:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(timeline);
function scrollPanel(){
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if (panel._x>=-900) {
panel._x = -900;
}
if (panel._x<=-3100) {
panel._x = -3100;
}
var xdist = _xmouse-0;
panel._x += Math.round(-xdist/7);
}
You might notice that I have timeline specified in the var b bit of code, which was the only way I could get it to scroll smoothly - otherwise, it scroll jerky and only a few hundred pixels.
Scrolling Nav Versus Scrolling Textbox...who Will Win?
'ello boardsters...
problem: i have a movie, we'll call it Movie1.
Movie1 contains a scrolling navigation bar.
Movie1 also contains a blank movieclip- Holder- into which are loaded other, content, movies.
One of which- we'll call it Content1- contains a textScroller movieclip for updateable news- the text is loaded in from a .txt file.
the PROBLEM is... when Content1 is loaded into Movie1 and you use the scrollbar on Content1's textScroller, the scrolling navigation bar back in Movie1 gets stuck on one speed- too fast to make it useable.
why's it doing this? are the two in conflict somehow? i'm no programmer, i get my code on..well, flashkit actually! so i'd appreciate some help.
love ya all (particularly the helpful ones)
delilah
Difference Between Scrolling A MC And Scrolling A Textfield?
Hi there,
What is the difference from scrolling a textfield and scrolling a movieclip?
My scrollbar resizes automatically with textfields,
and I don't know how to scroll movieclips within the same scroller. Do I only have to change some names or something?
Thanks Already
Vertical Scrolling Menu Not Scrolling
i'm using flash mx
i inserted this code from a friend who had a horizontally scrolling menu and altered it slightly to suit my vertical menu. when i test it nothing moves.
i have this action placed in frame 3 of my movie:
center = 220.5;
reelPos = reel._y;
topStop = -360;
bottomStop = 360;
and in frame 4 i have this action:
if (_xmouse<774 & _xmouse>10) {
reelSpeed = (_ymouse-center)/10;
reelPos = Math.round (reelPos+reelSpeed);
if (reelPos<topStop) {
reelPos = topStop;
}
if (reelPos>bottomStop) {
reelPos = bottomStop;
}
reel._y = reelPos;
}
what am i missing here?
Scrolling Text Stops Scrolling
i just finished a messing with a site somebody wanted me to update. Since i really am new at flash, i am still learning about action scripting. I entered the content into a text box that has some scrpiting to scroll down under a mask. It scrolls just fine, but it stops before the entire field is seen. No matter how long the text field gets, it always stops at the same place when viewing the movie.It does this with all the fields at the same point...here is what it says in the "positioning movie" what is this saying?...any help woud be great
*the problem is this isnt something i made, so it makes it that much more difficult.
y = getProperty("../movie", _y);
if (y<70) {
gotoAndStop(10);
} else {
setProperty("../movie", _y, y-6);
}
[F8] Scrolling Thumbnails - Not Scrolling - Involves Xml
Howdy,
I have been working on a site that will display a portfolio for a friend of mine who is a photographer. I want to have thumbnails that can be scrolled on the bottom of the page, and an area where the thumbnail is presented when selected. I have the thumbnails appearing. I have them loading, however, I can't get them to scroll when the mouse moves to the left or right of the row of images.
The file can be viewed at... http:www.prestigeinteractive.com/anneliephotography
Here is the code I used for the slideshow:
Code:
var slideshow_mc:MovieClip = this;
var image_Array:Array = new Array();
var description_Array:Array = new Array();
var thumbnails_Array:Array = new Array();
var currentPicture:Number = 0;
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild; //here "this" refers to the XML object. This should be okay, I think
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image_Array[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description_Array[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails_Array[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
//added this so that it shows in your thumbnails
desc_txt.text = "file not loaded!";
}
}
xmlData = new XML(); //prepare XML object
xmlData.ignoreWhite = true; //tell XML to ignore empties (unnecessary in this application b/c XML is well-formed
xmlData.onLoad = loadXML; //function to load when XML loads.
//I had to change this line to make sure that it's loading from the correct location, because you're loading the
//file from one level up
xmlData.load("./flash_files/images.xml"); //load XML data; when loaded, run loadXML
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
currentPicture = 0;
slideshow_mc.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (currentPicture<(total-1)) {
currentPicture++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image_Array[currentPicture], 1);
desc_txt.text = description_Array[currentPicture];
picture_num();
}
}
}
function prevImage() {
if (currentPicture>0) {
currentPicture--;
picture._alpha = 0;
picture.loadMovie(image_Array[currentPicture], 1);
desc_txt.text = description_Array[currentPicture];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image_Array[0], 1);
desc_txt.text = description_Array[0];
picture_num();
}
}
function picture_num() {
current_pos = currentPicture+1;
pos_txt.text = current_pos+" / "+total;
}
//I think I know what this function is doing, but I'm not sure exactly how it works
function thumbNailScroller() {
// thumbnail code!
slideshow_mc.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(thumbnailNumber) {
thumbnail_mc.createEmptyMovieClip("t"+thumbnailNumber, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
//target_mc is the thumbnail that was just loaded
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+thumbnailNumber)._width+5)*thumbnailNumber;
target_mc.pictureValue = thumbnailNumber; //here you're assigning a value to the thumbnail object
target_mc.onRelease = function() {
//target_mc is the thumbnail that was just loaded
//"this" should be okay below, but it COULD be problematic, depending on the scope
//when the click is evaluated; here could be a problem area, but I'm not sure
currentPicture = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
//target_mc is the thumbnail that was just loaded
//"this" should be okay below, but it COULD be problematic, depending on the scope
//when the click is evaluated; here could be a problem area, but I'm not sure
this._alpha = 50; //here "this" refers to the target_mc MovieClip; it can stay
thumbNailScroller();
};
target_mc.onRollOut = function() {
//"this" should be okay below, but it COULD be problematic, depending on the scope
//when the click is evaluated; here could be a problem area, but I'm not sure
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener); //listener to see when thumbnail is loaded
image_mcl.loadClip(thumbnails_Array[thumbnailNumber], "thumbnail_mc.t"+thumbnailNumber);
}
Thanks for your help,
Greg
Vertical Scrolling To Horizontal Scrolling...HELP
So I created a movie with 6 thumbnails on the left side which, when clicked, scroll the full-sized images on the right to show the respective image. However, with the current code, the large images scroll vertically. I want them to scroll horizontally (and then I can move my thumbs to the bottom so as not to be in the way). I'm pasting the code I used below, can someone help me with what changes I would need to make to the code to switch from vertical to horizontal scrolling? Thanks!!
this.createEmptyMovieClip("images", 100);
this.attachMovie("mask","mask", 101);
mask._x = images._x = 550;
mask._y = target = 311.8;
images._y = -1000;
images.setMask(mask);
speed = 7;
for (var i=1; i<7; i++) {
var img = images.attachMovie("image"+i, "image"+i, i);
img._y = img._height*i;
var thumb = this["thumb"+i];
thumb._alpha = 60;
thumb.pos = target+(i*-img._height);
thumb.onPress = function() {
target = this.pos;
};
thumb.onRollOver = function() {
this._alpha = 100;
};
thumb.onRollOut = function() {
this._alpha = 60;
};
}
this.onEnterFrame = function() {
images._y += (target-images._y)/speed;
};
Instead Of Scrolling Text - Scrolling Image
Ive learned how to add a scroll bar to my text boxes - but since I cant make the text in the textboxes do actionscript - I was thinking I could replace the text with an image of the text - and then add buttons to the words.
Simply what im asking is - how can I make an image (it will be of text) scroll inside of a specified area so that it looks just like dynamically loaded text with a scrollbar?
Scrolling Thumbnails Not Scrolling Within Parent Fla
yes - yet another question regarding the popular and useful photogallery tutorial.
i've gotten it to work, and gotten the swf loaded into a movie clip in my parent fla - but the scroll feature doesn't seem to work...
any help is greatly appreciated.
thanks
zach
Scrolling Thumbnails - Not Scrolling - Involves Xml
Howdy,
I have been working on a site that will display a portfolio for a friend of mine who is a photographer. I want to have thumbnails that can be scrolled on the bottom of the page, and an area where the thumbnail is presented when selected. I have the thumbnails appearing. I have them loading, however, I can't get them to scroll when the mouse moves to the left or right of the row of images.
The file can be viewed at... http:www.prestigeinteractive.com/anneliephotography
Here is the code I used for the slideshow:
Code:
var slideshow_mc:MovieClip = this;
var image_Array:Array = new Array();
var description_Array:Array = new Array();
var thumbnails_Array:Array = new Array();
var currentPicture:Number = 0;
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild; //here "this" refers to the XML object. This should be okay, I think
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image_Array[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description_Array[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails_Array[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
//added this so that it shows in your thumbnails
desc_txt.text = "file not loaded!";
}
}
xmlData = new XML(); //prepare XML object
xmlData.ignoreWhite = true; //tell XML to ignore empties (unnecessary in this application b/c XML is well-formed
xmlData.onLoad = loadXML; //function to load when XML loads.
//I had to change this line to make sure that it's loading from the correct location, because you're loading the
//file from one level up
xmlData.load("./flash_files/images.xml"); //load XML data; when loaded, run loadXML
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
currentPicture = 0;
slideshow_mc.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (currentPicture<(total-1)) {
currentPicture++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image_Array[currentPicture], 1);
desc_txt.text = description_Array[currentPicture];
picture_num();
}
}
}
function prevImage() {
if (currentPicture>0) {
currentPicture--;
picture._alpha = 0;
picture.loadMovie(image_Array[currentPicture], 1);
desc_txt.text = description_Array[currentPicture];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image_Array[0], 1);
desc_txt.text = description_Array[0];
picture_num();
}
}
function picture_num() {
current_pos = currentPicture+1;
pos_txt.text = current_pos+" / "+total;
}
//I think I know what this function is doing, but I'm not sure exactly how it works
function thumbNailScroller() {
// thumbnail code!
slideshow_mc.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(thumbnailNumber) {
thumbnail_mc.createEmptyMovieClip("t"+thumbnailNumber, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
//target_mc is the thumbnail that was just loaded
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+thumbnailNumber)._width+5)*thumbnailNumber;
target_mc.pictureValue = thumbnailNumber; //here you're assigning a value to the thumbnail object
target_mc.onRelease = function() {
//target_mc is the thumbnail that was just loaded
//"this" should be okay below, but it COULD be problematic, depending on the scope
//when the click is evaluated; here could be a problem area, but I'm not sure
currentPicture = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
//target_mc is the thumbnail that was just loaded
//"this" should be okay below, but it COULD be problematic, depending on the scope
//when the click is evaluated; here could be a problem area, but I'm not sure
this._alpha = 50; //here "this" refers to the target_mc MovieClip; it can stay
thumbNailScroller();
};
target_mc.onRollOut = function() {
//"this" should be okay below, but it COULD be problematic, depending on the scope
//when the click is evaluated; here could be a problem area, but I'm not sure
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener); //listener to see when thumbnail is loaded
image_mcl.loadClip(thumbnails_Array[thumbnailNumber], "thumbnail_mc.t"+thumbnailNumber);
}
Thanks for your help,
Greg
Instead Of Scrolling Text - Scrolling Image
Ive learned how to add a scroll bar to my text boxes - but since I cant make the text in the textboxes do actionscript - I was thinking I could replace the text with an image of the text - and then add buttons to the words.
Simply what im asking is - how can I make an image (it will be of text) scroll inside of a specified area so that it looks just like dynamically loaded text with a scrollbar?
Scrolling MC Won't Stop Scrolling
Hey,
OK...I have a scrolling MC with buttons...everything works fine and dandy, except that I would like the scroller to either stop scrolling when it reaches the end or loop. Help Please.
here is my code which is on the 1st frame of my movie:
Mark = 150;
Mouse = _root._ymouse;
diff = Mark-Mouse;
Move = diff/20;
_root.scrollImage._y = _root.scrollImage._y+Number(Move);
IE = Scrolling, Netscape = No Scrolling
aside from figuring out how to make a correct paypal button, my site is working (thanks to help from people here)...
but there's 1 glitch to it...
at the main page, www.onenovember.com there are 2 rollover buttons to the 2 separate sites that I have, and to each one, I applied the followed javascript action to make a pop-up window with no scrollbars, toolbars, etc.
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.onenovember.com/convergence.html','newWin','width=700,height=700,l eft=0,top=0,toolbar=No,location=No,scrollbars=No,s tatus=No,resizable=No,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(700/2); top_point = parseInt(screen_height/2)-(700/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");
Netscape recognizes it, and works correctly, but whenever I open either of the "sites" in Internet Explorer (5.1 on a Mac using OS 10.2), there are scrollbars, toolbars, etc... and I don't know what to do...
Scrolling Text With Scrolling MC
Hey Guys,
I wonder if someone could give me some help with this problem as it's hurting my head!
I have some thumbnails set up which are pulled in by XML. I have up and down buttons which allows the users to scroll through the thumbs. I have just added a dynamic text box to the side which again uses xml to pull in the content. I now want it so that as well as the thumbs scrolling the text also scrolls at the same time. Here's the code I have:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.UP) {
prevImage();
} else if (Key.getCode() == Key.DOWN) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._xmouse>=thumbnail_mc._x) && (_root._xmouse<=thumbnail_mc._x+thumbnail_mc._widt h)) {
if ((_root._ymouse>=(hit_right._y-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._y -= scroll_speed;
} else if ((_root._ymouse<=(hit_left._y+40)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._y += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._y =(target_mc._height+5)*k;
//trace(target_mc._width+" "+target_mc._parent._rotation)
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
/******************************/
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("kungfu.css");
myText.styleSheet = kungFuStyle;
/******************************/
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("kungfu.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
Thanks
Shell
AS NEWBIE NEEDS SERIOUS HELP
i got a problem, ive made buttons which grow bigger when the user roll overs they 'bonce up' and when the user rolls off they bonce back down ;
i made MC and on that i placed this code:
-------------
onClipEvent (load) {
mc2 = 100;
// initialise _xscale.
friction = 0.8;
ratio = 0.3;
speed = 0;
}
onClipEvent (enterFrame) {
if (mc2 != this._xscale) {
speed = (speed*friction)+(mc2-this._xscale)*ratio;
this._xscale += speed;
this._yscale += speed;
}
}
---------------------
and in side of this movie clip is a graphic in one layer and an invisable button on another layer, on the invisable button i placed this code.
-----------------
on (rollOver) {
mc2 = 150;
}
on (rollOut) {
mc2 = 100;
}
-----------------------------
now the AS works but i cant use them as buttons as i cant apply mouse actions. so i want them to go to the next frame or scene it doesnt work. I want the AS buttons, cause they look good, but if i use it im not sure how to make them work as buttons. PLEASE HELP.
I'm No Newbie But I Need Newbie Help
I am great at actionscripting one one side of the spectum but on the other I have no clue what arrays are. If someone could explain what an array was and how it is an portant I would greatly apprieciate it.
Newbie Help
Hi, I just created a flash banner for my webpage im starting. Unfortunately my html is not so good.
I just want to know how you can display the banner on the top-center the webpage in html. Any help is appreciated.
Thanks.
Newbie Needs Help
I'm looking to have part of the movie read 'loading' while the movie loads to the user's computer. Anyone know how? I'd appreciate some help..
thanks
Panzerr
http://www.frostburn.org
Newbie Help....
y0y0 wat up.....im new to flash(i know a lil bit) but i know swish very well....i was wondering if flash is a language like vb or c++ and also if anyone has any tutorials or things i could learn from.....because i look at open source files and they dont help at all ....... i dont understand them.........well any help at all would be cool.......thanks
peace
Newbie Needs Help W/IE
when I play my movie in the swf player, i'm fine. it's when it preview in internet explorer that everything is shrunken and off center. Anybody know why?
Help A Newbie
Ok, I'm pretty new to Flash and I have what I think is a Newbie question. I've looked around the site and can't find an answer, so... here we go:
I'm trying to make a small movie for the bottom corner of a webpage - a team signature to be exact. I'd like to use 3 pictures(jpegs), text and some motion tweening - pretty basic.
I traced the images and converted them to symbols. The symbols now look more like a painting than a picture and that is fine.
What I am wondering is if there is a way to determine how big a symbol is when it is converted? My movie ended up being about 78k, which is way to big for such a small piece of a page - about 200px X 200px.
Also, is there a better technique that I am not aware of for what I am doing?
Any help would be MUCH appreciated!
|