SendAndLoad Doesn't Work ?
I can not get cgi data sent to my LoadVars() object from the server.
I know the cgi program is properly sending out name value pairs surrounded by quotes and I also tried by not surrounding the data with quotes -- neither works
Here are my code lines ---- Can anyone tell me what I am doing wrong?
var myVars = new LoadVars(); var myResponse = new LoadVars();
myVars.name = "Gary"; myVars.last = "Jones"; myResponse.name="nofirst"; myResponse.last="nolast";
//The send method works fine - the CGI output goes to a new //browser window as name=value pairs "last=Jones&name=Gary" myVars.send("http://localhost/cgi-bin/cgiflash.exe", "GET");
//The sendAndLoad method doesn't work - the name value pairs //are not loaded into myResponse.name and myResponse.last myVars.sendAndLoad("http://localhost/cgi-bin/cgiflash.exe",myResponse, "GET");
trace (myVars.toString()); trace (myResponse.toString());
there is no data in the myResponse variables -- Why?
Ultrashock Forums > Flash > ActionScript
Posted on: 2003-01-18
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Why Doesn't SendAndLoad Work?
I'm making an application which talks to a database via ASP. The problem is that I need to add data to a nested table, which requires knowing the ID no. of the main table when I send the data.
Test runs with 'send' successfully sends data to the ASP file. A test run with 'load' loads variables from the ASP. But sendAndLoad does, as I far as I can tell, bugger all.
Is there anything special about sendAndLoad that I've missed?
SendAndLoad Works The First Time, Doesn't The Second
Alright, I have an input text field where you enter your name to enter a chat. I have the name put into the variable 'thing' and sent to join.php to write that 'name' has arrived, and close.php to be stored for when the user exits the page. Now everything's working but the 2nd sendAndLoad. I have tried just about everything I know to get it to work(Made it seperate, put it into dif frames/layers as a whole new script), but nothing seems to get it to load 'thing' to close.php. Can anyone help, or tell me what's wrong?
ActionScript Code:
on (release, keyPress "<Enter>") {
txt = new LoadVars();
txt.thing = name;
txt.sendAndLoad("join.php", txt, "POST");
txt.sendAndLoad("close.php", txt, "POST");
sends2 = name;
gotoAndStop(2);
}
SendAndLoad Doesn't Preserve New Lines
The user fills out a flash "send a postcard" with their name, email, destination and message. The flash file sends everything to a PHP page that writes everything to a database and then sends a postcard to the recipient.
My problem is that hard returns in the message are not being passed to the PHP page. Here is some code:
postcard_lv = new LoadVars();
result_lv = new LoadVars();
postcard_lv.message = obj.mcPostCard.messageTxt.text;
postcard_lv.sendAndLoad("http://www.the-url/index.php",result_lv,"POST")
I've been struggling with this for days. I even tried detecting the character code for a hard return in the message and replacing it with a '<br>' but the script locked my browser up. Any help would be greatly appreciated.
Trying To Get A Sendandload To Work With ASP
I can't see what I'm doing wrong with this, probablys something basic, I'm still new to some of this:
Please help!
submit.onPress = function() {
if (name.text != "" && descrip.text != "" && sdate.text != "" && padate.text != "" && number.text != "" && reqr.text != "" && text.text != "") {
myData.name = name.text;
myData.descrip = descrip.text;
myData.sdate = sdate.text;
myData.padate = padate.text;
myData.number = number.text;
myData.reqr = reqr.text;
myData.text = text.text;
myData.sendAndLoad("test.asp", myData, "POST");
}
};
myData = new LoadVars();
myData.onLoad = function() {
if (this.writing == "Ok") {
gotoAndStop(2);
status.text = "Submitted data was saved";
} else {
status.text = "Error in saving submitted data";
}
};
stop();
XML.sendAndLoad Did Not Work In Macintosh
I have problem to interact with Apache/Tomcat WebServer from Flash by using XML.sendAndLoad() when the swf running in IE5.1/MacOS X. It worked fine with IE5/WinDows.
Did anyone have met such a problem?
Bill
SendandLoad - Dont Work For IE?
I have the code below that sends a query to a PHP script every 5 seconds.
useing firefox I have absolutly no problem with this code.
But when I test it with IE I it returns "undefined" as values.
ALSO Im testing on a localhost.
I pray some one can help.
setInterval(getsv, 5000);
sendvars = new LoadVars();
receivevars = new LoadVars();
function getsv() {
sendvars.sendAndLoad("gets.php?ask_time=" + _root.ask_time ,receivevars);
}
receivevars.onLoad = function () {
// stuff.
}
[as1][loadVars] I Can't Get SendAndLoad To Work
When using the LoadVars object, how do you get the serverside response from a .asp script? I tried to use newVar.loadAndSend but that didn't seem to work at all.
I am posting variable to an ASP script and need to retrieve values back. Any ideas?
--xenite
SendAndLoad Over SSL Not Work In Firefox
I've been searching the net for a day on this and can't find anything.
Can someone help?
I am using the SendAndLoad function to send _post variables to a PHP script and then have variables sent back.
I then use the onHTTPStatus to check if the status was 200 (OK)
If not then i display a dialog saying the connection could not be made.
[ALL THIS IS WORKING FINE] and was working when i was testing the SWF on a standard HTTP connection.
But when i moved over to an SSL connection, FireFox can no longer get a connection to the file (well it does) it;s just that it always gets a Status Code of "0"
I Even tried removing everything from the requested file and just put a simple return variable in there and it still does not work.
It works in IE but not FireFox
So this basically eliminated problems with the PHP script.
Why won't the SendAndLoad function along with the onHTTPStatus function work in FireFox over an SSL connection?
Thanks in advance for the help.
Hard: Dynamic SendAndLoad To Work From Within A Class?
my class has this function:
the thing is, the variables i want to send with my loadVars are dynamic. I want to be able to send any variable i want to the PHP script o my sendForm has to be able to set a variable and then a value to the variable.
however, when i trace sendForm.myName i get undefined and obviously the variables arent getting sent to the script. any ideas?
Code:
public function setScript(path:String, variables:Array){
formBTN.onRelease=function(){
var sendForm: LoadVars = new LoadVars();
for(var i=0;i<variables.length;i++){
sendForm.variable = variables[i].getVariableName();
set(sendForm.variable, variables[i].getVariableValue());
}
sendForm.onLoad=function(success){
if(success){
variables[0].clearField();
_root.temp.text=sendForm.phoneVar;
}
};
sendForm.sendAndLoad(path,sendForm,"POST");
};
}
Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.
What's wrong with this??? I think it's something simple.
I've already tried:
Code:
this._lockroot = true;
I also tried writing the AS as:
Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...
I hope someone can help!
Download the: Source File
(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).
I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.
I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.
Preview: www.blaak.nl/flash/
This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).
I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.
I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.
Preview: www.blaak.nl/flash/
Smoothing Doesn't Work It Oughta Work
Hello!
I am trying to develope this website:
http://anarchy.primalinsanity.com/~villain/nma.rar
Its smoothing effect, however, has mysteriously disappeared. It is only enabled in authoring mode, not if I export the movie. I've tried everything to re-enable it:
1) Changed formats from JPG to PNG
2) Library > Bitmap Properties > Allow smoothing
3) File > Publish Settings > Smooth
But nothing seems to work
Thanks everyone,
Johann
New Instance Button Doesn't Work, No Apps Listed, But Apps Work
In my admin panel if I click on the New Instance button it doesn't do anything. I've seen other posts about this and they all end up being caused by people having no applications to load, but that's not the case here. My apps are installed and they work fine, but the new instance button doesn't list them and they don't show up in the applications list of the admin panel, even when they're running.
This has to be something pretty simple, but I'm not having any luck figuring it out. Any ideas?
Loader.close Doesn't Work In Flash But Does Work In Flash Player
When testing a movie in flash with simulate download the Loader.close() function doesn't seem to work when trying to cancel a load but it does work in a browser! You'll need to try to load a movie that has sound. The loader looks as if it stops but then the sound that's in the loaded movie will play, proving it hasn't stopped loading
add a button with instance name btnCancel
Attach Code
function onClickbtnCancel(e) {
// damn thing doesn't work in Flash but works online
ldr.close();
/* this stuff isn't even needed
ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, onCompleteHandler);
for (var i:uint=0; i < container.numChildren; i++) {
if (container.getChildAt(i) is DisplayObjectContainer && container.getChildAt(i).name == "movieclip loader") {
container.removeChildAt(i);
}
}
*/
}
btnCancel.addEventListener(MouseEvent.CLICK, onClickbtnCancel);
var container = new Sprite();
var ldr = new Loader();
ldr.name = "movieclip loader";
container.addChild(ldr);
var urlReq = new URLRequest("file.swf");
function onCompleteHandler(e) {
addChild(e.currentTarget.content);
}
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
ldr.load(urlReq);
stop();
//--------------------On another note. Anyone know why I can't add text format styles to List components?
import fl.managers.StyleManager;
// set style for all components such as the List
var tf = new TextFormat();
tf.color = 0x000000;
tf.font = "Verdana";
tf.size = 14;
//StyleManager.setStyle("textFormat", tf); // <- this works but that's not the point
StyleManager.setComponentStyle(List, "textFormat", tf); // this works fine for a TextArea, just not a List??
Edited: 07/11/2008 at 10:08:19 AM by Cine-Med
I Know This Should Work, But It Doesn't
in a game i'm making i've put this scrip in a movie clip:
onClipEvent (enterFrame) {
for (i=1; i<6; i += 1) {
if (this.hitTest(_root["shot"+i])) {
removeMovieClip (_root["shot"+i]);
this.play();
}
}
}
its just a for loop see if a shot hit the movie clip the shot is removed and the movie clip plays, the clip plays fine but the shot isn't removed (the shot is a duplicated movie clip)
i also tryed to remove the movie clip the shot hit (it was also duplicated) by after the explosion takes place it is removed with this script:
removeMovieClip (this);
but that doesn't work either. can any one help? or has my copy of flash lost the ability to use the "removeMovieClip" command?
With () -- Doesn't Seem To Work
Here is the structure:
movie Clip _level0.ColorBoxX.Highlight (where X is an integer)
and there is a button on the _level0.ColorBoxX
from the 'on (release)' action of a ColorBoxY I want to modify the _visibility of the Hightlight mc on ColorBoxX
so here is my with statement.
Note: _parent.currentColor = the X of the ColorBoxX
with ("_parent.ColorBox" + _parent.currentColor){
Highlight._visible = false;
}
I know that "_parent.ColorBox" + _parent.currentColor evaluates to the proper mc name via doing a trace but the mc visible doesn't go to false (i.e. the mc still shows up)
what am I doing wrong?
Still Doesn't Work
i want to load extra swf file to a defined location of my flash movie, I made an empty MC with instance name "location" and put it into location i want my extra swf to be at. my swf file outside named "introduction.swf", so i did as a friend told me:
on (release) {
loadMovieNum (introduction.swf, _root.location);
}
i put my main movie file and the extra file in the same folder,but it doesn't work, when i press the button , it just open another IE window with "http://introduction.swf/" in the address blank and get " The page cannot be displayed". So strange, could anybody tell me where is the mistake? Thanks!
Why Doesn't This Work?
I want to launch an .exe file from a flashmovie:
Why doesn't this work:
on (release) {
fscommand ("exec", "start.exe");
}
(I have the .exe application in the same directory as te my swf...I've tried it with an .exe projector (instead of a .swf) too...)
Can anybody help me ..please!!!
It Has To Work, But Doesn't...
hi,
I have a movie with two scenes.First scene has just one frame with lots of layers.And there is a mc on top layer which contains 200 frames in.I have 6 special frames in that 200 framed mc.When playhead goes any of them 6 times totally,I want the main movie go to next scene.
So what did I do:
I put an empty mc in 200 framed mc(call it mc A).and add that script to it;
onClipEvent (enterFrame) {
hit = 0;
}
then I add this a/s to empty mc in those special frames;
onClipEvent (enterFrame) {
_root.hit++;
if (_root.hit == 6) {
_root.gotoAndPlay(2, 1);
}
}
BUT IT DOESN'T WORK,what is wrong ,can anyone help me about it?You can offer some other way also.
Thanks for your time.
#%@&* Why - Doesn't - This - WORK ?
i have a chat room that works using php and flash5
note the "that works" bit of that last statement and replace it with "doesn't work". doesn't work that is if you load it in on a seperate level or target. (hummpph!!!)
i need, need, n-EEED! this to work on a seperate level.
why won't it???
tnx
Why It Doesn't WORK
Ok this script should giveme a progresive resize of the x and y Scales. Instead it resizes the movie instantly to 100 =(
onClipEvent (enterFrame) {
this.onRollOver = function() {
while (this._xscale<100) {
this._xscale += 1;
this._yscale += 1;
}
};
Still Doesn't Work
I NEED THE POPUP WINDOW TO "POPUP" IN THE CENTER OF THE SCREEN AND NOT THE FAR LEFT HAND CORNER.
Why Doesn't This Work?
i have this code in my main movie for a preloader that works just great...
onClipEvent (enterFrame) {
t = _root.getBytesTotal();
l = _root.getBytesLoaded();
percent = int ( (l/t)*100)+"% loaded";
if (percent=="100% loaded") {
tellTarget ("_root") {
gotoAndStop (5);
}
}
}
inside this movieclip is just a textfield that displays the percentage loaded. now, i am loading seperate swfs into this main movie into a movieclip called "loadClip1" using a slightly modified version of this script and the percentage loaded script will not display but the movie loads when it is complete. why can't i see the percentage loaded information???
onClipEvent (enterFrame) {
t = _root.loadClip1.getBytesTotal();
l = _root.loadClip1.getBytesLoaded();
percent = int ( (l/t)*100)+"% loaded";
if (percent=="100% loaded") {
tellTarget (this) {
gotoAndStop (5);
}
}
}
Why Doesn't This Work? Please Help
I have this script attached to a button. On the Main timeline it works fine:
-----------------------------
on (release) {
_root.next = "about";
if (current != "") {
if (next != current) {
this[current].play();
}
} else {
this[_root.next].play();
}
}
-----------------------------
But when I place this button INSIDE a Movieclip, it doesn't work. On the debug, it sets var 'next' equal to 'about' (another MC), but it never is able to get _root.next to play.
Does anyone know if I'm usoing the wrong syntax here?
Still Doesn't Work
If I export the file as a swf I still get it without spinning logo. What I do when I see it spinning is go to the menu under test movie and it spins but when I export as swf or avi it doesn't spin. any more suggestions.
Thanks
Jamie
Why Doesn't This Work ?
Hi, I'm just trying to dynamically generate my menu with an array but it doesn't seem to work:
myMenus = new Array("accessories","view", "print");
for (i=0; i<=myMenus.length; i++) {
_root.myMenus[i].onRollOver = function (){
trace("hello");
}
}
Can anyone tell me why assigning this rollover doesn't work?
My instances are named "accessories","view", "print"
Thanks
Php Doesn't Work
I have a Dynamic text box that is supposed to connect to a php page. It works when I run the Flash page from my computer (locally), but the same Flash page when running at our ISP (live) can't find the php. Does anyone have any ideas about why this would happen?
OS X Work But OS9 Doesn't
Please, someone help me!!!
I had a website publised by flash MX then it works perfect on OSX or
Explore5.2 but some script doesn't work at all when you see it by OS9 or Explore 5. I published them as flash 5 but maybe 5 doesn't support script of flash MX?
But then again if I publish it as flash 6, a lot of OS 9 users won't be able to see the site, right?
please take a look
@ www.kistudio.info
by both osx and os9.
portfolio page is the one the script doesn't work...
thanks,
tototo
Why Doesn't This Work? Please Help
I have a banner that will repeatedly flash across the screen in a loop of about 15 frames, and at the beginning of this loop, frame 77, I have this code: (This is the title screen for a corny little RPG thingy)
;
stop();
random = random(3);
if (random=0) {
banner = "Press ENTER to start";
gotoAndPlay(78);
}
if (random=1) {
banner = "Forget the princess, Get the gold!";
gotoAndPlay(78);
}
if (random=2) {
banner = "Level up by killing bad guys!";
gotoAndPlay(78);
}
if (random=3) {
banner = "What are you waiting for? START!!";
gotoAndPlay(78);
}
The problem is, the banner always assumes the value of the last condition, even if I had random=random(2), it would still be the value of "What are you waiting for? START!!"
My goal is to have the value of the banner be a different string every time it goes by the screen, but for it to be random.
And THEN, in frame 78, I have this code:
if (Key.isDown(key.ENTER)) {
gotoAndStop(108);
}
But THAT doesnt work, either.
It just keeps on looping with the same banner text.
And one more question:
How would I ultimately create a graphic that moves around the screen in response to directional key presses??
(I have Flash MX 6.0)
It Doesn't Work (?)
For everyone:
take a look at this and, please, tell me why the clipmovie "Produzione_struttura"
don't execute the action I gave to the 2 buttons inside...Please, tell me how to make it work . By the way, I use Mac.
Thanx in advance
(Big thanx MophoAl, u know why)
Why Doesn't This Work?
Code:
str_button = mainTag.childNodes[i].childNodes[1].firstChild;
_root["navbutton"+i].txt_button = str_button;
this works, but I want to change the text to uppercase - I tried
Code:
str_button = mainTag.childNodes[i].childNodes[1].firstChild;
_root["navbutton"+i].txt_button = str_button.toUpperCase();
but that didn't work - doing a trace on it gives "undefined"
Can anyone tell me what's wrong?
ps - I posted this first in the XML forum, but have found I tend to get quicker answers here - sorry for the crosspost!
Cheers
JennyJ
Why Doesn't It Work? :(
I'm making a scene which is started with stream sound; when the stream is over, I connected it with an 'even' Sound and a stop(); action. It worked properly, but when I tried to connect more another sound (with another stop(); action) it didn't stop the movie at all, it continued to play again (from the begining). I couldn't understand why...??
Explain:
Frame (1): Start sound A, stream mode, loop=0.
Frame (1+n): end stream (the A sound's gone out)
Frame (1+n+m): start B sound with 9999 loops ('Start' mode) + stop(); action.
Last frame: stop B sound (use 'Stop' mode) + start C sound ('Event' mode) with 0 loop + stop(); action.
>> The movie doesn't stop at any frame with stop(); action... (!!??!)
Please help me, I don't get them, why... 8-}
Why Doesn't This Work?
Code:
on (release) {
_root.score = _root.score+10;
}
on (release) {
if (_root.score==100) {
gotoAndStop(2);
}
}
i have a dynamic text box var=score in the same frame as the button with the above script..
before the button is pressed the text box reads _level0.score
after it is clicked it changes to NAN and remains there
also is there a way to change this so it works with a movie clip coming into contact with another mc, to add 10 points to the score box, and remove that mc from the stage?
Still Doesn't Work
I thought that might solve the problem but I have looked at other sites of mine that don't use the wmode transparent parameter and they are still just white empty spaces on NS 6.2. Also some sites I made with Flash 5 are fine. I have exported these movies from flash mx as flash 5 but that doesn't fix the problem. Any advice???
Why Doesn't This Work?
Code:
cursor.onLoad = function() {
Mouse.hide ();
startDrag(cursor,true);
}
???
doesn't hide mouse and doesn't drag Cursor
Why Doesn't This Work?
I took 1 of the tutorials and followed it just like it said and the preloader is suppose to come up right away, but it stays at a white screen until the whole thing is loaded then the preloader come up for like 1 second, please help me with this. http://mp7.zapto.org
click the weekly best song.
Why Doesn't This Work?
hey,
I followed this tutorial...
http://www.kirupa.com/developer/mx/p...transition.htm
I am getting close, but my "doors" don't close when i click a button, they start openning???
thx,
Baljinder
Why Doesn't This Work?
alright, just need a little help with a bit of action script...
making a movieclip play using if... and variables....
var clicks = 0;
click.onPress = function() {
clicks++;
trace(clicks);
};
if (clicks == 20) {
ab.gotoAndPlay("b");
}
any help would be appreciated
Thanks
Maikel
Why Doesn't This Work ?
I've made some little animated buttons - they are movie clips - but i can't make them take me anywhere , tried doing the _root. command in the line but still doesn't work
can someone tell me why
i know its probably just me missing something but its starting to annoy me now
Why Doesn't This Work ?
I have this file that when i try and load the swf into another movie online it just doesn't come in - if i remove the 2 first frames that are the preloaders it works fine - trouble is in the future some big files are going in there so i could do with a preloader.
Is there some piece of code in there that shouldn't be or have i missed something ?
Why Doesn't This Work?
mysiteclip is already on the stage.
a = 1;
newmysitesclip = "mysitesclip"+a;
mysitesclip.duplicateMovieClip(newmysitesclip, a);
newmysitesclip._y += 30;
newmysitesclip._x += 30;
Why Doesn't It Work?
basically my problem is this, i have this picture, and when you click it i need it to assign 2 variables: varX and varY, heres the code:
on (release) {
place = "images/1";
loadMovie(place+".jpg", "size");
varY = getProperty("/size", _height)*.273333;
varX = getProperty("/size", _width)*.16375;
gotoAndPlay(4);
}
-this code is on the thumbnail-
What's happening, is you click on a thumbnail of image 1, an offscreen movie "size" loads the full picture, and i'm trying to get the width and height of movie "size" and multiply it by those numbers, and set them to there according varX or varY. It just doesn't function like it should, and i feel like i'm missing something obvious....
This Doesn't Work
trying to make this work but it doesn't.
1. have the scroll work when .swf movie is loaded in movie clip (loader) on main movie page.
2. when clicking policy button from main movie... the swap depth command needs to only works ONCE. Right now, it swaps depths back and forth...one is the correct one, the second time is not. I need some kind of if command or something.
check it out guys, .fla posted below.
http://www.angelfire.com/games2/gamersglory/MX6.fla
http://www.angelfire.com/games2/gamersglory/POLICY.fla
this is in flash MX format. I have flash mx 2004 pro if needed to switch.
Why Doesn't This Work?
Hey guys, i'm working on a snakes and ladders board game and am struggling with the validation of data, can sum1 explain why this code is not working, it would be greatly appreciated, the frame (6) that the code links to is the error message, wheras the frame (4) is the next frame used in creating the game,. My intention is for the code to check a series of 10 numerical boxes, ensuring that no numbers are the same, and that all boxes are filled out:
on (release) {
if (F1 == F2) {
gotoAndStop(6);
b = 0;
for (i=1; i<=10; i++) {
b = "S"+i;
if (eval(a).value>0) {
b = b+1;
if (b == 10) {
gotoAndStop(4);
}
}
}
}
Anyone Know Why This Doesn't Work?
Hey,
I have this script on an EXIT button to take the user back to the screen they came from. This code worked in other parts of my site, but this one doesn't seem to want to work.
code: on (release) {
switch (ezview) {
case 2: // Tools_EZView_MainMenu
_root.Tools_EZView.gotoAndStop("EZVIEW-MAIN MENU");
break;
case 0: // Null
_root.gotoAndStop("MAIN SCREEN");
break;
}
}
Could it be that I don't have CASE 2 pointing to the correct place? It's a MC on the main timeline.
I also have the following on the frame this is coming from:
code: ezview = 2; // Tools_EZView_MainMenu
Thanks!!
Jeff
Should Work, But Doesn't...
Hey guys, this is very weird.
I have three movies, loaded in the following order:
main.swf (level 0)
curtain.swf (level 2)
home.swf (level 1)
Main is the main movie, like an empty stage with just all the things that always be there while thee use will be in the site.
The curtain.swf have a movie clip called (and instantiated) as mcCurtain. It's like a curtain that will be closed while home.swf is loading. When it is loaded, the curtain should open. To open it, I put in the very first frame of home.swf:
_level2._root.mcCurtain.gotoAndPlay("openit");
But Flash ignores the command.
I could stay making some mistake on my path, then I made the following test, in the same very first frame:
trace(_level2._root.mcCurtain._visible);
Then I received a "true" response, that is, the path is correct. But why it doesnt goes to the frame I want???
Thanks!
Why Doesn't This Work?
I've been staring at this for too long. Take a look at the file, I'm using MX2004 Pro. This is a portfolio website. When you click on the 'design' page, a sub navigation opens. If you click on any of the sub navigation buttons, everything works properly. But, if you go back to the main navigation buttons, you got trouble. If you're on the 'print page, and you click the 'about' page in the main navigation, the page displays properly. This is the only time it works right. If you're on the 'interaction', or 'motion' page and you click the 'about' page, it doesn't work properly (don't bother with the 'music' or contact' page, they're not done yet). I don't see a difference with the code I used for each page, so what's wrong? Any insight would be greatly appreciated. Thanks.
-tommy
|