Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Printing Current Scene



I have my movie broken into 3 scenes. I have a print button on each scene. I want the print button to just print the current frame of the current scene when it's selected.

Right now I'm using this action script:

on (release) {
getURL ("print:", "/");
}


And then I have the last frame of each scene labeled #p.

With this set up when I select print it prints the #p frame of each scene. How can I set it up so that it only prints the current frame (or last frame) of the current scene when the print button is selected?

Thanks for any info. you can give me.



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-29-2001, 02:37 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Printing Current Scene
I'm having some real difficulties getting an flash movie to print the entire screen.

I need it basically to take the whole screen from this interactive movie and allow the user to print it at the click of a button, it seems to be having some issues with transparancies and masks at the moment. :

I'm using this at the moment, any ideas on how I can get it to work a little better?

Movie can be found here for referance

Kinda stuck on this one


Code:
on(release){
printAsBitmap(_root, "bmax");
}

Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
Hi,

Im my scene contains 6 buttons, I want button '1' to play the rest of the current scene (for example scene '0' then goto and play scene '1'

I want button '2' to play the rest of the current scene (for example scene '0' then goto and play scene '2'


I want button '3' to play the rest of the current scene (for example scene '0' then goto and play scene '3'

etc....

any ideas? this is for actionscript 3. My current script just makes the button goto a certain frame, can I edit it? here it is:

stop();

thumbbtn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
thumbbtn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);


any help greatly appreciated.

Ger

Current Scene, Current Frame? How?
I want to get the current frame in the current scene.

Right now, I have a movieclip symbol within a scene, and I need to get the current scene/total scenes within the current scene, not the current movieclip, and not the entire flash movie.

I have tried _root["scene1"]._currentframe and _root.scene1._currentframe and _parent._currentframe ... none of them work?


What must I do?

Sound Plays From Next Scene, While Playing In Current Scene?
i am making an animation, i have about 8 scenes.
for some reason it starts playing the sound from the next scene in the middle of the current scene.
why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it. please help it is driving me crazy!!!!!

Playing A Scene When Current Scene Ends
I don't want to come sound like and idiot, but i am stuck on one of the most simplest things.
i have 3 scenes, and in my first scene, i have two buttons.
The first button plays the rest of the first scene and then goes to the 2nd scene.
But!<
the 2nd button is meant to play the rest of the first scene and then go to the 3rd scene, but i don't know how! I've tried the 'and' statement, '+' etc but nothing works.
Any help would be greatly appreciated!

Targetting The Current Scene Instead Of Main Scene?
Hi, last week yall helped me with targetting the main scene from a button inside a movie clip, by using _root.

Now I cant figure out how to target the current scene (not the main scene), its still a button inside a movie clip.. any ideas?

Buttons Going To Scene 1 Instead Of Frame In Current Scene
Looks like I've got another problem...!!

In scene 3 of my file I've got four mcs working as a menu (with buttons inside them). When I test just the scene on it's own and the mcs use the "on(release)" command to do gotoAndPlay(2), it doesn't do it unless I put in a tellTarget (_level0 or _root).

When I test the entire movie, clicking the buttons just goes straight back to frame 1, scene 1...!!

What am I doing wrong? Is it the target path that the mc opens?
It's driving me mad... and this is my second post today!

I've tried gotoAndPlay("Scene 3", 2) but it still goes back to scene1. Help!!

Thanks again for any advice

Printing Current Frame
Hi all,
I'm working on this big honking flash project and all of the sudden, they want to add a print button to print the current frame. I've got #P on a bunch of lablel, but how do I only print out the current #P label??

Mucho Gasious!!!
Wade

Printing Current Frame
I need to figure out the actionscript for printing the curent frame of a movie on the release of a button.. any sudjestions?

thanks

Printing The Current Frame Only
Hi all,
I know i'll probably be arrested for asking what would seem to be a simple question, but here it goes. What is the script for printing all abjects on the current frame of the main timeline? I know to use #p to specify all printable frames, but this prints all of them at once. Just the current frame only, please.

Thanks

Printing Current Frame Only
Any ideas how I can get flash to print only the current frame the user is viewing (ie cannot be pre-defined by labelling it with hash P)? This is driving me nuts!

Thanks for any help

Printing Current Frame
Is it possible to print the current frame through the actionscript print command? I understand that I can use the #p frame label to designate printable frames, but I really only want the user to print the one that's currently being viewed, which could be one of five different frames.

Printing Only The Current View In An Animation
Alright I started this project without the option of printing in mind and decided to add it as an afterthought, however it doesn't quite work as I would have hoped (printing only what's on the screen).

This is the animation:
doodle of love (2.8 megs)
fyi printing button in that version doesn't do anything

information as to what is where follows:
main stage: 2 layers
1 layer has the black frame and the background music on it, the other layer contains lengths of frames that harbor movie clips with the frame by frame animation in them and the buttons, so there is a main stage frame that corresponds to each frame within the movieclip animations. I don't know if its important that the buttons navigate by telltarget nextframe/prevframe, but.. they do.

I figure it may be possible with assigning #p labels according to varibles determined by what frame the movie is on and such, but basically I just want the print button to print only the visible face, and preferably not the print buttons and such in the corner...

I need to get this done in the next couple days so this is just a precaution for if I can't figure it out myself, but please don't let that keep you from posting =]

