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




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....RegardsBeuvema



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-29-2006, 03:47 AM


View Complete Forum Thread with Replies

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

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 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 Movie Positioning Issue.
First my code

CODE
<table width="791" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <!--DWLayoutTable-->
    <tr>
         <td valign="top"><img src="images/Logo.gif" width="237"> </td>
      <td valign="top"><div id="Layer1" style="position:absolute; width:554px; height:200px; z-index:1; left: 497px; top: 10px;">
        <object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="554" height="200" align="left">
              <param name="allowScriptAccess" value="sameDomain" />
              <param name="movie" value="http://127.0.0.1/test.swf">
              <param name="wmode" value="transperant">
              <param name="quality" value="high">
              <PARAM NAME=bgcolor VALUE=#FFFFFF>
              <embed src="test.swf" wmode="transparent"  quality="high" width="554" height="200" name="menu" align="left" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
        </object></div>
      </td>
  </tr>
</table>


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?

Positioning Flash Movie In Powerpoint 2004 Mac
How? Importing and playback is a doddle apparently. But try and position the bugger? No dice, no preview of the first frame in the object, nothing to give you a sense of orientation for positioning the movie.

Y'see, I have a short Flash movie that's visually consistent with the Powerpoint presentation but the text needs to be in the exact same position as in the Powerpoint. If there's a way to input pixel coordinates I can't find it.

Any ideas?!?



x-posted in General Help >Macintosh

Movie Clip Positioning (full Browser Flash)
I am trying to figure out how to attack the positioning of a few of my movie clips in a full browser flash setting.

Here is the gist...

I have 5 movie clips.
1 is positioned x=0 and y=0 (upper left corner)
I need to have another positioned the same way, but upper right corner. How would i do this? Below is my code so far. As you will see right now, all but 1 are positioned in the center of the stage. It doesn't seem like i should try using x and y values to put 1 of these clips in the upper right hand corner..... but i could be wrong.

Code:

var butterfly:Fly = new Fly();
butterfly.x = stage.stageWidth /2;
butterfly.y = stage.stageHeight /2;
addChild(butterfly);

var logotext:Text = new Text();
logotext.x = stage.stageWidth /2;
logotext.y = stage.stageHeight /2;
addChild(logotext);

var logoblue:Blue = new Blue();
logoblue.x = 0;
logoblue.y = 0;
addChild(logoblue);

var plants:Green = new Green();
plants.x = stage.stageWidth /2;
plants.y = stage.stageHeight /2;
addChild(plants);

var tagline:Tag = new Tag();
tagline.x = stage.stageWidth /2;
tagline.y = stage.stageHeight /2;
addChild(tagline);


thanks in advance!
Lance

Positioning Loaded Movie In Main Movie?HOW?
I want to load a movie in my main movie.
The movie I load is smaller (stagesize) than the movie where its loaded in. Who do I give X and Y coordinates?

Thanks lootz,
Petra

Positioning A Movie?
I don't know if this was posted b4 but here goes...

I was wondering if it was possible to manipulate the position of a movie loaded by the LoadMovie action!!

Movie Positioning
Hi Folks

I'm a bit new to the whole ActionScript scene. At the moment I have two flash movies. The first is the main movie (800px*600px), and into this I want to load the second movie (100px*20px).

I have managed to successfully load the second movie in using a button in the main movie:

on (release) {
loadMovieNum ("smallmovie.swf", 1);
}

However, I want to position smallmovie.swf at an exact pixel position. I can't figure out how to do this. I presume I use the _x and _y properties?

Any help would be appreciated.

Cheers,
Kenny.

Positioning Of Movie
I have a main movie and I have to load another short 20 second movie into it.

I have done load movie etc and it loads but the position of the inserted movie is not what i want ..

