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








Printing Specified Areas And Linking Dragable Items?


I'm pretty new to flash, and have dived right in. I'm making a fairly complex interactive "paperdoll" style program. You can see an early demo/beta version at www.selinafenech.com/demo.html
I need a bit of help to get it finished though!
First: When you make an instance dragable, is there a way to link/group it with another dragable instance on a different layer, so that when one is dragged, the other drags as well?
Second: I've read in the flash help a bit about specifying printable areas, but don't really understand or cant get it to work anyway. I want to be able to make only part of the movie print (eg, only the left side, rather than the whole movie). Is this possible?
PS, I'm using Flash 5




FlashKit > Flash Help > Flash General Help
Posted on: 02-11-2003, 04:10 AM


View Complete Forum Thread with Replies

Sponsored Links:

Actionscript Carousel - Linking Items To Multiple Areas Of HTML Page
Hello,

I am trying to modify some actionscript that is generating a carousel and importing images from an xml file.

I want to make it so that each item (image) is clickable and can go to a particular section on a seperate html page - the same idea as using page jumps with id's.

How do I set this up???

Here is my current actionscript code:


Code:
import mx.utils.Delegate;

var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.009;
var perspective:Number = 220;
var home:MovieClip = this;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;


}
}

function over()
{
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}

function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

function released()
{
trace(this._parent.toolText);
getURL("projects_and_development.html");
}

function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/20000;
}

View Replies !    View Related
How Drag Items In Target Areas? Please Help
Hi everyone,

It might be simple for you. I want something that is at the edge of my stage only 10% of it are seeable. What i want is that you can pull it to 100% in to the stage. But it must only be moveable from right to left and reverse. In a target area not up an down. Can i target a space, and only in it the item is moveable.?

How to do or du you know a good tutorial?
Very thanks for helpin.

zheelo

View Replies !    View Related
Dragable Items In Flash...
i used to remember how to do this but i've completely forgotten.

the points i can't remember are if i need to make the instance a button first then movie or if it's movie first then the button.

i'm still trying to remember the script for it as well. something like on mouse event, start drag i forgot that as well.

any help would be appreciated.

anita

this is for items i want to have dragged around the screen. it's my own fault tho shoulda kept up with working on flash.

View Replies !    View Related
Restraining Dragable Items. Help Plz.
Hello,

This may be a little difficult to explain, but I will try my best. I'm somewhat of a newbie to AS (or at least the mid to advanced level stuff). Here is what I need to figure out:

You can view the current work here: http://www.sturgisbikeweek.com/temp/..._template.html

Click on the Pan & Zoom Cam tab at the bottom. As you can see that bar on the left 'zooms' the image in and out. Really all it is doing is re-sizing the image.

You may also notice that the image is draggable. This is to give it the 'pan' effect. What I need to do is put a script on there that will not allow it to show the whitespace around the image when someone drags it around.

So the script needs to scale the draggable limits with the image size so that no matter what the box is always filled with image and you can not 'pan' outside of the bounds of the image.

I hope I explained it good enough. If not, just ask questions. Also, thank you very much in advance for all your help!

Nate

View Replies !    View Related
Printing Dragable Movie Clips
Was wondering if anyone knows how to get multiple dragable clips printed , its for a drop and drag print the picture page. also wondering how do you get it to print to the edge of an A4.

View Replies !    View Related
Line Linking 2 Dragable Movie Clips
I am not sure how to do this or infact how to search for it in movies and the boards(i tried).

I am looking for links/examples/or help in getting a line to link 2 objects. When i drag one object the end of the line will stay linked to both objects, stretching, moving etc.

Any ideas?

And while i am at it how would i get an object to snap back to where it originated from with a little elastic bounce.

Thanks in advance.

View Replies !    View Related
Printing Items Created With Actionscript; Please Help
I have a movie clip that I am drawing a pie chart on. I have also placed this movie out of the viewing area on a frame with a label of #p for printing. When I view this movie the pie chart shows up, but when I print with printNum(0, "bframe"); the page prints but the pie chart does not print. Is there a trick to printing things that are created with actionscript? Any help would be greatly appreciated! - I'm under a time crunch!

