Text Positioning Problem With Flash?
okay this problem is killing me so any help really appreciated. I have one movie clip that moves over another instance of the same clip then dissapears - because they are in the same position (yes they are!) and exactly the same clip! when the top one dissapears no one should notice! - but but.. the problem is the text (im using device fonts) - it seems that when you apply movement actions to a movie with text it renders the text in a certain way that is different from if you dont apply actions - the kerning is all different and so in fact is the line spacing! does anybody have an answer or is there any way to not use device fonts but still have the fonts not anti-aliased??
ive been working to solve this one for ages so please help you experts of flash you kings of new england!
FlashKit > Flash Help > Flash MX
Posted on: 12-06-2003, 10:46 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Positioning Text In Flash
guys - im a bit wet behind the ears so please have mercy.
im working on positioning text so that it comes out crisp and clean. is the only way of doing this letter by letter? it seems so cumbersome, i bet there must be some tricks or shortcuts?
but then, unless i "break apart" the letters and do them individually, a few always end up blurred.
thoughts?
any help would be fantastic.
anrick...
Positioning Text In Flash
guys - im a bit wet behind the ears so please have mercy.
im working on positioning text so that it comes out crisp and clean. is the only way of doing this letter by letter? it seems so cumbersome, i bet there must be some tricks or shortcuts?
but then, unless i "break apart" the letters and do them individually, a few always end up blurred.
thoughts?
any help would be fantastic.
anrick...
Positioning Text Using CSS Over Flash Banner?
I have a flash banner and I would like to put non-flash items (such as text of jpeg) over the flash banner using CSS, but it doesn't show the layer of the non-flash item. The flash banner is actually "covering" what I want to put on the flash banner. Is this just how it is or is there a way i can conquer this?
Positioning The Text Effects In The Flash Movie
I created the external text effect swf files using FlashTyper. But I am having problems with positioning them on the exact location in My Flash Movies. I am trying to use setProperty action to position those external text containing swf files, but so far no luck. Can someone help me out here?
Flash MX - Dynamic Text Field Positioning...
Hi,
I have 2 dynamic text fields, drawing their content from a text file containing 2 variables (text). Both text fields are set to autosize, so they change in width according to the amount of characters in the variable.
I also have the following code to position text field 2 to the right of text field 1:
textField2._x = textField1._x + textField1._width + 5;
textField2._y = textField1._y;
When the textfield is static, it works fine. However, using dynamic text seems to be a problem and the right field just displays 5 pixels from the left x position of text field 1.... I think the problem is the way i've set up the script - it doesn't appear to recognise the width of textfield 1 as set by the autosize command.
If anyone can help I'd be very much obliged.
Cheers
Positioning Xml Text Fields In Flash With Relative Width
Hello, I have a problem that I can not find the solution about XML and Flash text fields..
Let's say I have the flash where I want to show few text fields next to each other like that:
This is one xml driven text field | another xml text | more xml text from text field
How can I make the widths of the the fields relative to the content i.e not to have fixed widths and how to make each text field come next to the end of the previous.
I've tried
Code:
my_txt.autoSize = "left";
my_txt.multiline = false;
to make the width of the text field as long as the text content, but it doesn't seems to be working.
Thank you in advance.
URGENT Positioning Dynamic Text In Text Scrolling Window
Help!
I have a dynamic, scrolling text field, whose scroll is based on one of the tutorials on Flashkit. In the text I have some links which switch the content of the field via asfunction, but that's unimportant. I wanted to add a functionality similar to html "anchor", so when I switch the contents of the field (for example to read a CV of someone mentioned in the text), and remember windowTxt.scroll and windowTxt.maxscroll properties (where windowTxt is the variable name of the text field, after I finish reading the CV I click the special "back" button, and it loads the old text back and tries to set the windowTxt.scroll & windowTxt.maxscroll back to the state they were before entering the CV. I tried to do it like this:
Code:
_root.windowTxt.scroll = _root.pscroll; // pscroll => previous scroll
_root.windowTxt.maxscroll = _root.pmaxscroll; // previous max scroll
IT DOESN'T WORK! The variables ARE there in the path because trace shows the proper values for all of them, but! The scroll property won't even bother setting itself to the desired value... and the scroll using buttons and the syntax
_root.windowTxt.scroll--;
or
_root.windowTxt.scroll++;
WORKS...
Oh by the way - this is for the projector...
To sum it up - I need to push the dynamic text to a certain value after it's loaded - how to do that? I've no time for experimenting... I've deadline in a few hours and this is the last feature I've to implement, after that it's source merging with a source from a friend's work and betatesting... If I won't make it - I'm screwed. HEEEEEEEEEELP!!! THANKS IN ADVANCE...
Positioning Text
Ok, here is the deal. I'm using the text effect .fla files from flashkit to put in my site. Everything works but one thing. I can't figure out how to position my text. It trys to put it all on one line. What code will make it part of it on another line and positioned properly under the top line of text. Is there a way to do this? Thanks for your help guys.
Dynamic Text Positioning
Hello,
I have several text fields which gets dynamic value,
the length of the values can be different from one initialization to another.
how can I align all the text fields to each other, the size of the field is fixed ?
any idea of how to tackle this
thanks in advance
/monga.
Dynamic Text Box Positioning
Hi
i posted about this earlier but the thread seems to have dissappeared.
Im populating three dynamic text boxes with variables from a php script, and trying to get them to line up underneath each other dependent on how many lines of text is in each, i.e. box 2 sits just under box 1 irrespective of whether box 1 has 12 or 72 lines of text in it. each text box is in its own mc.
the action script:
/////set text box sizes to auto /////
_root.namemc.NAME.autoSize = true;
_root.studiedmc.STUDIED.autoSize= true;
_root.textmc.TEXT.autoSize= true;
///// load variables /////
var quotesVars = new LoadVars();
quotesVars.onLoad = function(ok) {
if (ok) {
studiedmc.STUDIED.text = quotesVars.STUDIED;
namemc.NAME.text = quotesVars.NAME;
textmc.TEXT.text = quotesVars.TEXT;
}
};
quotesVars.load("http://mydomain.uk/code/servers/quote.php");
///// position three movieclips containing textboxes at zero //////
setProperty (studiedmc, _y, 0);
setProperty (namemc, _y, 0);
setProperty (textmc, _y, 0);
//////get the height of the the 'name' movieclip//////
var nameheight = getProperty (namemc, _height);
////// and position 'studied' movieclip accordingly //////
setProperty (studiedmc, _y, nameheight);
/////get hieght of 'studied' movieclip /////
var studiedheight = getProperty (studiedmc, _height);
////// add the 2 together //////
var textpos = (studiedheight + nameheight);
/////and position text movieclip accordingly //////
setProperty (textmc, _y, textpos);
</actionscript>
it doesnt seem to make any difference how many lines are in each box, they always lie in the same position.
any pointers greatly appreciated.
thanks
ben
Dynamic Text Positioning
currently i am dynamically creating a text box within a dynamically created MC and using the tween class to manipulate there _xscale and _yscale properties.
because the the registration point is at 0,0 (top left), then it animates from scale 0-100 (x and y) rather than appearing to come from the centre, it appears to grow from the corner
how can i make it so the MC's registration point is centre on the text box?
[F8] Positioning Text By % Rather Than By Pixels?
Hi
How do I position text at the bottom of the stage by a % rather than by pixels?
So when the browser size is changed and the stage size changes, the text stays at the bottom and doesn't rise up or get cut off?
(the stage doesn't stretch to fit, all objects stay at the same size)
Many thanks
M
Dynamic Positioning Of XML Text
Hi!
I have XML text I load into different MCs with attachMovie. For each XML node I create a new MC with 3 text fields and place it on stage.
I need to (but can't!!) place each MC under the previous one, and _y will depend on the previous MCs height (amount of text). It is the third text field (txt3) that would have varying height.
for (var i = 0; i<news.length; i++) {
item = Container.attachMovie("newi", "newi"+i, i);
item.txt1 =this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
item.txt2= this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
item.txt3 = this.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
item._x = 80;
item._y = ???????;
}
Does this make any sense? Any help would be much much appreciated!!
Thanks in advance!
Xml Positioning External Text
Hello again!
My question is less about xml and more about placing things with unknown heights in a clean column. Usually in a for loop you could easily write temp._y = this._height*x. but as most of you can already tell if the heights are all different thats gonna result in something funky . As it has. If anyone could help me out that would be awesome, I was makin some good progress tonight until I hit this road block. Thanks in advanced. The fla,swf, and xml file are in this folder.
Thanks again.
Dynamic Positioning Of XML Text
Hi!
I have XML text I load into different MCs with attachMovie. For each XML node I create a new MC with 3 text fields and place it on stage.
I need to (but can't!!) place each MC under the previous one, and _y will depend on the previous MCs height (amount of text). It is the third text field (txt3) that would have varying height.
for (var i = 0; i<news.length; i++) {
item = Container.attachMovie("newi", "newi"+i, i);
item.txt1 =this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
item.txt2= this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
item.txt3 = this.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
item._x = 80;
item._y = ???????;
}
Does this make any sense? Any help would be much much appreciated!!
Thanks in advance!
Positioning The Text Based On TextField Height
Hi All,
I wanted to position the TextField based on the height of the text in the text field. Not able to figure where I am doing wrong. The Y position does not leave 25 pixels after the last line of text. Textfield1 and Textfield2 kind of overlap.
_totalDistractors = 4
for(var i:int = 0; i < _totalDistractors ; i++) {
var taradioButtoni:TextArea = new TextArea();
taradioButtoni.text = answerChoices[i]; // Text Comes from array
taradioButtoni.width = 380;
taradioButtoni.height = taradioButtoni.textHeight + 10;
taradioButtoni.y = i*(taradioButtoni.height + 25);// Need to refine this line of code
taradioButtoni.wordWrap= true ;
}
Text Using Font Symbol: Difficulty Positioning
I'm having difficulty positioning text created at run-time using font symbols (one for each of the Textformat's).
Can someone show me what's wrong?
Thanks....
Here's the code:
(Requires 3 font symbols in the Library: Artist_Choice, Artist_Choice_bold, and Artist_Choice_bold_italic)
Code:
var SW:Number = Stage.width;
var SH:Number = Stage.height;
//setup a font format that will serve as our base font
var basalFormat:TextFormat = new TextFormat();
//basalFormat Textformat;
var bFormat:TextFormat = new TextFormat();
//bFormat Textformat;
var biFormat:TextFormat = new TextFormat();
//biFormat Textformat;
var biFormatCenter:TextFormat = new TextFormat();
//biFormatCenter Textformat;
//If you are using font symbols, make sure that the font symbols are linked and exported in the first
//frame.
//
function makeFormatting():Void {
basalFormat.font = "Artist_Choice";
basalFormat.size = 23;
basalFormat.align = "left";
//basalFormat.color = 0xC90E12;
//
bFormat.font = "Artist_Choice_bold";
bFormat.size = 34;
bFormat.bold = true;
bFormat.align = "justify";
//bFormat.color = 0xF26522;
//
biFormat.font = "Artist_Choice_bold_italic";
biFormat.size = 11;
biFormat.bold = true;
biFormat.italic = true;
biFormat.align = "right";
//biFormat.color = 0xFFCC00;
//
biFormatCenter.font = "Artist_Choice";
biFormatCenter.size = 44;
biFormatCenter.bold = true;
biFormatCenter.italic = true;
biFormatCenter.align = "center";
//biFormatCenter.color = 0x007236;
//
this.createEmptyMovieClip("txtHolder",this.getNextHighestDepth());
}
//
function createTxt(txtFieldName:String):Void {
var formatArrays:Array = new Array();
formatArrays = [basalFormat, bFormat, biFormat, biFormatCenter];
for (var i = 0; i < 4; i++) {
txtHolder.createTextField(txtFieldName + i,i,0,0,SW,0);
var textF:TextField=txtHolder[txtFieldName + i];
textF.autoSize = "left";
textF.multiline = true;
textF.wordWrap = true;
textF.embedFonts = true;
textF.antiAliasType = "advanced";
textF.gridFitType = "subpixel";
//thickness is from -200 to 200
textF.thickness = 25;
//sharpness is from -400 to 400
textF.sharpness = 65;
textF.type = "input";
textF.selectable = false;
textF.text = "This be paragraph "+i+". "+"This is the text to follow: tionum illa feui eugait, suscinim il utet utat.";
textF.border = true;
textF.setTextFormat(formatArrays[i]);
textF._x = (SW / 2) - (textF._width / 2);
// textF._y = (textF._height);
trace (" textF._y: "+textF._y);
}
// txtHolder._x = (SW / 2) - (txtHolder._width / 2);
// txtHolder._y = (SH / 2) - (txtHolder._height / 2);
}
//
makeFormatting();
createTxt("sometext");
AS 2 Trouble With Positioning Dynamic Text For A Menu
I've got some simple code that I'm struggling with. Can someone point out what I've done incorrectly? I can't position the text in the center of gradient_mc, and the trace reports that the gradient_mc is NOT 200 wide, like it should be.
What am I missing?
All that's required is a linked font symbol in the library.
Thanks everyone
QUICK EDIT:
if I change the numbers in the creation of the textField and comment out the line for autosize, the height and width seem to be correct.
What if I can't know the width of the text? Shouldn't autosize do the trick?
Code:
gradient_mc.createTextField("myText", gradient_mc.getNextHighestDepth(), 0, 0, 200, 32);
Code:
var SW:Number = Stage.width;
var SH:Number = Stage.height;
var _gradientWidth:Number = 200;
var _gradientHeight:Number = 32;
//_textsize set to the approximate width of a letter
var _textsize:Number = 18;
this.createEmptyMovieClip("gradient_mc", this.getNextHighestDepth());
gradient_mc.createTextField("myText", gradient_mc.getNextHighestDepth(), 0, 0, 0, 0);
var myTextFormat:TextFormat = new TextFormat();
//TextField myText;
//TextFormat myTextFormat;
myTextFormat.font = "Artist_Choice";
myTextFormat.size = _textsize;
myTextFormat.color = 0xFFFFFF;
myTextFormat.align = "left";
gradient_mc.myText.autoSize = "left";
gradient_mc.myText.multiline = true;
gradient_mc.myText.border = "true";
gradient_mc.myText.embedFonts = true;
gradient_mc.myText.antiAliasType = "advanced";
gradient_mc.myText.gridFitType = "subpixel";
gradient_mc.myText.sharpness = 75;
gradient_mc.myText.thickness = -15;
gradient_mc.myText.text = "hey there";
gradient_mc.myText.setTextFormat(myTextFormat);
//
gradient_mc.myText._x = gradient_mc._width / 2;
gradient_mc.myText._y = gradient_mc._height / 2;
trace("gradient_mc.myText._x " + gradient_mc.myText._x);
trace("gradient_mc.myText._y " + gradient_mc.myText._y);
trace("gradient_mc._width " + gradient_mc._width);
trace("gradient_mc._height " + gradient_mc._height);
trace("gradient_mc.myText._width " + gradient_mc.myText._width);
trace("gradient_mc.myText._height " + gradient_mc.myText._height);
/*
gradient_mc.myText._x = (gradient_mc._width/2) - (gradient_mc.myText._width/2);
gradient_mc.myText._y = (gradient_mc._height/2) - (gradient_mc.myText._height/2);
*/
var fillType:String = "radial";
var colors:Array = [0x651178, 0x8888FF];
var alphas:Array = [100, 100];
var ratios:Array = [0, 0xFF];
var matrix:Object = {a:_gradientWidth, b:0, c:0, d:0, e:_gradientHeight, f:0, g:_gradientHeight, h:_gradientHeight, i:1};
var spreadMethod:String = "reflect";
var interpolationMethod:String = "linearRGB";
var focalPointRatio:Number = .95;
with (gradient_mc) {
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
moveTo(0, 0);
lineTo(_gradientWidth, 0);
lineTo(_gradientWidth, _gradientHeight);
lineTo(0, _gradientHeight);
lineTo(0, 0);
endFill();
}
Trouble With Y-axis Positioning / Formatting Dynamic Text Field
Hi,
Ok, here's what I've got. I have an input text field and then a submit button. The submit button places whatever text that the user enters into the input field into a dynamic text field. I then have three buttons that change the font in the dynamic field, and three more buttons that change the fontsize (using if statements).
My problem is that one of the fonts does not line up exactly as the others do on the y axis. It appears to jump down a few units when I change the font. Also, when I change the font size, using the buttons, they align to the top of the text box, appearing jump up. I've been trying all kinds of scripts, but theres always something that causes trouble.
I'm wanting the positions along the y axis for each font to appear to be even, which I have accomplished simply by defining the y-axis position for each font, on each button that changes the font. That works great. But when I change the font size to a smaller font, I want each size to still line up on the y-axis. And after I achieve this, the movie needs to be able to remember the positioning for when I go back to change the font, it will not jump back to where it was before.
Here's my script on one of the buttons that change the font:
on (release) {
myTxtFmt = new TextFormat();
myTxtFmt.font = "Franklin Gothic Medium";//Linkage name of the font in the library
_root.SignTextColor.setTextFormat(myTxtFmt);
_root.SignTextColor.setNewTextFormat(myTxtFmt);
_root.SignTextColor._y = 7.2;
gotoAndStop(1);
}
Here's my script on one of the buttons that change the font size:
on (release) {
myTxtFmt = new TextFormat();
if (myTxtFmt.font != "Franklin Gothic Medium") {
myTxtFmt.size = "57";
_root.SignTextColor.setTextFormat(myTxtFmt);
_root.SignTextColor.setNewTextFormat(myTxtFmt);
}
if (MyTxtFmt.font != "ATFAntique") {
myTxtFmt.size = "55";
_root.SignTextColor.setTextFormat(myTxtFmt);
_root.SignTextColor.setNewTextFormat(myTxtFmt);
}
if (myTxtFmt.font != "Hudson") {
myTxtFmt.size = "58";
_root.SignTextColor.setTextFormat(myTxtFmt);
_root.SignTextColor.setNewTextFormat(myTxtFmt);
}
gotoAndStop(1);
}
Can you help?
Thank you very much!
Positioning A Pop-up In Flash
I have a site with multiple pop-ups containing information, forms,etc... right now the pop-ups come up in the exact center of the stage... but I'd like them to be in the upper right. How do I do that?
Here's what I have to bring up the pop-ups now:
on (release) {
_root.popup_pressed = 1;
_root.scrHEIGHT = 280;
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Horse Trails Survey";
_root.READ = 1;
_root.scroller.gotoAndPlay("s1");
}
PLS HELP POSITIONING THE FLASH MC
Hello guys!!!
Check this: http://www.inwww.ltd.uk/final/main_mc.html
How are the margins on your computer?
On mine in the left and in the right is about 5 milimiters with red....but on my collegues there are no red margins and the flash_mc is not all visible...(at me there are 5mm of red and on them 5mm from the flash_mc it's not visible......left and right).
How can i fix this?
Regards,
http://www.inwww.ltd.uk
Positioning My 'pop-up' Flash Window?
I am at a loss how to make my 'new window' created from the index page centre to my/the screen (or how iI would give it exact position commands??) I have an 'index' page that has a 'get url' command which sizes the new window to fit the shape of the swf file i created - but often it positions it half on half of the screen?
Please can anyone advise me on what I have missed - thanks
Furrball
Aligning And Positioning In Flash
I'm doing a site in flash and I've encountered a strange thing. I want to acurately place an item on the stage but when I type in the position I want in for the X or Y in the info palate, Flash changes it. Like if I type in 30 flash changes it to 29.8, no matter what. But if I type in 29.8 for both items, when I render the movie the items are not aligned.
I can not use the align palate for this because it is a whole grid I am creating so if I align one row or column then another wont be aligned. Can anyone help?
Thanks,
Flash Websites Positioning
hi everyone
got an idea, and would like to know your opinion if it's worth trying (as I'm not sure if it is possible and how to do it
so.. Google has already started to index flash sites using the text inside the .swf files but.. it doesn't index the site but a single flash file and the link leads to this .swf file not the website.. the effect of such a link could be dissapointing
so maybe the .swf could check if it is opened in it's native site and if not then re-open the whole website in the current browser window..
and now are the two basic questions:
1. does it make any sense?
2. if yes how to do it?
will be really greatfull for any ideas and opinions
Positioning Buttons In Flash With AS3
My level of AS3 understanding: beginner (I am not a programmer, never used AS1 or AS2).
I am building a photo slide show Flash website from scratch and I am starting with the button. I am learning AS3 and Flash in the process and I am stuck at the beginning.
I created a custom button (actually 2) using this tutorial:
http://www.youtube.com/watch?v=hMzhJOCY6ik
(Now, I realize I could have used AS3 to create the button(s), however I decided not to at this point.)
Like that tutorial, the button embeds several movie clips and works exactly as I want it to: animated roll over and click.
What I want to do next is to create something similar to the YouTube (or other) movie player with just one button (not the entire bar at the bottom, just the animated full screen button).
1. Click on the button (let's call it A) and go full screen
2. On full screen button A turns into button B (and vice versa on Normal screen, just like the full screen button on YouTube)
3. Button A/B positions itself always in the same location onto the stage, no matter what the size of the browser is (that is some specific distance from the bottom right corner)
3. The size of the button remains the same while the size of the photo slide (when that is created) scales with the stage which is the same size of the browser window (or full screen, with cropping). Similar to a direct YouTube link:
http://www.youtube.com/v/hMzhJOCY6ik&hl=en
Now, I know this is the easiest part of the site, the slide show will be the hardest, but I am having difficulty in finding a good tutorial that teaches me this with some clean and simple AS3 code.
All I know at this point is that I create a package, import some classes, create classes, functions and variables. I get the general idea and I can create a logical flow. I still do not quite understand the syntax.
Are there any tutorials out there that can help me with this?
I can just start with positioning one of the buttons on the stage, I think that should be enough code for me to digest.
I want to understand this not just copy and paste...
Thanks.
Flash Movies And CSS Positioning
Is there any css tricks to get a flash movie to butt up tightly to the upper left hand corners? I can sort of get it to work in Netscape and Foxfire. IE is stubborn though. Has anyone done this before?
Thanks
Flash Resizing And Re-positioning
I have a flash app located at
http://www.triniscene.com/tsv7/galleries/?page=flash
now I want the flash dimensions to set to any reasonable size dimension in the HTML...while the movie adapts to the Stage dimensions. The problem I am having seems to be a browser issue. While in IE the movie takes the upper left hand side...it doesn't in FF...
I have the stage set to Stage.scaleMode = 'noScale'; and then set the _x and _y to 0...
what is the issue with FF here and is there any work around?
Positioning External SWF In Flash
I'm having a lot of trouble doing a simple positioning of an external SWF with AS3. I have a timeline animation that this external file plays in. It works but I can't get it to play in the right position.
Thanks for any help you can give!
The code I'm using is as follows. I tried:
thisLoader.x = 500
thisLoader.y = 500
but it has no effect...
Attach Code
// Part I -- Loading an external swf file and casting it as a useable movie clip
var thisMovieClip:MovieClip;
var thisLoader:Loader = new Loader();
thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);
thisLoader.load( new URLRequest("OBRotation.swf") );
thisLoader.x = 500
thisLoader.y = 500
function doneLoading(evt:Event):void {
thisMovieClip = MovieClip(thisLoader.content);
stage.addChild(thisMovieClip);
thisMovieClip.stop();
}
Positioning Flash Movie In A <div>
Hi all,
I want to place my .swf in the header of my CMS Page. But I'm having trouble positioning it in Intenet Explorer. I want it to show be vertical aligned at the bottom of a div.
This is the code I tried:
Code:
<div valign="bottom">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="370" height="41" id="Header" align="bottom">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#144787" />
<embed src="header.swf" quality="high" bgcolor="#144787" width="370" height="41" align="bottom" name="header" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
Can anyone point me in the right direction?
Apologies if I posted in the wrong forum....
Regards
Beuvema
[Flash 8] DuplicateMovieClip Positioning
I am having a problem that seems similar to the one shown here: http://www.kirupa.com/forum/showthread.php?t=215026
The Scenario: I started trying to learn Flash last week, and I feel like I've covered most of the basics. Pushing forward, I've been giving myself little tasks that I'll eventually combine into a larger project. Right now, I want to mouseover an object, and have a number of movie clips appear in a circle around it. So far, I have a test object to hover over, and a test clip to duplicate.
The Code: I only want this to happen once, so I'm using a global variable to determine if it's already happened, which is set to 0 when the swf loads. The Actionscript is on the icon clip.
ActionScript Code:
this.onRollOver= function(){ if (circleMade == 0) {// Number of clips to duplicate var nItems = 5;// Radius of circle var circleRad = 45; for (i=0;i<5;i++){ var currentMenuButton = "roundMenuButton" + i; duplicateMovieClip (_root.roundMenuButton, currentMenuButton, _root.getNextHighestDepth());// Determine angle of rotation for current clip var nAngle = ( 360 / nItems ) * (1 + i);// Set X and Y based on rotation and radius var nX = circleRad * Math.cos(nAngle); var nY = circleRad * Math.sin(nAngle); currentMenuButton._x = nX; currentMenuButton._y = nY; } } else {} _global.circleMade = 1;}}
The Problem: As you can see here (http://www.fishspeaker.com/motion/flashtest/index3.html), hovering over the center icon seems to do nothing . . . but wait! The small silver ball is indeed being duplicated, just in place. Checking the debug Object List confirms this - what am I doing wrong with the positioning?
Feel free to ignore the window that pops up when the icon is clicked - that's another project entirely.
Positioning And Scalling In Flash 8
hi i'm creating a flash 8 website i have set a basic structure so far but when i view the site in a browser i cant get the stage of the website in the centre i have tried Stage.scaleMode = "noscale";
but cant get it to work can anyone help?
Positioning Objects On Flash
Hi,
How can i positioning a image on flash just like FWA Awards that many websites put on the corner left or Right. That when we change the size of the window the imagem still on corner left.
Images that i would like to positioning on a swf, 100% size, in html.
For example, this website have a bar on top and other on the bottom:
http://bowenstudios.com/
Thank you!
Positioning Problems In Flash
Hi!
I don't know if I'm just plain stupid or if there are more people out there that have the same trouble I used to have with positioning mc's in flash, but I have now just discovered the solution!
I am talking about the difference in Flash between positions the Flash GUI uses and those used by ActionScript. Positioning in ActionScript doesn't always use the same coordinates as the GUI does, but as I said, I've found the solution (finally!):
When you select the mc and open the 'info' window, you see the x and y positions on the right and to the left of this (in the middle of the window) there is a small array of squares... which are clickable. These let you select the corner of the mc to use in setting the position. By selecting the top left square it will always use the top left corner, even when the origin of the mc sits in the middle!
Again, I'm risking my reputation here , but I gladly do so to make sure everyone knows about this, 'cause it's been driving me crazy for years!
I hope this information will also help someone alse out there...
Z-Index Positioning Flash
Hey,
This is either going to be a simple question, or a really ugly one ; )
I'm short on space in this project I'm working on, and I want to dynamically render a absolute positioned DIV on top of a flash 5 movie.
I've got the DIV, I've got the movie, but I can't find a way of making the DIV appear on top of the movie, instead of behind it.
Is there a trick to this, or is it just not possible. (netscape 6.2 and IE compatable way that is)
Jher
The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.
Absolute Positioning With Flash..
a la; http://www.notsosimpleton.com/2005/
i'd like to get certain elements in my flash movie to keep their position (i.e., against the right side of the screen) regardless of screen size/window resizing..
mind is blank.
paint me a picture.
Positioning A Flash Movie...
Okay, now that I have my button issue cleared up, I have an even stranger problem.
I have a flash movie that is 128x374 pixels.
I want to put it into a frame that is exactly 128x374 pixels, and I set the frame to have border=0 on all four sides.
So it should fit, right?
Well, no. It looks like the movie needs to be moved one pixel to the left, and one pixel up in order to fit perfectly.
But the movie is using a .jpg that fits perfectly, outside of the flash movie.
But here is the strangest part - the movie still fits within the frame. It isn't as though the .jpg was off by a pixel when it was inside the flash movie. It was touching all four borders exactly. So why on earth is it not working properly?
Below, I have a link posted to a .zip file of the project. You can open the WithFlash.htm, and then the WithoutFlash.htm to see what I mean. It is the exact same .jpg file.
http://www.prosarche.com/Arrgh.zip
Thanks a ton if you can help!
--Jerry
Flash Positioning And Opera
Hi,
I have the following problem... I've made a flash slide show that I want to include on my page. It works as it is supposed to but will display wrong in Opera 8.52 while IE and Firefox are OK. Does anybody have any idea what it can be, what am I doing wrong? There is no CSS styling appliedat all. The same happens with the html file published by Flash.
Many thanks in advance!
Flash In Html: Positioning Problem?
Hopefully you gurus can help me with this one...
I'm desigining a site in dreamweaver (html), with the menu made in Flash. I've imported it ok and everything works fine on my PC. The thing is, when I view it on other computers (namely the high end macs at uni) the flash menu sticks out to the side by 1 pixel.
This puzzels me, as it's fine on my PC and the flash menu is the exact same width as the html page. Is this flash anti aliasing?
I'd love to be able to resolve this.
Anyone have a clue?
Thanks.
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 ?
(help Please) Mc Re-positioning Within Full Screen Flash
Hi...
just a quick question thats probably relaly easy to answer except it's got me stumped!
I'm working on my site with my flash movie which is stretched to fill the whole of the browser (did this through the publish settings). The content stays proportioned fine, and doesn't get all distorted...which is great and how I want it!
What I then want is a mc I have in my main movie to be positioned at the very bottom of the browser (so that whatever browser size people have the mc is right on the bottom edge). I would assume it's pretty basic and something similar to code:
onClipEvent (load) {
this._y = Stage.height-this._height;
}
...although obviously slightly different without the Stage.height bit as I want it at the bottom edge of the browser. any ideas?
thanks
Jeff
Flash CS3 - Mac / PC Font Positioning Differences
Hello, I have a PC at work and a Mac at home and have found that there are differences with font rendering in Flash CS3 on each operating system.
The same .fla file will position fonts a few pixels differently on both OS's, these differences are retained after publish.
For instance, I can make a flash file on my PC with perfectly positioned fonts and after publishing, these fonts will look perfect on both PC and Mac (from the swf). If I then open the .fla on my Mac the fonts will be slightly off, and after publishing the fonts will be off on both the PC and on Mac (from the swf).
To check if this was just due to different versions of the font I tried installing a new font from the same TTF file on my Mac and my PC. The Problem still occurred.
Has anyone else experienced this problem? Anyone got any suggested workarounds or am I going to need to always work in Parrellels at home!?
Thanks,
James
Embedding Flash In HTML Positioning HELP
i embedded my flash movie in my html page successfully BUT i want to have it in the middle of the stage and it is alwasy to the left ofthe page..... i tried align but it didnt work,,,
i want my swf file in the middle ofthe page how can i do it???!!!!
PLEASE HELP
Thanks
Flash Positioning In HTML Table
Can someone please tell me why on this page...
http://www.gregorypaige.com/online/index.html
...when viewed with a Mac looks fine, but when viewed with a PC the Flash animation on the left of me with the map etc. (315 px. by 425 px.) is positioned one pixel too high, overlapping the white table border? I don't even get how this is possible with the way the HTML is written.
Will someone please look at the code? It's very very simple and is probably something small I am just overlooking.
Thanks!
Gregory
Positioning Flash In Search Engines
Im willing to know if there has being any advances in the way of positioning webs based on FLASH in search engines like google, yahoo, altavista...
Better than this, is there any tutorial available for this?
I would like to know the "how to" position my personal web in google?
(partially Flash Related) Positioning Help
Hello. Again. I was wondering if anybody knows how, or has access to a tutorial on positioning your flash movie on the internet after you've published it to a html. When I open the html link, its all very left aligned, which I'm not liking, and I was wondering how would you go about positioning your movie like on home star runner (centered window with black background and the like).
On the topic of this, i'll add a previous post which went relatively unanswered. How do you change the actionscript so that the "getURL" comand does not open up a separate browser and instead just loads the information up on the smae page as the link? Sorry If i haven't made this cler, and any help would be gretly appreciated.
Thanks ants. Thants.
Flash Movie Positioning With Opera
Hi,
I have the following problem... I've made a flash slide show that I want to include on my page. It works as it is supposed to but will display wrong in Opera 8.52 while IE and Firefox are OK. Does anybody have any idea what it can be, what am I doing wrong? There is no CSS styling appliedat all. The same happens with the html file published by Flash.
Many thanks in advance!
Flash Vars Font Positioning
hi guys,
see this site http://www.tigersforever.org/ , the title "Save tigers from the brink of extinction" is a flash, can anyone have a sample or a help me in making like this one?
thanks
Flash And XML Image Gallery Positioning.
Hi
I am using Flash 8 for this and XML to create an external/dynamic image gallery. The problem i have is that when you drag to make the screen bigger or smaller the image moves position and does not stay central. Attached is the fla for you to look at as it doesnt make much sense when describing it!
Also is there anyway to add a movable/ change size with the picture black box around the images?
thanks for any help.
|