I tried reading the help files and i understood that I should use target .. ummmmmm but i'm new to this :'(

this is what i had with the level specified .. and it worked but in the wrong place .....

loadMovieNum("C:\Julie\FLASH\NOMusic\Reds Movie.swf", 5);

so i tried this .. (target ?? - I put the name of the file .. :S)

loadMovie("C:\CSI\FLASH\NOMusic\Reds Movie.swf", "Reds Movie");

setProperty("Reds Movie", _x, "650");
setProperty("Reds Movie", _y, "450");


ummm .. it did not think much of that at all

3 hours i've been trying to move this thing grrrrrrrr

Please can someone help me ??

thank youuuuuu

Julia

Positioning A Movie
Ok, i've finished my movie and am trying to load it onto my page.

I have a frame at the top devoted to this navigation movie, no borders, and no scrolling set.

I am trying to position the movie so that the top of the movie is at the very top of the page, instead no matter what I try there is one space of blank line from the top of my page to the movie, and its messing what i planned.

If you know what to set to make my movie go to and stay at the very top of the page please help.

Positioning The Movie Help Please..
I have a swf being loaded into an empty movie clip in the main movie. I am not able to properly position the swf where exactly I want it in the main movie.

For example if my swf is a calender with a preloader and I want it to be positioned in x:80 and y:450 should I also place the calender in x:80 and y:450 in the fla of the calender movie. Instead if I just position the empty movie clip in 80 and 450 its not working properly. When I run the movie Calender is showing up somewhere else. Please help.

Movie Positioning
I have this piece of code to load a movie on level one of another movie, but no matter what i change the numbers to the position isnt efected, it just loads in the top left of the movie.


on (release) {
loadMovieNum("blanche-mail.swf", 1);
_root.onEnterFrame = function() {
if (_level1._x == 50 && _level1._y == 50) {
delete this.onEnterFrame;
}
}
}

Movie Positioning
I would like to move the entire flash movie to the bottom right corner of the page without using a div, css or javascript in the html or linked from the html. The movement or positioning of the movie would be done only by actionscript. Here is what I have now but I want to remove the div tag.

<div id="flash" STYLE="position:fixed; right:0; bottom:0"> <embed src="http://www.youtube.com/player.swf?video_id=_YNTMfb_AGw&l=59"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </div>

Movie Positioning Help
I've tried to do this every way i know how to load an image into flash.

I tried using the MovieClipLoader class
it worked but i couldn't set the _x and _y of the new clips

it tried adding an onLoadInit listener object to the the MovieClipLoader class
and this worked, i can hardcode the _x and _y of the movies, and it works

but i can't set the _x and _y with dynamic data

so i tried using loadMovie and this worked also, when i hard code the coordinates, but does not work when i use variables.

so this lead me to think it was the numbers themselves, maybe they weren't numbers.

these numbers are loaded from an xml file. but they are assigned to a tmp:Number variable first, then used. so wouldn't the compiler complain if the values of the xml nodes i'm pulling from, are not numbers?

if i try Number(tmp) i get NaN

i'm REALLY stuck! any help would be appreciated, i've been on this problem for 6 hours now, and as you can tell, it's even hard explaining exactly what the problem is.

i can't paste any code, cause i've tried 4 times and erased everything 4 times to start again from scratch. please help!

Positioning A Movie
Hello

I have a Web site which could probably be better positioned on the page, and would be grateful for any suggestions as to how I may achieve this, please.

The site is here: http://www.graphic9.com/

Thanks for any ideas.

Steve

Positioning Of Movie
Hi,

Does anyone know how to position a movie in another movie?

I know I can put it in a certain place using a movie clip and calling it "tasks" by writing:

on (press) {
loadMovie("task8.swf", "tasks");
}

but I need the movies to be numbered like so:

on (press) {
loadMovie("task8.swf", 8);
}

so they all load on top
So I need it to do all three, load the movie, put it on top and in a certain place - any ideas?

Any help much appreciated!

Positioning Swf Movie
I have addedd a script to a button which plays a swf movie but I need to position the movie on my page so that it doesnt overlap my buttons and such. As it is the movie plays fine but is positioned near the top left of my page. I need it to be in the middle. The swf was from a widescreen movie so the letterbox runs right accross my screen which is nice but i need to move it down some.

Anybody.

Peace.

Positioning Loaded Movie
How do I set the x and y of a loadie movie? The swf that I am loading is set at 0 x and y. Should I set this swf were I want it to load in my movie, or is it recommened that I set it with the AS code in the movie that its being loaded into. If the latter is correct how is this done?

thanks
jhb

Duplicate Movie Positioning
havin' another cow man.....

have successfully duplicated movie clips as I wanted (thanx julianj - showed me how little I know) but they are not going where I want them to.....

Actionscript is

duplicateMovieClip ("_root.drop", c, c);
setProperty (c, _x, random(400));
setProperty (c, _y, random(50)-50);

I presume the _x and _y set the positioning of the new movie clips, but they are way above the original mc. the effect is really nice in that the spread and depth of the rain effect I am trying to create looks good but is not in the frame of the flash player. If I preview the movie in Flash then i can see the initial drop fall then if I resize the flash player, making it tall and thin, I can see the duplicated clips playing away nicely up in the heavens....

How can I get it so that the clips play in the space that I want them to. I have read the manuals and fiddled over this for a good couple of hours but again to no avail.

Thanks in adavance for your help.

Hedley

Load Movie Positioning
Okie dokie- newbie question. I have a load Movie command. And as it should it loads the movie, but how do I make it load in the middle of the window rather than the upper left corner. I tried putting my load command into a movie clip symbol and centering that, but... that didn't work either. Any ideas?

JK

Positioning A Movie Level:
Could someone show me some love and help me out. Ok I have a link that when you click on that link, another swf movie is suppose to load up, the question is when the movie is loaded, how would I position to to where I want it on the movie stage?

Loaded Movie Positioning
Is the only way to move a movie around that has been loaded via loadMovie();, to make the loaded movie the same size as the movie you are loading into and moving it around? Can I address it some way via AS to move it? I tried:


Code:
mc_nav = loadMovie("top_menu.swf", "_level4");
mc_nav._alpha = 20;
And it did not work - I have done it the way I mentioned at the top - just wondering though - thanks!

Positioning Of Loaded Movie
I finally figured out how to load a movie using a button. Can anyone now tell me how to define where on the page the new movie will apear/run. Right now it is dead center.
Thanks
Frank

Load Movie Positioning
when u load a new .swf into your existing movie, how do you position it where you want it to be seen?

Movie Clip Positioning
I want to know how to position a movie clip I load into layer one to a specific area in my main movie.

[quote]threed = "lil3d.swf";
loadMovieNum (threed, 1);
setProperty ("threed", _x, 123);
[/qoute]

Positioning Load Movie
ive loaded my movie in a container MC, wich contains a square of 550*400 with alpha 0

i thought i could position the loaded swf with the container, wich is not

how can i position the loaded swf?

thx guys

Positioning An .swf With Load Movie
Anyone know how to specify where a swf is loaded in x and y terms? I am loading a swf into my main movie and it is off from where it should land. Rather than go into the .fla and reposition everything I figure there has to be a way to specifiy where it comes in (x and y) by attaching a variable but dont know the script...anyone who can help I would greatly appreciate it.

Positioning Load Movie
Hi,
I have a movie, in which I want to load some other movies. As standard flash loads an external movie from the left top of the movie, but it is possible to position the load movie on ex. x:90 pixels and y: 100 pixels?

Hope anyone can help me out )