View Replies !    View Related
Printing Datagrid Items Or Data
I have built an application that takes user input, searches data in an XML file, and returns matches to a datagrid (with scoll bars) on the stage. The next logical step would be to print that data. Of course, the data could be one item or 100 items, so I have no way of knowing how many pages would need to be printed. From what I've read, this can be pretty dicey. Hence, I'm looking for some general ideas about how to do it.

View Replies !    View Related
Sorting Items/Printing Multi-page Dynamic Text
ActionScript Gurus!
I've posted some threads in the Flash MX2004 section that are probably more ActionScript related. I still require some help on them, so would appreciate any you can give. Here are posts:

Sorting items
http://www.kirupa.com/forum/showthread.php?t=196981

Printing multiple pages of a scrollable dynamic text box
http://www.kirupa.com/forum/showthread.php?t=196497

View Replies !    View Related
LINKING Items In Combo Box
Ive having a problem with my combo box in flash mx. _I got to the point at which you can make the menu drop with the titles. _But now after, weeks of exstensive research, Im still having a problem to make the items in the menu selectable. _ I want to allow the user to select ex. Photography, and i want photography title to link you to the photography scene. _Is there any way possible you can take me through the steps to link my pages to items in my combo box.

Looking forward to hearing from you

Romal

View Replies !    View Related
Linking Dynamic Menu Items?
Okay, i'm playing with tutorial 58 - Dynamic Menu with submenu, and I'm stumped on something that really shouldn't be that hard.

http://www.actionscript.org/tutorial...us/index.shtml

I've got the menu all done and now I am trying to use the submenu items to load dynamic jpgs into an empty MC. The tutorial explains how to link the buttons using getURL and I can do that fine, but of course the jpg just loads in a new browser window.

here is the generic AS on the submenu button using getURL:

code: on (release) {
myURL = eval("_root.urls"+choice);
if(myURL != null){
getURL(myURL);
}
}

Now, I thought I should just be able to use another command instead of getURL but I'm not sure what to use and everything I've tried goes kapuzt.

Here's what I've got:

code: on (release) {
subLink = eval("_root.slink"+choice);
if (subLink != null) {
GetURL(subLink);
}
}

the _root.slink value is this:

slink11 = "portjpgs/2003.01/01.jpg",pictMC,-20000;


So I guess two things

1) What comand should I use?
2) And how do I target the movie clip and depth? (I'm pretty sure I've got it wrong right now...)


Thanks for all your help,

Gabe

View Replies !    View Related
Dynamic Textfield Printing And Linking
I have a dynamic textfield which i fill with HTML-text from an XML-file. This exceeds one page, and I would like to print it on several pages. How can I do this, when I use printjob.start it only prints one page...? And is it possible to track a word that is clicked? (to use as a link to other pages..)

View Replies !    View Related
Dynamic Textfield Printing And Linking
I have a dynamic textfield which i fill with HTML-text from an XML-file. This exceeds one page, and I would like to print it on several pages. How can I do this, when I use printjob.start it only prints one page...? And is it possible to track a word that is clicked? (to use as a link to other pages..)

View Replies !    View Related
Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,

I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?

thanks!

View Replies !    View Related
Individual Listbox Items Linking To Individual External Text Files?
Alright, I've been at this for a while now, and I'm stumped. I've gotten as far as getting a listbox with a list of articles to display the articles in a dynamic text box, only i can only get it to work if i use one huge external text file that contains all the articles. what i want is to have each item on the list open up its own external text file, i.e. for each item on the list, there exists a separate text file. Can anyone offer any insight into this? I'm about ready to put my fist through the monitor, and that would suck because this is a really nice monitor

Thanks!

View Replies !    View Related
Individual Listbox Items Linking To Individual External Text Files?
Alright, I've been at this for a while now, and I'm stumped. I've gotten as far as getting a listbox with a list of articles to display the articles in a dynamic text box, only i can only get it to work if i use one huge external text file that contains all the articles. what i want is to have each item on the list open up its own external text file, i.e. for each item on the list, there exists a separate text file. Can anyone offer any insight into this? I'm about ready to put my fist through the monitor, and that would suck because this is a really nice monitor

