View Full Version : Coverting 1 SWF into many others
Danythedog
09-17-2008, 08:14 AM
The question is:
"how to do that"
Paul Ferrie
09-17-2008, 08:56 AM
What's the question?
Danythedog
09-17-2008, 09:16 AM
What's the question?
The question is:
"how to do that?"
Paul Ferrie
09-17-2008, 09:21 AM
Given that you have a bought a template there is a good chance you don't have and want have in the near future the knowledge to be able to split up a purchased template. I don't mean that to sound nasty. These templates are a pain the most of times never mind totally reworking one.
Without knowing the bigger picture of what it is your working on it's hard to advice in the right course of action.
i can tell you that just looking over your code posted. You would be looking to replace
//Ah you have removed your code from post hmm.....
Danythedog
09-17-2008, 02:01 PM
Well I have made a mistake with something, sorry for deleting, anyway here it is again.
//Here is the code for "Home":
onClipEvent (load) {
num = 1;
}
on (rollOver) {
if (_root.link<>num) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>num) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = num;
_root.play();
}
}
// and here is the code for "Photo gallery":
onClipEvent (load) {
num = 2;
}
on (rollOver) {
if (_root.link<>num) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>num) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = num;
_root.play();
}
}
Paul Ferrie
09-17-2008, 02:49 PM
you wuold be looking to change your onRelease to something like below.
on (release) {
if (_root.link<>num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
getUrl(_parent["item"+_root.link],"_self")
_root.link = num;
_root.play();
}
}
Though if your not really that confident with flash then i would forget what your doing all together.
Danythedog
09-17-2008, 09:08 PM
Hi,
on (release) {
if (_root.link<>num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
getUrl(_parent["item"+_root.link],"_self")
_root.link = num; _root.play(); } }
does not seem to change anything....
Paul Ferrie
09-17-2008, 09:17 PM
Hi,
on (release) {
if (_root.link<>num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
getUrl(_parent["item"+_root.link],"_self")
_root.link = num; _root.play(); } }
does not seem to change anything....
I was just giving an example of what could be done, i have no idea of the setup of the template nor how you plan to load the cur out versions.
Danythedog
09-17-2008, 09:50 PM
Would the original FLA help if only I could send it to you?
Paul Ferrie
09-18-2008, 12:46 AM
Would the original FLA help if only I could send it to you?
Not for me. I have my own troubles but maybe someone else will take a look if you pot the fla
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.