Link to home
Start Free TrialLog in
Avatar of TCUBusiness09
TCUBusiness09

asked on

Repositioning a calendar (swf) within a flash website

One other question that I do have is now that I have loaded the calendar using:

on(release) {
loadMovie ("calendar8_01.swf", 1);
}

How do I position the new window where I want it within my flash site. It is loacated by default in the top left corner, but I am wanting it to be in the middle of the screen both horizontally and vertically. Is this possible?
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

it should like this:

on (release) {
      var mc = this._parent.createEmptyMovieClip('calendarHolder', 1);
      mc.loadMovie("calendar8_01.swf");
      mc._x = 50;
      mc._y = 50;

}
Avatar of TCUBusiness09
TCUBusiness09

ASKER

Thank you for your help! I will try this out tomorrow and get back to you with the results.
ASKER CERTIFIED SOLUTION
Avatar of blue-genie
blue-genie
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
aneeshchopra, you code seems to be loading up the calendar file, but it is not visible. Is it possibly on the wrong layer?
blue-genie, extrordinary work yet again. All I had to do was put your code in the on(release) handler and modify the position and it worked perfectly. You have been such a great help throughout this process. Thanks again!