Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Loading Images In A Line With A Scroll Bar Underneath



Hi, like to have something like this website: http://www.davolo.com/. So when you click an icon, it will load each image and have a scroll bar below. anyone can help? I'm new to flash, have worked out quite a bit. this last bit I'm missing.tony



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-17-2008, 10:30 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How Can I Have A Line Or Something Go Underneath A Background?
Ok i'm making a movie and i have Machine gun in it but i don't know how to have the bullets go underneath the background so they don't just keep flying over a wall. I just want them to go underneath and dissappeared. Just in case it's different in different versions of Flash i'm just Flash 8. Thanks.

Automatically Loading Images To Scroll Pane
Hi I need my flash movie to automatically load .jpg images out of a folder and add them to the scroll pane.

For example I set my flash webpage and on the server I have a folder called pictures, I need the flash movie to automatically load all the jpgs in that folder and add them to the scroll pane (matching a certain size and expanding the scroll bar.

thx

Scroll Images, Loading From Folder.Little Trouble
I want to scroll images, loading from folder, but in my code some mistake.
Where?

This is my code:

speed = 80
imgcount = 4
function moveimg()
{
for (i = 1; i <= imgcount; i++)
{
mc_name = "img" + i;
_root[mc_name]._x--
if(_root[mc_name]._x <= (_root[mc_name]._width *-1))
{
_root[mc_name]._x += xpos
}
}
}
xpos = 0;
for (i = 1; i <= imgcount; i++)
{
mc_name = "img" + i;
var myBitmapData = i + ".jpg";
createEmptyMovieClip(mc_name, getNextHighestDepth());
loadMovie(i + ".jpg", mc_name);
mc_name._x = xpos;
xpos = xpos + myBitmapData.width+10;

}
intervalId = setInterval(moveimg, (100 - speed));

Loading Swf's Underneath Objects In Parent Swf
I'm trying to load .swf's underneath the navigation because
in every category I need to change the background image.
I made an empty container movieclip and named it "cont_mc" and for
button action I wrote loadMovie("source.swf","cont_mc");

I then made a cont_mc layer and put it underneath the layers
I wanted to remain after the other movie loaded but it doesn't work......help!....what am I doing wrong?

DHTML Menu Loading Underneath Flash Movie. How Do I Fix It?
I'm working on a site where I have a drop-down dhtml menu and underneath it is a flash animation. Problem is, whenever I rollover the drop-down menu, it loads BEHIND the flash movie, rather than on top of it. So basically, I can't see the menu options.

Is there a way around this? If so, what changes do I need to make to my code?

Thanks in advance for any help you can offer.

-RoG-
http://ww.I-Mockery.com

How To Scroll Less Than 1 Line?
Hi!

I’m trying to make my scrolling box appear a little smoother than it is now, so what I think I want to do, is make it scroll less than 1 line each time it is triggered.

What I have done, is make a button that triggers the scrolling each 200 millisecond as long as the mouse is over it. What I'm planing to do, is trigger it more frequently, but make it scroll less than one line.

Loading Text Line By Line..?
Hi all, been using flash for a while to do linear animations for my sites but this one involves some simple actionscript and I'd like to know the best way to achieve the following please:

Basically I have a variable which will count from x to x and I need it to "reveal" a line of text when the counter gets to specific numbers.
For example; counter reaches 50 and I want the line "counter at fifty" to be added to a text box.

I'd like this text box to actually scroll too when the text begins to go off the bottom of the screen.


Now I've tried doing this with an animated mask, which moves down a line at a time when it reaches the specified variable counter number. But this does not allow me to move the text up easily when it begins to overflow the stage.

I figure that the way it is likely to be done is to load up the lines into an array and then use a loop to unhide the lines when the conditions are met. But I can't figure it out! Been trying for about 2 days now :P

Thanks very much for any help!

How Do I Scroll Text And Images With The Scroll Bar
Hi

I am stuck and have never used the UI scrollbar . How would I scroll images alongside text with the UIscrollbar. thank you very much..... I Really need someones help

[F8] Dynamic Text Scroll More Than One Line
hello, been racking my brain for weeks with this. trying to get my externally loaded dynamic text to scroll. My code to make it appear and scroll for one line at a time works fine, but when i replace the "scroll buttons" code with the "NEW scroll buttons" code in an attempt to get ti to scroll more than one line - it no longer scrolls at all. I am including my code below in the hopes that maybe it's a simple target path issue. thanks!

Attach Code


Code:
//-----<my current code which works; scrolls one line at a time>----\


stop();

var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("css/dynamicText.css");
cssStyles.onLoad = function (success:Boolean) {
if(success) {
_level0.mainfaqs.loadedInfo.styleSheet = cssStyles;
_level0.mainfaqs.myLV.load("vars/faqs.txt");
} else {
_level0.mainfaqs.loadedInfo.htmlText = "There has been an error loading the requested information. Please contact the webmaster.";
}

}

var myLV:LoadVars = new LoadVars();

myLV.onLoad = function (success:Boolean) {
if (success) {
_level0.mainfaqs.loadedInfo.htmlText = myLV.info;
} else {
_level0.mainfaqs.loadedInfo.htmlText = "There has been an error loading the requested information. Please contact the webmaster.";
}
}

myLV.load("vars/faqs.txt");


//-------------<scroll buttons>----------------\
this.scrollDown.onRelease = function(){
loadedInfo.scroll +=1;
}
this.scrollUp.onRelease = function(){
loadedInfo.scroll -=1;
}

//-------------</scroll buttons>----------------\

//-----</my current code which works; scrolls one line at a time>----\



//-----<this is the code that does not work when I replace the scroll buttons code>----\



//-------------< NEW unsuccessful scroll buttons code >----------------\
this.scrollDown.onPress = function(){
scrollDirection = "down";
scrollText();
}
this.scrollUp.onPress = function(){
scrollDirection = "up";
scrollText();
}
this.scrollUp.onRelease = function() {
delete _root.onEnterFrame;
}
this.scrollDown.onRelease = function() {
delete _root.onEnterFrame;
}
function scrollText(){
_root.onEnterFrame = function() {
if (scrollDirection == "up") {
loadedInfo.scroll -= 1;
} else if (scollDirection == "down") {
loadedInfo.scroll += 1;
}
}
}


//-------------</ NEW unsuccessful scroll buttons code>----------------\

//-----</this is the code that does not work when I replace the scroll buttons code>----\

How To Programatically Scroll Txt To A Certain Line/word?
need to programatically scroll a dynamic textfield to a certain "word/position/line", resulting from a indexOf() query.

Dynamic Text To Scroll More Than One Line
hello, been racking my brain for weeks with this. trying to get my externally loaded dynamic text to scroll. My code to make it appear and scroll for one line at a time works fine, but when i replace the "scroll buttons" code with the "NEW scroll buttons" code in an attempt to get ti to scroll more than one line - it no longer scrolls at all. I am including my code below in the hopes that maybe it's a simple target path issue. thanks!







Attach Code

//-----<my current code which works; scrolls one line at a time>----\


stop();

var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("css/dynamicText.css");
cssStyles.onLoad = function (success:Boolean) {
if(success) {
_level0.mainfaqs.loadedInfo.styleSheet = cssStyles;
_level0.mainfaqs.myLV.load("vars/faqs.txt");
} else {
_level0.mainfaqs.loadedInfo.htmlText = "There has been an error loading the requested information. Please contact the webmaster.";
}

}

var myLV:LoadVars = new LoadVars();

myLV.onLoad = function (success:Boolean) {
if (success) {
_level0.mainfaqs.loadedInfo.htmlText = myLV.info;
} else {
_level0.mainfaqs.loadedInfo.htmlText = "There has been an error loading the requested information. Please contact the webmaster.";
}
}

myLV.load("vars/faqs.txt");


//-------------<scroll buttons>----------------\
this.scrollDown.onRelease = function(){
loadedInfo.scroll +=1;
}
this.scrollUp.onRelease = function(){
loadedInfo.scroll -=1;
}

//-------------</scroll buttons>----------------\

//-----</my current code which works; scrolls one line at a time>----\



//-----<this is the code that does not work when I replace the scroll buttons code>----\



//-------------< NEW unsuccessful scroll buttons code >----------------\
this.scrollDown.onPress = function(){
scrollDirection = "down";
scrollText();
}
this.scrollUp.onPress = function(){
scrollDirection = "up";
scrollText();
}
this.scrollUp.onRelease = function() {
delete _root.onEnterFrame;
}
this.scrollDown.onRelease = function() {
delete _root.onEnterFrame;
}
function scrollText(){
_root.onEnterFrame = function() {
if (scrollDirection == "up") {
loadedInfo.scroll -= 1;
} else if (scollDirection == "down") {
loadedInfo.scroll += 1;
}
}
}


//-------------</ NEW unsuccessful scroll buttons code>----------------\

//-----</this is the code that does not work when I replace the scroll buttons code>----\

























Edited: 10/10/2007 at 09:02:12 AM by yesdream

Set Scroll To Line Matching Word
hello - i have a text field with scroller full of text. how can i search for a word and set it to the top? can you find the line number of a word by doing a search?

thanks in advance.

D.

In-line Images
Hi,

I've got an application where I am loading HTML text from an XML datasheet into a dynamic text field in Flash. I need to figure out a way to place images inline with the text. Unfortunately Flash doesn't support the img tag within HTML text fields, so I need another approach.

Any ideas would be really appreciated.

- m

In-line Images
Hi,

I've got an application where I am loading HTML text from an XML datasheet into a dynamic text field in Flash. I need to figure out a way to place images inline with the text. Unfortunately Flash doesn't support the img tag within HTML text fields, so I need another approach.

Any ideas would be really appreciated.

- m

Scrolling Text By One Line Without Textbox.scroll
I'm trying to move a textbox line by line in a nice smooth way, rather than using textbox.scroll which would 'jump' from line to line.

My problem is finding the right amount of pixels to constrain by.

There seems to be an indefinite amount between lines??
I've set the linespacing to 0, and my fontsize is 15pt. During authoring, the distance between lines seems to be 15px, but this causes synch problems after publishing. I also tried finding the size of the textbox and dividing this by the number of lines. This gives me about 15.5 px, which for some reasn is also too much.
Code:
code:
t_info2.autoSize = "left";
info2 = "line1"+newline+"line2"+newline+"line3"+newline+"l ine4"+newline+"line5"+newline+"line6"+newline+"lin e7";
_root.onMouseDown = function() {
oldY = t_info2._y;
spacer = t_info2._height/7
_root.onEnterFrame = function() {
t_info2._y -= 1;
if (t_info2._y<=oldY-spacer) {
delete _root.onEnterFrame;
}
};
};

Is there a better way to do this??
Many thanks in advance.
fla attached.
Click to advance line by line, it will start to fall out of sync at about line5.

[F8]How To Make A Scrollbar To Scroll The Time Line?
As the topics, how to make a scrollbar to scroll the timeline of a target movie clips? My situation is, im going to load a video to a target movieclip, but i want to make a scrollbar that can control the timeline of the video... I found some script but the script will stop the video when i drag the drag bar around, and i want the drag bar to continue moving when the video is playing too... any helps will be appreciate

Scrolling Line Of Images
Hello,

I have 600 width scrolling line. In this 600 px can be seen 5 pictures. Scrolling line has 2 buttons (forward and back).
If I pressed forward button all line is scrolling per one image to right, in and if i press back, line is scrolling (per one image) back.
So this thing i have done.
Now the problem is:
when i'm scrolling to right, and reaching last image, i cann't see the first one again (or if i'm scrolling back, and reaching the first image, i cann't scroll again, because i won't see the last one).
So the main idea is to make loop.
How can i release this?

I have attached simple fla file, where i have released scrolling line without loop..
Maybe anyone will help me?
I would be really grateful.

Marius

Line Draw With Images?
hi, I'm working on a ragdoll program and i've hit a wall... my program will rotate the lines it produces using linedraw but if you draw your own images they kinda... orbit and don't spin... is there a way to linedraw but instead of lines you use png's or jpg's..or import from the library?

Hair-line Images
Hi,

I want to know if there is a quicker way to convert from a regular drawn images on flash to a hair-line images. I have over 200 drawn images that needed to be converted to a hair-line images.

Any help will be greatly appreciated!

Thank in advance

How Can You Make A Custom Scroll Bar That Controls The Time Line?
I need to make a custome scroll bar (horizontal) and when you move it right or left it controls the time line nextframe and previous frame.

if someone can explain this or provide an fla i would really apprecaite it.


Thanks.

Scroller Jumping To Middle Of Scroll Line Once Clicked.
I have an external loaded mc text file scrolling and easing just fine, my only issue is that when first pressed (scroller_mc), it jumps half way down my scroll line (line_mc). Every thing else works perfect after the scroll button (scroller_mc) makes the initial jump to the middle of the scroll line. I have followed a lynda.com tutorial 4 times and saw no mention of a bug, and followed the code exactly. Any help with this is much appreciated. Thanks

//---------------code---------------//
var textLoader:URLLoader = new URLLoader();
var textFile:URLRequest = new URLRequest("text/external.txt");

var scrollPercent:Number = 0;
var minScroll:Number;
var maxScroll:Number;
var targetScroll:Number = text_mc.y;
var easing:Number = 6;

function textLoaded(event:Event):void
{
text_mc.external_txt.text = textLoader.data;
minScroll = text_mc.y;
maxScroll = minScroll - text_mc.height + mask_mc.height;
}


function dragScroller(event:MouseEvent):void
{
var dragX:Number = line_mc.x;
var dragY:Number = line_mc.y;
var dragW:Number = 0;
var dragH:Number = line_mc.height;

scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
}


function stopDragging(event:MouseEvent):void
{
scroller_mc.stopDrag();
//stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
}


function setScrollPercent(event:Event):void
{
scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
if(scrollPercent < 0)
{
scrollPercent = 0;
}
else if(scrollPercent > 1)
{
scrollPercent = 1;
}
targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
text_mc.y -= (text_mc.y - targetScroll) / easing;
}


function scrollUp(event:MouseEvent):void
{

}


function scrollDown(event:MouseEvent):void
{

}


textLoader.load(textFile);
scroller_mc.buttonMode = true;
text_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);

//--------------code--------------//

[F8] HtmlText Images On Same Line As Text?
Hi guys,

I cannot workout what im doing wrong here, i have a text box, set to html, and multiline, and i'm trying this:

teText.htmlText = "<b>Well Hello!</b><img src='face2.JPG'>"

But what it's doing, is putting the image below the text, like its on a new line, and when i add the next line, the text starts on the same line as the previous image, and the new image will be the line below.

Any help?

Thanks so much!

HTML Images On Same Line In Textfield
Hey,

I have a dynamically text field that I want to populate with images.
I've set the text field parameters to:
my_txt.wordWrap = true;
my_txt.multiline = true;
my_txt.html = true;
What I want to do now is to have a series of images placed side by side on the same line of the textfield.
I tried
my_txt.htmlText = '<img src="_images/001.gif"/><img src="_images/002.gif"/><img src="_images/003.gif"/>';

All the above does is place the images line after line so in my text field only the last image added (003.gif) is visible.

I then tried adding width and height parameters to the images but the result was the same.

Anyone have any ideas?

Thanks
WIK

How To Line Up Images In Different Movie Clips?
Hi there,

I have a movieclip, does some animations etc.

Is it possible to view that movieclip at the last frame on the stage, so that i can then line up items in another movieclip with it?

Driving me nuts trying to get the pixels perfectly lined from two different clips

In-line HTML Images Do Not Print
Hi! Has anyone ever loaded HTML with images into a dynamic text field and tried to print the text field? Although the image and text appear fine at run-time, sending a command to print the instance containing the field prints only the text and not the image the text wraps around. In the printout, the effect is of the text wrapping around an invisible box. I've used print and printAsBitmap. I'm exporting to Flash Player 8.

In-line HTML Images Do Not Print
Hi! Has anyone ever loaded HTML with images into a dynamic text field and tried to print the text field? Although the image and text appear fine at run-time, sending a command to print the instance containing the field prints only the text and not the image the text wraps around. In the printout, the effect is of the text wrapping around an invisible box. I've used print and printAsBitmap. I'm exporting to Flash Player 8.

Line Block Effect Over Images
Hi all, I am interested in applying a simple effect to images on my site. On many sites, they have an effect that is placed over the top of an image, where long rectangles a randomly moving from left to right.

They have varied opacity which is simple enough but I would very much like to know the method for doing something similar to this, can anyone help me out with the action script side of things or provide me with a link to a tutorial

Cheers

Horizontal Scroller For Line Of Images
Hey, I'm wondering how I could get a line of images, spanning horizontally, to fit in a window by having them navigatable with a horizontal scrollbar.

Like:

|`````````````````````````````|
| |````| |````| |````| |````| |``|
| | img | | img | | img | | img | | im|
| |____| |____| |____| |____| |__|
|_____________________________|
|____________(scrollbar)_________|

There would actually be about 10-15 images in this row, but I want the window to be smaller.
Thanks

Line Block Effect Over Images
Hi all, I am interested in applying a simple effect to images on my site. On many sites, they have an effect that is placed over the top of an image, where long rectangles a randomly moving from left to right.

They have varied opacity which is simple enough but I would very much like to know the method for doing something similar to this, can anyone help me out with the action script side of things or provide me with a link to a tutorial

Cheers

Scroll Pane Border - Unsighly White Line Hmmmm
Hi

I have a scrollpane into which is bought an swf which in turn has different text imported. I have applied a theme to the scroll pane and have an action in the first frame to get rid of the pane border (_root.newstxt.borderStyle = "none" .... but still have an unsightly white line at the very bottom of the srcollable area, which i cannot get rid of. Any idea where I can get control of it and remove it?

You can check it at


thanks in advance
ashleyhttp://194.150.253.72/edit/default.asp?V_ITEM_ID=8

username admin
password pass

How To Make A Line Of Images Continue Moving Across The Page?
I have about 6 images that i want to have move across the page but i dont know how to make them continue following each other as if they are going in a circle but not round (see what i mean?) they are just following each other and when the last one starts going across the screen the first one follows it. i want each of these to be buttons also but that i think i can do. i am just having problems with the moving images and how to get them to follow each other when the first set has gone by.
thanks
arielle

Problem With Multiple Images On The Same Line Of Dynamic Text
Hi.

I am having a problem using the img src tag under flash 7 with text areas.

I would like to have an image, some text, then another image on a single line. This displays fine in standalone html but when i embed it in a text area on a flash file the 2nd image jumps down to the line below.

Why does flash improperly interpret the image tag and how would i go about fixing this..

Thank you for your time.

Displaying In Line Images In Flash Dynamic Text Box
Hello all -

I have checked out the sample in Flash MX 2004 regarding "Text Enhancements" ... I even got my file to load and scroll properly - my problem/question is this:

Sometimes the text displays fine ... but after I edit my external html file to display an inline image, the text formats to a couple of point sizes smaller, so its difficult to read.

Even after I take the image tag out of my external html file, the text size still remains the same (small) size.

Does anyone have an idea why this is OR how I can fix it?
Won't you please help?

Here are my files for reference:

main site: http://www.curtisdw.com/wellbrock/We...k_content.html (go to 'Our Story')
CSS file: http://www.curtisdw.com/wellbrock/sample.css
external html file: http://www.curtisdw.com/wellbrock/TXT/sample.html

Actionscript to load external file:var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("sample.css");
content.styleSheet = ss;

content.multiline= true;
content.wordWrap = true;
content.html = true;

story = new XML();
story.ignoreWhite = true;
story.load("TXT/sample.html");
story.onLoad = function () {
content.htmlText = story;
}

In-line Images In Html-textField Or TextArea Comp.
Hey,
I have a problem inserting images in a textArea component or a textfield rendered as HTML, when any image is inserted it goes to the next line where the text is. I need this for a chat component, inserting smileys on conversations.
Im including the <img> tag with all parameters but it is not working.

Thanks

Loading External Images Randomly, Getting The Amount Of Images Out A *.txt
hello there!


i've made an a script that loads images externaly from a specific map
randomly. there's only one thing:


how can flash learn to know how many images are loaded?


it's for a client so he can only upload the images and that's it.
can he somehow fill in a *.txt-file that flash can use further???


this is my sourcecode for the external-stuff:

code:

_root.importImage = "background_netomzet"+random(*)+".jpg";



(the * has to be a value that needs to be generated by how many pics
there are in the image map")


thanks a million people!


g

Scroll Bar That Will Scroll Through Images
I am trying to make a scroll bar that will scroll through images. I have only seen how to do it with dynamic text. Is there a way to put thumbnails in a horiziontal scroll?

Scroll Images...
hi all,
how scroll images in flash mx?
(demo: http://www.z3roadster.net/dreamweave...ith_images.htm)

now i can scroll text but how can i scroll text with images ?

please help !

thanks andy
http://www.neunelfer.ch

How Do You Scroll Images?
hope someone can help me out here. been looking at this wbsite

http://www.martin-h.com/

and trying to work out how the images scroll, from step1 to the other steps.

Is it in the timeline or is there action scripting needed?

any thoughts flash dudes?!

How Do I Scroll Images?
Hi,

Im updating my bands website and need to learn how to scroll images within a scrolling text box. Basically the effect i want to achieve can be seen here:

http://www.thecoral.co.uk/coral05/index.php

The record sleeve images scroll alongside the text. How do you do this?? Im using Flash MX 2004 on a Mac.

Any help would be gratefully received,

Thanks.

B.

How Do I Scroll Images?
Hi,

Im updating my bands website and need to learn how to scroll images within a scrolling text box. Basically the effect i want to achieve can be seen here in the 'Music' section:

http://www.thecoral.co.uk/coral05/index.php

The record sleeve images scroll alongside the text. How do you do this?? Im using Flash MX 2004 on a Mac.

Any help would be gratefully received,

Thanks.

B.

How Can I Scroll Images(PLEASE HELP)
i have a set of images, how do i create a scroll for them horizontally or vertically like on this site http://www.lynntanaka.com/
please help me

Scroll Images..
Hi all,

I want to scroll the dynamically loaded images ( image sizes are same) continuously like the ticker component's text scrolling. Is it possible to load images instead of text in Fticker component?.

Actually i want to show the products. if any item is clicked , then its corresponding description is loaded into a dynamic Text Field.

Any ideas or suggesstions are mostly appreciated.

Jsam.

Scroll Images
I'm producing a CD ROM presentation, and have a section where the user can browse a series of images. I don't knwo how to create this, but know what I want.

Does anyone know of a movie / tutorial that scrolls a series of images horizontally (left/right) in continuous loop, and when an image is clicked it expands to a larger version (and then reduces again on another click)?

Any help, gratefully received.

Scroll Images
Okay, here is the story so far, after guidance and mixed tutorials I have put together a movie which imports the images from seperate keyframes in a movie clip.

As planned each individual image is duplicated into a _mc and has the ability to be dragged and dropped onto a canvas mc and is thus removed from an array where it sits. On dropping off the canvas it is placed back into the array.

I now want the images to scroll as in the kirupa thumbnail tutorial. I have got so far as to rollin over a button and they all move but disappear into oblivion? Plus its jittery and I noticed i could use tweens to make it smooooove. Please would anyone guide me into getting these images to scroll, ideally on rolling over the images themselves like the kirupa tutorial. Pretty please

as as follows:


Code:
titles.push ("Iola & mum");
titles.push ("Iola & Boo");
titles.push ("Iola by the sea");
titles.push ("Iola & mum again");
titles.push ("Iola & Ba");
titles.push ("page six");
//==================
// STOP THINGS ON PAGE 1
content_mc.stop ();
//==================
//build icons from each img on key frames in icon mc
show = [];
_global.nameOf = new Object ();
function buildIconList () {
var spacing:Number = 100;
var iconY:Number = 280;
var iconX:Number = 60;
for (var i = 0; i < content_mc._totalframes; ++i) {
var newName:String = "icon_mc" + i;
var clip:MovieClip = content_mc.duplicateMovieClip (newName, 10000 + i);
show.push (clip);
clip.gotoAndStop (i + 1);
clip._y = iconY;
clip._x = iconX + i * spacing;
clip.homeX = clip._x;
clip.homeY = clip._y;
clip._alpha = 80;
clip.icon_btn.onPress = function () {
removeImage (this._parent);
startDrag (this._parent);
title_txt.text = titles[this._parent._currentframe - 1];
};
clip.icon_btn.onRollOver = function () {
this._parent._alpha = 100;
this._parent._height = 80;
this._parent._width = 100;
};
clip.icon_btn.onRollOut = function () {
this._parent._alpha = 80;
this._parent._height = 60;
this._parent._width = 80;
};
clip.icon_btn.onRelease = function () {
iconReleased (this._parent);
stopDrag ();
};
}
}
buildIconList ();
//==================
function iconReleased (icon:MovieClip) {
if (eval (icon._droptarget) != _root.canvas_mc) {
icon._x = icon.homeX;
icon._y = icon.homeY;
addImage (icon);
}
trace ('ARRAY: ' + tArray);
}
//==================
var tArray:Array = show.slice ();
//function to remove elements of array
function removeImage (clip) {
for (var j = 0; j <= tArray.length; j++) {
if (clip == tArray[j]) {
tArray.splice (j, 1);
break;
}
}
}
function addImage (clip) {
tArray.push (clip);
tArray.sort ();
}
btn_test.onRollOver = function () {
trace("btn");
clearContent();
}
function clearContent () {
//_root.holder_mc.clear();
for (var i = 0; i <= content_mc._totalframes; ++i) {
var name:String = "icon_mc" + i;
_root[name]._x += 10;
}
}

Scroll Images
Hi there
I would like to create an animation similar to below in the link... Where there is a series of 4 images with a scroll left / scroll right option where people can scroll through more images... as they press the button... the images slide away and new ones come in...

Have you seen a tutorial like this or perhaps could you help me set this up?


http://www.templatemonster.com/flash...g3mf5572na6ps3

Loading Images Into A Container-H And V Images Centered
I am trying to load multiple images into a container clip to make an image gallery. Since there are both horizontal and vertical images I want the images to load into the center of the container clip (the center of container clip is aligned with the center of each image) because I cannot align both h and v images in my design by a corner. how do I do this?
Thank you!

Scrolling Images With A Scroll Bar
I'm trying to set up a register form in flash and want to scroll the box's using the scroll bar is this possible???

Scroll Images With Button
Im really not so new to flash, but to ActionScripts I am.

I have two arrows at each end of the movie that controlls a slide image..

on (release) {
setProperty ("/scroll", _x, - Number(mw));
}

next is then :

on (release) {
setProperty ("/scroll", _x, - Number(mw*1));

}

and folows .. but the things is.. this "script" is then for multi buttons in my menu but now i changed it all to TWO buttons ..

"back" and "forward" .. really, how shall i re-code it?


button to the left got the script:
on (release) {
setProperty ("/scroll", _x, "35.0");
}

Help Me I Cannot Get My Images To Scroll With My Text?
I can get the Dynamic text to scroll but how do I add images, like a jpeg or Tif into that to get it to scroll?

Copyright © 2005-08 www.BigResource.com, All rights reserved