View Full Version : was wondering..
niksan8787
03-02-2009, 01:15 AM
Hello,
I was wondering if someone could help me out.
Here is the deal. I have a sub menu say black box on the bottom of the page. The content is on the top part. After clicking on a button from that sub menu the box expands and pushes all the content up. Any advices on which way to approach this is the most efficient one?
Many thanks!
Niksan.
Medyman
03-02-2009, 03:16 AM
Is this a full Flash site? Can you post a link to your site so we can see what exactly you're talking about? Your questions are much better answered in context.
niksan8787
03-02-2009, 12:52 PM
hei Medyman,
It seems that I have fixed the problem my self. It's just that I was stressed yesterday and I couldn't think much.. well thanks anyways!
I have another question (much easier i hope). How can I make a button which switches my flash website to full screen mode?
thanks!
niksan.
Medyman
03-02-2009, 03:34 PM
This article (http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode_02.html) is a good walkthrough of Flash's full screen capabilities in AS2 and AS3.
niksan8787
03-02-2009, 07:12 PM
hei medyman,
I checked the thread and I read it. The problem with the example these is that it give u the option for full screen once u right click on the movie clip.
How can I make it by clicking on an existing button on the time line?
The other question is how can I make the rescaling as a movie clip? not like u just click and it goes full screen.
thanks!
niksan8787
03-02-2009, 07:45 PM
http://s3.envato.com/files/16249/index.html
this is exactly what i need.. the problem is that they sell it and at the moment i dont have any money on my credit card...
is there any hope that someone knows how to do this?
Medyman
03-03-2009, 12:03 AM
It shows both ways, actually. Reread the article. It's all there.
I also just found this article (http://julian.empiregn.com/2007/2/22/How-to-create-true-fullscreen-movies-with-Flash). Perhaps, it'll be easier to follow.
niksan8787
03-03-2009, 12:23 AM
I managed to do it like the second article u sent me.
Is it too difficult to make one like the one i sent - rescaling with an ease the elements of the page?
Medyman
03-03-2009, 06:58 PM
No, it's not too difficult. You would have to listen for the stage to resize and then respond accordingly.
Take a look at Lee Brimelow's "Full Browser Flash" tutorial on gotoandlearn.com for some help with that.
niksan8787
03-04-2009, 11:44 AM
hi medyman,
thank you very much for the link! it looks very helpful but unfortunately what i need is something sligtly different.
I will try to explain better this time..
I have my flash movie clip. I managed to place a button to go in full screen mode and I also managed to rescale it the full screen mode.
here is my code for the button:
on(press)
{
fscommand("fullscreen", "true");
fscommand("allowscale", "true");
}
The only thing i cannot figure out how to do is to make this rescaling as a smooth ease animation just like the one i sent earlyer in the article?
Can you help me?
niksan.
Medyman
03-04-2009, 07:13 PM
Again, I'll point you back to the tutorial. I understand that it's not 100% what you're trying to do but the code to do your effect and the code Lee uses is identical.
Basically, the code that he demonstrates listens for the stage's size to change. When it does, it recalculates the values needed.
From there, you can use any of the tweening engines to create your tween. Lee also has some tutorials on tweening if you need help with that.
I'm sorry that I keep pointing you towards tutorials instead of directly answering your questions but your questions are very vague. I understand what you're trying to emulate but there are tens of variables that would depend on your particular application.
niksan8787
03-06-2009, 08:40 PM
hello,
thanks for the tutorials. in a way they helped me. I managed to do this:
Stage.scaleMode = "noScale";
var stageListener = new Object ();
//
stageListener.onResize = function () {
resizeBg ();
};
Stage.addListener (stageListener);
//
function resizeBg () {
// box in bottom-left corner
var mc = _root.box0;
var xEnd = 0 - ((Stage.width - 1450) / 2) + 1024;
var yEnd = ((Stage.height - 852) / 2) + 800;
mc.moveTween (mc._x,xEnd,mc._y,yEnd,12);
//
var mc = _root.box1;
var xEnd = 0 - (Stage.width - x._width / 2) + x._width
var yEnd = mc._height - (Stage.height - 800) / 2;
mc.moveTween (mc._x,xEnd,mc._y,yEnd,12);
}
Where box0 is exactly where I want it - in the bottom left corner of the screen. The box1, on the other hand, is supposed to be in the center of the page.
Can you help me with that? Hope my question is specific enough.
thanks!
niksan8787
03-22-2009, 11:17 AM
hello medyman.. what happened?
niksan8787
04-25-2009, 11:35 PM
can someone check if they can help me ?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.