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




Positioning An Object With The "info" Panel



Hey y'all!

I have a problem with positioning an object in the upper left corner (x=0 and y=0) of the stage.

When I do this using the "info" panel, the object, instead of going to the upper left corner of the stage, will place itself in the exact middle of the stage.

Does any one know why this is and how I can solve it? Is there a way to solve it using ActionScript?

Thanx,
Maurits



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 12-09-2003, 04:51 AM


View Complete Forum Thread with Replies

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

Positioning An Object With The "info" Panel
Hey y'all!

I have a problem with positioning an object in the upper left corner (x=0 and y=0) of the stage.

When I do this using the "info" panel, the object, instead of going to the upper left corner of the stage, will place itself in the exact middle of the stage.

Does any one know why this is and how I can solve it? Is there a way to solve it using ActionScript?

Thanx,
Maurits

Mic/Cam Settings Panel Positioning
Now guys, I couldnt figure out if there is a property that let's me control the positioning of the settings panel that pops up in flash. It just poistions itself in the center of the stage, but I need it to pop-up little higher!

Does anyone have any idea how I can position the Flash Settings (Mic/Video Permission) Panel? Thanks!

Info Panel In Flash MX
Inside the Info Panel In Flash MX there is a list of items to choose from. Notably the nine small square boxes that are use to align items in flash by using X, Y, coordinates. My question is how Can I activate the other eight small boxes.

Any Help is welcome
eystothesky

My Info Panel Is Lying To Me
I'm a beginner and am I'm probably doing something really basic wrong here, so forgive me if this is a remedial question.

I've set my document width to be 700px. And I've drawn a rectangle shape on the stage which the info panel is telling me is 650px. The problem is that it's extending beyond the edges of the movie.

When I publish the swf and view it in a browser the swf is indeed 700px wide and the rectangle drawn inside it is extending beyond the edge of it, so must therefore be considerably wider than 650px.

Any ideas?

Adding Info The The Reference Panel
I add some new methods to the XML object.
To help my co-worker I also added some quick tips into the actionspanel xml files.

Now I want to also update the Reference panel, but I can't find the file where the info is located.

Properties Panel Cutting Off Info
I posted this on another Flash Site, but it's been sitting there all day w/ no answer. Hopefully someone here can tell me.

My properties panel, even if it's docked or detached, seems to only show me Width and X-coordinates. I cannot see Height or Y-Coordinates. If can tab to them, and copy & paste in notepad to see the values, but as you could imagine, this is extremely cumbersome.

Any clue as to what could cause this?

Flash CS3 : Slide Out Animated Panel (showing Info)
Hi all,

I am trying to get this effect in my website, please check the website link given below
http://www.masdaruae.com/en/home/index.aspx
ie I need the blue sliding panel to show information about different subjects.

Please help with tips how to do it. I am pretty new to using flash CS3

Thanks in advance

Peter

Cannot Switch To Upper Left Coordinates When Clicking Button In Info Panel
Hello, I'm new to Flash 9
In Flash 8, I used to click on button in info panel to switch between
instance's upper left corner coordinates and alignment point coordinates.
Now I can only display alignment point coordinates even if I keep on
clicking on the button.
Is it a bug ?
Can you help me ?
Thanks

Henri

Positioning LoadMovieNum Object
Hi..

I have this problem where I should place the loaded video to a flash movie to a particular place. I have the line

loadMovieNum ("AnalogClock_4.swf", 1); and it works but it's located in the top-left corner.

How can I set the coordinates to that swf object?

thx

Object Actions Panel Inactive
hi - i've created a button that i want to script. once i've selected the button, the actions panel changes to say 'object actions', but i can't type my script in the right side of the window - no cursor appears. what am i missing? i'm just learning actionsript, so bear with me if this isn't a 20 point question. thanks!

How To Pass Info From One Object To Another?
Hi there,
I have a flash object that has the following.

Flash Ver. - MX -