Thanks!

View Replies !    View Related
Drag Items Into A Target Zone - Shrink Old Items
Hello - I have been thinking about how best to handle this but thought I'd ask if anyone has seen any actual code that will get me close to where I want to be. I have attached an image that will give you the idea.

I want to have a "target area" and drag and drop items onto it. As I add new items the ones already there will need to shrink to make room for the new item. As items are removed the remaining itmes can grow a bit more again. Get the idea?

IMAGE
http://pixelfumes.com/uploads/shrinky.gif

Thanks guys!
-Sarge

View Replies !    View Related
Drag Items Into A Target Zone - Shrink Old Items
Hello - I have been thinking about how best to handle this but thought I'd ask if anyone has seen any actual code that will get me close to where I want to be. I have attached an image that will give you the idea.

I want to have a "target area" and drag and drop items onto it. As I add new items the ones already there will need to shrink to make room for the new item. As items are removed the remaining itmes can grow a bit more again. Get the idea?

IMAGE
http://pixelfumes.com/uploads/shrinky.gif

Thanks guys!
-Sarge

View Replies !    View Related
Placing Items Above Loaded Movie Items
Ok,

I have a blank page (BASE.swf) that is eventually filled with backgrounds, graphics, etc. all through Load Movie commands- they start at level 1-7. My question is:

How do I put items that show above them? It doesn't matter where I put them in the BASE file, the loaded movies always appear above them...

Ideas?

Thanks,