Regards
Thomas

Scrolling Movie Positioning
Hi,

I have a problem. I have customised an existing movie that I got somewhere which I want to use for the portfolio section of my web site. The problem is this:

When I view the movie from the original FLA with my changes its ok. However, once I copy the frames and place them in a movie clip in my main movie the clip starts with the images all moving up to the top left corner without me clicking anything. I know its something to do with the positioning but I am not too hot at that. here is the URL to the file:

http://www.evolutionnewmedia.com/test/v1.html

here is the actionscript that controls the movement etc of the movieclip:

onClipEvent (load)
{
vx = 0;// this is the x velocity for this movieclip (image),
// that is, the number of pixels that this clip will
// move right

vy = 0;// this is the y velocity for this movieclip,
// that is, the number of pixels that this clip will
// move down

damping = 0.7;// damping is the effect of friction.
// x and y velocity are multiplied by this number
// every frame to slow them down

movingSpringAnchor = p1;// this is the movie clip in this movie clip
// than our spring will be anchored to

springConstant = .03;// this is the strength of our spring.
// the effect of a spring is its distance
// times some constant
}


onClipEvent (enterFrame)
{
var globalPoint = new Object();// this will hold the "global" coordinates
// of where our external spring is anchored

globalPoint.x = movingSpringAnchor._x;// store the "local" x value of our
// spring anchor
globalPoint.y = movingSpringAnchor._y;// store the "local" y value of our
// spring anchor

localToGlobal(globalPoint);// convert our local coordinates to global ones


// next we calculate the distance (in "global" space) from the stationary spring
// anchor to the spring anchor attached to this movie clip
xDistance = _parent.staticSpringAnchor._x - globalPoint.x;
yDistance = _parent.staticSpringAnchor._y - globalPoint.y;

// acceleration is change in velocity
// the acceleration due to a spring is
// distance times the constant of that spring
vx += xDistance * springConstant;// update velocity
vy += yDistance * springConstant;// update velocity

// velocity is change in position
_x += vx;// move this movieclip in x
_y += vy;// move this movieclip in y

// friction is a cancelling force on velocity
vx *= damping;// slow down x velocity
vy *= damping;// slow down y velocity
}


