kokobean
October 16th, 2008, 09:36 AM
Hi guys hope that im the right place and you can help me.
im trying to use the caurina.transitions.Tweener.addTween.
my folder looks like this
www.~~~~~#.com main folder :main fla with swf's to be loaded
:all #.as files
:folder caurina/-/transitions
:com folder
So i think i have my folder organised correctly, however when i got to run my main fla it comes up with errors here is one off them
ImageGallery.as, line27 There is no class or package with the name 'caurina.transitions.Tweener' found in package 'caurina.transitions'.
caurina.transitions.Tweener.addTween(overlay, {_alpha: 70, time: 1});
And it looks like everywhere there is caurina in all my .as files there is this error message.
i appologise if this is a dumb question.
any help would be greatly appreciated.
Many Thanks
sekasi
October 16th, 2008, 09:53 AM
import caurina.transitions.*
Tweener.addTween(overlay, {alpha:.7, time:1});
.. but use tweenmax instead. Its just so much better (www.tweenmax.com)
kokobean
October 16th, 2008, 12:10 PM
hi thanks so do i add ~import~ caurina.transitions to all the .as files that have
so they should all look like this :?
import caurina.transitions.Tweener.addTween(overlay, {_alpha: 70, time: 1});
Ill check out tweenmax
thanks for you help
ViktorHesselbom
October 16th, 2008, 12:17 PM
so they should all look like this :?
import caurina.transitions.Tweener.addTween(overlay, {_alpha: 70, time: 1});
No... They should look like he posted.
import caurina.transitions.*;
Tweener.addTween (overlay, {_alpha: 70, time: 1});
Tweener.addTween ...
Also, TweenLite is the best tween-engine (http://blog.greensock.com/tweening-speed-test/). TweenMax comes close but Tweener is way behind.
kokobean
October 16th, 2008, 02:00 PM
omg im getting so confused lol
ok here is a couple of lines from one of my .as files.
how would i write what you just said its easier for me to see it with the rest of the code
caurina.transitions.Tweener.addTween(overlay, {_alpha: 70, time: 1});
caurina.transitions.Tweener.addTween(thumbHolder, galleryCloseButton, {_alpha: 100, time: 1, delay: 5.000000E-001});
caurina.transitions.Tweener.addTween(galleryCloseB utton, {_alpha: 100, time: 1});
caurina.transitions.Tweener.addTween(gi, {_x: gi.homeX, _y: gi.homeY, _alpha: 50, time: 1});
sorry for any inconvenience
Tegeril
October 16th, 2008, 05:00 PM
No. You're missing the point. You do the #import caurina.transitions.*; at the beginning of the file, one time in that file, the only time in that file, nowhere else in that file, not attached to anything function call in that file..
Then you write Tweener.addTween(overlay, {_alpha: 70, time: 1});
So exactly like Viktor wrote.
kokobean
October 16th, 2008, 06:54 PM
ok i didwhat you said i got ride of all the caurine.transition.
and put in the top of the page import.caurine here is my main nav as file can you check it to see if its ok?
class MainNav extends MovieClip
import caurina.transitions.*;
{
var mgr, createEmptyMovieClip, buttonHolder, attachMovie, buttonMask, logoBar, curtain, aboutBtn, projectsBtn, newsBtn, careersBtn, contactBtn, logo, imdLogo, siteCredit, getURL, logoGradient, copyright, __get__barBottom, _y;
function MainNav()
{
super();
} // End of the function
function init()
{
mgr = new com.returnundefined.managers.ButtonClipManager();
mgr.addEventListener(com.returnundefined.controls. ButtonClip.CLICK, com.dynamicflash.utils.Delegate.create(this, onClick));
buttonHolder = this.createEmptyMovieClip("buttonHolder", 1);
buttonMask = this.attachMovie("blackBox", "buttonMask", 2, {_width: 2000});
buttonHolder._y = buttonMask._y = logoBar._y + logoBar._height;
buttonHolder.setMask(buttonMask);
curtain._alpha = 0;
aboutBtn = (com.returnundefined.controls.ButtonClip)(com.retu rnundefined.core.Application.attach(buttonHolder, "aboutBtn", "aboutBtn", 1, {_y: -35, _alpha: 0}, com.returnundefined.controls.ButtonClip, "init"));
mgr.add(aboutBtn);
projectsBtn = (com.returnundefined.controls.ButtonClip)(com.retu rnundefined.core.Application.attach(buttonHolder, "projectsBtn", "projectsBtn", 2, {_x: aboutBtn._width + 1, _y: -35, _alpha: 0}, com.returnundefined.controls.ButtonClip, "init"));
projectsBtn.addEventListener(com.returnundefined.c ontrols.ButtonClip.CLICK, com.dynamicflash.utils.Delegate.create(this, onClick));
newsBtn = (com.returnundefined.controls.ButtonClip)(com.retu rnundefined.core.Application.attach(buttonHolder, "newsBtn", "newsBtn", 3, {_x: projectsBtn._x + projectsBtn._width + 1, _y: -35, _alpha: 0}, com.returnundefined.controls.ButtonClip, "init"));
mgr.add(newsBtn);
careersBtn = (com.returnundefined.controls.ButtonClip)(com.retu rnundefined.core.Application.attach(buttonHolder, "careersBtn", "careersBtn", 4, {_x: newsBtn._x + newsBtn._width + 1, _y: -35, _alpha: 0}, com.returnundefined.controls.ButtonClip, "init"));
mgr.add(careersBtn);
contactBtn = (com.returnundefined.controls.ButtonClip)(com.retu rnundefined.core.Application.attach(buttonHolder, "contactBtn", "contactBtn", 5, {_x: careersBtn._x + careersBtn._width + 1, _y: -35, _alpha: 0}, com.returnundefined.controls.ButtonClip, "init"));
mgr.add(contactBtn);
imdLogo = (com.returnundefined.controls.ButtonClip)(com.retu rnundefined.core.Application.attach(this, "imdLogo", "imdLogo", 6, {_x: logo._x, _y: logo._y}, com.returnundefined.controls.ButtonClip, "init"));
mgr.add(imdLogo);
imdLogo.__set__selected(true);
logo._visible = false;
siteCredit.onRelease = function ()
{
this.getURL("http://www.yoursite.com", "_blank");
};
} // End of the function
function showButtons()
{
Tweener.addTween(aboutBtn, {_y: 0, _alpha: 100, time: 4.000000E-01, transition: "easeOutExpo"});
Tweener.addTween(projectsBtn, {_y: 0, _alpha: 100, time: 4.000000E-01, delay: 2.500000E-01, transition: "easeOutExpo"});
Tweener.addTween(newsBtn, {_y: 0, _alpha: 100, time: 4.000000E-01, delay: 5.000000E-01, transition: "easeOutExpo"});
Tweener.addTween(careersBtn, {_y: 0, _alpha: 100, time: 4.000000E-01, delay: 7.500000E-01, transition: "easeOutExpo"});
Tweener.addTween(contactBtn, {_y: 0, _alpha: 100, time: 4.000000E-01, delay: 1, transition: "easeOutExpo"});
inited = true;
} // End of the function
function onClick(event)
{
var _loc3 = (com.returnundefined.controls.ButtonClip)(event.ta rget);
switch (_loc3)
{
case aboutBtn:
{
_global.application.loadSection("mission");
break;
}
case projectsBtn:
{
_global.application.loadSection("projects");
this.deselectAllButtons();
break;
}
case newsBtn:
{
_global.application.loadSection("news");
break;
}
case careersBtn:
{
_global.application.loadSection("careers");
break;
}
case contactBtn:
{
_global.application.loadSection("contact");
break;
}
case imdLogo:
{
_global.application.loadSection("home");
break;
}
} // End of switch
} // End of the function
function deselectAllButtons()
{
for (var _loc2 = 0; _loc2 < mgr.buttons.length; ++_loc2)
{
mgr.buttons[_loc2].selected = false;
} // end of for
} // End of the function
function get barBottom()
{
return (Math.round(logoBar._y + logoBar._height));
} // End of the function
function onResize(ignoreY)
{
IMD.center(imdLogo, "h");
IMD.center(buttonHolder, "h");
logoBar._width = logoGradient._width = curtain._width = Stage.width;
copyright._x = Math.round(Stage.width - copyright._width);
siteCredit._x = Math.round(Stage.width - siteCredit._width);
if (!ignoreY && !isAtTop && !isOpen)
{
_y = Math.round(Stage.height - this.__get__barBottom());
}
else if (isAtTop)
{
_y = 0;
}
else if (isOpen)
{
_y = Math.round(Stage.height - this.__get__barBottom() - 50);
} // end else if
} // End of the function
var inited = false;
var isTweening = false;
var isOpen = false;
var isAtTop = false;
} // End of Class
again i really appteciate everyones help.
pizzadesign.nl
November 12th, 2008, 05:57 PM
Try downloading and re-installing the caurina package at code http://code.google.com/p/tweener/
Install the package in the directory where your .fla resides. It is NOT necessary to import caurina.transitions.* the package!
Well, I had the same problem and this worked for me.
Cheers!
Hi guys hope that im the right place and you can help me.
im trying to use the caurina.transitions.Tweener.addTween.
my folder looks like this
www.~~~~~#.com (http://www.%7E%7E%7E%7E%7E#.com) main folder :main fla with swf's to be loaded
:all #.as files
:folder caurina/-/transitions
:com folder
So i think i have my folder organised correctly, however when i got to run my main fla it comes up with errors here is one off them
ImageGallery.as, line27 There is no class or package with the name 'caurina.transitions.Tweener' found in package 'caurina.transitions'.
caurina.transitions.Tweener.addTween(overlay, {_alpha: 70, time: 1});
And it looks like everywhere there is caurina in all my .as files there is this error message.
i appologise if this is a dumb question.
any help would be greatly appreciated.
Many Thanks
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.