corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » flash script help


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author flash script help
Matt L
Member

Registered: 17th Apr 06
User status: Offline
5th Jan 09 at 18:23   View User's Profile U2U Member Reply With Quote

just messing with a gallery atm trying to get it to work.

atm it is doing the following
var frontCDWidth:Number = 200;
var frontCDHeight:Number = 300;

but i would like it to just pic up the pictures in the size they are as i will resize them to that size in photoshop.

i want it to pick up there own sizes so that pictures that are landscape dont get messed up.

hope that makes sense asking for help as my normal helper (planty) isnt at his comp atm

[Edited on 05-01-2009 by Matt L]

[Edited on 07-01-2009 by Matt L]
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
5th Jan 09 at 18:40   View User's Profile U2U Member Reply With Quote

That's Javascript.

Can't answer your question though.
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
5th Jan 09 at 18:41   View User's Profile U2U Member Reply With Quote

Have you tried just removing those 2 lines so it doesn't explicitly set the size?
Matt L
Member

Registered: 17th Apr 06
User status: Offline
5th Jan 09 at 18:43   View User's Profile U2U Member Reply With Quote

yeh nothing comes up when they get deleted
Planty02
Member

Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
5th Jan 09 at 20:30   View User's Profile U2U Member Reply With Quote

its not javascript, its Flash actionscript, However I don't know if there are any similarities in their workings
Planty02
Member

Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
5th Jan 09 at 23:19   View User's Profile U2U Member Reply With Quote

It seems that the size of the image/object is defined by variables that remain the same for all images.

What is really needed is some method is setting sizes for each object (i.e 200x300 for some, then 300x 200 for varying orientations)
Matt L
Member

Registered: 17th Apr 06
User status: Offline
7th Jan 09 at 09:49   View User's Profile U2U Member Reply With Quote

any one got any ideas?
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
7th Jan 09 at 10:19   View User's Profile U2U Member Reply With Quote

Is this an image gallery on a web page or something?
Matt L
Member

Registered: 17th Apr 06
User status: Offline
7th Jan 09 at 10:23   View User's Profile U2U Member Reply With Quote

yeh it is. its one that we have downloaded from some site that we are changing to be able to use my pictures.

but obviously cant work out this part.

[Edited on 07-01-2009 by Matt L]
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
7th Jan 09 at 10:25   View User's Profile U2U Member Reply With Quote

Oh right.

I just use jQuery and a plugin for any image gallery type stuff.

http://jquery.com/
http://malsup.com/jquery/cycle/
Matt L
Member

Registered: 17th Apr 06
User status: Offline
7th Jan 09 at 10:29   View User's Profile U2U Member Reply With Quote

i dont want to change the gallery though as i love this styled one.

just want it to stop resizing the pictures.
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
7th Jan 09 at 10:31   View User's Profile U2U Member Reply With Quote

Normally you have to specify an image size in these types of scripts, either in the code that gets loaded when the page is loaded, or in the <img> tags themselves.

Link to where you got the script from?
Matt L
Member

Registered: 17th Apr 06
User status: Offline
7th Jan 09 at 11:02   View User's Profile U2U Member Reply With Quote

even better

it is infact this one honest
http://www.weberdesignlabs.com/blog/?p=11
Planty02
Member

Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
7th Jan 09 at 20:10   View User's Profile U2U Member Reply With Quote

The image size is defined in the galleries actionscript Sam. However by defining a size, you tie every image to be either landscape or portrait whereas as what we really want is a mixture of bother

i.e. 200 (w) x 300 (h) for portrait and 300 (w) x 200(h) for landscape
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
11th Jan 09 at 01:40   View Garage View User's Profile U2U Member Reply With Quote

Not familiar with exactly what you need to do but something similar to PHP getimagesize function then present those assignments inside an if statement to declare them according to the image you're displaying.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
xhtml validation help Houckham Geek Day 2 371
3rd Jun 06 at 18:37
by Houckham
 
Web Design Antz Geek Day 12 943
23rd Jan 07 at 09:04
by AdZ9
 
Javascript function changing css? Rus Geek Day 1 651
22nd Jun 07 at 10:53
by Rus
 
website building help! antscorsa Geek Day 6 809
12th Jul 07 at 17:29
by loafofbrett
 
website opinions and css advice. Jodi_the_g Geek Day 16 481
23rd Dec 08 at 16:32
by John
 

Corsa Sport » Message Board » Off Day » Geek Day » flash script help 28 database queries in 0.0158782 seconds