Thanks for any help or "sorry, you can't do that"s in advance

the peep

edit: I'm using MX

HELP -Printing Current View Within Boundry Box
I have a movie with many different layers and movie clips to allow the user to 'create a character' ( http://alexdesforges.tripod.com/ ).
and basically want it so that when user clicks the button "Print Me"
it prints the character as you see (current frames of all different movieClips)
and within a boundry rectangle.
Is there a simple way to do this? (I have searched forums but cannot find a solution

Hope there is
thanks for any help, much appreciated!

HELP Printing Current Button State Containing MC
okay.... the page

1) www.daxcastro.com/printing.html

2) The buttons are what I am frazzeled over. If you press any of the options and then try to print the document, it prints the green buttons which contain a movie clip to get the button to stay "on" in its entirity (meaning all the whole movie-the last frame being the "on" state).

3) How can I redesign the buttons so that when you print it, it will print the button in whatever state it is. Green or Blank.

HELP....

Dax
icq# 178097 - always on

Printing Current Frame From Flash
Hi,

Is this possible to do?

I want to have a print button that is consisten through out my movie, but when a user clicks on it, it will print the current frame to the printer?

Any ideas?

Thanks

K

Call Next Scene From Current Scene Help..
I have a scene1 in which I have 2 other movie clips which should run continuously. But I want the scene2 to be played after some time, giving enough time for the viewer to read the contents in scene 1.
I kept an action in 150th frame of scene1 as
gotoandplay("scene 2",1). But its not calling scene2, instead scene1's movie clips are being repeated again and again. What shall I do? Any help please.
Thanks.

Printing Current Screen In Flash Movie
Hello,
I have built a website for my company. wbk.com
I have many hidden movie clips and dynamic content.
I need to have a print command on the site.
Is there any way to have a print button that when clicked will print what is shown on screen.

Any help would be great

thanks,

Craig

Printing Dynamic Text On Not Current Page
I'm currently creating a customizable multipage catalog using Flash. The problem comes when I try to print all the catalog pages (labeled "#p") The "current" page prints fine, but the pages that aren't visible print with their dynamic text fields blank. Any suggestions would be greatly appreciated... Thanks -John

How Can I Get Current Scene?
If there a way for Flash (6) to tell me which scene is currently playing?

Or can it tell me how many frames are in each scene?

Or can I tell flash to go to the second, third, forth... scene without knowing the scene name?

(I never use scenes but need to write a controller for a program that does.)

Thanks for any help.

Current Scene
mornin

Anyone know how to get the current scene which you are on at runtime.

Trying to create a progress bar!

cheers

Get The Name Of The Current Scene
Yes. I know there are work-arounds and hacks.

I have searched for quite a while now and can't find an answer that actually works.

