buddynelly
08-07-2009, 08:38 AM
hi to everyone,im a newbe in flash,but it seems im missing something.i have 4 swf files with their respective actionscripts and xml files all in their folders, i already embedded the first file into my index.html .i place the swf file and its actionscript(main.as) /xml(images.xml) files into my index.html folder and it worked.the Other flash folders have files also named main.as or news.xml for example,so i can,t place them into my index.html file becuase they would overwrite the already existing files with same name
.When i try to rename them so i can place all in my index.html folder,they don,t function anymore.i read somewhere here that i have to change
the public function of my main.as file if i want to change its name,i did,
For example,
public class Main extends MovieClip and
public function Main()
if you rename the file: Main2.as you must rename also:
public class Main2 extends MovieClip and
public function Main2()
but got errors from flash cs4.Can someone help me out how i can rename actionscript files to avoid conflicting names before placing them in my index folder?or maybe how to correctly link to the folder in which the are originally placed?i tried relative and absolute paths,but when i call my index.html file in firefox,only the frames show.when i go back to the folders where i placed my flash files and click on the swf files,they play .so how can i lonk my index file to this folders properly?im using dreamweaver cs4 and did the normal insert media.the only alternative i have is to put the files directly into my root folder (index,html folder)but as i mentioned above,i already got flash files there with thesame name
thanks for any help
.When i try to rename them so i can place all in my index.html folder,they don,t function anymore.i read somewhere here that i have to change
the public function of my main.as file if i want to change its name,i did,
For example,
public class Main extends MovieClip and
public function Main()
if you rename the file: Main2.as you must rename also:
public class Main2 extends MovieClip and
public function Main2()
but got errors from flash cs4.Can someone help me out how i can rename actionscript files to avoid conflicting names before placing them in my index folder?or maybe how to correctly link to the folder in which the are originally placed?i tried relative and absolute paths,but when i call my index.html file in firefox,only the frames show.when i go back to the folders where i placed my flash files and click on the swf files,they play .so how can i lonk my index file to this folders properly?im using dreamweaver cs4 and did the normal insert media.the only alternative i have is to put the files directly into my root folder (index,html folder)but as i mentioned above,i already got flash files there with thesame name
thanks for any help