Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Evo da budem prvi
Author Message
hamferus Offline
Forumaš
***

Posts: 350
Joined: Jun 2006
Reputation: 8
Post: #1
Evo da budem prvi
Ovo je moj prvi veliki flash projekt u kojem radim virtualno okružje maminog posla. To je pista za automodele na Knežiji. Sve je napravljeno u Action Scriptu uz pomoć tutoriala od Lee Bremilowa koji je predavo na Stanfordu, a sad radi u tvrtci Frog Design.

Code:
loader._visible = false;
//------------------Scrolling panel-------
stop();
panel.onRollOver = panelOver;
function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
    if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
    if (panel._x>=4000) {
        panel._x = -250;
    }
    if (panel._x<=-3503) {
        panel._x = 750;
    }
    var xdist = _xmouse-320;
    panel._x += Math.round(-xdist/7);
}

//---------2nd Preloader---------------
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();

mclL.onLoadProgress = function(target,loaded,total){
    loader.percent.text = Math.round((loaded/total) *100) + "%";
}
mclL.onLoadInit = function() {
    loader._visible = false;
    loader.percent.text = "";
    holder.onRelease = function(){
        holder.unloadMovie(whoIsOn);
        panel.onEnterFrame = panelOver;
    }
}
mcl.addListener(mclL);

//---------Hot Spots -----------------
panel.panel2.box_HS.onRollOver = panel.panel2.drustveni_HS.onRollOver = panel.panel2.crveni_HS.onRollOver=panel.panel2.ured_HS.onRollOver=function () {
    overHS(this);
};
panel.panel2.box_HS.onRollOut = panel.panel2.drustveni_HS.onRollOut = panel.panel2.crveni_HS.onRollOut=panel.panel2.ured_HS.onRollOut=function () {
    outHS(this);
};
panel.panel1.box_HS.onRollOver = panel.panel1.drustveni_HS.onRollOver = panel.panel1.crveni_HS.onRollOver=panel.panel1.ured_HS.onRollOver=function () {
    overHS(this);
};
panel.panel1.box_HS.onRollOut = panel.panel1.drustveni_HS.onRollOut = panel.panel1.crveni_HS.onRollOut=panel.panel1.ured_HS.onRollOut=function () {
    outHS(this);
};
function overHS(who) {
    who.gotoAndPlay("2");
}
function outHS(who) {
    who.gotoAndPlay("8");
}
//--------Ured Gumb(Button)----------------
panel.panel1.ured_HS.onRelease = function() {
    trace("Ured Hot Spot 1");
    delete panel.onEnterFrame;
    loader._visible = true;
    mcl.loadClip("ured.swf", holder);
    
};
panel.panel2.ured_HS.onRelease = function() {
    trace("Ured Hot Spot 2");
    delete panel.onEnterFrame;
    loader._visible = true;
    mcl.loadClip("ured.swf", holder);
    
};
//-----------Drustveni gumb(Button)--------------------
panel.panel1.drustveni_HS.onRelease = function() {
    trace("Drustveni Hot Spot 1");
    //delete panel.onEnterFrame;
    //mcl.loadClip("ured.jpg", holder);
    
};
panel.panel2.drustveni_HS.onRelease = function() {
    trace("Drustveni Hot Spot 2");
    //delete panel.onEnterFrame;
    //mcl.loadClip("ured.jpg", holder);
}
//-----------Crveni gumb(Button)--------------------
panel.panel1.crveni_HS.onRelease = function() {
    trace("Crveni Hot Spot 1");
    //delete panel.onEnterFrame;
    //mcl.loadClip("ured.jpg", holder);
    
};
panel.panel2.crveni_HS.onRelease = function() {
    trace("Crveni Hot Spot 2");
    //delete panel.onEnterFrame;
    //mcl.loadClip("ured.jpg", holder);
    
};
//-------------Boxovi gumb(Button)-----------
panel.panel1.box_HS.onRelease = function(){
    trace("Box Hot Spot 1");
    delete panel.onEnterFrame;
    loader._visible = true;
    mcl.loadClip("boxovi.jpg", holder);
    
}
panel.panel2.box_HS.onRelease = function(){
    trace("Box Hot Spot 2");
    delete panel.onEnterFrame;
    loader._visible = true;
    mcl.loadClip("boxovi.jpg", holder);
    
}

nažalost u php codu izgleda bolje al onda se i neke stvari promjeneu kodu pa sam editiro i vratio na staro.

Projekt se još izrađuje. Moraju se snimiti filmovi svakog objekta na pisti i onda to isprogramirat. Bit će nekih promjena u kodu kako je ovdje narihtano da se loadaju slike ili .swf-ovi. Pošto mi je fotić pun prašine od trka po offroad terenima moram ga prvo očistit da mogu snimit poštene clipove.