Using flash 8 pro, AS2.0

I've tried all kinds of apparently relative solutions, including the classes:

import flash.display.MovieClip;

...currentScene, name(), etc. as found in the newsgroups with not even a little success.

I'm going to dynamically name and control movies based on the current scene, yet not duplicate a lot of scenes. To do this I need to know which scene I'm in. Even using an array index to determine this is fine, as there is supposed to be an array of scenes maintained for use.

Ideas?

TIA!

Get Scene Current Frame?
Hi,

I know you can get the current frame by doing something like this

_root.displayNumber=_root._currentframe;


However, I am using many scenes in this fla and was wondering if it was possible to get the current frame of a SCENE.

ie. frame 420 of the fla clip might be frame 1 of the scene.

Thanks,

SL

How To Loop Current Scene?
Last edited by Codemonkey : 2006-11-07 at 12:45.
























I have the following in a movieclip:


ActionScript Code:
onClipEvent (enterFrame) {
    var newLoadVars = new LoadVars();
    newLoadVars.load("http://www.voicesyssoft.com");
    if (newLoadVars.decode ="show=Agent")
        {
            gotoAndPlay("Agent", 1);
        }
}

I am trying to goto a seperate scene based on the name/values returned. The above will not work. Why?

Thanks, Justin.

Targeting An Outside Scene From Current Within FlashMX.
Hello All,

It seems I have worked myself into a bit of a situation. I am trying to avoid using the depracated commands within Flash MX, but I need to perform functions I would have normally used the _ifframeloaded command with. Flash's index tells me that I am supposed to use the with() {} command set, but how do I target a scene outside the current using such a format?

Please help.

Thanks

IF/ELSE-actions Based Upon Current Scene
Hi,
I'm trying to make an audio player in MX where onSoundComplete it advances to the next frame, loads the next mp3 and highlights the next text(song title).Easy enough, but my trouble is that I have another scene ("two") that offers text to read while listening, but onSoundComplete the movie jumps back to scene "one."

I have been trying if/else statements with no luck so far. I can't seem to nail the syntax.Is there a way to say:

IF(While?) the current scene is scene "one", onSoundComplete advance to the next frame ( which will play the next song and highlight the next title)
ELSE (if the current scene is "two")
Play the next song(without moving from scene two)

I can't find anything about scene-location specific conditionals.

At scene one, frame 2 I have:

song1 = new Sound();
song1.loadSound("./songs/1.mp3", true);
song1.start();
song1.onSoundComplete = function() {
gotoAndPlay(3);
}

Any hints much appreciated, Boston Bill
Please direct me to the correct forum if necesary. THANKS!

Current Frame Number Of A Scene
i have 2 scenes
and in the second scene in each frame i want to know if i am in the
frame 1 of scene 2!
but when i try
trace(_currentframe);
i get 5 for example!
how can i get the correct frame number of the current scene?
thanks in advance
peleg

Turn The Current Scene Into A Movieclip
With the exception of copying each layers frames into a movie clip, is there a way to select an entire scene and movie it into a movie clip? I keep making everything right on the top level then end up needing to move it into a movie clip. Any tips would be much appreciated.

Thanks,
Juan


Play Out Current Scene, While Loading Movie Into Next...
hi,
i'm trying to do the following:
after pressing a nav button i want to play out the rest of that scene (making everything animate out of view) and then move to the next scene. on this scene i have set up as a nav movie (swf) and a target (container). I want the container to contain what i pushed from the previous scene. make sense? so basically what i'm trying to actionscript is:

on (press) {
play();
}
on (release) {
loadMovie("exp.swf", "_root.container");
_root.loader.gotoAndPlay(2);
}

it plays as it should, moving onto the next scene, nav loads, but the movie won't load into the target. exp.swf is the 'experiment' movie that i want to load into the target. which will be different for each nav selection. make sense?

oh, on this next scene the exp.swf movie will load to the container from the nav on that stage no problem. so the script works there on that scene.

i working with flash mx. sorry for the long question.


__________________
kvl
editor
http://pupo.com/kelly
http://sliceedit.com