Can someone help me with this please.

thank you!

Regards,
Martin
[Edited by martincrumlish on 03-21-2002 at 05:31 PM]

Positioning A Movie Clip
How can I define a starting position for a mc instance, once the main movie loads ?

I have a navigation bar embeded on HTML, which has the cursor folowed by a mc instance. But when it loads for the first time, it always starts at x=0 y=0 position. And I need it to be on y=0 and like on the middle of the movie, x=350 aprox.

Can you help ? Thanks

Attach Movie Positioning
i have an actionscript inside a movie clip that tells flash to attach a movieclip on the main _root stage:

if (b==0) {
tellTarget ("_root") {
_root.attachMovie("kitchensmc", "kitchens", 1 );
_root.kitchens._x=148;
_root.kitchens._y=131.2;
}
}

offline this works, but online, the kitchens mc is not positioning correctly on stage. why is this???

Positioning Load Movie
is there a way that i can load a new movie into the main existing movie but having it position where i want? for example, i have 3 boxes in my main movie (positioning horizontally)and i would like the new movie to load up inside the 3rd box.

please help!

Positioning Movie Clips
Hi Some help If you Could

I have a Navigation Menu and have various movieClips that will play as a button is pressed.

Now I make a Symbol and convert it to a movie clip.

Then I add the attachmovie command to the Button.


When I activate the movie via the button It always plays in the MovieClip in the wrong place on the screen. I can go back into the SymbolMovieClip and adjust the position where the movie is there then retest... then adjust... then retest... until I have moved it into the correct position, but this is hard work.

What I need to do is have the MovieClip on the main stage so I can position it correctly ..but doing this the movie clip is always there.


So.. what I am looking for ... is either a easier way of aligning a symbolMovieClip on the main stage or a command that will hide the Movieclip on the stage until the button is pressed ?

I hope this makes some kinda sense...

Thanks in Advance

Positioning A Movie Clip In MX.
This post has moved here:
http://www.flashkit.com/board/showth...21#post2063021

Positioning Loaded Movie?
Hello:

How do you position a movie, when you load it into the level??

Can any one answer this question for me please??

Thank You.:

confused: :

HELP Positioning A Loaded Movie
Ok, so I have got this far...

on(release){
loadMovieNum("music.swf", 2);
}

How can I now position the music.swf file in the right place on the stage? Should be an easy question for you gurus!

Cheers,

Nick

X,y Positioning Within Movie Clip
I wanted to turn a movie which I created in the main timeline into a movie clip.
The x,y position of the animation had been 0,0. After I copied all the layers, created a new movie clip symbol and pasted the layers inside the clip, the position changed to -640,-612.
How can I keep the original positioning without manually changing every element?

seb

Movie Window Positioning
When it comes to playing a FLASh movie from within a web page the templates in FLASH 4 only give you the option to position the movie window left,right,top,bottom or default.Is there a way,using HTML commands,that you can position the movie window where ever you wish by use of co-ordinates?

Positioning An External Movie
i've got a movie that I want to load into another movie using loadMovie. Trouble is if I use loadMovie it doesnt work, but if I use loadMovieNum it does work. When I use loadMovieNum though I want to be able to position the movie elsewhere on the stage, but since the movie is loaded into level1 on the stage it has no name so i cant position it using movieclip._x or movieclip._y

any ways I can get around these problems. I'm using Flash MX

