-
$25 via paypal to the first person who provides me with the script that works
Need to get the correct code for two scenarios:
1:
on a button click I need a child to unload and the movie to go to and play another scene. I do not want to do any coding to the child. I want the parent only to handle this, and I don't want to specify the XY coordinates of where the child should be. I simply want it to unload the currrent child from the stage.
2:
In the second scenario, the only difference is, I do not want the player to go to a new scene, just to a different place on the same timeline. (again, the remove code must be for a any child that is on the stage. It cannot be named or specified in any other way because there are too many buttons and different child swf's loading (too many different ways the viewer can navigate through the portfolio).
Here's what I have so far:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
The above works.
///
in addition, I have tried putting below this the following:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
removeChild(currentObj);
currentObj = null;
}
...and I tried:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
portfoliobut.addEventListener(MouseEvent.CLICK, buttonRelease1);
function buttonRelease1(e:MouseEvent):void{
removeChild(currentObj);
currentObj = null;
}
///The above was used in conjunction with this:
var currentObjisplayObject;
currentObj = loader;
///I tried putting this above the other code, I tried combining it with the code that calls the child to the stage. I have no idea how to use this, so I tried everything I could think of. Nothing worked.
////then I tried this:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
removeChildAt(numChildren-1);
}
///and this:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
portfoliobut.addEventListener(MouseEvent.CLICK, buttonRelease1);
function buttonRelease1(e:MouseEvent):void{
removeChildAt(numChildren-1);
}
NOTHING WORKED> $25 if you can make this work for me.
Best regards,
Vernontnh
-
[moved to Freelance forum]
Please use [php] or [code] tags, and mark your threads resolved 8)
-
its very confusing the way u hv explained
I f u culd provide the fla thn explain
it wuld be really easy
u can mail me the the thing on nikhiljoshi122@yahoo.co.in
-
Originally Posted by vernontnh
Need to get the correct code for two scenarios:
1:
on a button click I need a child to unload and the movie to go to and play another scene. I do not want to do any coding to the child. I want the parent only to handle this, and I don't want to specify the XY coordinates of where the child should be. I simply want it to unload the currrent child from the stage.
2:
In the second scenario, the only difference is, I do not want the player to go to a new scene, just to a different place on the same timeline. (again, the remove code must be for a any child that is on the stage. It cannot be named or specified in any other way because there are too many buttons and different child swf's loading (too many different ways the viewer can navigate through the portfolio).
Here's what I have so far:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
The above works.
///
in addition, I have tried putting below this the following:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
removeChild(currentObj);
currentObj = null;
}
...and I tried:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
portfoliobut.addEventListener(MouseEvent.CLICK, buttonRelease1);
function buttonRelease1(e:MouseEvent):void{
removeChild(currentObj);
currentObj = null;
}
///The above was used in conjunction with this:
var currentObjisplayObject;
currentObj = loader;
///I tried putting this above the other code, I tried combining it with the code that calls the child to the stage. I have no idea how to use this, so I tried everything I could think of. Nothing worked.
////then I tried this:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
removeChildAt(numChildren-1);
}
///and this:
portfoliobut.addEventListener(MouseEvent.CLICK, click);
function click(e:MouseEvent):void{
gotoAndPlay(1, "portfolioFashion/people");
}
portfoliobut.addEventListener(MouseEvent.CLICK, buttonRelease1);
function buttonRelease1(e:MouseEvent):void{
removeChildAt(numChildren-1);
}
NOTHING WORKED> $25 if you can make this work for me.
Best regards,
Vernontnh
Could you be clear about the 2nd scenario.
my mail id is ssamsun@gmail.com
-
still this job available? Couldn't you get any solution from anyone?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|