Joe

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
List Item W/ Multiple Data Items - How To Select Data Items?
I have a list component (myListBox) that is showing the labels for some data items read in from an XML file. Each item in the list has an associated name, description, and path (they're mp3 files) and they are named accordingly in the XML tags.

Using myListBox.selectedItem.label gives the correct label but myListBox.selectedItem.data is undefined. I've tried using the XML tags after the data selector (e.g. myListBox.selectedItem.data.path) but those don't work, either. All of the examples I've found in the docs show only a single data element associated with each list item.

So, if a list item has multiple data items associated with it, how do you select them using the listBox.selectedItem property?

TIA,

rgames

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
Hit Areas
hi | how can i set hit areas? maybe i'm using the wrong word, but....i have a flash movie that has one large movie clip that when a user mouses over it, i change the cursor. this much works fine.

how can i program it such that as soon as the user scrolls off this movie clip the mouse returns to a normal Windows cursor?

thanks. - matt.

View Replies !    View Related
Hit Areas
Hello members,

Is it possible to make a button perform 2 actions.

For Ex. I have a hit.btn that is over my menu. When you mouseover it will make the sub menu drop down. I also want it to initiate action on another .mc depending on where your mouse is located (I would assume this is done by telling it some area in actionscript).

Refer to my image I attached. The blue hit.btn at the top is the main one. The squares below are the sizes of each hit area. When you get in the area of each individual square i want it to initiate the action on that particular movie clip.

Thanks for the help

View Replies !    View Related
Hit Areas On Hit Areas?
Ive got THIS so far and as you can see Ive got a big hit area that triggers a movieclip to play using this code:


ActionScript Code:
on (rollOver) {
    if (Number(_currentframe) == 1) {
        gotoAndPlay(2);
    } else if (Number(_currentframe) == 7) {
        stop();
    } else {
        gotoAndPlay(12-_currentframe);
    }
}
on (rollOut) {
    if (Number(_currentframe) == 7) {
        gotoAndPlay(8);
    } else {
        gotoAndPlay(12-_currentframe);
    }
}


..to bring up the nav.

Trouble is the octagan shapes are gonna be buttons....but you cant put hit areas over the big hit area cause as soon as you go off the big hit area with the mouse the movieclip plays...and I cant cut out the hit area where the buttons are becauce it'll mean going off the big hit area again!........that make sense?

Any suggestions for a solution?

Thanks!

View Replies !    View Related
Hit Areas
Hi im new to flash so naturally im having a few proplems that hopefully someone can help me with.
I have two movie clips that i want to associate with the same hitarea so when i roll over the hitarea it plays one and when i click it i want it to play the other but when i put in two variable's to associate the two clips with the hitarea they seem to cancell each other out, plus if i use two hitarea's instead and put them on top of each other they also cancell each other out.
I hope this all make's sense to someone.

Tks for any help Bryan.

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
Who KNOWS Drag Areas?
I'm loading a 760X420 movie (a window) in to the main movie which is alsi 760X420. However, when I set the drag rectangle area for the window movie, it doesn't work when it's loaded into the main movie, I can't go all the way left or to the top, and I can drag too far to the right and bottom. I already check to see if the numbers are in the right place, and still it doesn't work. Anyone have an insight?

Thanks for your help!

View Replies !    View Related
Overlapping Hit Areas
I have a movie that the hit areas are overlapping and I need to know how to make it so that only one plays at a time.
This is a navigation and when rolling over it the scroll out menu is there and one scroll out menu overlaps the other causing my hit areas to over lap

View Replies !    View Related
Hidden Areas
i want to make text scroll across the screen but only visible within about 60 pixels. now what i was goin to do was make a movie clip that way i can control it with buttons. the text was only goin to go from left to right but i want it to only show in a certain area. i tried looking through the tutorials and examples but i couldnt find anything i needed.

thanks

View Replies !    View Related
Mouse Hit Areas
Hi
this is hadi.
That would be great if someone could do me a faver and solve my problem.

I gonne explain the problem shortly and completly here but you may get the point easily if you download the action.zip file.

There are some movie clips with diffrent instance names that we gonne use them as Hit Areas.
by Hit Area,I mean that when we move the mouse from other places over them,(WITHOUT USING ANY BUTTON) they will each cause another movie clip called Motion to play specefic frames. And now, I'm tring to find the action Script, to do that.

Thanks.

Consider that I do not have any other refrence for help except flashkit.com

View Replies !    View Related
Xml Link Id Areas
I received this message from a programmer who's integrating my flash file into an html site:
"I don't know what the person who created the Flash called the different link id areas so I don't have the info to create the xml link file."

I have never worked with flash/xml communication. Can someone please tell me how to designate a "link id area"?

Thx.

View Replies !    View Related
Dynamic Areas In SWF
i have a client who wants certain parts of his flash webiste to be dynamic in the sense that he wants to be able to upload new content (text and pics) from time to time. I'm obviously familiar on how to do this with regular html, cfm, or php file. But is it possible to do this in flash? If so, how?

View Replies !    View Related
Non-Click Areas
I have a "Volume" slider, it slides up and down.

I have a cover that covers parts of the slider where it shouldn't be visible.

How (If possible) can I make the slider non-clickable to the parts that are behind the cover?

View Replies !    View Related
MC/Button Hit Areas
Given these two simple objects...

1 MC - myContainer
1 MC - myContents (is right on top of myContainer)

The plan is for myContainer to reveal myContents when you rollOver myContainer. When you roll off myContainer, myContents dissapear.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
myContainer CODE:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on(rollOver){ _parent.myContainer.gotoAndPlay("fadein");}
on(rollOut){ _parent.myContainer.gotoAndPlay("fadeout");}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Now, when i roll over myContents (which has its own commands) the "rollOut" state is activated for myContainer.

Any Thoughts?









Attach Code

on(rollOver){
_parent.myContainer.gotoAndPlay("fadein");
}

on(rollOut){
_parent.myContainer.gotoAndPlay("fadeout");
}

View Replies !    View Related
Can Anyone Help Me With Advanced Hit Areas
On a regular button you only need one hit area. But when you rollover a button and it slides out, I need that new area that slid out to be the new hit area. I admit I am a mere "beginner" when it comes to Flash, so if this is something really stupid please take pity and enlighten me. Thanks. Benjimano

View Replies !    View Related
Scroller .fla, Hit Areas
my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?

View Replies !    View Related
Conflicting Hit Areas
I am trying to make a menu something like gucci.com but my problem is this: the hit area for my button within a movieclip is interfering with my hitarea for the sliding bars. maybe this is the wrong way to approach this. can anyone help me? below is AS i have so far...

var bar1x = -162;
var bar2x = -228;
var speed1 = 30; // speed of box 1
var speed2 = 60; // speed of box 2
var speed3 = 10; // speed of text coming in / out
var textAlpha = 0;
text._alpha = 0;


var motionInterval = setInterval(checkBars,10);

theHitArea.onRollOver = function() {
//text._x = 3;
//text._y = 15;
bar1x = -2;
bar2x = -2;
textAlpha = 100;
}

theHitArea.onRollOut = function() {
bar1x = -162;
bar2x = -228;
textAlpha = 0;
}

function checkBars() {
bar1._x += (bar1x-bar1._x)/speed1;
bar2._x += (bar2x-bar2._x)/speed2;
text._alpha += (textAlpha-text._alpha)/speed3;
}

stop();

View Replies !    View Related
Can Anyone Help Me With Advanced Hit Areas
On a regular button you only need one hit area. But when you rollover a button and it slides out, I need that new area that slid out to be the new hit area. I admit I am a mere "beginner" when it comes to Flash, so if this is something really stupid please take pity and enlighten me. Thanks. Benjimano

View Replies !    View Related
Help With Scrollable Areas
Hi guys,

I'm trying to create a scroll area similar to http://www.norwaysays.no ... with text content and thumbnails.

I am having no trouble bringing in the information I want (both text and images), as I am calling the variables I want via PHP from my database...

I can already successfully load new content into a textarea with a scrollbar (component), and change the content by sending new requests to the database, though I obviously can't insert the images into the text area.

However, I can create the thumbnails as per the following code inside my 'for' loop (I have already set piclocation_x and _y variables outside of the loop):



Code:

//thumbnail image loop
//levelhack = a means to ensure loading new image into a unique level

_global.levelhack += 1
_root.thumb_clip._alpha = 99
_root.thumb_clip.duplicateMovieClip("thumb_clip"+i, _global.levelhack);
_root["thumb_clip"+i]._x = piclocation_x
_root["thumb_clip"+i]._y = piclocation_y
_root["thumb_clip"+i].loadMovie(this["image"+i])
piclocation_x += 0
piclocation_y += 70

So, I have my text loaded into a scroll area, and my thumbnails in a vertical line at 70 pixel increments beside the text... (as the text entries are approximately 70 pixels / 3 lines worth each). Obviously though, the text content is scrollable and the images are just sitting on the stage next to the text area.

My problem is, I can't seem to load all this content into a scrollpane component or a masked scroll area because that means I have to imbed the text in order for it to display, and that seems to have the effect of not updating the text content when I send new requests to the database.

So basically, my problem is not loading the text and images how I want, but loading them into a scrollable area, and having that scrollable area refresh it's content when I send new requests to the database.

Any ideas? I am tearing my hair out over this!

I can supply source file if anyone requires it.

Many thanks in advance...

View Replies !    View Related
Calling Items From Library And Getting Number Of Items In Library
If i have a folder named questions in my library and i want to get the number of items in that folder how would i do that. I tried the code below but was unsucessful. Is this possible threw code? Or do i need to hard code my array.

var qst = new Array
trace(questions.length)
for(i=0;i>questions.length;i++){
qst[i] = questions.items.length
trace(qst[i])
}

Thanks
Josh

View Replies !    View Related
Manipulating Areas Of Shapes
I have a movie that needs a slight modification.

I can alter the shape of a triangle using maths and the _xscale and _rotation of movie clips. I need to know how to fill the shape in with colour.

http://www.mathslesons.co.uk/lessonp...rems/index.htm

Thx in advance for any help.

View Replies !    View Related
Mouse Follows Object In Certain Areas
I have a movie clip wich follows the mouse and I am using the following code:

onClipEvent(load)
{
this.minx=0
this.maxx=550
this.halfWidth=this._width/2
}
onClipEvent(enterFrame)
{
this._x+=(this.tx-this._x)/4
}
onClipEvent(mouseMove)
{
this.tx=_root._xmouse
if(this.tx>this.maxx-this.halfWidth)
{
this.tx=this.maxx-this.halfWidth
}
else if(this.tx<this.minx+this.halfWidth)
{
this.tx=this.minx+this.halfWidth
}


I want the MC to follow the mouse but only in a certain area of the stage. When I jump out of this area, I want it to remain where I jumped out, until I enter the area again - at which point the MC follows the mouse again. How do I do this?

Hopefully, somebody can help.

Thanks.

View Replies !    View Related
Why Are Button Areas So Small
Why is it when I create a button the area you have to hit to actually make the action occur is so small?

I was making a button out of the word 'Home' and you have to hit it perfectly on for the action to occur when I test it. How do you make the area larger?

I also tried making a box around it and still the same issue.

Your help is much appreciated.

Happy Flashing!

View Replies !    View Related
Big Trouble In Preloader Areas
Please help if you can! I have been sharing my preloader, just a little movieclip, between about 12 files from one source file. The Problem is, on photographers.asp or photographersstatic.asp if you qickly move your mouse over to the left on the FIRST load of the movie it will freeze and put up odd symbols. It has me on the verge of convulsions. PLease help!
www.wincreps.com password: present

ah the preloader code is
ifFrameLoaded (_totalframes) {
gotoAndPlay(2);
}

but this works for all pages except two. PLUS the pages are sometimes faulty on Netscape Navigator 6.2. Please please please.
Thanks-
Katy

View Replies !    View Related
Printable Areas In Flash
I like to know if its possible, and how if so.
If i could make so i click a button and it will print a selected area
in the movie.

speak code to me, i know what you are saying, just i never done this before.

View Replies !    View Related
Hit Areas And Their Crazy Sizes
hey yo!

First things first, I'm a bigtime newbie, so go easy alright. I just want to make myself a cool site, so if I could score some help I'd be really thankful. So okay, here goes....

In Flash mx do movieclip not need hit areas? I was told they act like buttons. Is this true?

Also, Is it possible to change the size/shape of a movieclips hit area on mouseover?

Thanks for listening
GM

View Replies !    View Related
Question About Masking Areas?
Edit: Wrong subject - lol ;-)

Hi everybody,

Maybe someone can help me out:

As you can see on the picture I have attached, I would like to have four buttons (1) which will be scaled a bit bigger when the mouse is moved over one. The one the mouse touches should become even bigger (2) and pushes the others aside. It's like all four buttons are individual and can move each other out of the way. When the mouse leaves the buttons they should be scaled down again like in pictures 1.

Maybe someone can point me to a webpage with some tipps or give me a hint?

Cheers,
Bye!

View Replies !    View Related
Input Text Areas
i have some input text fields (set to variables email, message and fullname) within a movieclip which isn't always visible - it changes frame.
i can always see the text fields when i want to, but the most bizarre thing is happening with them. when i click in them, no caret appears and when i type, nothing appears.
when i open the debug i can see that the variables email, message and fullname do actually change when i type in the textfields and i can copy and paste their contents as if the text is there, but invisible. if i click on the text fields' instances in the debug menu and look at their variables, i can see that text and html text do not change, but just display what the textfields have in them to start with (i can't see that when i preview either).
how can i fix this?
thanks

View Replies !    View Related
Creating Hot Areas For Mouse Over
I posted this below but I think this better describes what I am trying to do.

I have a movie clip that uses the onClipEvent command which in turn makes a movie play forwards and backwards based on the position of the mouse on the screen. Here is the code

//
onClipEvent (enterFrame) {
if (Math.sqrt(Math.pow(_xmouse, 2)+Math.pow(_ymouse, 2))<250) {
nextFrame();
} else {
prevFrame();
}
}


I need to better define the area. Is there a way to say if the mouse's coordinates are <250 for x and <100 for y go to nextFrame, otherwise go to prevFram?

Thanks again for everyone's help!

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