Positioning Movie Clips
I have been reading the forum for a few days now and I know there is someone out there who can help.

I have noticed that positioning items on the stage through the use of blank movieclips seems to be the way ahead.

Before I saw the Light I used to Load my Movieclip straight into the Main scene with all Backgrounds set to the same sized.
Then by posioning the Items in the place I wanted I achieved my results. The only draw back was keeping all the Levels in order.

This brought me no problems as I am a Low-End user. However the Genii out there have their reasons for doing things differently and I wondered why, is it size, performance or resource related?

I'd be gratefull for a pointer on this one, thanks

Nick

Positioning A Movie Clip
Hi all,

got meself into a bit of a tight corner. I have produced a cd rom (using flash intead of director...) the problem I have is that I have made my movie 700x550px so that (as I intially intended), I could import it as a swf into director and get it to open full screen from there. The problem I had was that all the buttons I set up for web and pdf links didn't work once i had imported them into director. V.V. annoying to say the least! Anyway I found a fix (kinda) in that if I made the a flash projector bigger than my original (1240x1028) then it look to all intens and purposes identical. The crack is though is that i need to load my original movie(700x550) onto a new one (1240x1028), This negates the issue of trying to resize my original and make the stage bigger (alotta work- many layers - too fiddly!). So... when I load the original onto my newer, larger one it puts it top left. Is there any way that I can repostion the original so that it is central. Sorry for the wordy request, and thankyou for reading... Any ideas?

Yoonka

Positioning Movie Clips
I have a swf that contains a blank movie clip which loads an external swf file. I have created the clip and when I select the first frame of the layer inwhich I want it to appear, and drag to clip to the stage it, aways loads it at the top left hand corner. What am I doing wrong? I am sure it is something simple, but the clip always loads in this position no matter where on the stage I move it to. Any help on this anyone can offer will be most appriciated.
Thanks in advance

Movie Clip Positioning
Hi, I am using the following code for my button:

on (release) {
_root.mtClipAbout.loadMovie("DialogAbout.swf");
}

And its loading correctly into my flash page. But I just wanted some tweaks. I want to load it close to the right bottom corner of the page.

Need help.

Thanks

Movie Clip Positioning
Hi, I am using the following code for my button:

on (release) {
_root.mtClipAbout.loadMovie("DialogAbout.swf");
}

And its loading correctly into my flash page. But I just wanted some tweaks. I want to load it close to the right bottom corner of the page.

Need help.

Thanks

Load Movie And Positioning
I'm using Load Movie to load an external swf into the current swf and into level 1 so that the load buttons remain in view. No problems with that. What I don't know how to do is position the loaded movie which has smaller dimensions than the one in level 0 with the buttons. It appears to auto align in the top left corner when loaded. Is there a way to control the xy coords and its positioning?

Much appreciated.
PS. I'm using MX not 2004 but would guess the procedure is probably much the same. The Help button in MX doesn't explain positiong.

John

How Do I Use X And Y For Positioning Movie Clips?
Hi! Can someone help me with the x and y position for my movieclips. I'd like a button to load a movieclip but when it loads the movie clip, i'd like the clip to be on a certain position on the screen. The code below still places the movieclip "photos.swf" in the (0,0) coordinates. By the way, logo_mc is the parent movieclip. Can someone tell me how to fix this?

on (release) {
this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth(),{x:300,y:-300});
logo_mc.createEmptyMovieClip("container_mc",this.g etNextHighestDepth());
logo_mc.container_mc.loadMovie("photos.swf",);
}


Thanks.

Positioning Swf Files In Movie
hi again
my question is:

lets imagine I am making a movie which has 3 buttons which load 3 external swf files

the buttons are located in the center of the movie....

button 1 should load a swf file at the top of the original movie (north)

button 2 sould load the file to the botthm (south)

and button 3 loads it in the center

how can i achieve this?

is there some way to define co-ordinates at which the swf file will be placed when called by pressing the button?

Any help will be appretiated
thanks in advance

Loading Movie & Positioning
How do I load a movie into a level and still have control over the positioning....if I use an alias, then it seems I only have control over what depth to load into, not what level. I want to load a .swf into a certain level
but still have control over the exact positioning? how can I accomplish this?

thx!

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