Well there has been tons of code posted, doesnt look like you have tried much...outside of whats been done for you....
positioning is still a problem? ok.. do you want it to center or not?..yes or no?
these loaded 'sections'?
Printable View
Well there has been tons of code posted, doesnt look like you have tried much...outside of whats been done for you....
positioning is still a problem? ok.. do you want it to center or not?..yes or no?
these loaded 'sections'?
PLEASE don't tell me that. I have been fiddling exclusively with code...yours and other code...for about 4 days, in the same file. Problem is, I'm not well versed AT ALL with dynamically driven code. It is also the first time I am attempting the fullScreen thing, which I think is where its at, so to speak.
Therefore, the questions. I'm not twiddling my thumbs!
I have no idea where to place the new containers, or how to code the buttons. I have managed to unload that one clip from a button, but then, what about loading the new clip/content?
here:
http://www.dmstudios.net/bluej2_reSize.zip
this:
will do what yo have asked:PHP Code://-------------------// do not touch the code below (for now) //-------------------//
//start Stage re-size code
Stage.align = "TL";
Stage.scaleMode = "noScale";
// ---> Create a new listener object
var stageListener:Object = new Object();
// ---> Define the resize function...
stageListener.onResize = function() {
// ---> first, get the new dimensions of the stage....
var stageWidth:Number = Math.round(Stage.width);
var stageHeight:Number = Math.round(Stage.height);
trace("Stage size is now " + Stage.width + " by " + Stage.height);
// ---> now, set the footer BG w & h to the stage dimensions...
footerBG_mc._width = stageWidth;
footerBG_mc._x = 2;
footerBG_mc._y = stageHeight - 25;
// ---> now, set the footer links to the stage dimensions...
footerLinks_mc._x = (stageWidth / 2) - (footerLinks_mc._width / 2);
footerLinks_mc._y = stageHeight - 18;
// ---> now, set the background clip/image alignment to match stage...(always centered)
wallPaper_mc._x = (stageWidth / 2) - (wallPaper_mc._width / 2);
wallPaper_mc._y = (stageHeight / 2) - (wallPaper_mc._height / 2);
//external Holder positiong
externalContainer._x = (stageWidth / 2) - (externalContainer._width / 2);
externalContainer._y = (stageHeight / 2) - (externalContainer._height / 2);
};
// ---> Apply the listener...
Stage.addListener(stageListener);
//-------------------// do not touch the code above (for now) //-------------------//
//load my external content
this.createEmptyMovieClip("externalContainer", 5);
footerLinks_mc.swapDepths(6);
var xListener:Object = new Object();
xListener.onLoadInit = function(target_mc:MovieClip) {
//position itself correctly
trace("INIT FIRED");
target_mc._x = (Stage.width / 2) - (target_mc._width / 2);
target_mc._y = (Stage.height / 2) - (target_mc._height / 2);
target_mc.onPress = function() {
trace("NAME: " + this._name);
//externalContainer.unloadMovie();
};
};
var xLoader:MovieClipLoader = new MovieClipLoader();
xLoader.addListener(xListener);
//create function to load external .swf into containerClip.
function loadExternal(contentToLoad) {
xLoader.loadClip(contentToLoad, externalContainer);
}
footerLinks_mc.home_btn.onPress = function() {
loadExternal("home.swf");
};
footerLinks_mc.port_btn.onPress = function() {
loadExternal("events.swf");
};
// ---> Run the function...
loadExternal("initial.swf");
stageListener.onResize();
1.) make a FULLSCREEN .swf.. keeping certain things constrained to certain positions.. (i.e.: the footer/links will always be at the bottom, the BG images will always be centered no matter the screen res....)
2.) this will load an external.swf into a 'containerClip' and always keep it centered.. on stage...
3.) the links at the bottom will load a NEW .swf into the SAME container.. again..always keeping it centered on the stage..
:)
Is there anything missing?
Whispers...that's it. That is all I needed. You did it...I almost had a nervous breakdown...you saved the day...and, you made my day!
thankyouthankyouthankyou.
:)
bluej2 signing off.
in my footer you would have found/seen a link called fullScreen:
http://board.flashkit.com/board/show...ghlight=resize
Thanks whispers, sorry it took me so long to answer back but I had issues trying to log in.
After searching and searching I found the link you provider and put it to use. The only problem is that it won't go to fullscreen. I just have basic images in there just to do some testing before I start developing the whole thing.
Here is the .fla file I got everything working but the fullscreen. Any thoughts?
http://www.redpalmonline.com/TPGPR/TPGPR_Main.zip
Here is the link to the movie. Give it a sec I have not put a preloader in there yet.
http://www.redpalmonline.com/TPGPR/TPGPR_Main.html
Thanks for the help!!!! :thumbsup:
hmm.. I guess there could be some confusion.
fullscreen is meant in the terms of it will scale and adjust to the screen size/browser window.
this does NOT go fullscreen (like [F11] or something)..
you would have to add that.
also I use Flash 8..AS2
cant open your file.. what version is it? CS3?
Sorry, yes, I don't mean a true fullscreen. More like it takes on the whole size of the browser.
I did this site a while back that is fullbrowser but I can't get the nav to stick left. So I wont searching for another fullbrowser solution.
www.redpalmonline.com (again this is my old stuff :) )
So yes, I need it to go fullbrowser and not fullscreen. Any thoughts?
Thanks!!
are you editing the HTML file as well? 100% for height & width.. along with editing the body tags for 0 borders?
ie:
<body bgcolor="#ffffff" bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0">
Just added it and no change: http://www.redpalmonline.com/TPGPR/TPGPR_Main.html
hmmm...
dont forget the first step I said..
make all height & width values 100% not numbers..
I checked your source code..you didnt change it..
100% did the trick! THANKS BRUTHA!!!! Now off to developing!
Thanks again.
no problem.. just gotta read carefully it was mentioned in the other thread too i believe..
the little things can trip you up.. ;)
take care & good luck
My bad I was up till 1am and my brain was not all there when I was looking. Next time i'll get some rest before I research. LOL!
Thanks, have a great week!
Ok everything is coming along great but my mc is not loading in the center of the page.
When I have a mc that has no animation in it it seems to center nicely but when I add animation it makes it float.
So here is what I am trying to do:
1. Once the user clicks skip or enter go to frame label "start" (its working)
2. Then "mcStart" will then come in and handle all the page content. (it comes in)
3. "mcStart" will be center on the page (not working)
4. "mcNav" will handle the navigation in "mcStart" (not working)
Here is what it is doing now: http://www.thepresstigegrouppr.com/N...PGPR_Main.html
Here is the fla: http://www.thepresstigegrouppr.com/N...in_042710B.zip
Here is the live site which is what I have for now till I build the rest: http://www.thepresstigegrouppr.com
Hope this makes sense. Thank you so much for any help you can provide!
2. Then "mcStart" will then come in and handle all the page content. (it comes in)
3. "mcStart" will be center on the page (not working)
explain/define 'then it comes in'?
How? Is this an external .swf that you load in?
Is this a movie clip 'off stage' or something..that slides in?
How are you loading this movie?
we'll start there..
explain/define 'then it comes in'?
I want it to animate in and then animate out when the user clicks a btn
How? Is this an external .swf that you load in?
No its a internal mc from library.
Is this a movie clip 'off stage' or something..that slides in?
Its a mc that starts on stage but inside the mc there is an animation that brings the objects into view, center statge.
How are you loading this movie?
I am just dropping it from the library for now. Not calling in external swf's yet. Its a mc I created with in.
I would love to load into a target and load it externally but not sure how to make the navigation talk to the external swf. I want the external swf to animate in then animate out each time they select a nav item. I am sure there is a simple way but I am a bit rusty in flash I mostly work on CSS now LOL.
Thanks!!!!!!
Any thoughts, thanks for any help you can provide bro!
Whispers? Hope you have not given up on me. I am sure its a simple fix. I just need the internal movie clip to center and I am golden!
Thanks!