Jedino me muči zašto se slika i dalje vrti kad izažem sa mišm sa slike( na webu) a u flashu to normalno stane.

Tu je link
na projekt pa ako netko ima kakvu ideju slobodno pišite.

PHOTO - http://www.hamferus.com
VIDEO - http://www.metacafe.com/f/channels/hamferus/
RC WORLD - http://rcfanatic.blogspot.com
FLASH TUTORIJALI - http://blog.hamferus.com
(This post was last modified: 28-06-2006 11:46 PM by hamferus.)
28-06-2006 11:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,378
Joined: Feb 2006
Post: #2
RE: Evo da budem prvi
To je za nas prenapredno Happy Barem za mene... Al možda se nađe neko ko ti bude znao pomoć Namigivanje Možda d@d... Sretno s projektom. BTW zakon izgleda Palac-gore

Pravila foruma | Twitter - Facebook - Google+ |


Radar404 <- moj blog
29-06-2006 12:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
hamferus Offline
Forumaš
***

Posts: 350
Joined: Jun 2006
Reputation: 8
Post: #3
RE: Evo da budem prvi
Ma nema frke imam ja zlatnu žilu za flash gdje vrhunski flash programeri pomažu ljudima poput mene. Ovo sam stavil tu tak da nebude prazno, a ak netko može ponudit rješenje super.

Ovo je prvi forum na hrvatskom koji sam pronašo a bavi se ovakvim stvarima. Ja ono šta znam ponudit ću svakome tko bude imao neki problem, a ako nejde meni ići će profićima koji od tog žive.

PHOTO - http://www.hamferus.com
VIDEO - http://www.metacafe.com/f/channels/hamferus/
RC WORLD - http://rcfanatic.blogspot.com
FLASH TUTORIJALI - http://blog.hamferus.com
29-06-2006 12:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,378
Joined: Feb 2006
Post: #4
RE: Evo da budem prvi
Takvo mišljenje se cijeni. Hvala ti. Ja ću vjerojatno puno puta zapet oko Flasha pa ću te pitat, jer ja kak učim flash tak i pišem paralelno tutorijale.

Pravila foruma | Twitter - Facebook - Google+ |


Radar404 <- moj blog
29-06-2006 12:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
hamferus Offline
Forumaš
***

Posts: 350
Joined: Jun 2006
Reputation: 8
Post: #5
RE: Evo da budem prvi
Pošto će meni trebat pomoći oko phpa onda smo na istom.

Koji flash koristiš? Ja koristim 8 pro, a danas je izdana beta verzija flasha 9 koji će bit jako brutalan.

PHOTO - http://www.hamferus.com
VIDEO - http://www.metacafe.com/f/channels/hamferus/
RC WORLD - http://rcfanatic.blogspot.com
FLASH TUTORIJALI - http://blog.hamferus.com
29-06-2006 12:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,378
Joined: Feb 2006
Post: #6
RE: Evo da budem prvi
Dobro nisam ni neki php freak al znam ponešto, ipak sam isprogramiro ovaj polu cms na stranici...

Korisim Flash 8 Pro također

Pravila foruma | Twitter - Facebook - Google+ |


Radar404 <- moj blog
29-06-2006 12:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
hamferus Offline
Forumaš
***

Posts: 350
Joined: Jun 2006
Reputation: 8
Post: #7
RE: Evo da budem prvi
Ja sam krenul sa mx -om u kojem sam naučil osnove osnova, mx 2004 sam preskočil zbog mišljenja kako je to sve teško i naletio na osmicu u kojoj sam se već počel lagano snalazit, a oni mi sad izbace devetku koja ima totalno drukčiji pristup programiranju.

PHOTO - http://www.hamferus.com
VIDEO - http://www.metacafe.com/f/channels/hamferus/
RC WORLD - http://rcfanatic.blogspot.com
FLASH TUTORIJALI - http://blog.hamferus.com
29-06-2006 12:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Leviathan Offline
Forumaš
***

Posts: 313
Joined: Feb 2006
Reputation: 0
Post: #8
RE: Evo da budem prvi
hehe ja živim na knežijiHammer. dobar projekt. ja isto koristim flash 8 pro. ak si i ti na knežiji javi se ponekadPalac-gore
29-06-2006 11:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,378
Joined: Feb 2006
Post: #9
RE: Evo da budem prvi
Kakvoj knežiji?

Pravila foruma | Twitter - Facebook - Google+ |


Radar404 <- moj blog
29-06-2006 11:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Leviathan Offline
Forumaš
***

Posts: 313
Joined: Feb 2006
Reputation: 0
Post: #10
RE: Evo da budem prvi
to je naselje u ZagrebuHammer
29-06-2006 11:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)