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








Printing A Defined Area In Flash


Hi,

I have an area on the left hand side of my page that i would like to print. ONLY this part as the stuff on the right would just be a waste of ink. Is there a way in flash to make a button within flash that when pressed will print out my defined area??

Thanks in advance




FlashKit > Flash Help > Flash MX
Posted on: 03-21-2006, 11:10 AM


View Complete Forum Thread with Replies

Sponsored Links:

Loading An HTML Page Into A Defined Area In Flash?
any way to load an html file into a flash movie so that it will display in a defined area (like using a dynamic text field or something as an area where the page will show?) I've got a whole website im converting into flash and I tried redoingt the pages to Flash's LIMITED HTML... Not happening...

Thanks,

-Avenger

View Replies !    View Related
Printing A Specific Area In Flash
can ne help me out, i have created a colouring application and i want to print out a specfic area of the colouring application. does ne1 know how to do this,??????

View Replies !    View Related
Duplicate Movies In Defined Area
Hi all,

I am wanting to duplicate the same movie or image in a defined area on the screen. I am populating a Map of the US randomly with dots that are an attempt to display cities popping up all over the map.

Any ideas on how to do this easily? Everything I have tried thus far has been a bit messy.

Thanks in advance!

View Replies !    View Related
Movie Clip In Defined Area?
Hey Ya'll,

I'm creating a whole page in flash, pretty typical, but I want to include a slideshow in the lower portion of the larger file. I figured a movie clip is the easiest way to do this, but how can I define the size of the canvas for the movie clip? I don't want it to take over my entire canvas while it's playing, or else it won't look cohesive.

The site, in it's beta version is at www.miamiphidelt.com/beta.html. Check it out, the "slideshow" would go below the bottom blue line.

Thanks for your help in advance,

=Nate

View Replies !    View Related
Trigger From Click In A Defined Area?
Is it possible to use actionscript to say
if mouse up in x10, y10,x100,y100 do this

sort of like how you define a drag area, I want to register a click in a certain area without having a button there

thanks
mark

View Replies !    View Related
Random Movement In Defined Area
I want to have about 15 verticle lines moving randomly along the X axis

Now I have modified the Kirupa random movement tutorial to this code:


ActionScript Code:
onClipEvent (load){//data you may want to change width =  300;speed =  Math.round(Math.random()*4)+1; //initial positions x =  this._x=Math.random()*width;x_new =  Math.random()*width;} onClipEvent (enterFrame)  { //x movement if (x_new>this._x)  { sign_x =  1; } else  { sign_x =  -1;} dx =  Math.abs(x_new-this._x); if ((dx>speed)  || (dx<-speed))  { this._x  += sign_x*speed; } else  { x_new =  Math.random()*width;} }


But I noticed the starting point of the verticle line is always in the same spot and is not confined to where I want it positioned....How would I define an exact stage for it be contained in?

Also it goes everywhere on the stage just not what is defined as the width in the begining of the code,



-Case

View Replies !    View Related
Random Movement In Defined Area
I want to have about 15 verticle lines moving randomly along the X axis

Now I have modified the Kirupa random movement tutorial to this code:


ActionScript Code:
onClipEvent (load){//data you may want to change width =  300;speed =  Math.round(Math.random()*4)+1; //initial positions x =  this._x=Math.random()*width;x_new =  Math.random()*width;} onClipEvent (enterFrame)  { //x movement if (x_new>this._x)  { sign_x =  1; } else  { sign_x =  -1;} dx =  Math.abs(x_new-this._x); if ((dx>speed)  || (dx<-speed))  { this._x  += sign_x*speed; } else  { x_new =  Math.random()*width;} }


But I noticed the starting point of the verticle line is always in the same spot and is not confined to where I want it positioned....How would I define an exact stage for it be contained in?

Also it goes everywhere on the stage just not what is defined as the width in the begining of the code,



-Case

View Replies !    View Related
Can I Load And External Url Into A Pre-defined Area Of My Movie?
can i load and external url into a pre-defined area of my movie?
I don't want to use a frameset. I want the site to be all flash.
So, instead of loading another site into a frame, I want to load it (via a button click) into an area that i can define the x and y, alpha, etc.
the site is http://www.laffinsdesign.com/lead3 and I want the sites to open up where the book is instead of popping up wherever.
Thanks, RJ.

View Replies !    View Related
Constraining Movement To A Defined Area On The Stage
Hello,

I am making an interactive promo for a college brief and included into that I wanted to have a game of space invaders.

I have downloaded the source file from Neave who very kindly offers it (http://www.neave.com/games/invaders/) which I will attach, in the hope to modify it.

I have a basic understanding of actionscript but what I'm not how to do is constrain the game within a defined area on the stage (i.e I want it to appear within a console window.

I'm sure this is going to be the first of many problems but any help is much appreciated!

Thanks

View Replies !    View Related
Display Movie When You Click In A Defined Area
i'm writing to see if anyone can advise on this objective....


i basickly want to create something where if i click on a piece of art, a small color pallete appears where ever mouse is.....and when i click on a color in the pallete the piece of art changes to that color......


make sense?

i already know some parts of this, i just dont know how to get the pallete to appear on clivk where the mouse cursor is......i know i can create a tell target area......which will define the area right? but how do i get the mouse to bring the pallete up.....at a specific area.....

View Replies !    View Related
Finding A Random Position Outside Of An Defined Area?
Hey guys, I could use a little help with some math.
Basically I am trying to find a random position to place a movieclip outside of my stage, but within a certain bounds.

I want it to be so the position is completely random and can have either a positive or negative value, and of course it must be a position with either the x or y out side of the stage, so that the movieclip is completely off stage, but inside the outter bounds.
I've tried to hack around, but could not think of a very clean solution that retained complete randomness within the defined area.

I also do not want to have to run a loop until I randomly come up with a set of points where atleast one of the dimension is outside the stage.

any help is much appreciated.

View Replies !    View Related
Loading External Htm Files Into A Defined Area
I'm wondering if it's ppssible to load rather lengthy external htm pages into a defined area of a Flash site... Basically, I need to see if I can have large htm files load within a small space embedded within a Flash site at the click of a button. As it is now, the htm pages come up in a separate browser, but if I can contain it all, that'll be ideal.

I have preceise text formatting in the htm pages, so if it's possible to load these, that's what I'm curious about.

Any ideas? Thanks.

View Replies !    View Related
Printing Certain Area
Is it possile to print an area from a flash movie so a block of text at the top of a page and anything out of the area will not be porinted, i.e. I want to make an app to print carrier labels which have a set layout and I need flash to print the content at the top of the page so it all fits and is lined up.

A bit like a Word Avery label template. I have followed a tutorial about printing and using a bounding box which I thought would do this but it doesn't appear to.

Thanks for any help.

View Replies !    View Related
Printing Area
Hi, i'm trying to work out how to print just one part of a flash movie see attatched demo screen, if u imagine the red bits are buttons. I only want the blue section to print out, is this possible ?

thanks in advance

bp

View Replies !    View Related
Printing A Certain Area
How do i print only a certain area of the pic?

View Replies !    View Related
Printing Selected Area
Hey Everyone,

I'm working on a colouring book for a client and I want a print button to print the end result. I know the regular features of printing with flash however my knowledge of this feature doesn't run very deep.

The colouring book is based on tell target and different instances of a movie clip filled in already. I know not a true colouring book but It's all I could come up with. I would love a tutorial on building a true colouring book if anyone knows where to find one! Sorry, no to get back on track. I can print specific movie clips i.e.

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

however their are 8 frames in legs representing the eight possible colours and it wants to print all eight. I could go further as to predefine the frame however that defeats the purpose of printing what the kid coloured in.

Basically the perfect solution would be to print the main timeline but only a portion of it because I don't want the tools to print out!

You can see what I'm talking about here

http://www.snugasabug.com/test/colour.html

Any help would be greatly appreciated.
[Edited by PM Hopper on 08-24-2001 at 07:52 AM]

View Replies !    View Related
Printing A Specified Area - With Draggable Mc:s
I looked up the printing threads but couldn´t find an answer to this.

I have a christmas tree and a lot of things that You can drag to it. When Yo dressed the tree You can print it out. But I just want the tree to be printed in an area that I specified with a mc_box.

I could print an area by labeling the first frame of a mc #b and put a box_mc in it. Then I made the mc stop on the second frame where I putted the tree and all the stuff that You could drag and drop. I named a frame in the second frame #p.

I had a button saying:

---
on(release){
print("_root.granen","bmovie");
}
----

But then the thins I had dragged to the tree wasn´t seen on the print.

Putting everything on the first frame on that mc ( granen) printed the thins I added to the tree but I also printed the size of the mc, not the size of the box_mc as I wanted.

How is this done to work?

View Replies !    View Related
Printing Dynamic Area Of A Movie?
Hi guys
I have created a stamp tool interfeace for kids - it simply creates a patterns with various stamp tools (these are duplicated onto the _root).

I need to print what they create, which may well be simple but I am having no luck. I only want the canvas area to print so I thought I only had to create a bounding box (an mc of the correct size and position labled on a frame with #b ??) and to print using say:

printNum(0, "bmovie");

This tries to print all the frames so I have added a frame labeled #p - this has reduced the number of pages to 1 but it still prints the entire movie (ie not the area I specify with the Bounding box)

Please help!!!
Thanks in advance
Ol

View Replies !    View Related
Printing Frame, Not Bounding Box Area
This seems to a very popular topic. I have searched far and wide for the following solution:

I want to print an off-stage dynamic text box that mirrors an on-stage dynamic text box. On a layer called "printlayer" I have made a bounding box instance called 'printbounding'. On this single frame I have labeled '#f'. On the layer above called "print2" I have made a dynamic text box instance called 'printbox'. On this frame I labeled '#p'. My printbutton looks like this:

PHP Code:



printbutton.onPress = function() {
print(this.printbox, "bframe");
}
stop(); 




When I print I get the whole frame and not the bounding box area. The idea is to print a "quote" that shows up in the printbox text.

Here is the *.fla:
http://www.duffelbagboy.com/print_help.zip

Here is the site with some personalized instructions on getting to the print page :
http://www.duffelbagboy.com/print_help.html

I think I have tried every possible combination of script and mc's. If some one has a moment to take a look at my *.fla that would be great. The layers in questions are:

Quote:




Total (contains the button script on frame 17)
printlayer (the bounding box named printbounding, frame 17 marked with #f)
print2 (the dynamic text box named printbox, frame 17 marked with #p)




Thanks,
Cheez

View Replies !    View Related
Printing A The Entire Area In A Scrolling Plane?
I have tried two different aproaches to get the area inside a scrolling plane to print, but both ways only print the area showing in the srolling plane rather than the entire page.

The 1st way:
I tried to call a moivie clip. 1st I put the print bttn out side of the plane and then inside the mv clip. I thried changing the parameters using #p and #p on frame as well as using PrintNum and Print (target, )

The second way:
I tried all of the same type of things while loading an outside swf file into the plane.

Can anyone please help me?
Thank you!
Quince Wyss

View Replies !    View Related
ACtionscipt For Printing A Selected Area On A Screen?
Hi

I need to be able to allow a user print a certain section of a movie!

i have created a drag and drop game where users drag items on to a work area of a screen...the thing is i don't want the user when they click print to print of the full screen .....i only really need them to print of the draggable objects that they dragged into the work area....
i already know this actionscript ...but my game is self contained within one movie ...
actionscript:

on (press) {
printAsBitmapNum (1, "bmax");
}



within the actionscript you have the choice of using targets instead of levels.....i assume i do this ....can anyone help does anyone have the rite actionscript.........for this .....
is it simply a matter of naming the objects i want printed and using their names as a target ??????

on (press) {
printAsBitmap ("1", "bmax");
}

(1 being my object)

thanks .....please help

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
How Do I Load An Url (defined In Xml) Into Flash Mx
Hi all,

Hopefully there is someone who can help me with this question?


Case
I'm trying to build a list with hyperlinks (from an xml-file) and want to load this in a Dynamic textfield in Flash MX2004.

Other resources
www.xfactorstudio.com

What i'm using
I used the following 'application' XPath XML Search engine downloaded at:
http://www.sephiroth.it/file_detail.php?id=130



The code

XML- list:

<season s="1">
<ep n="1" >
<id>1-01</id>
<d>Test</d>
<dn>86023</dn>
<name>CIS</name>
<dt>13122005</dt>
<gs>Test</gs>
<url>http://www.google.com</url>
</ep>
</season>

ACTIONSCRIPT 2.0 in FlashMovie:
* Here i get the url 'array' and load this in a Dynamic textarea with instance name 'taUrl'.



ActionScript Code:
// Converts myResults array of xml nodes to regular array
// this part was made with the help of Neeld
myDataSet = new Array();
for (var i = 0; i<myResults.length; i++) {
var name = XPath.selectNodes(myResults, "./name" [0].firstChild.nodeValue;
var id = XPath.selectNodes(myResults, "./id" [0].firstChild.nodeValue;
var dn = XPath.selectNodes(myResults, "./dn" [0].firstChild.nodeValue;
var link = XPath.selectNodes(myResults, "./link" [0].firstChild.nodeValue;
var url = XPath.selectNodes(myResults, "./url" [0].firstChild.nodeValue;
myDataSet.push({Name:name, ID:id, DN n});
}



// set Url in taUrl textbox
var choosenUrlText = XPath.selectNodes(choosenEpisodeData, "./url" [0].firstChild.nodeValue;
choosenUrlText = choosenUrlText.toString();
var newString3 = choosenUrlText.searchReplace();
var newString3 = choosenUrlText.searchReplace(term,"<a href='http://"+term+" / >" ;
taUrl.text = newString3;


Resulting in

a 'plain' text --> www.google.com

AND IS NOT CLICK-ABLE! And that is my problem.

Thanks for responding,
Webmaster Freestyler.

View Replies !    View Related
Working In AS3 With TextFields Defined In Flash
Love AS3 but on this point it is driving me nuts...

My project simulates an application. Each frame in the Flash file contains a bitmap of a state of the application. I use TextFields (placed in Flash, not AS) that accept input.

This example provides a simplification of my problem:

Frame 1: contains 3 TextFields, instance names: input1_txt, input2_txt, input3_txt
Frame 2: contains 1 TextField, instance name: input1_txt

The code reads the input from each frame by referencing the instance names. One can also navigate between frames.

I can process inputs on Frame 1, then move to Frame 2, and process the input. However, if I go back to Frame 1 the reference no longer works. Strangely I can go back and forth between frames if I don't enter any input and it works when I do. But as soon as I enter any input it breaks (object reference not found) on later attempts on the same frame.

On each frame there is code that saves the TextField references in an array for later processing (e.g., var myFields:Array = [input1_txt, input2_txt, input3_txt]). After this failed I tried saving the names as strings and getting to them by: container_mc[input1_txt]. Same problem as before.

I read on this forum that referencing objects created on the stage by Flash is not the same as creating the object in AS code. Fair enough. I ought to be able to find it using container_mc.getChildByName(input1_txt). However, that returns a display object and I need to get the text from it.

I tried using unique names for all input fields, but that didn't work.

From a design point of view I would like to be able to draw the fields on each frame with the Text tool and then use Flash to work with them. But I am pulling out my hair trying to figure out a reliable way to reference them each time.

My design uses a new instance of a custom ScreenData object on each frame. I use the same variable on each frame (e.g. sData = new ScreenData). Then the object saves the references by instance name (e.g. sData.inputFields = [input1_txt, input2_txt, input3_txt]). I then use a keyboard event (setup on first frame to be global) to send the data for processing (e.g. var isSuccessful = ScreenUI.process(sData)).

What to do???

View Replies !    View Related
Passing A Variable Defined In Flash To ASP
Hi,

I am trying to create a dynamic menu in Flash with the user progress tracking. I was able to pull the data (menu items) from the Access database file through ASP. However, I had hard time passing the variable in which stores the link the user visited to an ASP file. The ASP then updates the database table. I have checked some web site, but they are more like a guide. Their code did not work in my case. Can anyone help? Please let me know if there is a step-by-step instruction. Thanks a lot!

View Replies !    View Related
Can FsCommand Execute A Flash Defined Function?
I Know FsCommand can set Variables and Control a Flash movie, but say for example that I have a defined Flash function:

function(name){
mytxt.text = name
}


How would I run this function using javascript or FSCommand in the browser window?



Any Help would be appreciated.

View Replies !    View Related
Flash CS3: AS3 - ReferenceError #1065 Variable Is Not Defined
I have developed several actionscript classes. Two of these classes are associated with MovieClip objects in the library. The MovieClips have their Linkage Base Classes set to their respective package and class locations and when I check the Linkage settings (using the check mark icon) Flash CS3 reports that it can find the associated classes for both MovieClips.

When I check the syntax of my code there are no problems, and when I test the Flash movie no Compile Errors are shown. Yet, in the output window I get the following error:

ReferenceError: Error #1065: Variable class1 is not defined.

ReferenceError: Error #1065: Variable class2 is not defined.

I have placed class1 and class2 in the above error messages to represent the classes that are associated with the MovieClip.

Am I missing an import command somewhere? I have the base class path properly set in the preferences of Flash CS3.

Thanks,
































Edited: 08/22/2007 at 07:17:24 AM by BinFolder

View Replies !    View Related
Can VB Call A Flash's User Defined Function?
Hello,

I know there are a lot of questions about VB-flash communication, but unfortunately, they don't match my problem

I have a function in Flash, named processIt()

I want to call this function by VB.
Code:

Call ShockwaveFlash1.processIt(); => doesn't work
but:
Call ShockwaveFlash1.SetVariable("myVar", "aaa"); => will work

Could you explain me why? An please give me an example of calling user defined function.

Thanks a lot,
Sathish

View Replies !    View Related
Calling A User Defined Flash Function From A Web Page
Can someone tell me if this is possible. I've got a flash navigation movie in the top frame of a 2 frame web page. Inside the swf I've written a function called "open menu" that takes 3 parameters and does what it sounds like it does within the flash navigation.
My question is ..
Can I call this function and pass in parameters from an html page and have the flash navigation react the same way as inside the swf itself ? I've got an "href only" nav bar on the bottom of the page in the main frame that has
the same navigation elements as the flash navigation and I'd like the top navigation to react accordingly.

Is this possible and if so how.
Thanks in advance

View Replies !    View Related
How To Control Flash's User Defined Function From JavaScript?
please help,...i can send variable from javascript...but dont know how to make flash do function

View Replies !    View Related
Flash Menu Buttons And User Defined Variables
Okay--maybe somebody can help me on this bugger. My brain is fried over it. I will email the fla file and a giant cookie to anyone who can help. I have two issues for a flash navigation menu that contraols a non-flash page:

1)I want to show the current page as "active" by altering the corresponding MC. I am trying to reference instance names of seprate mc's (totally seperate, not duplicates) in order to change their appearance according their state (active, as in the HTML page it is pointing to is active VS. inactive). I have 12 mcs named mc1-mc12. Each mc has a button inside. The code for the MC is:

Code:
onClipEvent (load) {
skal = 0;
}
OnClipEvent (enterFrame){
if (skal ==1){
_xscale = _xscale+(150-_xscale)/3;
_yscale = _yscale+(150-_yscale)/3;
}
if (skal ==0){
_xscale = _xscale+(100-_xscale)/10;
_yscale = _yscale+(100-_yscale)/10;
}
if (skal ==3){
_xscale = 150;
_yscale = 150;
}
}
The code for the button in the mc is:

Code:
1 on (rollOver, dragOver){
2 skal = 1;
3 }
4 on (rollOut, dragOut){
5 if (Active ==1){
6 skal = 3;
7 }else {
8 skal = 0;
9 }
10 }
11 on(release) {
12 Active = 1;
13 GetURL("help.htm","_self");
14 }
Basically, the buttons expand and contract as you roll over them and link to a specific URL. I would like to address the problem of indicating which page on the nav menu the user is currently visiting. My idea was to insert these lines between line 13 and 14 of the button:

Code:
tellTarget(mc1){
Active = 0;
}
//repeat for each button instance name
Each button would have to be addressed so that when you click on a button, it sets the variable "Active" to 1 for the button you clicked and 0 for the rest of the buttons.
Basically, the button is supposed to freeze at _xscale = 150 until another button on the menu is pressed.

It's not working. Is there a beter way to do this? I just want the button to stick out to make it pbvious that that is the page they are looking at.

2)My bigger problem arrose when I was told to nix the frames on the website. Now when a button is clicked, it goes to a new page with the same swf file on it, but it reloads the file. Is there a way to prevent reload and allow it to maintain it's state whil the even when the page changes?

The beginings of the menu are on (The page is in SERIOUS overhaul mode, so pardon the ugliness) this link still uses frames. I have not uploaded the non frames version yet, but the problem is easy to visualize...the movie retarts when you nav to a different page:
http://www.themitchellcentre.ab.ca/T...e/testpage.htm

Thanks for any help.

PS--I tried everything to make the individual buttons stick out, I tried making the text dymanic and chaniging the color, I tried stopping th emovie, I tried, all I could think of, but nothing worked while maintaining the rollover movement. Thanks.

http://www.taigraham.com


Email my personal account

View Replies !    View Related
Can I Resize A Flash Movie To User Defined Variables?
Hi Everybody,

I'm using Flash MX. I'm looking for a way to resize a flash movie from within flash, using a X and Y variable. So far I can figure out how to scale a movie to fit a screen, but not to a specific number. Anyone have any idea as to how I would go about doing this?

-Plasnid

View Replies !    View Related
Calling The User Defined Function In The Flash From The Html
if we write a function in flash...
how could we invoke function from the html..

View Replies !    View Related
[AS3] Error:1119 A Movieclip On The Flash Stage Isn't Necessarily Defined?
I am trying to create a simple concept game with a "magnet", ball, and box. The ball(ball1), box(box1), and magnet(magnet) are movieclips created on the Flash CS3 stage.

This is my code

ActionScript Code:
var ballvel:Point=new Point(0,0);
var grav=-0.01;
var solid_objects:Array=[root.box1,root.magnet]
addEventListener(Event.Enter_Frame,step);

Function step(e:Event):Void{
     function test():void{
          for (var obs in solid_objects){
               if (ball1.hitTestObject(obs)){ballvel.y+=20}
          }
     }
     magnet.x=mouseX
     ballvel.x=(magnet.x-ball1.x)/2
     ballvel.y+=grav
     ball1.x+=ballvel.x
     ball1.y-=ballvel.y
}
(Ignore any sytnax errors, as I had to retype this from another computer, but optimization tips would be appreciated since this is insanely sloppy code at the moment)

When I run this I get these errors:
1119: Call to a possibly undefined property box1 through a reference with static type flash.display:DisplayObject.
1119: Call to a possibly undefined property magnet through a reference with static type flash.display:DisplayObject.

Please excuse my ignorance, for I rarely use Flash CS3, but does this mean I must somehow define "box1" and "magnet", or am I reading this totally incorrectly? Please explain either way.
Thanks in advance.

View Replies !    View Related
Load External Swf Into A Specific Area And Confine Interactivity To That Area... ?
Hello again,

I have a problem I've been trying to solve below.


I have a file that loads external swf files onto the screen, but I need these swfs to load into a specific 1024x644 area in the main movie.

I need the external swfs to maintain their interactivity while the mouse is over their area, but not when the mouse is over other parts of the screen (I need other buttons to still be accessible outside the area of the loaded swf.

As it is now, the mouse properties of the loaded swf take over the entire movie and render the buttons useless.

Below is some code I'm using. Can anyone provide examples of code that positions an external swf into a specific area and contains its interactivity?

I'm still very new to AS, so it's difficult for me to understand how to do things without specific code examples to look at. Also, if my code is inefficient or sloppy, please let me know.

Thanks.


var loader:Loader = new Loader();

function buttonPush1(event:MouseEvent):void {
var url:URLRequest = new URLRequest("mousetrail_644.swf");
loader.load(url);
this.addChild(loader);
}

Btn1.addEventListener(MouseEvent.CLICK, buttonPush1);

function buttonPush2(event:MouseEvent):void {
var url:URLRequest = new URLRequest("magnify2.swf");
loader.load(url);
this.addChild(loader);
}

Btn2.addEventListener(MouseEvent.CLICK, buttonPush2);

function buttonPush3(event:MouseEvent):void {
var url:URLRequest = new URLRequest("mapcursor_644_2.swf");
loader.load(url);
this.addChild(loader);
}

Btn3.addEventListener(MouseEvent.CLICK, buttonPush3);

function accessDenied(event:MouseEvent):void {
gotoAndPlay("scanner_denied");
}

Btn4.addEventListener(MouseEvent.CLICK, accessDenied);

View Replies !    View Related
Menu Area's To Stay Expanded When You Rollout The Red Area ?
I am stuck here.

I want the different menu area's to stay expanded when you rollout the red area (see attached file: red line).

I think I need to use a flag variable, but I am stuck.

Any advice, suggestions??

View Replies !    View Related
Ie6 Crashes When The Mousepointer Leaves The Flash Movie Area. [Flash Player 8]
Not sure if this is the right area for this thread, but i'm not sure where it fits in...

I have a draggable map program that uses LoadVars.load to send location messages back to the server.

After a user saves a location, thereby triggering the load() method, and then moves their mouse pointer outside the area of the .swf movie on the html page, the browser crashes.

I haven't been able to replicate it on any other computer except this users', which is using Flash Player 8, and IE6. Of course the only user of this side of the app, is this user, so im forced to find an answer.

Anyone else run into this, or have any wisdom to impart on me?

View Replies !    View Related
Log In Area In Flash
Dear friends,



I m trying to create a flash based admin panel for a desktop application made in ASP.NET. I want to create a user log in area. The page will have a user name dialogue box and a password box. And a submit button. I will be extreme thankful to u all if u can please help me rescue from this problem I m facing.



Regards

View Replies !    View Related
Log In Area In Flash
Dear friends,

I m trying to create a flash based admin panel for a desktop application made in ASP.NET. I want to create a user log in area. The page will have a user name dialogue box and a password box. And a submit button. I will be extreme thankful to u all if u can please help me rescue from this problem I m facing.

Regards

View Replies !    View Related
Flash Display : Dont Want Square Showing For Flash Area
Dear Sir

I have flash portion in an html page

You can refer

http://www.prajaktasoftware.com/seals/retailconcept.html

When i move cursor the top area a sqaure appears shoing flash area

With a click on this area , it disappears but can i avoid being displayed in first place ...

This is very irritating when there are button in flash (on ehas to click 2 times toget result)

Refer ...

http://www.prajaktasoftware.com/seals/index.html


I will be greatful to you for this ...

Thanks in advance

View Replies !    View Related
Flash Printing
I am having problems printing in Flash. I am using the getURL(print:...) command to print a movie clip. This movie clip contains 5 frames. Each frame contains text labels, some dynamic some static and all of the frames are labeled #p for printing.

The problem is that the Dynamic labels are not being printed. When I try to print, all five pages come out, but the dynamic fields don't get printed.

I did some testing and it appear that flash is only able to print dynamic text if it is currently being displayed(if I print what is on the screen).

Does anyone know of a work around or have any suggestions. Thanks in Advance.

* For those in the know, I am keeping all frames in a movie clip so that all five frames gets printed with a single print command because I need to avoid the multiple print confirmation.

View Replies !    View Related
Anyone Know Anything About Printing In Flash 5?
What i've done is created several print buttons each pointing to different printable keyframes on the same timeline. However when i use any of the print buttons flash will print all the keyframes with the #p labels and wont allow me to print any specified keyframe even when i`ve clicked on the appropriate print button. I would be most grateful if anyone could offer some advice.

View Replies !    View Related
Printing With Flash 5
Is anyone familiar with "print" in Flash 5.

From my flash portfolio cd i would like a button that prints my resume off the movie. I see you can print the whole page, but i'm not sure what all the parameters are for.

I don't want all the pictures, just the text to print.

thanks in advance

View Replies !    View Related
Printing From Flash
I am setting up a movie so that you can print from each scene. I know there are some cool ways to designate frames you'd like to print like labeling them #p, but my problem is that if I label the key frame in each scene I'd like to be printable, by default it will print every labled frame in all my scenes - when all i want is for it to print one each time.

-If you have an answer to getting around that one - That'd be great.

-----So, I have been trying to get around it by printing a target of a movie clip that has all elements of the key frame corresponding to the scene which it represents, but this is not working well at all. I'm getting very odd results.

The only way I've found that works, is to print a load movie. One for each scene, but that seems a bit rediculous.

Anybody out there know how to really take control over printing in flash. It would be much appreciated.

Thanks

View Replies !    View Related
Printing In Flash
Does anyone know if you can target a specifice frame to print?

For Example I have a movie clip that is ten frames long but I only want to print the first frame of it! If I just point to the mc, by default the print box tries to print pages 1-10

Thanks for any help.

View Replies !    View Related
Printing With Flash
I'm working on this Interactive Test and at the End of it. I need the user to get a print out of the scores. I have designed a certificate and I would like that to get printed with the Username and the relevant information!

Whats the best way to have that printed thru flash..any ideas??

View Replies !    View Related
Printing In Flash
got this command ive learnt resently but it doesnt seem tobe going my way, basically i got this text box in a movie clip which im trying to print, now the background of my movie is blue so i have had to make this MC with a Very large white background, the movie clip is called 'mailPrint'.
in the first frame is the text box and it has a 'stop' script on it.
on the print button which is in the main time line i have placed this code on it.


Code:
on (release) {
if ($version != "") {
print ("mailPrint", "bframe");
}
}
now when i use the preview, or view the flash site in the browser on my machine it prints fine to the right size, however when i set the movie to 'exact fit' in the publish settings and have the site come up in a pop up window, no matter how much i scale the MC or the text box, text etc, it comes out very small when i print it. Im not so sure if im doing this the wrong way, the movie clip in placed on the main time line, but away from the stage. any one have anyideas on what imdoing wrong?
plz help me guys.

View Replies !    View Related
Printing In Flash
Hello

I'm making a Flash projector and I would like a button that prints a frame, what action do I have to give to the button?
Thanks
Pieter

http://pierrevi.webb.be(in dutch)

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved