Where Is The Align Object Option? Should I Have To Do It In Other Program?
please tell me how to align objects in flash
FlashKit > Flash Help > Flash Newbies
Posted on: 02-08-2002, 06:51 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash MX2004 Pro > "Align" Locks Program Up
Flash MX2004 Pro Edition
Powerbook G4 (tons of ram)
When I have a symbol selected and ask it to align opt+cmd+2 or opt+cmd+5, sometimes (30% or so) I get the busy cursor. Then, it often quits the program.
Any ideas how to work around this alignment issue.
I have tried with the alignment panel open and shut. Seems not to affect this issue.
Thanks!
wnf
Align To The Edge Of An Object
Im working on a system that loads text from an external source and scrolls the information across the screen. I've figured that part out but what I need to know how to do is get the loaded elements(which are textboxes in movie clips) to align to the right of each other respectively when loaded since they all will have different widths based on how much text is in there.
Example:
[Loaded movie clip with text here number 1][Loaded movie clip with text here number 2][Loaded movie clip with text here number 3]
I hope that makes sense, thanks in advanced.
Stage Scaling And Object Align
im lookin for a decent tutorial or something about how to get this scale/resize effect.
http://www.gskinner.com/site2_5/
http://www.ego7.net/
Align MovieClip To Stage Object
OK so I've figured out how to make the stage 100% x 100% and I can align it "TL" etc hell I even align it "CM" (centre-middle) something I don't think is documented. And it works. Then I can make a movie clip sit at the top of the screen by making the movie 100%, can anyone tell me how to keep the movieClip the same size and position it anywhere I want on the screen? eg TL, BR and so on and so fourth and ofcourse multiple files would be even cooler.
Align Object During Stage Resize And Fullscreen
If my movie clip in which I am loading external swf alings itself on stage like this:
Code:
swfLoader = new Loader();
var swfRequest:URLRequest = new URLRequest(url);
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadComplete);
swfLoader.load(swfRequest);
function LoadComplete(e:Event):void {
swf_mc.addChild(swfLoader);
swf_mc.x = Math.floor((stage.stageWidth / 2) - (swfLoader.content.width/2));
swf_mc.y = Math.floor((stage.stageHeight / 2) - (swfLoader.content.height/2));
}
how can I pass these values in these 2 functions:
Code:
stage.addEventListener(Event.RESIZE , resizing );
function resizing(e:Event = null):void {
}
stage.addEventListener(Event.FULLSCREEN, handleFullScreen);
function handleFullScreen(e:FullScreenEvent):void {
if (e.fullScreen) {
} else {
}
}
Because swfLoader.content.width and swfLoader.content.height wont be accesible outside 'LoadComplete' function, so I really dont know how to handle that, please help!
Current Option Slide Out When New Option Selected - HOW?
I'm having a little trouble with some scripting.
Download the following before going any further and you'll understand what I'm talking about better.
http://www.willcheyney.co.uk/interface.swf
What I want to achieve is this.
When the 'Ready For Insight' screen is active (down), for example, I want it so when 'Insight Uses' - or any other option - is selected, the 'Ready For Insight' screen will slide out before the new selected screen slides in. Does that make sense to anyone?
If you have any idea of how to achieve such an effect, please tell me! If you are feeling extremely creative, here is the .fla of the whole thing for your own pleasure.
Source: http://www.willcheyney.co.uk/interface.zip
Thanks alot guys )
Netscape Browser Not Seeing Shared Object Or Accessing C:/Program Files
HI
I have a password protected file (swf inside an html) that uses a shared object. It works great on IE but not on Netscape.
Can anyone help?
I tried also on Mozilla firefox and it picks up the shared object but reduces all my swf files int he html down to a very small size (even thou I put 100% in the HTML code width/height!!).
I am about to try on Opera and then the mozilla ordinary version in a mo and hoped that it is a simple html issue but thinking its more than that for the shared object side of things....
can anybody shine any light on any of these?
ta.
Shaf.
How Do People Middle Align Their Flash Sites Now Since V-align Code Doesn't Work?
Before, I was able to use the code v-align middle on my html page and my flash swf would align middle. Now that code does not work and it only works if I do not put doc info at the top of my html page, like xthml, etc.
How are people enabling their Flash site to always align center and middle.
Anyone have any codes that work or samples I could use.
Thanks!
Fullscreen / Align / Stage.align
Need help over here...
I got a fullscreen document.
The menu must always be aligned to the top left on every screen and
resolution size. So the following code
-->// Stage.align = "LT";
Stage.scaleMode = "noScale";
Now i want to align a MC always in centre on every screen and resolution size. I tried this code....
-->// this.attachMovie("backgrounMC", "backgrounMC", 1000000);
titleClip.onResize = function() {
this._x = Stage.width-(this._width+10);
this._y = -1;
};
Stage.addListener(backgrounMC);
this.backgrounMC.onResize();
Above code is not the right solution.....
Because of the Stage.align = "TL" it is hard to align my backgroundMC always to the centre on every screen and resolution size.
Does somebody knows a solution.....?
My menu must always be aligned to the top left, and my backgroundMC
must always be aligned to the centre no matter what resolution size or screen size.
Thanx in advance....
karlein
Can I Pass Log-in Parameters For A Webmail Program, Past CPanel Program?
Hey all.
I only have a working knowledge of actionscript, so sorry for any bad questions.
My personal website uses cPanel for configuration/management and a free webmail program called Horde. Both are great, but accessing them is a pain. I was wondering if there was some way (either through flash or javascript) to bypass the cPanel log-in screen and the horde log-in screen.
For example, currently when I open my webmail program (www.---.com/webmail), Internet Explorer automatically prompts an "enter username and password" box (same prompt for any ftp or secure access through explorer). This acts as an automatic input for cPanel.
If the input is correct, cPanel grants me access to the webmail log-in screen, and all the necessary log-in info (name and password) is already filled out, waiting for me to press enter/submit. If the input on the IE prompt is incorrect, I am taken to the cPanel log-in screen to correct my grave errors. Once I input and submit the correct info, I am again taken to an already-completed Horde log-in screen. In other words, I have to go past two log-in screens and press enter twice.
Note - The Horde webmail program is installed on the server, not my rented account. Therefore I cannot modify or, in general, access any program files. Everything is done through the cPanel program. Moreover, I cannot access the Horde-specific log-in page in any way, I must go through cPanel (or IE's prompt for the cPanel log-in info). However, the given address of the Horde log-in screen is http://www.---.com:2095/horde/index.php. But opening this url takes me to the cPanel/ie login.
I think that there is some way of passing parameters from input in a flash swf to a php/sql program. Can I automatically log into my webmail program, bypassing cPanel? Am I hopeless, worthless ), or is there some magic way to do what I want???
If anyone wants to help but needs more explanation or examples I will be more than glad to assist.
Big thanks.
Better Program To Program Flash In ?
I`m sick and tired of flash not having the option of hiding functions in my classes , you know those PLUS and MINUS to hide a function , this make my code so long ! is there any way ?
Which Is The Best Option
Okay I have used flash for sometime but have never incoporated video files that I have edited in Premier and After effects with flash animation. I want to know what is the best option for firstly importing my files into flash Should I save them from my editing programs as Flash video files (fvl) or avi's. What I am going to be doing is having a video whith animated characters on top so they will be looped when on the stage. But more improtantly if anyone knows of tutorials whereII can find out about the best ways of managing my movie files with action script this would help a great deal.
Other Option
is there a way so that i can make a button that will open an external flashpaper rile. like a getFile or something along those lines.
Best Option For This..
before i venture off on a suicide mission in flash i thought i would ask for a bit of help as to the best option for what i want to do; which is:
on my project the user has various items they can click and when you click one a box slides out from the side with information about the item they have clicked on it, now.. would it be best to:
1. make a load of different swf's and load and unload them?
2. make one swf with loads of different mc's containg text inside to show or not show?
3. make some sort of xml document with the information that is accessed when the user clicks the button and then slides out?
i just dont want to go too far with one only to find out it would have been better doing it a different method.
thanks
Dan Hodkinson
Skip Option
What is the action script for allowing a person to skip to the end of the movie?
Option Button
I have created a button, and I need it to function as follows.
When the button is pressed once, certain features on the stage become acive, and the button remains in the down stage.
When the button is pressed a second time, the features become inactive, and the button reverts to it's formal up position.
The idea is much like a light switch. When the switch is down the light is on, and when the switch is up, the light is off.
How can I best produce this effect?
Thanks for the help.
Where The Hell Is This Option?
Hello!
In Flash 5 there is an option in the menubar to change the position of the midpoint/centerpoint of a symbol.
But where the hell is this little, usefull option in Flash MX ? Does anybody know the answer?
Getting Rid Of The Option To Zoom In.
I can't seem to figure out how to remove the option that lets people that view my flash documents the ability to zoom in on them or change the quality. Can anybody help me?
Right Click Option
i saw alot of websites
that when u right click
the menu that appear is only "setting" and "about macromedia flash 6"
and no zoom in or zoom out....
how do we do that?
LoadMovie Option, Help...
Hey,
I need a flash site which has a menu, when a button/link on this menu is clicked i need it to load a new movie in the same flash window as the link was click from.
I DO NOT WANT THE WEBPAGE THE LOAD A NEW PAGE.
I don't know how to use the .loadMovie() command
Cheers
Better Loading Option
Hey, everybody here is probably really sick of hearing questions about preloading, but here's another one. I use the following actions to preload my flash:
Scene 1, Frame 1:
ifFrameLoaded ("Main", 140) {
gotoAndPlay("Main", 1);
}
Scene 1, Frame 2:
gotoAndPlay(1);
No percent bars or anything are involved. Anyway, my problem is that no matter how small i make the preloading scene, a white box still shows up on the website before it starts loading. Is this not a correct way to load the file? I have some music in it too. Anyway, any help is appreciated, and my apologies if this has already been answered somewhere else.
How To Make An Option MC ?
Please see my attached flash file where I have 2 MCs (no option buttons)
But I would like these MSs act as the option buttons
OnClick MCq2, show MC Symbol 3
OnClick MCQ3, show MC Symbol 4 (only the latest clicked MC shows)
Is There An Option Like Always Load Unless...
i would like to now if there is an option that says:
[code]
always.loadMovie("selected_moby_ti.swf", "_root.selected_concerts_namesa");
unless._root.selected_moby_ti == 1
}
[code]
does something like this excist. cauze i think it would solve the problem i currently have
Disable Option
Is there a way to disable the "copy" & "cut" option when someone right click an exe or swf file and make it copyrighted like?
Using The DEbugger Option
when u export a flash movie u can use the debugger
i read in a help file that is located on :
C:Program FilesMacromediaFlash MXHel..._testing8.html
what to do.
i did all the thins that i was asked for on the first section.
in the second section that is called :
"To activate the Debugger from a remote location: "
it didnt worked for me
thr Remote Debuger window didnt open and even when i tried to use the right click as instructed
i didnt get there the option of Debugger!!!!
why is that?
what to do?
thnaks in advance
Peleg
Using Combo Box And GO Option
Hi, I'm using flash MX, I saw a drop down menu, where you select the text option you'd like to use, and then push a GO button right after you select. how can I make the same GO button on flash MX?
So far I've done the combo box menu. But the variables, and the use of a button for GO, I still haven't figured out.
Could someone help me out on this one?
I know there is a big easy turn around using HTML or DHTML but I need this to work on flash, as it is part of the design.
Please help.
David R.
Suicide Still An Option :(
I'm about to go nuts here... Im running flashMX pro.. and I am in search of an example or tutorial dealing with: creating an array - array of external html documents, that I need to apply css, and then load into a textfield inside of flash per navigation buttons... each btn calls an array html document and then that is displayed on the stage...
I figured out how to load a html document and apply the css to it..
code:
stop();
var nWidth:Number = mcDisplayBackground._width;
var nHeight:Number = mcDisplayBackground._height;
var nX:Number = mcDisplayBackground._x;
var nY:Number = mcDisplayBackground._y;
var nInterval:Number;
this.createTextField("smText", this.getNextHighestDepth(), nX, nY, nWidth, nHeight);
smText.multiline = true;
smText.wordWrap = true;
smText.textColor = 0xFFFFFF;
smText.html = true;
smText.condenseWhite = true;
var lvContent:LoadVars = new LoadVars();
lvContent.onData = function(sHTMLData:String):Void {
smText.htmlText = sHTMLData;
};
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function():Void {
smText.styleSheet = this;
lvContent.load("homeText.htm");
};
cssStyles.load("style.css");
trace(smText);
this code is for the home page and loads the text as prescribed... but I'm having difficulty getting the text to go away, when another nav button is pressed...
code:
about_btn.onRelease = function() {
_root.pic_mc._alpha = 0;
_root.data_mc.smText._alpha=0;
_root.data_mc.gotoAndPlay("textboxLG");
the pic_mc disappears and the line to tell it to goto "textboxLG" works fine... but the text is still there... I'm thinking it would be best to place all the html documents into an array ... so I might have better control. But I find myself clueless on how to get the array built and still be able to use the load and css code applied to an array. Desperate Here! please can anyone explain this or point me in the right direction to find a resource that might assist me
kinda trying to come up with an array:
code:
var menuContent=new Array();
menuContent[0]="homeText.htm";
menuContent[1]="contactText.htm";
menuContent[2]="aboutText.htm";
menuContent[3]="galleryText.htm";
menuContent[4]="matText.htm";
menuContent[5]="hardText.htm";
menuContent[6]="qualityText.htm";
menuContent[7]="uvText.htm";
menuContent[8]="linksText.htm";
menuContent[9]="faqText.htm";
God Bless you all.
thanx
K
NO Zoom In Option
How do I make my movie so that when you right click it it doesnt give you the zoom in or other options?
ALT Text Option...?
Small question...
In flash, can you create a type of text box, (like an ALT text), that appears when you rollover a movie clip or button?...and if you moved the mouse about whilst it was still over the MC or button, the ALT text thingy would move as well, (until the mouse rolled off the MC or button)...?
I've tried searching for a tutorial on this, and useing the help topics in flash, but I can't find anything...It may be really simple, but I dont know how to do this...
I did think of just having a dynamic textbox, and when you rollover the button, inserting some text into the text box, (but thats a bit of a naff option!)
Any suggestions / help?
Please...
Is There Any Option In Flash ?
Hello
i'm making a interactive cd in flash. and i have placed a installer of acrobat in that cd.
so my question is
is there any option in flash scripting through which flash can recognized that is there adobe acrobat installed in the computer or not.
because if there is acrobat installed then gotoAndPlay(4) if not then gotoAndplay (3) where i have a button to install acrobat reader.
Reagards
Option Explicit?
I just started using flash about a week ago and 1 of the things that i have noticed is that it will not catch variables that are fat fingered.
In other programming languages there is a way to enforce the declaration of variables and the application will error out if it finds any such problems.
I was just wondering if there was anything like this in Flash.
I have a tendency to fat finger keys and thus misspell stuff.
Happens all the time.
So is there anything like an Option Explicit or something similar?
THanks.
Fullscreen Option
Hi Guys,
Anyone seen this site http://www.boxer.uk.com? Is the fullscreen option done thru fscommands, or is it not done within flash? How did they completely get rid of the browser? Anyone have any ideas?
Swf Save Option...
i was thinking is it possible to have a save option in your flash movie? im doing a sort of story making project using flash. the user will choose which background and add characters, props and speech bubbles into it. I want the user to be able to save his work once he has completed it.
is there a way to do this?
Blending Option
How to check blending option in Flash? Is there any ways to achieve it (sth like Photoshop blending option Lighten, Multiple.......
Export To Mov Option
I have a client that wants a flash presentation I made to be converted to a video. The export to quicktime video option will not play the audio from the flv (which happens to be an actor talking, which happens to be key to the video). Anyone have a solution? I can not use screen capture software because it does not look good enough to place on a dvd. I have ran a s-video cable from my laptop to a camcorder to record the presentation but then get no audio. The presentation needs to be as clean as an mov (because it will be on a dvd) as the flash swf itself.
any suggestions or things I am doing wrong would be great! Thank you so much in advance.
Stittch
Preloading Option?
I uploaded my files online and it takes 30 seconds to load the second page of my website. The first page is an animation intro and the second is the home page with 5 full length songs used as a radio sampler. The 2nd page is only 8 meg but it is taking too long to load. Should I preload the second page while the first is playing or do I have to make the songs smaller in file size? I'm not sure how to do either of these options or the code for a preload script
Thanks
An Option Game
I'm not sure of how to explain this, but basically options appear on screen after a short animation i played, then depending what option you choose, or if you press a button in time etc. it is either game over, or you move on to the next animation. I'll try to show you in a tree kind of thing :S
Option 1 ---- DEATH
Animation -- Press W in time ---- Animation
Option 2 ---- Animation ----
Fail to hit W --- Death
If you dont understand please say and ill try to find an example of this, but the key thing required as piece of coding that when an if clause is satisfied a part of an animation is played, and if it isnt a game over screen is shown (perhaps created in action code or a new scene i have no idea) i am asking for this because i want to try to make a game from this, but at the moment i have absolutely no idea how to go about it, if someone could either explain or offer coding it would be greatly apprreciated, thanks in advance.
James.
An Option Game
I'm not sure of how to explain this, but basically options appear on screen after a short animation i played, then depending what option you choose, or if you press a button in time etc. it is either game over, or you move on to the next animation. I'll try to show you in a tree kind of thing :S
Option 1 ---- DEATH
Animation -- Press W in time ---- Animation
Option 2 ---- Animation ----
Fail to hit W --- Death
If you dont understand please say and ill try to find an example of this, but the key thing required as piece of coding that when an if clause is satisfied a part of an animation is played, and if it isnt a game over screen is shown (perhaps created in action code or a new scene i have no idea) i am asking for this because i want to try to make a game from this, but at the moment i have absolutely no idea how to go about it, if someone could either explain or offer coding it would be greatly apprreciated, thanks in advance.
James.
Mouse Option?
How could i make it so you can choose which mouse you have by clicking a button
heres what i have
Code:
on (press) {
Mouse.hide();
_root.triangle._x = _root._xmouse;
_root.triangle._y = _root._ymouse;
}
I thought it would work but it just hides the mouse
(triangle is the mouse instance name)
Projector Option:-
Well i m adding flash animation on my windows desktop icon .well i want some action to be performed when someone clicks on that icon.lets say open winamp in program files.
is it possible to do that?
assume i added flash file thru Html page on desktop.what about URL on Fscommand.is it possible to use it.?
is it possible to make flash open some executables from computer e.g.winamp.
i have this question cause if windows can open programs from within its help file link then maybe we can do it too?
---by the way if macromedia creates vb.flash then our operating system will fly in air ----
Need One More Option With Thw Swfobject
hello all, this is my first time using these forums, but i have been reading a lot of stuff over the last years in the tutorials of this site
i have recently implemented the swfobject on a website (http://www.kirupa.com/developer/flash8/flash_fix.htm, http://blog.deconcept.com/swfobject/) to fix the embed issue.
i am creating a top nav in swf. i would like the tab onto which we land becomes highlighted (so we know what page were on, ie: home | registration | ABOUT US | contact) but i cannot write a flashvar on each page since my flash has to be in a header block, that is loaded via coldfusion.
i know i can pull variables from the url, but is it possible with swfobject to also add variables to the url?
for example, when someone clicks on registration, i would like this to happen:
http:/www.url.com/registration?selectedMenu=Registration
or something like this (i am not a cf programmer, so im not sure i added that vars properly in the url)
then with the getQueryParamValue from the swfobject, i would be able to pull that once the user has landed on the page and then highlight the proper tab in the top nav.
please lemme know if i am unclear, thx for helping!
edit: sorry for the typo in the title
Random Option
Hey,
I have three objects in library - instance obj1 obj2 obj3
I would like to randomly fill out the stage with those objects.
Can anyone tell me how to achive that with action script.
thank you
Mp3 Seek Option
Well I am in the process of making an mp3 player, or at least trying to. I have the basic position, duration and progress bar currently working but need to create the seek feature. So far everything that I have tried to do has not gotten it to work out correctly (probably because I am trying the wrong functions or something like that) but if someone could help me to get a working seek bar that would be great.
Another Option For OnEnterFrame
Hey Guys-
I have a code the moves an image 10 pixels on every frame. I need this to happen still but I only have one frame. What can I do besides the onEnterFrame for this code so it will still move without stopping?
pic1_mc.onEnterFrame = function() {
pic1_mc._x += 10;
if(pic1_mc._x >= 374) {
pic1_mc._x = -276;
pic1_mc.loadMovie(myPics[curPic++]);
if(curPic >= myPics.length) {
curPic = 0;
Mouse Option?
How could i make it so you can choose which mouse you have by clicking a button
heres what i have
Code:
on (press) {
Mouse.hide();
_root.triangle._x = _root._xmouse;
_root.triangle._y = _root._ymouse;
}
I thought it would work but it just hides the mouse
(triangle is the mouse instance name)
Projector Option:-
Well i m adding flash animation on my windows desktop icon .well i want some action to be performed when someone clicks on that icon.lets say open winamp in program files.
is it possible to do that?
assume i added flash file thru Html page on desktop.what about URL on Fscommand.is it possible to use it.?
is it possible to make flash open some executables from computer e.g.winamp.
i have this question cause if windows can open programs from within its help file link then maybe we can do it too?
---by the way if macromedia creates vb.flash then our operating system will fly in air ----
Apple Option C And V
2004 pro doesnt work. i always have to go to edit, copy frames and paste, or hold down the mouse on the frame to copy. is the software buggie or is my install bad?
|