[F8] NextScene() Brings Me Back To The Current Scene?
I have 3 scenes in my movie right now.

Intro , Main Movie, Text Scene..

when i use nextScene() in the Intro scene.. it brings me to Main Movie and stops just fine..

when i use nextScene() in Main Movie, it goes to Text Scene but immediately back to Main Movie..

there is a stop(); command in Text scene like all the others.. So I don't know why it won't stop on it?

Finding Current Scene For Child Movie
Hi,

I have a movie, and this movie loads a movie into a holder.
The movie loaded into the holder has a number of scenes that play from scene to scene.

I am looking for a way of finding out what scene it is on, but I need to do it from the parent movie.

I am looking for a way of doing it without changing the child movie, as there are hundreds of those, so if I can use script from the parent movie I will be saving weeks of work.

Is there any way of finding the current scene of a movie? And as a last resort can you find it from within a movie itself?

Thanks!

Making A MC Stay At Current Positon After Scene Change
Dear Actionscript Peoples ,

I'm in a slight bind.

I have a control panel for an RPG im making that controls the sound.. which can fade out or pan left to right.. it works great.

so if i set my volume for the music and sound effects to 75% each..
the volume adjusts.. and if a fadeout occurs itll fade FROM 75.. and unload the music and set itself back to 75%.

my main problem now.. when they hit new game.. and the scene jumps to the new game menu.. the movieclip for my control panel resets back to frame 1 which is 50% Music and 50% Sound Effects.

hense making the sound adjustment pointless.


=================
ON TO THE POINT AND ACTUAL QUESTION
=================

how do i make a movie clip STAY at its current frame instead of jumping back to frame 1 when jumping scenes?

=================


thanks ahead of time you all rock

take care
-Clint Remley

Scene Printing
When i try & print a page (scene) of my site all i get is the swish type name of my movie. is there some way to add a print button to each scene?

Play Next Frame In The Current Scene Then Go To Play Other Scene
Hello !! Everybody

I'm minny. I'm the new one who use flash ^_^

I don't know how to write this action scirpt about to play next scene -_-

How can i do ??? In the scene 1, when push the button (that it is menu), i want it play next frame in the current scene and then it go to play in the frame 1 in other scene. I have 5 menu, Each menu in their scene. How can i write this script ???

Help me please...eeee
Thank you :-)

Animated Menu Without Living Current Scene (long But Well Xplained)
Hi guys from around the network! I have a little problem. I am building a site that requires 5 differents buttons from a menu. What I want to do is load the info directly by clicking each button without moving to other scenes or something, but rather have multiple layers with info in the same spot (I think I can handle that ) But the thing gets tricky when I want to manipulate the buttons. This is how I did it:

Each button is done by the same method. What I did is make 2 animations on the button (one for roll over and for roll out) and with stop() function at the first and middle frame.

From their parent, I write the actionscript. As simple as:


ActionScript Code:
a.onRollOver = function() {
    this.gotoAndPlay(2);
}

a.onRollOut = function() {
    this.gotoAndPlay(12);
}

All of them run very nice. Ok now, what I want to do is that when I click one button, it should stop at "gotoAndStop(11);" It's sweet too, the thing is that when I go roll out, catchs the roll out animation again. What I did was delete it. It worked, for all of them. But stays there, so what I want to do is have a "checker" that will verify if the other buttons are not on frame 11 (button._currentframe == 11), if they are, play frame 12. I tried and it worked until here. I know it, I deleted the onRollOut and onRollOver functions! What can I do? How do I make them back again? I tried but with 0 results.

Thank you so much guys!

Probably An Easy Question (Making A MC Stay At Current Positon After Scene Change)
Dear Flashkit,

I'm in a slight bind.

I have a control panel for an RPG im making that controls the sound.. which can fade out or pan left to right.. it works great.

so if i set my volume for the music and sound effects to 75% each..
the volume adjusts.. and if a fadeout occurs itll fade FROM 75.. and unload the music and set itself back to 75%.

my main problem now.. when they hit new game.. and the scene jumps to the new game menu.. the movieclip for my control panel resets back to frame 1 which is 50% Music and 50% Sound Effects.

hense making the sound adjustment pointless.


=================
ON TO THE POINT AND ACTUAL QUESTION
=================

how do i make a movie clip STAY at its current frame instead of jumping back to frame 1 when jumping scenes?

=================


thanks ahead of time you all rock

take care
-Clint Remley

Printing Specific Frame On Scene 2
To all who can give a hand.
I am a newbie that embarked on to ambitious a project for his ignorance.
I hope that I will be clear in my confusion. I want to make a calendar that when the mouse rolls over a date brings up a larger text with written details for that day. I also want this day info to be printable.
I put up a movie with a graphic symbol for the month, days, and numbers. For the first day I put a button with this action:
on (rollOver) {
gotoAndStop ("Scene 2", 1);
}
Second day:
on (rollOver) {
gotoAndStop ("Scene 2", 2);
}
And so on for the other dates of the month.
On scene two, for every day I have a button with this action:
on (rollOut) {
gotoAndStop ("Scene 1", 1);
}
on (press) {
getURL ("print:", "/");
}
On the over state of this button I put a movie that is specific to that day.
I also put a #p label on the frame that I want to print.
This plan works but for the following points:
When I ask to print I get the graph of month thing and I don’t get the day detail wich is the only thing that I want to print and lastly the whole thing is much to heavy for an online publication.
What am I doing wrong? Code and or conception wise.
Thanks to all who will try to decipher this sort of mess.
Craggo (new member)

Printing Scene Containing Changeable Movieclips
Hi!
I am trying to create a birthday card using flash.
I have the front page of the card in a movieclip in Scene 1.
I have the inside messge of the card in a movieclip in Scene 2 (with some input text).
I want to try and print these two movies on one piece of paper so that it can be easily folded to make a card.

Both these movies will be changeable.

I therefore need a way of loading the movies into another movieclip in Scene 3 exactly as they show in Scene 1 and Scene 2.

I don't know if this is even possible, therefore any help would be gratefully accepted.

Many thanks :-)

Printing Scene Containing Changeable Movieclips
Hi!
I am trying to create a birthday card using flash.
I have the front page of the card in a movieclip in Scene 1.
I have the inside messge of the card in a movieclip in Scene 2 (with some input text).
I want to try and print these two movies on one piece of paper so that it can be easily folded to make a card.

Both these movies will be changeable.

I therefore need a way of loading the movies into another movieclip in Scene 3 exactly as they show in Scene 1 and Scene 2.

I don't know if this is even possible, therefore any help would be gratefully accepted.

Many thanks :-)

Changing Page/scene Size For Printing
Hi;

I was wondering if it's possible to change the scene/page size for printing; my project starts out with an 800 x 600 scene but at print time, I want to arrange the different variables and objects to print to a standard 8.5 x 11 inch page (basically adding a header and footer); is this possible?

To make things harder, my project's final form will be a projector. :-(

Any help would be appreciated; if the info's in the manuals, please just point to the pages rather than retyping.

Thanks,

Walt Sterdan, Freelance

Read Current URL Of Current Page Into Flash
Third try:

Flash 7 -

Is there any way at all to read the current URL of the current browser page of a Swf ?

I have 450 links from various places to a Single Page with a Single Swf on it. The Swf will take a ?arg from the URL path and then show the correct animation.

Links to the page appear like these -

mysite/mypage.htm?1234
mysite/mypage.htm?1004
mysite/mypage.htm?0034

My Swf needs to know what the 4-digit number is when the page is opened in browsers.

Note: Using Javascript to build the Embed/Object at runtime is not an acceptable solution in this case.

Thanks

Need An Explicit Printing Tutorial For Flash 5 Or An Expert On Printing...
Been trying to print for a couple of hours now.
It seems to work fine when I use simple objet on the main timeline, but I get weird result when trying to print nested object.

For example, it got a movie clip containing multiple duplicate mc, and a dynamic text field. This movie clip is out of the movie stage.

