Home
> FlashEff 2.0
> Topic
FlashEff2Code showTransition problems
Posted by wampg
FlashEff2Code showTransition problems November 28, 2010 12:40AM | Registered: 14 years ago Posts: 5 |
Re: FlashEff2Code showTransition problems November 29, 2010 08:49AM | Admin Registered: 16 years ago Posts: 547 |
Re: FlashEff2Code showTransition problems December 02, 2010 10:55PM | Registered: 14 years ago Posts: 5 |
those things are impossible :(( ; i made that this but still isnt what i want
i have a photo galley and 2 btn for next/previous photo
i have 1 UILoader components - UILoader.name = avatar, and 15 photos in some xml file;
that UILoader is in MovieClip symbol - i call that MovieClip symbol with UILoader on stage 9 times:
for (var i:int=0; i < 9; i++) {
currentStar= new fotO(); // fotO - is name of my MovieClip with that UILoader, to export for ActionScript
currentStar.avatar.setSize(377, 191.65);
... ...
}
in MovieClip i have showTransition on that UILoader:
frame1
import com.jumpeye.Events.FLASHEFFEvents;
var effect:FlashEff2Code = new FlashEff2Code();
addChildAt(effect,0);
var i=0;
var rands = Math.floor(Math.random() * 13);
while(i!=MovieClip(this.parent).myA.length){
if(rands==MovieClip(this.parent).myA[i]){
rands = Math.floor(Math.random() * 13);
i=0;
}
else{i++;
}
}
MovieClip(this.parent).myA.push(rands)
effect.showTransition = MovieClip(this.parent).efect[rands]
function completeHandler(event:Event):void {
ldr.visible=false
ldr.gotoAndStop(1)
effect._targetInstanceName = "avatar";
}
avatar.addEventListener(Event.COMPLETE, completeHandler);
----------------
on stage i have 3 menu btn
when i press 1 of those menu btn i want to load other 15 photos in those MovieClip's that i created on stage
HERE problems appear :
i can load what i want where i want, but i dont have that showTransition effect anymore
i tried to use : - effect.show() - after - effect._targetInstanceName = "avatar";
is ok, when i press menu btn and load new photos i have that effect, but now, when i try to use next/previous btn, i have that effect on the last photo added on screen each time i press next/previous btn
i made new frame - FRAME2
avatar.unload();
avatar.addEventListener(Event.COMPLETE, completeHandler1);
function completeHandler1(event:Event):void {
effect.show()
}
and when i press menu btn i have :
currentStar.gotoAndStop(2);
but still the same problem when i press next/prev btn
WHAT i want:
because i have lot's of photos for each menu tab, i use on stage only 9 times my MovieClip, as i said before, and when i press 1 from menu btn, i load 9 from my photo one for each MovieClip with showTransition effect
then when i press next/prev btn i unload 1 from those 9 photos and i load another photo but this time i dont want to have showTransition effect - i want this effect only for first 9 photos
after this, when i press another menu btn i want that showTransition effect again only for first 9 photos loaded, and i dont want it for others (nrTotal - 9) photos.
i hope you can understand something, and maybe you know what i must do
thx
i have a photo galley and 2 btn for next/previous photo
i have 1 UILoader components - UILoader.name = avatar, and 15 photos in some xml file;
that UILoader is in MovieClip symbol - i call that MovieClip symbol with UILoader on stage 9 times:
for (var i:int=0; i < 9; i++) {
currentStar= new fotO(); // fotO - is name of my MovieClip with that UILoader, to export for ActionScript
currentStar.avatar.setSize(377, 191.65);
... ...
}
in MovieClip i have showTransition on that UILoader:
frame1
import com.jumpeye.Events.FLASHEFFEvents;
var effect:FlashEff2Code = new FlashEff2Code();
addChildAt(effect,0);
var i=0;
var rands = Math.floor(Math.random() * 13);
while(i!=MovieClip(this.parent).myA.length){
if(rands==MovieClip(this.parent).myA[i]){
rands = Math.floor(Math.random() * 13);
i=0;
}
else{i++;
}
}
MovieClip(this.parent).myA.push(rands)
effect.showTransition = MovieClip(this.parent).efect[rands]
function completeHandler(event:Event):void {
ldr.visible=false
ldr.gotoAndStop(1)
effect._targetInstanceName = "avatar";
}
avatar.addEventListener(Event.COMPLETE, completeHandler);
----------------
on stage i have 3 menu btn
when i press 1 of those menu btn i want to load other 15 photos in those MovieClip's that i created on stage
HERE problems appear :
i can load what i want where i want, but i dont have that showTransition effect anymore
i tried to use : - effect.show() - after - effect._targetInstanceName = "avatar";
is ok, when i press menu btn and load new photos i have that effect, but now, when i try to use next/previous btn, i have that effect on the last photo added on screen each time i press next/previous btn
i made new frame - FRAME2
avatar.unload();
avatar.addEventListener(Event.COMPLETE, completeHandler1);
function completeHandler1(event:Event):void {
effect.show()
}
and when i press menu btn i have :
currentStar.gotoAndStop(2);
but still the same problem when i press next/prev btn
WHAT i want:
because i have lot's of photos for each menu tab, i use on stage only 9 times my MovieClip, as i said before, and when i press 1 from menu btn, i load 9 from my photo one for each MovieClip with showTransition effect
then when i press next/prev btn i unload 1 from those 9 photos and i load another photo but this time i dont want to have showTransition effect - i want this effect only for first 9 photos
after this, when i press another menu btn i want that showTransition effect again only for first 9 photos loaded, and i dont want it for others (nrTotal - 9) photos.
i hope you can understand something, and maybe you know what i must do
thx
Re: FlashEff2Code showTransition problems December 03, 2010 12:34PM | Admin Registered: 16 years ago Posts: 547 |
Well, at this point I suggest you should open a ticket from here:[www.jumpeyecomponents.com] and send us the source files you are working on.
Re: FlashEff2Code showTransition problems December 03, 2010 03:12PM | Registered: 14 years ago Posts: 5 |
Re: FlashEff2Code showTransition problems December 03, 2010 03:18PM | Registered: 14 years ago Posts: 5 |
Re: FlashEff2Code showTransition problems December 03, 2010 03:39PM | Admin Registered: 16 years ago Posts: 547 |
Re: FlashEff2Code showTransition problems December 03, 2010 04:20PM | Registered: 14 years ago Posts: 5 |
Re: FlashEff2Code showTransition problems December 08, 2010 09:35AM | Admin Registered: 16 years ago Posts: 547 |
Sorry, you do not have permission to post/reply in this forum.