movement parameters..... ARGH

This is a discussion on "movement parameters..... ARGH" within the Flash & Multimedia Forum section. This forum, and the thread "movement parameters..... ARGH are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 23rd, 2007, 12:12
New Member
Join Date: May 2007
Location: uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
movement parameters..... ARGH

I'm trying to limit the scroll of a movie with dynamically loaded images in it to between its ends. (so i dont scroll into blank space).
I can't seem to make the clip scroll only as far as its length, it keeps going further! The problem lies with the movie length changing when it loads a differing number of images.

The movie loads the images like so on frame 1:

Code:

var varurl:String = "";
myData = new LoadVars();
myData.load("picsno.txt",0);
myData.onLoad = function(succes) {
if (succes) {
varurl = this.NumberOfImages;
no_ofpics.Text = this.NumberOfImages;
nPics = this.NumberOfImages;
trace(varurl)

gotoAndPlay(9);

//holder.loadMovie(this.Image);
} else {
trace("Error loading data");
}
};



So... _root.npics = number of images loaded into the "thumbnails" movie to be scrolled.


Then in frame 9

i have thumbnails movie, which loads the images onto the stage. (i want them 6 pixels apart - hence the plus 6 on line 4 below).

on the thumbnails movie i have the following script:

Code:

onClipEvent(load){

minXMouseValue = 85;
maxXMouseValue = 766;

minXMovieValue = thumbnails._x
maxXMovieValue = -(_root.npics*((_root.thumbnails._width)+6));

spanMouse = maxXMouseValue + minXMouseValue;
spanMovie = maxXMovieValue + minXMovieValue;
}



minXMouseValue & maxXMouseValue are the ends of my scroll bar background.
minXMovieValue & maxXMovieValue should be the max and min the movie thumbnails can scroll to... but I can't make them relate sensibly to the original dimension, which is the loaded image width, (90pixels).

Heeeeeelp!
Reply With Quote

  #2 (permalink)  
Old May 23rd, 2007, 21:30
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: movement parameters..... ARGH

You're on the right track - where to you designate how wide each image is?

If you defined that somewhere(which you sort of do by just telling it how many pictures there are but not the size from what I am seeing) that would mayb e take care of it?

Just a thought...
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; May 23rd, 2007 at 21:34.
Reply With Quote
  #3 (permalink)  
Old May 27th, 2007, 11:57
New Member
Join Date: May 2007
Location: uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: movement parameters..... ARGH

Hmm
thats exactly what i am trying now.
(sorry was away for a bit there!)

I am fiddling with lines like...

maxXMovieValue = -(_root.npics*(_root.thumbnails._width)/_root.npics)+(6*_root.npics);

Where the plus 6 is the gap between the images.
But this is the button, not the pic width.

but not succeeding as yet.

thanks for the pointer.
C
Reply With Quote
  #4 (permalink)  
Old May 27th, 2007, 16:21
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: movement parameters..... ARGH

A thought,

Could you define the picture width and height in the xml document (or .txt since that is what you are using) and then flash can figure it out from there because is references the pictures width?

Not sure if it'll work but you can give it a whirl.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #5 (permalink)  
Old May 29th, 2007, 07:51
New Member
Join Date: May 2007
Location: uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: movement parameters..... ARGH

I was trying to avoid adding individual pic widths to the xml/txt file as i hoped the flash could add images on the fly and not demand extra input from the user. bit tedious adding all image widths if they are differing.
But i may have to resort to that!

thanks again.
Reply With Quote
  #6 (permalink)  
Old May 29th, 2007, 09:39
New Member
Join Date: May 2007
Location: uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: movement parameters..... ARGH

I cant get the 'dam-ned' parameters right somehow the scrolled distance and the mouse moved distance are not relating in the right way. The images move too much, or are not correctly positioned.
I have been editing formulae and trying to use differing source reference points for the movement. Been trying static numbers, dynamically called dimensions, the lot.... no joy. It's so close, but it wont play ball!

I think the problem lies with the A.S. on the thumbnails movieclip in the 10th frame.
Attached Files
File Type: zip scroll_files.zip (178.1 KB, 19 views)
Reply With Quote
  #7 (permalink)  
Old May 31st, 2007, 14:19
New Member
Join Date: May 2007
Location: uk
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: movement parameters..... ARGH

Now the goal posts have moved and it all needs to be defined in an xml file.
The image names and the url's they link to.
I may have to tender this out if i cant get it together soon!
any source pointers out there?
nothing i have found is really similar.
Reply With Quote
Reply

Tags
dynamic images, scroll

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
movement problem popescuradhoo Flash & Multimedia Forum 5 Feb 11th, 2008 09:42
Div layout - argh! semantics Web Page Design 5 Jul 6th, 2007 20:33
jump to marker using parameters Smokie Flash & Multimedia Forum 5 Jan 14th, 2005 08:39


All times are GMT. The time now is 07:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43