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




Mouseposition Panel, Very Simple Question I Think



hi, i'm absolutly new in scripting actionscript and my problem is, that i want to print out the mouse, y x-position on a "panel"

My plan is to give the "panel" the command on load .... mouse.y.. mouse.x.. and than maybe print or something, need help - thank you



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-16-2004, 05:39 PM


View Complete Forum Thread with Replies

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

How To Get Mouseposition
can someone help me,is there an action to get my position of my mouse?

As Mouseposition Help
hi, i have been playing with some actionscript that makes a menu scroll up and down. The code works great apart from one thing, when it is placed into a webpage, straight away the menu scrolls up by itself, and will continue to do so until the cursor is over the flash itself. My question is how can i get it to only scroll the menu when your over the menu area itself within the flash. My code so far is as follows:


ActionScript Code:
// ---------------------------------------------
// Speed is INVERSE
// ---------------------------------------------
speed = 55;
drag = "/dragControl";
/:h = getProperty("/nav", _height);
// ---------------------------------------------
// line below controls invisible mouse scroll center point SET the number TO HALF OF THE HEIGHT OF YOUR MOVIE!
// ---------------------------------------------
/:yPos = getProperty(drag, _y)-80;
/:xPos = getProperty(drag, _x);
// ---------------------------------------------
// adjust for Speed
// ---------------------------------------------
setProperty("/nav", _y, getProperty("/nav", _y)-(/:yPos/speed));
// ---------------------------------------------
// see if we're run out of menus either up or down
// ---------------------------------------------
if (Number(getProperty("/nav", _y))<Number(-(/:h/2))) {
    setProperty("/nav", _y, 0.01);
} else if (Number(getProperty("/nav", _y))>0) {
    setProperty("/nav", _y, -/:h/2);
}

as always any help would be greatly appreciated.

thanks

Flip MC On Mouseposition
I was wondering how i could flip a MC regearding the position of the mouse. this way i want to make a MC which will be fronted to the mouse.

i saw something like:

this._xscale *= -1


but i dunno how to combine it. how i built up the checks so i doens't flip at every framerate.

help would be very apriciated!

Zoom According To Mouseposition
Hello,

