Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Galleria immagini

This is a discussion on Galleria immagini within the Actionscript 3.0 base forums, part of the Flash CS3 generale category; ciao a tutti!!! vDevo chiedervi un aiuto Volevo riutilizzare una galleria immagini che avevo usato in precedenza. Il problema che ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale > Actionscript 3.0 base

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-03-08, 17:26
Junior Member
 
Join Date: Feb 2008
Posts: 16
Rep Power: 0
stradiwatt is on a distinguished road
Question Galleria immagini

ciao a tutti!!!
vDevo chiedervi un aiuto
Volevo riutilizzare una galleria immagini che avevo usato in precedenza.
Il problema che il codice è scritto con Actionscript 2.0.
Se vi posto il codice sapreste aiutarmi?

//////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////

var imgNum = 6;
var imgwidth = 420;
var imgSpeed = 0.10000000000000001;
var mty = 0;
var mty2 = -imgwidth * imgNum;
MovieClip.prototype.sMove = function(speed, ty) {
getY = speed * (ty - this._y);
this._y += getY;
};
this.upimg.onEnterFrame = function() {
this.sMove(imgSpeed, mty);
};
this.downimg.onEnterFrame = function() {
this.sMove(imgSpeed, mty2);
};
var i = 0;
while (i < imgNum) {
this[("num" + i)].onRollOver = function() {
nowNum = Number(this._name.slice(3, 4));
mty = -imgwidth * nowNum;
mty2 = -(imgwidth * imgNum - imgwidth * nowNum);
};
i++;
}
/////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 15-03-08, 16:58
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,350
Blog Entries: 1
Rep Power: 6
Flep is on a distinguished road
Re: Galleria immagini

Ciao

Scusa, dove ti serve l' auto ? Quel codice non va ?
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-03-08, 06:57
Junior Member
 
Join Date: Feb 2008
Posts: 16
Rep Power: 0
stradiwatt is on a distinguished road
Re: Galleria immagini

Ciao Flep
grazie deli'interessamento.
Quando vado a fare un test il risultato è il seguente:
sull'output:
"WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored."

sul compilatore degli errori:
'Symbol 28', Layer 'ActionScript', Frame 1,Line 7 1120: Access of undefined property getY. getY = speed * (ty - this._y);
'Symbol 28', Layer 'ActionScript', Frame 1,Line 8 1120: Access of undefined property getY. this._y += getY;
'Symbol 28', Layer 'ActionScript', Frame 1,Line 19 1120: Access of undefined property nowNum. nowNum = Number (this._name.slice(3, 4));
'Symbol 28', Layer 'ActionScript', Frame 1,Line 20 1120: Access of undefined property nowNum. mty = -imgwidth * nowNum;
'Symbol 28', Layer 'ActionScript', Frame 1,Line 21 1120: Access of undefined property nowNum mty2 = -(imgwidth * imgNum - imgwidth * nowNum);

questo è quanto.
invio anche ail file originale
grazie
Attached Files
File Type: rar Galleria immagini.rar (253.0 KB, 2 views)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-03-08, 07:05
Junior Member
 
Join Date: Feb 2008
Posts: 16
Rep Power: 0
stradiwatt is on a distinguished road
Re: Galleria immagini

Mi sono reso conto che non ho spiegato una cosa importante:
vorrei riutilizzare questo codice in unfla con AS3!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 17-03-08, 07:22
Blusquare's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Rome
Posts: 22
Rep Power: 0
Blusquare is on a distinguished road
Send a message via MSN to Blusquare
Re: Galleria immagini

Ciao ecco una piccola tabella per i clip video per AS3 del codice guarda se puoi' applicarla nella galleria.

ActionScript 2.0

_name
_x
_y
_width
_height
_xscale (0-100)
_yscale (0-100)
_rotation
_alpha (0-100)
_visible
_xmouse
_ymouse
_parent

ActionScript 3.0

name
x
y
width
height
scaleX (0-1)
scaleY (0-1)
rotation
alpha (0-1)
visible
mouseX
mouseY
parent
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

photoFlow

  #6 (permalink)  
Old 17-03-08, 11:17
Junior Member
 
Join Date: Feb 2008
Posts: 16
Rep Power: 0
stradiwatt is on a distinguished road
Re: Galleria immagini

Ti ringrazio molto.
Questo mi è molto utile.
stradiwatt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 17-03-08, 18:38
Blusquare's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Rome
Posts: 22
Rep Power: 0
Blusquare is on a distinguished road
Send a message via MSN to Blusquare
Re: Galleria immagini

Di nulla poi fammi sapere se dopo le modifiche ti parte.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
StripGallery - galleria immagini Flash CS3 + XML Flep Utilità di FlepStudio 20 20-09-08 13:49
Galleria immagini full screen Flep Utilità di FlepStudio 5 22-08-08 11:23
Galleria Immagini Marco78 Actionscript 3.0 avanzato 0 06-03-08 10:37
Sito Flash con galleria, news ed eventi aggiornabili dal cliente via web filgia Flash CS3 | PHP | mySQL 3 21-01-08 18:22
Galleria dinamica cecco Actionscript 3.0 base 3 24-11-07 15:21


All times are GMT. The time now is 05:31.


Powered by vBulletin versione 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406