Skip to main content
Participating Frequently
July 20, 2006
Question

Publishing as Flash 6 versus Flash 7 or 8

  • July 20, 2006
  • 3 replies
  • 703 views
Ok I have a great slideshow that uses an external XML file, but we've converted the XML file to write on the fly using a .cfm page... Whoever helps me with this will get a great working version of this but I need help making it work if I publish it as Flash 7 or 8. Should I copy and paste code into this thread or would somebody be interested in helping me off the forum by letting me email the .fla to them? I am more of a cold fusion programmer but know enough actionScript to add/modify a few things... I just can't determine what is the problem with this. Any takers? Please and thank you in advance.
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
July 22, 2006
change the variable "data" to something else like dataVar. i don't know if that will resolve the issue, but data is a flash keyword and it's not a good idea to use it to mean something else.
WebhelioAuthor
Participating Frequently
July 24, 2006
That helped changing the parameter data to something unique, but there is something more do you have any other ideas?
kglad
Community Expert
Community Expert
July 20, 2006
no, all the built-in functions and objects are stilll supported. even code that's no longer supported generates an error message and is automatically updated by flash.

the only two things i've seen that cause problems are the uninitialized variable(s) and typos that in 7 and 8 that now reference different objects.
WebhelioAuthor
Participating Frequently
July 20, 2006
do you see anything in this code?

//movie prototype
MovieClip.prototype.alpha = function(vel, to)
{
this.vel = vel;
this.to = to;
this.alpha_init = this._alpha;

this.onEnterFrame = function() {
updateAfterEvent();
if (this.to != undefined && this.vel != undefined) {
if (this.to > this.alpha_init) { //if 100 is greater than alpha_init
if (this._alpha <= 100) {
this._alpha += this.vel;
} else {
this.onEnterFrame = null;
}
} else {
if (this._alpha > this.to) {
this._alpha -= this.vel;
} else {
this.onEnterFrame = null;
}
}
} else {
}
};
};
WebhelioAuthor
Participating Frequently
July 20, 2006
kglad - I cannot find where the problem is I've been staring at this for hours now. Trying something here and there, but not sure what is working and what isn't working.. I posted a portion of the code, and the rest of the code is here if you would be so kind as to take a scan of it to see anything pops out at you. I appreciate it.


kglad
Community Expert
Community Expert
July 20, 2006
you can check it yourself. the most likely problems are a variable (or variables) that were never initialized and then later incremented or decremented and objects that contain typos (like myMC instead of mymc) which allowed in flash 6, but not thereafter.
WebhelioAuthor
Participating Frequently
July 20, 2006
kglad-
Awesome I will check that, I wasn't sure if there was a function I am using that won't work or something too. Thanks for your help.