7 Index buttons
7 Image holder movieclip instances.
7 Transparent buttons.
1 Main Image holder movieclip istance.

When one of the index buttons is pressed, it sends a code to each image holder instance to grab jpg images from a folder on a web server.

on(press) {
imageholder_x.loadMovie(http://www.myDomain.com/imagefolder/image_x.jpg);
}

I want to transfer the url info from the index button to the transparent button dynamically so that the transparent button can then load the same image in the mainimageholder.

Please help!!

you can see the falsh at
fadlighting.com

Please HELP !!!

Object Loader Info
Hi--

I know I've done this before, but am having brain freeze or something and can't get it to work.

I've got a few spites on stage that are created dynamically and live in an array. I'm rotating images through these sprites and now need to know which image is in a sprite when clicked. My code:

loading the images:


Code:

var loader:Loader = new Loader();
var request:URLRequest = new URLRequest(imgPath+"1.jpg");
loader.load(request);
spriteArray[1].addChild(loader);



click function:


Code:

function click1(e:Event) {
trace (spriteArray[1].getChildAt(0).content);
}



my click1 function above returns [object bitmap]. I'd like something like to see "1.jpg". What am I missing?

Thanks!

:grimey

Ralative Positioning A Flash Object
Hi there.
I'm having a problem with positioning a flash object in my site.
The flash object is sitting inside a div element with a relative position. The problem is the flash object is sometimes placed inside the div and sometimes align to the left end of the browser. I think it gut something to do with the swf file loading duration (maybe loaded after the page is already displayed.
You can see an example here:
http://ledesign.co.il/?q=he/node/36
comparing to this
http://ledesign.co.il/?q=en/node/33
Have someone experience this kind of troubles before ? Any ideas how to fix that issue ?

Browser Resize And Object Positioning
I'm currently attempting to make a function that repositions all my display objects on the screen anytime the user resizes the browser. At the moment I only have two objects created, a .FLV and a .PNG

I'm using BulkLoader for all my loading needs. My dilemma is this:

The .FLV repositions as intended perfectly when the browser is resized, but the .PNG will not reposition from it's original coordinates. I receive no errors when I debug. Any thoughts?


Code:
package port {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import br.com.stimuli.loading.*;
import caurina.transitions.*;

public class Portfolio extends MovieClip {

var loader : BulkLoader = new BulkLoader("main-site");
var bgVideo : Video = new Video(737, 600);
var rememberIcon : Bitmap = new Bitmap();

public function Portfolio() {
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.addEventListener(Event.RESIZE, resizeHandler);

loader.add("background.flv", {type:"video", pausedAtStart:true});
loader.add("iconRemember.png", {id:"remember"});
loader.addEventListener(BulkLoader.COMPLETE, allLoaded);
loader.start();
}

public function allLoaded(e:Event):void {
bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
var bgNS:NetStream = loader.getNetStream("background.flv");
bgVideo.attachNetStream(bgNS);
bgVideo.smoothing = true;
addChild(bgVideo);
bgNS.resume();

var rememberIcon : Bitmap = loader.getBitmap("remember")
rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
addChild(rememberIcon);
}

public function resizeHandler(event:Event):void {
bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
}
}
}

Choosing The Point For Object Positioning?
Hello

In the property of each object, I can set the X and Y position.
This coordinate seems to be for the upper_left corner of the object.
Is it possible to apply the X and Y position to the bottom right corner (for example) ?

Thanks

gz

Intervals Using Relative Object Positioning?
Hey guys check this code out:


ActionScript Code:
function moveClip() {  if (myClip_mc._x < 400) {    // the _x value is less than 400, so increase _x by 1px,    // and let setInterval execute this function again    myClip_mc._x += 1; // move the clip 1 px to the right  } else {    // the _x value is greater than 400,     // so stop the setInterval from executing anymore    clearInterval(myInterval);  } // end "if myClip_mc._x < 400"  } // end moveClip()// do this when "myButton_btn" is clickedmyButton_btn.onPress = function() {  // execute the "moveClip" function every 10 milliseconds  myInterval = setInterval(moveClip, 5);} // end myButton_btn.onPress()  


I was wondering, is there a way to change if (myClip_mc._x < 400) { to a relative position of myClip_mc.
I mean, i want myClip_mc to move 100px from it's current position everytime the button is clicked. Instead of only moving it
if it's x position is less than 400.
So it needs to somehow check it's current position everytime the button is clicked and then make it shift from that position.

I know this is a long winded way of doing it but i want it this way so i can use it for something different.

Any ideas?

Absolute Positioning Flash Object
Can a flash object be absolutely or relatively positioned in html page? Can I use z-index with it?

Browser Resize And Object Positioning
I'm currently attempting to make a function that repositions all my display objects on the screen anytime the user resizes the browser. At the moment I only have two objects created, a .FLV and a .PNG

I'm using BulkLoader for all my loading needs. My dilemma is this:

The .FLV repositions as intended perfectly when the browser is resized, but the .PNG will not reposition from it's original coordinates. I receive no errors when I debug. Any thoughts?

Code:

package port {
   import flash.display.*;
   import flash.events.*;
   import flash.media.*;
   import flash.net.*;
   import br.com.stimuli.loading.*;
   import caurina.transitions.*;
   
   public class Portfolio extends MovieClip {
      
      var loader : BulkLoader = new BulkLoader("main-site");
      var bgVideo  : Video = new Video(737, 600);
      var rememberIcon : Bitmap = new Bitmap();
      
      public function Portfolio() {
         stage.align = StageAlign.TOP_LEFT;
         stage.scaleMode = StageScaleMode.NO_SCALE;
         this.stage.addEventListener(Event.RESIZE, resizeHandler);
         
         loader.add("background.flv", {type:"video", pausedAtStart:true});
         loader.add("iconRemember.png", {id:"remember"});
         loader.addEventListener(BulkLoader.COMPLETE, allLoaded);
         loader.start();
      }
      
      public function allLoaded(e:Event):void {
         bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
         bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
         var bgNS:NetStream = loader.getNetStream("background.flv");
         bgVideo.attachNetStream(bgNS);
         bgVideo.smoothing = true;
         addChild(bgVideo);
         bgNS.resume();
         
         var rememberIcon : Bitmap = loader.getBitmap("remember")
         rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
         rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
         addChild(rememberIcon);
      }
      
      public function resizeHandler(event:Event):void {     
         bgVideo.x = (stage.stageWidth / 2) - (bgVideo.width / 2);
         bgVideo.y = (stage.stageHeight / 2) - (bgVideo.height / 2);
         rememberIcon.x = (stage.stageWidth / 2) - (rememberIcon.width / 2);
         rememberIcon.y = (stage.stageHeight / 2) - (rememberIcon.height / 2);
      }
   }
}

System Object And Settings Panel WILL NOT SHOW
Ok, I'm making an app that will use the available web cam, and I'm trying to use the Camera.get() method. Problem is that I'm unable to get the settings window to show up anywhere but when I'm previewing the SWF in the test pane of MX '04.

I can't even get System.showSettings() to work in a standalone SWF, projector, or a SWF in a page.

What the @$$&:"! is going on??? HELP HELP HELP!

Stage Object Movie Positioning In Corner
hello,

does anyone have any advice on this. I am trying to make it so that when a fullscreen movie loads a movie clip is positioned in the top left corner of the full screen flash site.
This code is on the first frame of my flash movie.

It works when i resize the window but not when the movie loads for the first time in an existing window. meaning some poeple cannot see the menu bar .
does this code work on all browsers?

ActionScript Code:
fscommand("allowscale", "false");
Stage.scaleMode = "showALL";
Stage.originalWidth = Stage.Width;
Stage.originalHeight = Stage.Height;
Stage.scaleMode = "noScale";
Stage.getLeft = function() {
    return -1*(this.width-this.originalWidth)/2;
};
Stage.getTop = function() {
    return -1*(this.height-this.originalHeight)/2;
};
Stage.addListener(titleblocknav);
Stage.addListener(preloader);
titleblocknav.onResize = function() {
    this._x = Stage.getLeft()+50;
    this._y = Stage.getTop()+25;
};
preloader.onResize = function() {
    this._x = Stage.getLeft()+330;
    this._y = Stage.getTop()+48;
};

can anyone spot any mistakes?

Thanks

Michael

Positioning Objects, And Object Registration Coordinates.
Thanks for taking the time to read my query.

Here's my problem...

I import png's to my library, and align everything in place where I desire it to be on the mainstage. Next, I distribute each object to it's own respective layer - each object maintaining it's respective X and Y coordinates. I then create a new movie clip, cutting the objects and from the main-stage area, pasting them into the new movie clip. Once I setup my tweening, alpha level etc, I have a perfectly working movie clip that I then place in a single frame of the timeline on the mainstage area.

However, when I preview the animation, the movie clip inside the single frame of the main timeline is not positioned in the center of the stage, but elsewhere resulting in the movie being clipped.

Logically, it would make sense that the original alignment established in setting up the main stage would remain consistent when cut and pasted "in place" to a new movieclip, sadly that's not the case. Instead of the boundaries of the main stage remaining visible when editing a movie, they disappear and the positional coordinates of the content become subjective (or so it appears).

I really have no idea how to fully explain it, but it seems like flash wasn't designed to have things done in a logical manner, but adheres to a system that has become familiar over time, which requires the users to learn to adapt to that system. There seems to be virtually no documentation that I've been able to find that explains the details of "registration" in a clear and concise manner.

Any helps would be great appreciated.

Thanks.

Pulling Info From And Object Array And Using It To AttachMovies?
I have an object array on the root level of my movie:

logoArray = new Array();
logoArray[0] = {blur:"Bloomfield0",clear:"Bloomfield1"};
logoArray[1] = {blur:"CC0",clear:"CC1"};

and I'm tring to access that info from within another movie and use it to attach a movie into another:

dmy.attachMovie(_root.logoArray[x].blur, "Logo", 1);

When I trace the info I get all the correct info back but it is not attaching the movie.
If I put in an absolute name for the 'linkage' name it works fine.

How can I get it to read the array correctly???

Extracting Source Info From A Motion Object
So I started playing around with Flash CS3 today, and I'm trying to accomplish a specific goal of taking motion xml data and applying keyframe values to a display object. I want the coordinates and rotation to match exactly with the original display object that I captured the motion xml data from, however the keyframe values are only relative values to the starting keyframe.

A simple addition of the source coordinates to the keyframe coordinates would suffice, however if I try something like:

ActionScript Code:
var motion:Motion = new Motion(motionXML);
trace(motion.source.x);
I get 0 instead of whatever the real x attribute for the source node is.
Is there a way to pull the correct source attributes from the motion library, or do I have to manually parse that data out myself?

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?????

Info Needed On Passing Info To SQL DB
I'm trying to write a Flash message board, and would like to know how to get Flash 5 to chat to a SQL Database.

I understand this needs to be done via ASP, not a problem, but how do I pass the variables to the ASP page for storage?

I've seen mention of loadVariables, but would like to know exactly how this communicates to the ASP page.

Many thanks
Wydget.

Game Control Panel --> How2make Object Appear In Control Once Discovered In Game
Hey all you flashies,
here's a problem to scramble the flash nerves. I'm creating a game for my Major project and I want to have a control panel at the bottom. The aim of the game in brief, is to collect 6 pieces of fruit (just an example). These 6 pieces of fruit will be found in different order depending on which route the player takes in the game. What I want to happen is each time the player finds a fruit, I want it to appear in the control panel. How do I go about doing this? Can anyone help? Much appreciated! If anyone has an example to something similar to this it would be much appreciated if I could see it! thanks!

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

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