Positioning An External Swf In A Flash Miovie
bonjour can anyone tell me how i position an external swf file in a flash movie,
FlashKit > Flash Help > Flash Newbies
Posted on: 01-14-2002, 05:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 External Swf
I've looke dall over Flashkit and can't find where it was that I saw the info on positioning external SWF's. If anyone could tell me the code or something that would be sweet. It's kinda drivin me nuts.
Thanks in advance
External Swf Positioning
Hi:
I'm having a hard time figuring out how to position an externally loaded swf. Please see:
http://abcomputers.ca/locos/
If you click on the "video takes" link on the top left and then click on the Miller image a movie should load. I want that movie to be positioned elsewhere, rather then the top left-hand corner.
Thanks in advance for any help,
Abe
[CS3] Help With External Swf Positioning
hi there...
ok so i am workin on a site and i have buttons that link external slideshows! the first of which works fine as the slideshow was built from a flash component that calls the images via a simple xml path...
the second of which however, i purchased and wanted it to load in the same way in the same position and it was working fine until i make my browser/flash window any bigger as then it kinda snaps to the top left and wont move...the slideshow sits in the correct place its just that the entire site moves...can anyone help ??
is there any code i can add to the code i have on the buttons or to the slide show to make it not affect the sites position in the browser window??
the code on my button is as follows...thanks alot
on(release){
gotoAndPlay(16);
}
on (release) {
loadMovie("collection.swf", "/whitebox");
}
Positioning External SWF's
I have several external swf's inside of empty movie clips, but no matter what size or where I put the clips, it just loads the move in the middle, full size, sort of in a default way. How do I position exactly where i want the clip to appear?
Thanks
Positioning External Jpg
i'm loading external .jpg's into an empty mc,
when the .jpg loads it always positions at the top left corner of the empty mc. i want to change its registration point to its center and tell it to position in the exact middle of the empty mc.
any ideas?
Positioning External .swf
hi there....
I am currently working on a project which is about to due 2moro...
You all seem to be good in Flash and helpful....I need some help with the project.
I am using levels....a.swf needs to load b.swf and set the position of b.swf accordingly. I have lost b.swf fla, so i cant set the position in b.swf.
Is there any scripts which can change the position of b.swf from a.swf.
I only have a.swf fla with me.
Thanks in advance!!
External SWF And X-Y Positioning...
Hi...
I'm trying to load 4 different external swf files into each their movieclip and then position them at the stage.
But i can't seem to make it work. I've made a flash document with each movieclip in its own layer, but I can only make it load one swf file. At the moment its only loading the front_bg.swf file.
Heres the positioning:
Swf1: X=0 Y=0
Swf2: X= stage center Y = stage height -swf height
Swf3: This swf needes to be positioned with its center point at the stages center
Swf4: X = stage width center Y = 45
Heres my AS3 so far:
Code:
import flash.events.*;
import flash.net.*;
var loader:Loader = new Loader();
var req1:URLRequest = new URLRequest("menu.swf");
var req2:URLRequest = new URLRequest("front_bg.swf");
loader.load(req1);
menuholder.addChild(loader);
loader.load(req2);
bgholder.addChild(loader);
menuholder.x = 0;
menuholder.y = 0;
Could someone please guide me down the right path here...
Thanks.
Best regards,
Kristoffer Jensen
Positioning An External Swf After Loading It?
hi all, i have just finished a trailer, the trailer is on the link provided, you will notice, after the first text " on december 14th", i have loaded in a swf file i made in swish, but it doesnt apper in the center of the screen like the rest of the stuff, it's stuck in the top left corner?
i loaded it using the loadmovienum actionscript, but how do i get it in the middle?/????
this is driving me nuts.
thanks
h**p://www.angelfire.com/film/madness1/final.html
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 External Swfs
Hi:
I'm having a hard time figuring out how to position an externally loaded swf. Please see:
http://abcomputers.ca/locos/
If you click on the "video takes" link on the top left and then click on the Miller image a movie should load. I want that movie to be positioned elsewhere, rather then the top left-hand corner.
Thanks in advance for any help,
Abe
Positioning An External Swf Inside A Fla
ok, here's the deal. I don't know a lot of action scripting at all so forgive me for being a bit of an idiot and needing extra explanations. My problem is this. I'm loading and external swf file into my main movie using the loadmovienum command. It works great, loaded it into level 1 without a hitch. The problem is that I cannot for the life of me figure out how exactly to position it on the screen. Every time I try and setproperty of x or y to a value, it does nothing. The swf always stays in the top left corner. I'm loosing my mind here...help please.
Positioning Swf From An External Folder.
I am working on a project that requires that I load swf's from various external folders. The problem is that the swf's load to the upper left hand corner of the page (the default in Flash) but this covers the menu and obviously prevents further navigation.
The last thing I tried was
on (release) {
loadMovieNum("demo/load.swf", 50);
load.swf._x = 200;
load.swf._y = 200;
}
attached to the navigation buttons. It failed to change the position.
I will not have control over the fexternal folders as someone else is publishing those. I am just the designer.
Plz Help. Positioning Of The External Swf In Fullscreen Fla
Hi.
I have a FLA in fullscreen mode. When I load an external swf to a container, container moves to up.
content.onResize = function() {
this._x = (Stage.width - this._width) / 2;
this._y = (Stage.height - this._height) / 2;
};
Stage.addListener(content);
This is the code for my content and there is a container inside it. When I load an external file this whole content movieclip moves up.
Please help. I am going crazy. It's done in Flash8 by the way and files are attached.
Thank you
Help Positioning External Swf On The Stage
Hey,
I am using loadClip to load an external swf into a movieclip on my main swf. The ext. swf is loading and playing just fine in the movieclip, however it's position is completely random on the stage. (It being pushed to the lower right side of the stage) Can anyone help me know why this is happening and what I can do to make sure the movieclip stays where I want it to stay?
Thanks. Here is the code I am using to load the ext. swf:
home1_mc._lockroot = true;
my_mcl.loadClip("movies/homeShow.swf", this.home1_mc);
Positioning External Swfs
I need some help, how do you position external swfs instead of them loading on the top left of the stage?
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.
Positioning External Swfs
I need some help, how do you position external swfs instead of them loading on the top left of the stage?
External FLV Php/xhtml Positioning Is Not Right
Hi,
I'm 98% finished a site/project I am working on, but I'm having problems when I insert the embed flash code into the php/xhtml document. For some reason the player, doesn't seem to be paying attention to the css and I can't budge it's positioning on the page. It just needs to be moved down about 7 pixels and across 3-4 pixels. It's driving me nuts.
I didn't really do any of the development, but I have been having a fiddle with it as well. Is anyone an expert in coding up flv files in a php/xhtml document?
This is part of the code for the flash part
<div col="right_col">
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player to version 8 or later.</strong>
</div>
<script type="text/javascript">
var so = new SWFObject("flvPlayer.swf?imagePath=480x270.jpg&videoPath=video.flv&autoStart=t rue", "sotester", "300", "250", "8", "#000000");
so.write("flashcontent");
</script>
Positioning External SWF In Movie
Here's the deal...I've read a few other posts, but still am unclear. I have "a.swf" which has button "b". There is a 350x400 area that I want "b.swf" to load when button b is pressed. I also want button c to load c.swf in that same area, and button d to load d.swf in that area when clicked. How do I do it?
http://home.comcast.net/~thane_rm/buttonload.jpg
Positioning An External Image
I am trying to load an external image determined by a query string added to the embed and import tags (in the movie's parent html page). ie.
<param name="movie" value="situ.swf?picSrc=pic0002.jpg">
<embed src="situ.swf?picSrc=pic0002.jpg">
The first two lines of the following actionscript do exactly that - loading the image defined in the variable "picSrc" (assigned a value in the parent html page) into the empty movie clip "picMov".
var picSrc;
loadMovie(picSrc,"picMov");
var picWidth = picMov._width / 2;
var picHeight = picMov._height / 2;
picMov._x -= picWidth;
picMov._y -= picHeight;
With the last four lines of actionscript I am trying to align the external image to a centre point (rather than to its top left hand corner) because the size of the external image will vary from one page to another - unfortunatly its not working.
I'm a real beginner with actionscript so its probably something really simple (or I'm going about it all wrong).
Any help much appreciated.
Positioning Smaller External Swf's In Larger Swf
I have a 1024x768 projector that I need to load a 700x500 swf into. How do I center it on the stage? (The smaller swf is way too large and lengthy to re-do the dimensions. I know this is simple to do. But I am beneath a simpleton. Thanks.
Re Sizing And Positioning An External .swf File
have a query about loading up positioning and scaling a movie...
any help appreciated.. baring in mind i am new to set properties and loading movies ect.
in my flash website i have navigation on the left and a square on the right where i display images. within this square i want to load a space invaders game. the game is a swf file. i need to load the game to fit exactly within the square so i need to position and scale the game so it fits within the square.
can any one help me with this.. i have so far loaded the movie in to the relevant scene but cant postion it or scale it??????
cheers
ben
Loading External Movies, Then Positioning Them?
Loading an external swf onto the movie is easy, yes? I was wondering if it is possible to move the position of the second swf while in the root of the movie?
Normally the second movie or movie that is being loaded, just plays reletive to where it was on its original movie.
Just curious if it is possible to move the position in the root via some actionscript or something and if so, how?
Thanks guys...
Dion
Loading External Swf Positioning Problem
on(release) {
_root.createEmptyMovieClip("container", 1);
loadMovie("C:\Documents and Settings\aboutus.swf", "container");
container._x = 1.0 ;
container._y = 50.5 ;
}
i used this code in flash mx... however it does not load the MC aboutus.swf... y is this.. and not only that.. it doesnt position it.. can anyone help
Dynamic Positioning Using External Files
Greetings,
I’m relatively new to action script so this may take a while. I am attempting to create a website which can be controlled via an external .txt file. I have all the Text, Images, and menu items being taken from a single .txt file and now I want to experiment with the dynamic positioning of say text boxes and loader components.
What I am aiming for is providing a set of CoOrds in a text file and having flash apply them to a text field or loader.
I know I am way out of my depth but if anyone could give me a few pointers or knows of an idiots tutorial, it would help me greatly.
Cheers,
Atomiser
Help With LoadMovieNum Positioning And Other External Swf Scripts
Hello everyone,
I'm working on a website in Flash 8, but I have encountered a problem.
I decided to cut down the file size [and hence the load time] by including some external swfs containing the various categories of the site. I had no problem making MC holders which load external data, but when I include the MC in my website itself I had some problems.
At first, I used the loadMovie script on the MC but that doesn't work, so I experimented with the loadMovieNum script, loading it into a level, which works, but now I have the movie positioned on the left corner instead of the MC loader box which I created.
Is there a way I can use loadMovieNum script, so that it can be perfectly positioned in the box I made?
Also, I tried out some behaviors on the box symbol, which when pressed or rolled over by the cursor, will load the external swf. The swf will load but you will need to position the centre of the box symbol to where you want the swf to appear. Is there a way I can use behaviours instead, but without the button-like events, so its loaded without anything causing it to load?
Please help! I've been killing my brain looking for a solution to this.
Thanks.
BTW: if anyone did happen to ask the same question as I am asking, and its mentioned on this forum, please send me a link to the thread. I might have no found it, I did check before.
External Movie Clip Positioning
OK, I'm sure the answer to this is real obvious, but I'm just not getting it [to work].
I am building a portfolio site, part of which is to display some of my old flash work. And in one case I'm ending up with a movie (MC-1) , that loads a movie clip (MC-a), that loads a movie clip (MC-b). The loading is working fine, but the positioning of MC-b is not where it should be in MC-a, because M-1 is a larger stage size than MC-a (hope you are following me).
If MC-a is played on it's own, all is hunky-dory, MC-b is where it should be.
So, what I need is for MC-b to load, relative to the stage size of MC-a not to the stage size of M-1.
in M-1 I have an empty movie-clip that loads in MC-a. The script is on the first frame of the timeline;
ActionScript Code:
_root.onLoad=function():Void
{
loadMovie("MC-a.swf", container01);
}
In MC-a, MC-b is called up with;
ActionScript Code:
loadMovieNum("MC-b.swf", 2);
I tried using the same load movie clip method from M-1 in MC-a but nothing happens.
I hope I explained this well enough, any help will be much appreciated. Thanks.
Positioning A Movie Clip Using External Variables.
Hi,
I'm trying to position a movie clip inside a flash movie using variables stored in a text file.
I'm using a php file to write and then read from a text file. This all works fine and my flash movie is able to do both these things.
However when I try to use the variables to position the X and Y values of the movie clip, I'm unable to do so. the movie just wont pick up the variables that are in the movie (I can see the values of one_xpos and one_ypos in text fields in the movie so they ARE being read and ARE in the movie).
The first thing I've been doing is loading the variables 'one_xpos' and 'one_ypos' using a php file:
loadVariablesNum("http://www.website.com/folder/messageboards/php_text.php", 0);
I've then made sure the variables are numbers:
one_xpos = Number(one_xpos);
one_ypos = Number(one_ypos);
I've then tried to use these two variables to set the position of the movie clip:
setProperty("01", _x, one_xpos);
setProperty("01", _y, one_ypos);
this doesn't work for some reason.
When I don't load the variables but instead give one_xpos and give one_ypos values inside the movie it works and moves my movie clip!!
This is so frustrating please help.
Cheers
Ben.
Positioning External Movies In Your Main Movie
How would you go about positioning a external movie (a preloader) that's smaller than your main movie, without loading it into a movieclip? Simply using code? Math? x/y coordinates?
Here's the deal:
I have a small preloader.swf about 150pxX25px that loads into my containerMovie.swf until my other external movies are fully loaded. But I'd like this preloader to load into the middle of the movie. Is there a simple way to do this?
Thanks, Matt
Here's the code I have to give you an idea of what I'm trying to do:
stop();
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
//-----------------PRELOADER CODE----------------------\
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function (target_mc) {
_level50._visible = false;
}
//-----------------/PRELOADER CODE----------------------\
//------------Main Movies Here-----------------------\
myMCL.loadClip ("preLoader.swf",50)
;
//------------Main Movies Here-----------------------\
Relative Positioning External Loaded Elements
I'm trying positioning external loaded images from an XML and position them according to the stage dimensions.
Here's what I've come so far: creating a loader for each image and then position them according to their size.
Is there any way to do this avoiding to create a multidimensional array (that's to say two arrays one for the images name and one for the loaders)?
Code:
private function loadBg():void {
for each (var image:XML in xml.BG..IMG) {
var loader:Loader = new Loader();
loader.load(new URLRequest(image.@url));
loader.addEventListener(Event.COMPLETE, positionBg);
addChild(loader);
}
}
private function positionBg(e:Event):void {
.....
switch (?????) {
case "bg_br.jpg":
loader.x=stage.stageWidth-loader.width;
loader.y= stage.stageHeight-loader.height;
break;
case "bg_bl.jpg":
loader.x=stage.stageWidth-loader.width;
loader.y= stage.stageHeight-loader.height;
break;
case "bg_tr.jpg":
loader.x=stage.stageWidth-loader.width;
loader.y= 0;
break;
}
......
}
Positioning Externally Loading External Jpegs
I have the external jpegs loading correctly, but in the upper left corner of the screen. I tried using this code (below) to position the externally loaded jpeg by placing this code in frame 1 of both the empty mc and also by trying to place this same code (below) in frame 1 of the host movie but it still loads in the upper left corner. does anyone have any suggestions on how to position these externally loaded jpegs?
positioning code I have tried:
this._x = 150; //x offset from top-left corner(0,0)...
this._y = 220; //y offset from top-left corner(0,0)...
Scrolling Image Slider-external SWF's: POSITIONING ON PAGE
Hi everyone.
It's my first day and as I was looking through the forums I noticed a lot of unanswered questions.
I sure hope someone can help me with this because I have been really struggling.
I created a image slider which extends a size dimension of 400 x 240. It works find in it's seperate .fla (i'm using cs3 professional series) but when I try and import the code to my main movie I have no way to position the viewer properly.
Currently, it is showing up on the bottom right hand side of the screen. It is pulling in the appropriate files and working properly, just not in the right spot.
Is there a code out there that I could throw in to define an x y geographical location?
I hope that makes sense. Thanks a lot!
Positioning Empty Movie Clip External Image Loader
Hello (again),
I am building a gallery for a photographer.
The setup: one large mc loader on mainstage (myLoader_mc). Several movie clip thumbnails contained in one large movie clip. You click on the thumbnail, large image loads into myLoader_mc. I am using a purchased component from extend studios for my transitions.
The problem: my jpgs are of different height and width. I want to keep using the same movie clip to load the images (myLoader_mc) but position the loader with different x and y coordinates for each loaded image so that it is centered on the stage. I am using the following script but the loader clip is stuck in the position defined by the first thumbnail. the script is in layer 1, frame 1 of the movie clip containing all of the thumbnail movie clips.
th1_mc.onRelease = function(){
_parent.myLoader_mc.loadMovie("/assets/family/1b.jpg");
myLoader_mc._x = 162;
myLoader_mc._y = 5;
}
th2_mc.onRelease = function(){
_parent.myLoader_mc.loadMovie("/assets/family/2b.jpg");
myLoader_mc._x = 282;
myLoader_mc._y = 5;
}
The image loaded by thumbnail 2 is stuck in position on thumbnail 1. Need to change this dynamically no matter which thumb is clicked.
Any help is appreciated and I hope I have explained this clearly enough. If you help me solve this, i will toast my next drink to you.
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 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 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!
|