i search for a simple zoom for an mc. This Zoom should be activated by a click on the mc (map) and stop at the zoomed positon. I found this very good script but i can`t figur out how i can stop at the zoomed position. Maybe someone can help me???

I am thankful for any good advice...

Cheers

// Origin
movieclip.prototype.getOrigin = function () {
trace('getOrigin')
this.targetX = this.startX;
this.targetY = this.startY;
this.targetXs = this.startXs;
this.targetYs = this.startYs;
}
// Target
movieclip.prototype.getTarget = function (factor) {
this.targetX = this.startX+(this.startX-this._parent._xmouse)*factor;
this.targetY = this.startY+(this.startY-this._parent._ymouse)*factor;
this.targetXs = this.startXs*factor;
this.targetYs = this.startYs*factor;
}
// Zoom
movieclip.prototype.zoom = function (delay, targetX, targetY) {
this.difX = this.targetX-this._x;
difY = this.targetY-this._y;
difXs = this.targetXs-this._xscale;
difYs = this.targetYs-this._yscale;
this._x += (this.difX/delay);
this._y += (difY/delay);
this._xscale += difXs/delay;
this._yscale += difYs/delay;
if(Math.abs(10*this.difX) < 2){
delete this.onEnterFrame
}
}
//


myStadt.startX = myStadt._x;
myStadt.startY = myStadt._y;
myStadt.startXs = myStadt._xscale;
myStadt.startYs = myStadt._yscale;
myStadt.getOrigin();

myStadt.setOnEnterFrame = function(){
this.onEnterFrame = function(){
this.zoom(4, this.targetX,this. targetY);
}
}

myStadt.onMouseDown = function(){
this.getTarget(2)
this.onMouseMove = function(){
this.getTarget(2);
}
this.setOnEnterFrame();
}

myStadt.onMouseUp = function(){
this.getOrigin();
delete this.onMouseMove
this.setOnEnterFrame();
}

stop ();

Locating A Movieclip Relative To Mouseposition
How can I put a MovielClip at a position relatively to the current position of the Mosepointer.

Making The Carousel Move On Click Instead Of Mouseposition
I realize there have been a lot of questions asked about the Carousel tutorial. It is a great tutorial and I really enjoyed going through it. What I am trying to accomplish right now is to have the Carousel stationary, until one of the icons is clicked. Once it is clicked, the Carousel spins around until that icon is at the front, then information will be displayed and the user has an option to contiune with the selection of this icon, OR click on a different icon, at which point the Carousel will spin to that icon.

I've read all of the posts I could find on the Carousel in the forums here, but came up empty handed. If someone could point me in the right direction I would be very greatful. Thank you.

Simple Scroll Panel Problem
I am using a scroll pane instance in which I am loading an external swf.
When I test the movie from within the Flash MX program it works fine.. but when I export it and try to use it outside the Flash program it exhibits an oddness...
Where the scroll pane ends on top and bottom, the external clip I loaded should lose visibility oursite the viewable scrollpane area... and it does so within the test movie function of the main flash program. But on its own outside the program, the scroll works but the entire external swf image is now viewable ..although it can be scrolled.. it does not hide what is outside the pane area....

What am I doing wrong?

Simple Control Panel For Ffw/play/pause/rw
Does anybody have a basic *.fla file or swf that contains a simple user-control panel?

I need to have the user able to play, pause, fast-forward and rewind. I need this control panel to apply to all scenes of the flash movie and also to be stored in a library for future use across a range of movies. Because of this I don't want the buttons in the control panel to have to include any script that references specific frames/scenes, just general commands that will always work.

It should look something like this:

Rewind (<<) | play (>) | Pause (||) | Fast-forward (>>)

Any ideas? suggestions? Are there any tutorials on this?
Any help would be greatly appreciated, thanks...

Answer Panel Add-on Without Touching The System Of The Andser Panel Check It Out
Hi all!
I have created a add on for the Answer Panel!
This system is working like this:
I have made the menu and stuff, but when you select on the combo box "Answer", theres the code loadmovie and it laods the Answer Panel (like before)!

This add-on WILL NOT DAMAGE OR CREATE CHANGEMENTS on the system of the Answer panel
what's on the add-on:
music
game of the month (there currently bugs to fix)
later they will be more stuff!
(There are no update like the Answer panel)

Get it:
http://www.geocities.com/matrixplayer2000/do.html
(you must extract these files on the Answer panel folder of Flash MX (if you have Flash MX open, it will need a restart)
file discription:
ans.swf (Answer Panel)
Answer.swf (add-on)
an.exe (Because I can't make it to go back it will lunch this pop-up window)

NOTE: you can't run the ans.swf like this, but it must be in Flash MX Answer panel to see it. (I did NOT change it)
It's just working like this! and used to work like this!

GET the source code:
http://www.geocities.com/matrixplayer2000/do.html


===============================
Bug report and To-Do:
- Create game
- Make that it scale (like the answer panel)
- Fix for some the music speed (that is only me that can do that!(I just need to change the qulity higher and transform it into a .swf)
===============================
bye and enjoy!
[Edited by asdfghjklzxcvbnm on 07-23-2002 at 07:13 AM]

Flex Controlling Items In Panel A From Panel B [Flex3/AS3]
Hi all,

Currently I am working on a project that seems a bit daunting to someone that's quite new to Flex 3 and the Flex Builder 3. I'm trying to create a Build Your Jacket app that will allow the user to create a "Letterman Jacket" with logos and text of their choice ( something a bit similar to Spreadshirt.com ).

At the moment I'm trying to work out how to have 2 Panels communicate with each other.

So say for example:
In Panel B I have a Text field where someone can type one line of text. When they type into the field, I'd like it to appear in Panel A and allow the user to manipulate that in Panel A.

If someone has an example of this in Flex 3 or AS3 form, then that would be great! But if not, then I'm really looking for some direction on things I can look up and focus on in order to accomplish this.


Thanks guys.

Panel Layout Question (panel Sets)
I have never been able to get the Library to stay part of my custom panel layout. I run dual monitors and all my other panels (actions, colors, ect...) are on the second monitor and open fine in their respective places, but not the Library. I have to always hit F11 to open it and then resize it, drives me crazy! **I don't want to 'dock' the windows because it puts them below each other and I don't need that. I want them next to each other and all half the size of my monitor. It makes for a very nice workspace with all the tools on 1 monitor and the entire stage and timeline on the other.
As far as I know there is no way to dock panels next to each other as opposed to vertically. Just something that has bothered me for oh, around 3 years now! Any suggestions?????

CS4 Help Panel
Alright, so I just got a copy of Flash CS4 ( I'm so excited!) and I've been using it for a few minutes now and I've realized that there is no help panel. Instead all the documentation is online. I don't know if anyone else will, but I'm really gonna miss it. It was always my first stop when I needed help.

Recently I've been looking at how to make flash panels for flash, and I was wondering, has anyone made a help flash panel, and if not, would it be possible to make one (say, in AIR?). The previous ones were just simple internet browsers, but were really handy cause they were right in flash.

Anyways, any insight into the matter would be greatly appreciated.

3D Panel
I simply found it and it's an good 3D effect..... but I want to share it with you

The source:

http://www.freewebs.com/lujerker/particle.fla

Volume Panel
I need 2 volume panels.
It's runnig well with just one but not with 2.
I uploaded the .fla to
http://www.judo-schwarzenbek.de/volume_test.zip

Would be great if somebody could check this.
I think the mistake is in line
< _root.s.setVolume(100-(_y-top)); >
the _root causes the problems.

I don't know what do do.
Please help me

Mike

Action Panel?
Hello,

I'm just trying to start with the actionscripting in Flash5. The problem is that I don't get an action panel if I choose Window > Actions.

What's the problem?

Action Panel
ok, im newish to flash and getting to grips with actionscript when hey my actions panle has disappeared - this has happened before and ive checked everywhere, are there any commands to realign panels or anything.? any tips greatly appreciated so i can finish my piece.thanks

Where Has My Action Panel Gone
Another dumb question.
I have created a short movie with a built in graphic clip. After useful help from this forum I can now cause the animated graphic to loop for a specified number of seconds. the number of seconds is specified in the first frame of the main movie. All working a treat. HOWEVER .. My action box has disappeared ! I can use any or all of the techniques for bringing it up e.g. Double clicking on the frame containing the action ... but no sign of my action panel . The movie is still working so the actions must still be there (the 'a' symbol is still there on the individul frames also) .... HELP !

Effects Panel
Is it just me or can you apply only one effect to an instance using the effects panel without reverting to the advanced section and doing everything manually?

You can't apply both a tint and an alpha effect a brightness and tint effect and vice versa may you? I assume the advanced section is the only way of doing something like this correct?

SWF - Control Panel
i have a SWF and i want it to put that in my movie, with a control panel which can STOP , Play , Forward and Rewind that SWF. how to do that... what the best way to go about it....
thnx
aLi

Panel Sets
alright, panel sets rule. saving your own panel sets rule. but, is it possible to include your library in your custom panel set? am i missing something? isn't the library a panel? why cant i save its position???? AAAAAAAAAAAHHHHHHRRRRGGG!!!!!

Effects Panel?
in flash 5 there were effects panels and instance panel , but i can't seem to find this anywhere in mx.

Library Panel
Everytime I open a flash file I have to hit Ctrl L to display the library. Is there a way to get around this and just have the library always be one of the panels that is visible?

Control Panel
hey,

i'd like to have a square frame in the top left corner of my site as a control panel using flash. so that when you click on the buttons in that panel, the pages pop up on the rest of the page. is this possible? and can i make a flash movie a square, or is it always a rectangle?
thanks a bunch

Properties Panel/bar
mine has gone and pressing ctrl and f3 or going windos-properties doesnt get it back.how do i get it back up?

Settings Panel
Some of the things in Flash Player 6's Settings panel I don't understand. I mean, I understaned them but how can I implement them in ActionScript (Such as, accessing the camera and microphone on a computer)?

Properties Panel/bar
can someone help me get my properties bar back?
ive tried cntrl and f3 or whatver but it still dont work.anyone

Effects Panel
I cant find it!!! Every single tutorial i try to do involves and effects panel, i must find it!

Could you resize the footer, thanks - catbert303

Shifting Panel
Hello all,

Attached is a fla I'm working on. I need the panels to display in a masked window w671xh315. I have reworked all the symbols to the proper size. However I can't seem to find whether in the action script or where it is telling the mc how much to shift. Therefore I can't adjust the amount the panel shifts from the original 400x300. So I assume it must be something in the action script I am missing. Feel free to pick it apart all you want.


Thanks in advance

-Twizz

The Fill Panel?
Hi... I am just starting the Flash MX and would like to know where the fill panel is. I cant find it under windows? maybe u ppl mite have an idea. My email is jdepratti@yahoo.com and i use aol instant messanger: HotLaJake. I am trying to make text glint- maybe u can give some help about that too. I think i can get it if i know where the fill panel is. Any help would be great. Thx

DarkAvenger

Dynamic Panel
Hey =)

Does anyone know how I could possibly via ActionScript (I'm using Flash MX 2004) build a dynamic panel? Basically, what I want to do is pull all the movieclips from the library and stick them in a panel for display ^_^

Thanks!

-Emily

Strings Panel
Hello!

For first time i'm using the strings panel, the dynamic text box are working perfectly but how may i change the language using a button???...i'm looking for this on flash help..but if someone may help me quickly i'll be very happy.

thank's for any help.

Quickcolor Panel
Hello

I don't now if this is the right spot for this stuff.
based on the quickcolor chooser at kohaistyle.com I created a flash panel, because I often use that tool.

here's a screenshot of the panel;



You can download it here:
quickcolor.zip

Any remarks are always welcome. Have fun

Delete Panel Set
Anyone know how I delete the panel set myPanelSet which I have created myself?

Should be possible but I haven't figured out how, annoying!

thanks
/october

Drop-down Panel
Hi all, i'm new to flash so have just been looking at exisiting movies. Can someone tell me how to create a drop-down panel so when a button is clicked in a menu a panel will slide down from above to be completely visible. i think i should be using masking but have no idea where to start.

any tips greatly appreciated!

Effects Panel
how do i display the effects panel so that i can change the tint, alpha ect? All i see on the properties panel is the tween and sound ect.

Panel Layout
I saved my panel layout in Flash MX 2004 Prof for PC, but now I can't delete the saved panel sets. How do I do this. In Photoshop it is easy, there is a delete button for the panel set you created, I expected the same thing in Flash. See attached files of panel layout options in flash vs. photoshop

Actions Panel?
hey again! ok im trying to learn flash (mx 2004 pro is the version i have) through a series of tutorials.. in the tutorials' printscreens of the acrions panel and their explanation, i understood that there must be a simple way to define the various attributes of the command, and flash creates the correct code on its own.. but i just cant find it in my version.. there i can only write the code myself directly, and im pretty sure im going to mess it up at some point!! so is there a way to find this????

oohh the tutorial im using is for flash mx, are the two versions that different?? i also notices a few other differences, but none as irritating!

tnx a lot again!!

ok here is a printscreen of the tutorial's view:

Output Panel
Hi,

How do I stop the Output panel opening almost to cover the whole screen whenever an output message arises?

Cheers,

CN.

Actionscript Panel Is Different?
I am looking at this thing teaching me some things about action script but on its picture first of all it has i can right click on a keyfame and select actions like that but i cant... it doesnt even have the selection on the menu that comes up. Ok once i get the action panel up the picture is saying that bascally when i click on something on the left hand side that i have on the right hand side a drop down menu for scene, type and frame right above the actionscript stage but i dont see it on my macromedia. Now i am using mx pro 2004 and the lesson i am looking at is for mx pro 2004. Is there anything i am not clicking or do i need to get a update?????

Flash Help Panel
Hi guys the text in my flash help panel has suddenly become very small and faded and hard to read... does anyone know where the setting is to change the text size within the flash help panel?

Cheers in advance

Control Panel
Hello,
I need to know a way (or a tutorial) to make a control panel where everyone can insert (exploring personal hard disk) a photo and a description text to a database and, possibly, also the photos wieving page, ASP or PHP is the same.
Thanx.

Accordion Panel Pro V1 / V2
Hi

I just bought the Accordion Panel Pro 1 & 2 from jumpeye. It seems to work really well but I can't figure out how to get my movies to start after the panel has been opened. They just start on load up so are finished by time you open the panel.

If any of you guys could help I would be really grateful.

Thanks

Properties Panel
Hi!!

Would anyone be able to tell me please how to find "Properties Panel"
in German, - Iīve looked everywhere. :-)

Thanks in advance

geoff.

Library Panel
I know how to save panel layouts but I can't get the library window to stay in my layout. When I reopen Flash the panels are all there but I have to open the libray every time. How can I fix this?

Scene Panel Pop Up
So I hate using scenes, but i dont feel like redoing this site but I have come up with this problem. I have more scenes then what is shown even when expanded and when you click a scene it automataclly pops the scrolling of them to the top again. this gets very annoying and tedious when im trying to edit hte scene. any ideas would be welcomed.

-themaimedlord

Scroll Panel?
Hi

I have a problem with a scroll panel with pictures.
I have find the script on the internet but I donīt know how to move the scroll panel? When I try to move the panel it donīt work when I make the SWF file?

I have upload the fla file to http://molotov.brandfilm.com/scrolling_panel.fla
Can someone please tell me what Iam doing wrong?

Thanks for your all help I have get jet, and allso the fast respons

//Molotov

I Can't Get Along With Help Panel (Flash 8)
when searching for examples for the built-in AS code:
do

then i type:
do
in the actions panel
then press: F1
then: there are no results found

So, then i type: do, in the same help panel, for search.
then about 100 results are found.

help!, i only want the examples and not every help page where in is written the word: do.

How do i quickly find AS examples for eg. 'do'?

Get Rid Of Control Panel?
Hello

Is there a way to have this flv file (3 seconds) play on my home page without the control panel...the file is a small version logo, meant to just play once on load of home page then stop, by itself...no controls.

How do I get rid of this skin...Flash 8 I can choose no skin, which I did, but when I import it into DW 8, dreamweaver doesn't give an option for NO skin...what to do?

Thanks very much
KB

Content Panel
Hi, just started out with flash and finding out a lot of stuff by using the tutorials here. I am looking for some help tho, i am attempting to make a basic site, it has a banner at the top and navigation bar just underneath, how can i make it so that only the main panel below that shows the content of that page.

For example i press a button that says 'about', the text for the page about is loaded into the main panel below the banner etc instead of the whole page reloading. I then press 'home' and it goes back to what it was before but the same panel is being used again for the content without the page reloading.

Sorry if i am not being clear but hopefully you understand what i mean.

Any help would be most appreciated

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