Old 12-18-2006   #1 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 37

Interactive Image Panning

Guys

Just wondering, any of you guys tried the interactive image panning tutorial from Kirupa website?

kirupa.com - Interactive Image Panning, Page 1

Does it really work cause it is not working for me. I'm using Flash MX. The image did not move at all. I tried Kirupa's version as well as Webwasp's version. Both didnt work.

I downloaded Kirupa's example file but MX refused to open it due to error.
Babybutch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-18-2006   #2 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,627

I can't get the supplied example file to open in Flash MX either (I get "unexpected file format"), but I have got the effect to work. What you need to do is to make sure that your Movie Clip instance is named "bg_mc", as that value is hard-coded into the script:

Code:
this.onMouseMove  = function()  {

constrainedMove(bg_mc, 4, 1);
Attached is a screenshot to show you where you set the instance name.

Obviously, if your instance is called something else, you could alter the script to use that name instead.
Attached Thumbnails
interactive-image-panning-pan_instancename.jpg  
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-19-2006   #3 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 37

Thanks Tamlin for replying.

Well I did insert bg_mc for movie clip instance.

Anyway I did screen shots of my steps. Can you tell me what I did wrong?

1. Create new doc. 300 px x 200 px. 25 fps. Click ok.

http://img.photobucket.com/albums/v177/JJNEOGEO/s1.gif

2. Insert picture. I took it from Kirupa's.

http://img.photobucket.com/albums/v177/JJNEOGEO/s2.gif

3.Select picture and convert it into Movie Clip. I named it as cloudsMC. Click ok.

http://img.photobucket.com/albums/v177/JJNEOGEO/s3.gif

4. Click that picture again and insert bg_mc in Properties.

http://img.photobucket.com/albums/v177/JJNEOGEO/s3.gif

5. Insert script on the first frame of the timeline.

http://img.photobucket.com/albums/v177/JJNEOGEO/s5.gif

6. Not working.

Would very much appreciated if you can tell me what I did wrong.
Babybutch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-19-2006   #4 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,627

Hmm...you seem to have followed all the steps correctly, although I hardly ever use Flash so I'm by no means an expert. Your interface looks slightly different to mine, though, so I can't be sure (I have Flash MX 2004). Anyhow, here's a link to the FLA file that I created (I used one of my own photographs):

http://www.waterden.net/stuff/imagepantest.fla

Here's the JPG I used:

http://www.waterden.net/stuff/panoramasmall.jpg
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2006   #5 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 37

Thanks for uploading your file Tamlin but unfortunately Flash refused to open it due to error. My Flash is not MX 2004. Just MX.

I think it has something to do with MX itself as I heard it has quite many bugs/flaws compared to the old Flash 5. Also probably it has something to do with the compatibility of actionscript itself.

Probably I'll buy Flash MX 2004 in the future, in any case.

Thanks again for helping Tamlin. Very much appreciated.
Babybutch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2006   #6 (permalink)
Janitor of Lunacy
 
tamlin's Avatar
 
Join Date: May 2006
Location: Sitting in the Wishing Chair
Posts: 4,627

I see the problem now. In MX 2004 you can save FLA files in MX format, but when I tried it with the ImagePan.fla that I made, it lost the ActionScript (which is the bit that makes it work). Obviously that code is not supported in MX.
__________________


Religion: It's all fun and games until someone gets burned at the stake...
tamlin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2006   #7 (permalink)
Registered User
 
Join Date: Feb 2006
Posts: 37

Aye, I was thinking the same thing as well.

Nevertheless I really appreciate your effort to help me out with all these.

Thanks Tamlin. Very much.
Babybutch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
webpage as an image pscoke Adobe Photoshop 3 11-27-2006 09:35 AM
Cutting out an image Phoenix Wynde BioRUST Specific Threads 5 09-11-2006 11:37 PM
Free Image Hosting baxterboy The Marketplace 2 06-24-2006 06:46 AM
CSS hover tutorial Telos Tutorial Submission 7 06-09-2006 06:38 AM
image cahnge muffins HTML / PHP / ASP / JS 3 06-30-2004 02:54 PM


All times are GMT +1. The time now is 08:08 AM.
Content Relevant URLs by vBSEO 3.2.0 RC7

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT