Use that code on the actual movieclip. It is Actionscript 2 which I'm assuming you are using.
Main Topics
Browse All TopicsMy mouse action is not working. (flash 8)
I do not even get the mouse hand on test play.
It is like the mc has no code at all.
Can you please help?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Although what crittle1 suggests will work, it's not ActionScript 2. It can be used while exporting for ActionScript 2, but it's a relic from AS1, the on(ACTION) statement is not recommended at all because it makes your code illegible soon after.
You should try to use this syntax at all times:
gallery1.onRelease = function (){
gallery1.gotoAndPlay(56);
kid1.gotoAndPlay(56);
}
If it didn't work there's probably an issue with the name of the instance object. Would you mind posting your *.fla?
-V
Do you mean actually printing what's shown on the Flash file to paper?
If so, take a look at the PrintJob class:
http://help.adobe.com/en_U
http://www.actionscript.or
-V
No not the flash file. External links of a picture image........jpg.
Like this girls site.
http://www.edytajordan.com
I want the user to print the 300 res picture from my file of the picture they are viewing in the mc Loader.
Which is only a 72 res.
I just my print button to work.
My test site is: http://www.lynettesdesigns
Let me know if you have a clue.
Thanks,
me
Yeah well, that's pretty much what I meant.
You can use the PrintJob class for that. You add MovieClip references to that class. Something like:
printButton.onRelease = function() {
var my_pj = new PrintJob();
var myResult = my_pj.start();
if(myResult) {
myResult = my_pj.addPage ("myMovieClip", {xMin : 0, xMax: 400,
yMin: 400, yMax: 800},{printAsBitmap:true},
my_pj.send();
}
delete my_pj;
}
Honestly I haven't used the PrintJob class in a long time, but there are some nice examples over here:
http://help.adobe.com/en_U
http://www.actionscript.or
-V
Ok this is what I have now. The print box opens. Some thing is printing but I am out of black ink. It was a picture of an example picture from my printer. The save and close do not work. But they at least look like they are a movie clip button now.
print_pic.onRelease = function() {
var my_pj = new PrintJob();
var myResult = my_pj.start();
if(myResult) {
myResult = my_pj.addPage ("myMovieClip", {xMin : 0, xMax: 400,
yMin: 400, yMax: 800},{printAsBitmap:true},
my_pj.send();
}
delete my_pj;
}
save_pic.onRelease = function() {
var my_sj = new SaveJob();
var myResult = my_sj.start();
if(myResult) {
myResult = my_sj.addPage ("myMovieClip", {xMin : 0, xMax: 400,
yMin: 400, yMax: 800},{saveAsBitmap:true}, 1);
my_sj.send();
}
delete my_sj;
}
close_pic.onRelease = function() {
close_pic_mc.gotoAndPlay("
}
my buttons instances are print_pic, save_pi, & close_pic.
mc are printer, save_picture, and close_pic_mc
Vulturous, you are great.
I have been pulling my hair out.
I luv u.........one thing though the close just closes the current picture.
I suppose that is cool also. But i know the code is trying to tell it to go back to frame "family"
Am I right?
Do I have a stop somewhere that I should not?
I wish I were a pro like you.
I think I can actually sleep tonight.
Actually I didn't know what the close button had to do, so I just assumed that it had to "close" the picture and go back to the "family" frame. I didn't try clicking on the other buttons so I'd never have to return to the "familiy" frame, so it was bugged - my apologies for that.
Here's the fixed code for that part:
<code>
And I'm glad to help.
-V
You are a life saver.
I want to thank you so much.
It all works. xxxooo
I would love to get a hold of you again if I may.
I put my email up on my site. I will keep it there for a day.
Happy 4th to you.
Again thanks so much for sticking by your computer and helping me. I owe you.
I went to get my ink and love it. I may need to change the res on some photos, but all is ok.
me
I'm extremely glad you got it working, in the end we're here to help and comments like yours are exactly what keeps us going :).
Yep, you can get a hold of me anytime, my contact information is in my profile (though, if it's a question, it'll have to be here first so if someone else runs into the same issue, they can read from here).
Happy 4th to you too, and again; I'm glad it's all working fine now :).
-V
Business Accounts
Answer for Membership
by: crittle1Posted on 2009-07-02 at 00:44:16ID: 24761147
make sure the mc instance name is gallery1
or you can try
on(release){
this.gotoAndPlay(56);
kid1.gotoAndPlay(56);
}
You will probably need to use the code this. in place of gallery1 since you are
referring the same movie clip.
Post back to see if it worked.. if not, I'll try look into it further.