If anyone is familiar with actionscript/flash, please help me!
i uploaded a site (http://retro-supremacy.freehomepage.com/txv/index.html)
I cannot get any of the text to show up. The text file is uploaded just as it is in the actionscript. Here is the actionscript code...
System.useCodePage=true;
loadVarsText = new LoadVars();
// assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
// trace("done loading");
// Now that we know the data is loaded,
// set the text content of the Text Field
// with the instance name "scroller" equal to the
// contents of the variable
_global.sitename=loadVarsText.sitename;
_global.address=loadVarsText.address;
_global.button1=loadVarsText.button_name1;
_global.button2=loadVarsText.button_name2;
_global.button3=loadVarsText.button_name3;
_global.button4=loadVarsText.button_name4;
_global.button5=loadVarsText.button_name5;
_global.button6=loadVarsText.button_name6;
_global.content1=loadVarsText.content1;
_global.content2=loadVarsText.content2;
_global.content3=loadVarsText.content3;
_global.content4=loadVarsText.content4;
_global.content5=loadVarsText.content5;
_global.content6=loadVarsText.content6;
_global.copyright=loadVarsText.copyright;
} else {
_global.sitename="Truth x Vision";
_global.address="YOURSITE.COM";
_global.button_name1="a";
_global.button_name2="BUTTON2";
_global.button_name3="BUTTON3";
_global.button_name4="BUTTON4";
_global.button_name5="BUTTON5";
_global.content1="content1";
_global.content2="content2";
_global.content3="content3";
_global.content4="content4";
_global.content5="content5";
_global.copyright="COPYRIGHT YOURSITE.COM ALL RIGHTS RESERVED.";
}
gotoAndStop(3);
};
loadVarsText.load("web_site_text.txt");
stop();
ActionScript Help!
- raum
- Posts: 3944
- Joined: Sun Jul 24, 2005 10:51 am
well, for one:
a certain line should read
QUOTEtrace("done loading");
you have
QUOTE// trace("done loading");
that "//" in the beginning will cause the compiler to pass through the line without executing.
a certain line should read
QUOTEtrace("done loading");
you have
QUOTE// trace("done loading");
that "//" in the beginning will cause the compiler to pass through the line without executing.
BBcode: | |
Hide post links |
- AYHJA
- 392
- Posts: 37990
- Joined: Fri Sep 17, 2004 2:25 pm
- Location: Washington, D.C.
- Contact:
You know, I was thinking that same thing, that certain parts of the script looked commented out, but I also figured anyone writing or working w/scripts would know that, so I didn't say it, lol...
BBcode: | |
Hide post links |
- raum
- Posts: 3944
- Joined: Sun Jul 24, 2005 10:51 am
QUOTE(AYHJA @ Jan 24 2007, 12:21 PM) You know, I was thinking that same thing, that certain parts of the script looked commented out, but I also figured anyone writing or working w/scripts would know that, so I didn't say it, lol...
Well, the code has more issues than that, being poorly structured from the ground up. it also looks like some parts of it were either omitted or incompletely cut. The passthrough mentions "scroller" which never shows up in the code, and half of the variables are undefined and only have makeshift global references, when you should structure a class for these as they majorly define the static experience of your coded interactivity.
Aemeth, You need to structure this code, with outlines and some high level flowcharts, or give up on Flash and use Dreamweaver. Then, just embed your flash presentation. If you are just making a mock-up, go for Dreamweaver. It is better to build a site, easier to find solid templates, and some come with space for some embedded flash content. Peg your layout, ask for imput, and use that to later release a flash site and update of the old Dreamweaver for those that abhor flash sites.
...nothing is accomplished by just pasting code together;
Exercise knowledge and meter out the power it gives you.
http://www.adobe.com/devnet/flash/artic ... tices.html
Well, the code has more issues than that, being poorly structured from the ground up. it also looks like some parts of it were either omitted or incompletely cut. The passthrough mentions "scroller" which never shows up in the code, and half of the variables are undefined and only have makeshift global references, when you should structure a class for these as they majorly define the static experience of your coded interactivity.
Aemeth, You need to structure this code, with outlines and some high level flowcharts, or give up on Flash and use Dreamweaver. Then, just embed your flash presentation. If you are just making a mock-up, go for Dreamweaver. It is better to build a site, easier to find solid templates, and some come with space for some embedded flash content. Peg your layout, ask for imput, and use that to later release a flash site and update of the old Dreamweaver for those that abhor flash sites.
...nothing is accomplished by just pasting code together;
Exercise knowledge and meter out the power it gives you.
http://www.adobe.com/devnet/flash/artic ... tices.html
BBcode: | |
Hide post links |
-
- Posts: 1280
- Joined: Fri Jul 29, 2005 1:37 am
Man I agree with you completely, but I mean it when I say I really don't have time to fuck with it right now. I just need a basic site up. I will try that, thanks for the help!
oh and raum, I want one area that you don't know something about /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
oh and raum, I want one area that you don't know something about /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
BBcode: | |
Hide post links |
-
- Posts: 1280
- Joined: Fri Jul 29, 2005 1:37 am
Umm, I changed that part of the code and it didn't work. The text still doesnt show up. Any other ideas??? Please guys I am desparate!! /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
BBcode: | |
Hide post links |
- AYHJA
- 392
- Posts: 37990
- Joined: Fri Sep 17, 2004 2:25 pm
- Location: Washington, D.C.
- Contact:
Me personally, I would rework the script, strip down every part of it until I found the parts that worked, and then go through and reread the elements...Its kinda hard to help; I'm still not very sure on what you're trying to do...Maybe you should make a .phps so we can see the complete source...
BBcode: | |
Hide post links |
-
- Posts: 1280
- Joined: Fri Jul 29, 2005 1:37 am
I don't even know actionscript man...I know html and that's about it...I am really lost here...Any specific ideas on what the problem would be? I can send you and anyone else all the files if it would help...Let me know, this means a TON to me and I really wanna get it going!!!
BBcode: | |
Hide post links |
- raum
- Posts: 3944
- Joined: Sun Jul 24, 2005 10:51 am
QUOTE(Aemeth @ Jan 31 2007, 01:42 PM) I don't even know actionscript man...I know html and that's about it...I am really lost here...Any specific ideas on what the problem would be? I can send you and anyone else all the files if it would help...Let me know, this means a TON to me and I really wanna get it going!!!
Ok, the problem is you don't know Actionscript, and you have an incomplete collage of pieces of script that are poorly written.
If you actually put here what you are trying to do, I will send you a link to a reference that will help you accomplish what you are trying to do. and if that is what you are trying to do, than I might help you fix the script you try to write on it.
I would advise Macromedia's "Training from the source" books. they are excellent resources.
Ok, the problem is you don't know Actionscript, and you have an incomplete collage of pieces of script that are poorly written.
If you actually put here what you are trying to do, I will send you a link to a reference that will help you accomplish what you are trying to do. and if that is what you are trying to do, than I might help you fix the script you try to write on it.
I would advise Macromedia's "Training from the source" books. they are excellent resources.
BBcode: | |
Hide post links |
-
- Posts: 1280
- Joined: Fri Jul 29, 2005 1:37 am
This website is the start of what I am called to do in this world. It is the most important thing in my life and it is driving me crazy not being able to get it to work. I have conference champs coming up, spring term is starting and I am on overload, and I am debating getting into a relationship...I just don't know if I wanna try to learn flash...I just need to get the text to work on this site. If you want, I can send you all the files, just give me a place to send 'em. Thanks.
BBcode: | |
Hide post links |