This content has been marked as final. Show 14 replies
what are your publish settings?
Using Actionscript 2
These were the settings my colleague had.
I've also tried different combinations of these, but no difference.
flash player 8 in YOUR publish settings?
Are you using a relative or absolute path for the #include? What is it?
How are you passing the FLA back and forth? How are passing the AS back and forth?
If you both have copies of the AS file are you absolutely certain they are identical?
In response to kglad: Yes.
In response to Rothrock :
1) just using #include "my_tween.as" to call the file, which located in same folder as .fla file
2) 'passing the files back and forth'? between us? as a zip file over email.
3) yes. I've copied my colleague's .fla, .swf and .as files to a new folder and can run his .swf file successfully. however, if I open his .fla file and publish my own .swf file from it, my published swf file won't work properly.
And you've opened the AS file and it isn't corrupted or something?
Have you tried making a simple AS file and including it into your FLA? How about into just a brand new FLA? Just include something like trace("hello from the included file.");
Do you have different versions of the OS installed?
Yes, I've opened the AS file, and it seems ok. I've also had it sent to me a couple of times in case it got corrupted in transit.
I've also tried copying the script from the AS file and embedding it into the 'main' movie at the #include statement (and removing the #include statement) so it doesn't have to look for the AS file, but this hasn't helped.
I'll try making a different AS file with the trace statement you suggested, but I have other movies that call external AS statements, and they work.
We're both running XP Pro w/ SP2.
If you have tried pasting the text into the file and it still isn't working then there must be something else. I'm not really sure what else to try.
I might try publishing to a projector? Deleting the swf that was in the same folder before you try republishing the file? Just grasping at straws here.
post a link to your fla and .as file.
I too had same kind of problem. for example. i am including some 15 as files in a file. one of them is "init.as". if i change some thing in this init.as, it wont affect anything. for that i renamed the file. then it will tell "file not found" error. once again if u set back, it will work.
same like this u create new file there u include fresh as file for testing then add one by one. it may work
I've tried your suggestion to create a different AS file with a trace command in it. It works.
I also added the trace command to the 'proper' AS file, and it too works.
So, it looks like the AS file is being read correctly. But I still can't get the Alpha tween within the AS file to work on my computer.
I'll upload the files and get back to you.
Does the included file import any Flash classes? Are they in the same place on your machine?
Are there font issues?
Again, grasping here…
Thanks all for your help and feedback. I don't have a solution as yet, and as luck would have it the damn client has changed how they want it to run, so I don't need the alpha tweening anyhow. Typical!
I have to finish this project and can't spare the time at the moment to pursue this anomale any further. If I ever find a solution I'll post it back here.
Many thanks again.