When I try to print it it using:

printAsBitmap(this.effective.printArea, "bMovie");

nothing get printed.

so I move the movie on the stage.

this.effective._x = 0;
this.effective._y = 0;
printAsBitmap(this.effective.printArea, "bMovie");

the frame gets printed, but the text is out of phase even if it looks fine on the screen.

I have define the label of the frame I want to print with #p and the printing area with #b.

Why can I print my movie if it's off the stage, and why does the dynamic text field is printed out of phase when I tried to print ?

----------------------------------

At least can someone direct me to a good flash 5 tutorial on printing...

Martin
martin.tremblay37@sympatico.ca

Flash Printing - Trouble Printing Bitmap
Hello,

I have a Flash MX (not 2004) project that generates dynamic printable coupons. Here's the lowdown of what happens:

1. The flash coupon is loaded - dynamically loads in text and an external jpeg. This data is displayed in one frame that the user sees on the screen, and in another frame that the user never sees but is sent to the printer.
2. User presses print.
3. The flash movie sends the 'print this' frame to the printer, and voila! Printed coupon!

Here's a sample link: http://givingcorps.com/gc_central/br...&CoId=2&ChId=4

All works well, but when it comes time to print the coupon, everything prints but the jpeg. In fact, after you hit the 'print' button and the print dialogue box comes up, and you begin to print, you can actually see the jpeg vanish from the flash movie, only to return when print dialog box is finished!

I've tried a variety of tests - printing just the current frame, incorporating a test to make sure the image is loaded before allowing printing, and trying all the different print functions. I'm aware that print() only prints vector while printAsBitmap() will print everything, although with less quality, and I'm currently using printAsBitmap().

Has anybody run into this? Is there any solution or anything I'm overlooking?

Thanks for your help.

Printing Flash Player 7 Printing
hi,
i want to set up a flash site with multiple levels and have all levels print. is this possible? i've printed before out of flash playere 7 but was only able to print out of one level. any insights would be appreciated.
muchas gracias,
lavadome

Printing In Flash. Problem With Printing Twice...
I have an all vector form that displays data within it. As soon as it opens, it prints. I am running this in the first frame of the root time line.

Code:
print(_level0, "bmax");
stop();
The timeline is 2 frames and I am wanting to print both pages. Everything works fine expect after the print dialog box pops up and you hit print, then it prints the 2 frames, it pops up again and wants to print the pages one more time. I only want it to print once. Any ideas?

Won't Change Scene...neither With Actionscript,neither From Scene To Scene
I have a big problem...why won't my movie change from my intro to scene one...I built my intro, i built my scene one but it won't skip from one to another. At the begining i had a loop problem on my intro,and it would never go on to the next scene,and now even if i build a new page it won't change to another scene either....HELP PLEASE!!!

Printing, Why Is Printing Such A Problem?
Why can I not print several specific frames on the main timeline?

I know how to use the #p label and all those other print tutorials...

Does anyone have a solution?Or leads, or something

Printing And Printing Datagrids
Hi - a double question here - can anyone help with information on creating a print button for a page in an swf and also to printout the entire contents of a datagrid?

thanks!

f

[F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
Hi...I am very new at flash, so forgive my ignorance in advance...I really really need help!

I created a site, separated into scenes (intro, main-home, about, portfolio, press, contact).

About half the time the navigational buttons work fine. However, the other half of the time one of the buttons, the Press button, instead of bringing me to the Press scene, just moves scene to scene (for example, say I'm on the home page and I want to go to the Press page, it just goes to the about page...I hit the button again it goes to the Portfolio page, etc.). I think the problem lies somewhere in bypassing the intro prematurely (you can skip intro and go straight to the site/home-main scene), but I'm not positive.

Here's the code for the Press button:
on (release) {
gotoAndPlay("press", "pressframe");
}


where pressframe is the name of the first frames in the Press scene.

I can upload the fla file to my own site for download and review if necessary....

Please help!....I am losing sleep and hair over this.

Copyright © 2005-08 www.BigResource.com, All rights reserved