Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Flash "forms" Behavior - Simple Main Frame Sim



I have a Flash object that is emulating a main frame application. I have the user tab to a particular spot, enter a value, and if the value is correct, I send the user to another frame in the object. If the value is not correct, the user is alerted and directed to correct the entered value.

The actionscript involved uses text objects which listen for values; once anything at all is entered in the target text area, the last of 4, the focus shifts to a hidden button. The button is supposed to respond to the user striking ENTER by testing the value of the text area and responding accordingly.

The problem: although the button receives the focus, it does not respond to the ENTER key. The code for the button and the text area are below (the text and the button are in the same layer).

Button code:

PHP Code:


on (release, keyPress "<Enter>") {
     // assign text entered to variable for testing
     newPathCEc = text4_CE26c_var;
     if (newPathCEc == "S") {
          //jump to next frame, frame 10 
          gotoAndStop(10);
     } else {
          loadMovieNum("../images/feedback_incorrect_daace26c.swf", 4);
     }




Code for textbox:

PHP Code:


stop();
//set focus on first text area
Selection.setFocus(text1_CE26c);
inputButton_CE26c._focusrect = false;
unloadMovieNum(4);
inputButton_CE26c._focusrect = false;

//prevent text in all but the last test region, allowing all to receive the tabbed cursor

text1_CE26c.restrict = " ^A-Z 0-9";
text2_CE26c.restrict = " ^A-Z 0-9";
text3_CE26c.restrict = " ^A-Z 0-9";
text4_CE26c.restrict = " A-Z";

text1_CE26c.tabIndex = 1;
text2_CE26c.tabIndex = 2;
text3_CE26c.tabIndex = 3;
text4_CE26c.tabIndex = 4;

//code to direct tabbing action so user moves through subsequent text areas

increment = 0;
keyListener1_CE26c = new Object();
Key.addListener(keyListener1_CE26c);
keyListener1_CE26c.onKeyDown = function() {
     a = Key.getCode();
     if (a == 40 || a == 9) {
          next = increment++;
          Selection.setFocus("text"+next+"_CE26c");
          //Selection.removeListener(textboxListener);
     }
};

// send focus to hidden button if the user types anything into the last text region
textListener4_CE26c = new Object();
text4_CE26c.addListener(textListener4_CE26c);

textListener4_CE26c.onChanged = function() {
     if (text4_CE26c.length == 1) {
          Selection.setFocus(inputButton_CE26c);
          //trace("I've changed");
          Selection.removeListener(textListener4_CE26c);
     }
}; 



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 05-27-2004, 02:43 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash Menu In Top Frame Link To Anchor In Main Frame?
I have created a flash movie to use as a manu system at the top of my page. I have 2 layers, top layer is for the flash menu, and the body layer for the text and tables.

I have anchor positions in my bodylayer. I can't seem to be able to make it go to the anchor position, it goes to the page but not the position.

Heres what I inputed:

Anchor Image = About

Flash Link = #About
Flash Target = _self

p.s. I have tried using just an image with the link to the anchor and it works fine.

Any suggestions, I'm at a lose here.

Thanks

Flash Forms And Simple If Else Condition
I created a Flash form for users to fill out. When the form is submitted they leave the movie. I want to return users back to a specific frame in the flash movie after the form has been submitted.

I have control over the redirect URL after the form submits and I can dynamically provide variables in an ASP file.

The variables print properly in a dynamic text box so I know the values are coming across.

I tried to solve my problem by pulling variables from an ASP file and then using those values to take the user to the thank you page or the primary content. If var0 = 1 then take them to the thank you page, else take them back to the primary content. The way I am doing it below doesn't work...

Any suggestions?


loadVariablesNum ("variables.asp", 0);
if (var0 = 1) {
gotoAndPlay (10);
stop ();
} else {
gotoAndPlay (5);
stop ();
}

Flash Forms And Simple If Else Condition
I created a Flash form for users to fill out. When the form is submitted they leave the movie. I want to return users back to a specific frame in the flash movie after the form has been submitted.

I have control over the redirect URL after the form submits and I can dynamically provide variables in an ASP file.

The variables print properly in a dynamic text box so I know the values are coming across.

I tried to solve my problem by pulling variables from an ASP file and then using those values to take the user to the thank you page or the primary content. If var0 = 1 then take them to the thank you page, else take them back to the primary content. The way I am doing it below doesn't work...

Any suggestions?


loadVariablesNum ("variables.asp", 0);
if (var0 = 1) {
gotoAndPlay (10);
stop ();
} else {
gotoAndPlay (5);
stop ();
}

Simple Forms Not Working On Flash 8?
Hello,

i'm trying to make a simple form, using the old but effective tutorials scattered around... I've developed forms successfuly in the past, but now the same procedures doesn't seem to work.. the strange thing is that the source files of the tutorials work, but my application doesn't; to be more precise, it works, but the mail i'm receiving back is blank, just the strings declared in the PHP file; tracing within flash, the loadVars object contains all the correct data, but somewhere in the road it gets lost. Does anybody knows the answer for this problem? I know almost nothing of PHP

Here's the code I've got (based upon a tutorial by CyanBlue)


ActionScript Code:
_global.sndMail = function(hasta) {
    var pqte = new LoadVars();
    for (i=1; i<=hasta; i++) {
        var nTemp = tsp["c"+i].ct.text;
        pqte[nTemp] = tsp["i"+i].text;
    }
    pqte.onLoad = function(ok) {
        if (ok) {
            trace("Email Sent!!!");
        } else {
            trace("Problem sending an Email!!!");
        }
    };
    pqte.sendAndLoad("form.php", pqte, "POST");
};

tracing unescape(pqte) yields this


PHP Code:



");

        }

    }

    else

    {

        echo("This script runs only in Flash!!!");

    }

?>

=&");

        }

        else

        {

            echo("=&result=2&<?php

    if ($_POST)

    {

        $mailTo = "berrios@instrumental.cl";

        $mailSubject = "[Contact] Website Contact from - (" . $_POST['NOMBRE'] . ")";

        

        $Header = "MIME-Version: 1.0
";

        $Header .= "Content-type: text/html; charset=iso-8859-1
";

        $Header .= "From: " . $_POST['E-MAIL'] . "
";

        

        $output = "<BR>";

        $output .= "De    : " . $_POST['NOMBRE'] . "<BR><BR>";

        $output .= "e-mail   : " . $_POST['E-MAIL'] . "<BR><BR>";

        $output .= "comentario : " . $_POST['comentario'] . "<BR><BR>";

        

        $output = nl2br($output);

        

        if (e-mail($mailTo, $mailSubject, stripslashes($output), $Header))

        {

            echo("&onLoad=[type Function]&COMENTARIO=HERE I WROTE MY COMMENT&EMPRESA=HERE I WROTE MY COMPANY NAME&E-MAIL=HERE I WROTE MY E-MAIL&NOMBRE=HERE I WROTE MY NAME
Email Sent!!!




The text is sent with all caps, so i tried to change some variables to all caps and others not for testing purposes... i didn't add the "company" field because the example php file had only three fields, wanted them to work before changing more things around...

Thanks in advance,

Sir Patroclo

Anyone Had Experience With Forms And Flash? Simple Problem I Think
hello friends,
i've created a flash form that im using to send four variables to a php script.. I am having some trouble sending the
variables to the script.. In fact, i cant get it to work at all.
I have created the file
http://members.optushome.com.au/panus/flash.swf
The drop down buttons are set in the movie mode which i think is correct, along with the submit button.
I looked up what action script I should use but found many different ones. I tested a couple of them out but they don't
seem to submit anything at all, the submit button isn't functioning. It's like the submit button isnt attaching itself
to the values of the drop down buttons, and then not submitting..

I tried using

On (Release)
Load Variables ("mailto:form.php", 1, vars=POST)
End On

I'm pretty new to flash and was hoping for a little help.

the flash file is located here if you want to have a look
http://members.optushome.com.au/panus/flash.fla

regards

-n

Undesired Frame Behavior
Hello,

I have a flash header on my page which includes navigation and a slideshow. I dont want the slideshow to restart each time a link is clicked, so I have tried using frames.

The problem is that the html frame gets its own scrollbar, and the flash header always stays on the top of the screen.

Is there a way to get both of my frames to scroll as one (but not each scrolling within its own frame). The flash header is 250 pixels tall, so, after scrolling a couple of times, I want the flash file to go off the top of the screen, showing only the html frame, but Flash must not reload anytime I change the html frame.

So, I am looking for one big vertical scrollbar that treats the two frames like they are glued at the edges.

Thanks

Simple Button Behavior
Hi All,
I feel this is such a simple issue yet I cannoth find anything on it. I do not understand why I cannot get a created button to behave like a component button with listeners. Due to the created button the size of the .fla file exceeds the forum limit so if you are interested in this please email me and I will forward it to you, about 750 kb. There is something I am missing.
Here is the simple code:

// create a listener object for the Submit button
// this is a component button
btnSubmitListener = new Object();
// register the submit button listener listen for the click events
btnSubmit.addEventListener("click",btnSubmitListen er);
btnSubmitListener.click = function(){
// user clicked the submit button

checkboxStatus.text = "Submit Button pressed";
}
//++++++++++++++++++++++++++++++++++++++++++++++++++ +++++
// create a listener object for the Trace button
// this is a created button
btnTraceListener = new Object();
// register the submit button listener listen for the click events
btnTrace.addEventListener("click",btnTraceListener );
btnTraceListener.click = function(){
// user clicked the submit button

checkboxStatus.text = "Trace button pressed";
}
//++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
// create a listener object for the Reset button
// this is a component button
btnResetListener = new Object();
// register the submit button listener listen for the click events
btnReset.addEventListener("click",btnResetListener );
btnResetListener.click = function(){
// user clicked the submit button

checkboxStatus.text = "Reset button pressed";
}

In my final application I guess I could place my code in the button action but everything else I am inputting is done with listeners and there are upgrades to come that will work better that way too. I have tried the Broadcast method but not been successful with that either. Any help would be greatly appreciated.
Russell

[CS3] Odd Behavior In Simple Photo Filmstrip
Hey all.

So I am definitely not competent with code in any significant way, and although I am confident that this code is even Action Script 2, I am not certain.

A client has requested that I make a simple rolling filmstrip that loops with pictures. For this I searched the Internet for hours looking for a tutorial or a downloadable Flash file that has something close to what I want. Surprisingly, amid the dozens of purchasable applications and such I stumbled across, it seemed that none had exactly what I was wanting, which seems simple.

Anyway, I was able finally to find something useful. It allowed me to do what I wanted fairly simply. However, there are two things that I cannot figure out.

The original "template" file was designed so that the filmstrip moves automatically, but when the cursor is hovered over the strip, the speed of the movement increases either way relative to how close to either horizontal edge the cursor is.

I went in and edited the code to turn that off. Now, the strip stops moving whenever the cursor is on the left side of the strip, and starts when it is on the right side. Also, the strip does not start automatically on most browsers I have viewed it on.

So, my question is, what's going on? I looked at the code for anything that looks relevant, and I can't figure it out.

The link to the page the strip is on is here: http://www.uccs.edu/~coe/daegu/index.html

The Action Script is posted below:

stop();

//Setup////////////////////////////////////////

//totalclips on stage - make sure in the properties panel they are named imgbox1,imgbox2,imgbox3,etc...
var totalClips = 6;

//to stop the clips from moving change to true;
var holdPosition = false;

//applies a max speed for the movie clips (false if no max speed)
var maxSpeed = .1;

///////////////////////////////////////////////////


//Defaults
var slideSpeed = 0.1;
var currentMousex = 0;
var clipBaseName = 'imgbox';
var w_clips = this[clipBaseName + '1']._width+2;
var totalWidth = (totalClips * w_clips);
var maxleft = imgbox1._x;
var maxright = (totalWidth/2);
//--

onEnterFrame = function(){
currentMousex = Math.floor(this._xmouse);
if(maxSpeed != false) currentMousex = (currentMousex >= maxSpeed)? maxSpeed : -maxSpeed;

//-----------------------------------------
if(!holdPosition){
for(i=0;i <= totalClips; i++){
var tmpObj = this[clipBaseName + i];
tmpObj._x = Math.floor(tmpObj._x-(currentMousex*slideSpeed));
if(tmpObj._x <= maxleft){tmpObj._x += totalWidth;}
if(tmpObj._x >= maxright){tmpObj._x -= totalWidth;}
}
}
}

I hope a guru is able to help out.

Thanks so much

Connecting Forms In A Movie Clip To SUBMIT Button On Main Stage
I have built a form in flash. Some input text fields exist on the stage and some exist within movie clips. The submit button exists on the main stage.

When submitted, the text fields on the stage are processed properly and email to where they need to be. The text fields that reside within a movie clip do not appear...The submit button cannot locate the input text fields when the are within a movie clip.

I am looking to:

1) Find a way to path the submit button so it finds all text fields

or

2) Find a way to send the variales entered into text boxes inside the movie clip to the main stage where the submit button can find them


thanks in advance

brett

Flash Button Wont Link To Main Frame Set
i am making a web page and i made a nav bar using flash. i have my nave bar in one frame set, and i want each button to link to the main frameset of the web page and not open to self or blank page. i am having trouble getting the link to go, is there a setting or a html code out there that i need to add..or is there something i need to add in the link field of my text when making the button and giving the web page html.

Flash 8 Xml Rotator.swf And Main Timeline Frame Looping
Hi Y'all -

I have a purchased swf file that randomly rotates images (90 or them) located in an external xml file. It works fine in it's own swf file.

The author suggested dragging the movie clip to the library and to the stage. I did that in frame one, on its own layer of my main swf file, followed by empty keyframes for all other frames in the main swf. That works too, only showing the rotating logos in frame one.

However, the stop(); actions on each of the other frames are ignored, so that going to frame two on the main timeline starts with the proper content and then continues on to the next frame and the next. Without the rotator, buttons control the action and I have no problem.

This link shows the problem -

.http://uniconexed.org/bigflash/unicon-05-17-08-newlook.swf

I've tried attaching the swf file and unloading it, using "create empty movie clip" (my current attempt outlined in the code), and about a half dozen other ways to no avail.

I think I need to kill "play movie" when someone leaves frame one (or enters any other frame) even though not all of the 90 images have displayed. It could be some depth issue, or lock root, I dunno.

To restate, one of two things happen -

1) the scene continues to display the files randomly over top of the content in the other frames (wrong) but the navigation buttons work (correct)

or

2) the random images do not display in the other frames (correct) but the navigation stops at each frame do not work (wrong) - the swf file scrolls through each of the frames, ignoring the stop(); at the top of each frame.

Any help that leads to success would be greatly appreciated.

Dan







Attach Code

//placed in first frame of main timeline -

stop();
this.createEmptyMovieClip("myContent", this.getNextHighestDepth());
myContent._x = 20;
myContent._y = 165;

contentLoader.loadClip("banner_rotator.swf", myContent);

myContent._lockroot = true;

//placed in each of the other frames in the Actions layer of main timeline -

unloadMovie(myContent);

// action script in the banner_rotator.swf file -

//in the first frame (which is loaded only once) we load the image data and setup from an external XML file
stop ();
var imageData:XML = new XML ();
imageData.ignoreWhite = true;
imageData.load ("imageData.xml");
imageData.onLoad = function (success)
{
if (success) {
trace("Ucitao XML!");
imageTime = parseInt (this.firstChild.firstChild.firstChild) * 1000;
numberOfImages = parseInt (this.firstChild.childNodes[1].firstChild);
isRandom=this.firstChild.attributes["isRandom"];
showNames=this.firstChild.childNodes[2].attributes["displayNames"];

var numberSequence:Array = new Array ();
if(isRandom=="true"){
//creating a random sequence in which the images will display

while (numberSequence.length < numberOfImages)
{
newRandomNumber = random (numberOfImages);
//we compare each new number with the existing ones to make sure that it doesnt allready exist
for (var i = 0; i <= numberSequence.length; i++) {
if (newRandomNumber != numberSequence[i]) {
allreadyThere = false;
} else {
allreadyThere = true;
break;
}
}
//if the random value isnt allready there, we add it to the array
if (!allreadyThere) {
numberSequence.push (newRandomNumber);
}
}}else{
for(var i = 0; i <numberOfImages; i++){
numberSequence.push(i);
}

}
trace(numberSequence);
}
//we create three arrays, for the Advertisers, paths to images to be loaded, and URL's of their websites
advertisers = new Array ();
imagePaths=new Array();
linkURL=new Array();
//we add members to arrays in the same random sequence we allready created
for(var i=0; i<numberOfImages; i++){

advertisers.push(this.firstChild.childNodes[2].childNodes[numberSequence[i]].firstChild.firstChild.toString());
imagePaths.push(this.firstChild.childNodes[2].childNodes[numberSequence[i]].childNodes[2].firstChild);
linkURL.push(this.firstChild.childNodes[2].childNodes[numberSequence[i]].childNodes[1].firstChild);
}
//ok, we are set to go :)
play();


};
//oh, and we set the imageCounter to zero. This counter will count each image to see if we need to start over
imageCounter=0;

//here is the xml -

<?xml version="1.0" encoding="iso-8859-1

// xml set-up that pulls in the 90 images -
<?xml version="1.0" encoding="iso-8859-1"?>
<rotator isRandom="true">
<imageTime>6</imageTime>
<numberOfAdvertisers>4</numberOfAdvertisers>
<advertisers displayNames="true">

<advertiser>
<name>Ashridge</name>
<url>http://www.ashridge.org.uk/</url>
<imagePath>c:phpdevwwwhtdocsuniconexed.orghttpdocsimageslogosashridge-logo-r.png</imagePath>
</advertiser>
</advertisers>

























Edited: 05/21/2008 at 05:06:13 AM by bigtuner_1

Ok Why Does My Flash Links Which Fade Not Target The Main Frame ?
i have created another link and it fades but when i view it in the frames page it fades out then a pop up window comes up but it should not work like that i want it for the user to click on the link to make it work in the frame so how can i fix this ?

click this link : to see what i mean : http://www11.brinkster.com/ad2/trial.html

A Simple Contrast On Main Flash(swf) Decompiler/extractors
As a flash designer, I have encountered times that I need to get elements from inside a shockwave flash, while before , it is impossible to get those resources from a finished flash,…now ,thanks to these flash decompilers, we can easily extract almost every elements(even the codes!) and re-design them into our own ?

Pls note: this is only my personal experience and does not stand for any official declaration.

(I)Objects:

(1)Flash Decompiler 2.0(Eltima) http://www.eltima.com/products/flashdecompiler/

(2)SWF Decompiler 2005(Sothink) http://www.sothink.com/flashdecompiler/

(3)Action Script Viewer 4.0(Manitu) http://www.buraks.com/asv/

(4)Imperator FLA 2.0 (AVE?) http://www.ave-imperator.com/index.php


(II)Contrast:

Application Size: (1), (2) >2.5MB
(3), (4) <1MB

Export FLA: (1), (2), (4)

Action Script 2.0 Analyse: (2), (3)

Support Flash Components: (2), (3), (4)

Speed of SWF Analyse: (2)>(3)>(1)>(4)

Speed of FLA Exportation: (2)>(1)>(3)>(4)

User-friendly Interface: (1)>(2)>(4)>(3)

Resource Exportation: similar, but (4)do not support single element exportation

Etc.: (2)has built-in IE Add-in Flash Catcher


(III)Conclusion:
As this is only my opinion, I won’t give much comments on all these four SWs, right now I’m using the Sothink one?

It’s my pleasure if you e-mail me for further discussion on these SWs.

Starwars83@gmail.com

A Simple Contrast On Main Flash(swf) Decompiler/extractors
As a flash designer, I have encountered times that I need to get elements from inside a shockwave flash, while before , it is impossible to get those resources from a finished flash,…now ,thanks to these flash decompilers, we can easily extract almost every elements(even the codes!) and re-design them into our own ?

Pls note: this is only my personal experience and does not stand for any official declaration.

(I)Objects:

(1)Flash Decompiler 2.0(Eltima) http://www.eltima.com/products/flashdecompiler/

(2)SWF Decompiler 2005(Sothink) http://www.sothink.com/flashdecompiler/

(3)Action Script Viewer 4.0(Manitu) http://www.buraks.com/asv/

(4)Imperator FLA 2.0 (AVE?) http://www.ave-imperator.com/index.php


(II)Contrast:

Application Size: (1), (2) >2.5MB
(3), (4) <1MB

Export FLA: (1), (2), (4)

Action Script 2.0 Analyse: (2), (3)

Support Flash Components: (2), (3), (4)

Speed of SWF Analyse: (2)>(3)>(1)>(4)

Speed of FLA Exportation: (2)>(1)>(3)>(4)

User-friendly Interface: (1)>(2)>(4)>(3)

Resource Exportation: similar, but (4)do not support single element exportation

Etc.: (2)has built-in IE Add-in Flash Catcher


(III)Conclusion:
As this is only my opinion, I won’t give much comments on all these four SWs, right now I’m using the Sothink one?

It’s my pleasure if you e-mail me for further discussion on these SWs.

Starwars83@gmail.com

How To Load URL In The Main Html Frame When Clicked On My Flash Buttons?
Dear friends....

I've created frameset template in dreamweaver... (top and main frame) AT the top html frame, I've imported flash file(swf) where i created my navigation buttons... when i click on my flash button(in this case: "contacts") I want the contacts.htm to load at the bottom html frame... can anyone help me on this??

wat is the script should i write in flash MX?



Thanks alot!!

FLV/Mp3 Cue Points For Accessing Frame Labels On The Main Timeline In Flash 8
Hello,

In Flash MX2004, creating cue points for syncing locations on flv and mp3 files to locations on the main timeline included:
1)Dragging a media component onto the stage
2)Entering file path, frame label name, and time code information in the component inspector
3)Creating the frame label names on the main timeline, and
4)Enabling the Media Labeled Frame Cue Point Navigation Behavior

Flash 8 documentation details a considerably different process of creating cue points. While it discusses how to create cue points in the flv, I have not been able to locate how to enable linking locations in flv and mp3 files with frame labels on the man timeline. It appears that there would need to be ActionScript necessary to accomplish this that is not available in the docs.

Please advise what ActionScript/process would enable this function.

Thank you!
James
kozi235@lni.wa.gov

How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.

Can anyone help, or give me a link?

Thanks
Dennis







Attach Code

//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};

Should Be Easy. How Do I Get A Frame In A Movie To Go&play A Frame In Main Timeline?
Hi,

I trying to get a frame in a movie clip (that's 1 level down the hierachy) to gotoAndPlay a frame that's on the main timeline that's labeled "Fade1".

How do I do it?

Any help is greatly appreciated.

I'm using Flash 5.

Dan

Cant Get Frame In Main Timeline To Play Frame In Movie Clip
Hi all,

Ok, I want a section of a movieclip to play up until a certain frame on the main, or _root timeline. Then I want a different section of the same movie clip to play. Now I have the movie clip all set up all fine and dandy, yet I cant get it to the frames or 'section' it is playing when it reaches the apropriate frame. I have the following code on the _root timeline frame.


Code:
gotoAndPlay("stop");
(I have a frame label "stop" where it should be) Is this the right code I should be using? It has worked in the past, but it has been in between an on (something) event/action (not quite sure of the correct termanology there)

Please help.

Flash Movie Menu Bar To Link To Anchor Text In Main Frame?
I want to use my flash menu bar in the top frame to link to text in the mainbody frame.

I'm able to link to the mainbody frame from flash using:

Link = bodyindex.htm
Target = mainFrame

I tried using:
Link = bodyindex.htm#About

but it just loads the page and doesn't go to the anchor position in that page.

Any help?

Thanks



Exact Same Action Scripting And Frame Setup Totally Different Behavior
Hey Folks
I've got four flv files I need to play I put the first on in with no issues. Set up the frames and the scripting w/out difficulty. On a rollover it goes to a still when you press the button it goes to the flv. I went to set up the others the same way but for two of the videos you have to HOLD the button down in order to watch the movie. It's driving me crazy! I just put in another one with now issues but I still can't get the other two to work. stop frames are all the same, action scripting is identical.... i just cant seem to fix these two. any recommendations for something to check?

Exact Same Action Scripting And Frame Setup Totally Different Behavior
Hey Folks
I've got four flv files I need to play I put the first on in with no issues. Set up the frames and the scripting w/out difficulty. On a rollover it goes to a still when you press the button it goes to the flv. I went to set up the others the same way but for two of the videos you have to HOLD the button down in order to watch the movie. It's driving me crazy! I just put in another one with now issues but I still can't get the other two to work. stop frames are all the same, action scripting is identical.... i just cant seem to fix these two. any recommendations for something to check?

Loading A Movie From A Movie On Main Timeline, To A Specific Frame On Main Time Line
I need help loading a movie from a button in a movie on the main timeline. To a specific frame on the main timeline.
i.e. I have a navigation movie, in it is a load of buttons. I want to load separate movies to a blank movie on a specific frame on the main timeline.
I guess I am having target problems, I can load the movie in the main timeline, but not the frame i want it or the the blank movie in that frame.

? About Jumping From A Frame In A Clip To A Frame In The Main Scene
Hello. I have a question. I have a question about jumping from a frame in a movie clip to a frame in the main scene. In my main scene, I have a "stop" action in frame one. In this frame, I have a movie clip that is 100 frames long. On the 100th frame of that movie clip, I want to jump to the 5th frame of the main scene. This is the actionscript that I tried, but it didn't work:

this.gotoAndPlay(5)
//This is the code that I placed in the 100th frame of my movie clip, but it doesn't seem to work.

What am I doing incorrectly? Thanks in advance for any advice! (I am using Flash 5)

How Do I Make A Frame-by-frame Character To Put Into My Main Movie?
Hi I am trying to create an animation to put into my main animation. Eg) a moving character who moves across the main movies page. I've drawn all the keyframes for it by hand, in a new movie window, but what do i do next to get it into my other movie as a moving character?

Simple Forms
Can anyone help? I am working my way through the simple form tutorial, and I am stuck on the section where I attach script to the send button. The last two commands, "End if" and "End on" dont appear to there to select. I am using Flash 5, has this changed in the update from 4 to 5?
If anyone could help it would be fantastic.

Thanks
Alan

Simple Forms
I am only a beginner so i dont know, but can i make a form in flash that users can type into and then send it directly to my email account with out the use of C.G.I
Obviously components would come into it somewhere.

This Should Be A Simple On (more On Forms...)
Flash MX 2004 Professional (latest update applied)

I'm sure all you gurus out there are absolutely sick of reading flash form questions ... probably just as sick as I am of reading tutorials that I just can't get to work.

I am redesigning my new site completely in Flash (with an html-based sidekick site for dialup users). On the html site, I can easily get the small form to work - not so much luck in flash. I need to be able to pass form data (just a text input and combo box along with 2 static 'variables') to a php script and I simply cannot get it to work. This is a simple domain registration form. Nothing fancy, no validation ... The required elements (per html) are:


<form method="post" action="https://domain.com/billing/order/orderwiz.php">

// -------my two static entries that need to be passed------- \
<input type="hidden" name="v" value="1">
<input type="hidden" name="submit_domain" value="register">

// -------domain name from user input (text input)------- \
<input type="text" name="domain" value="">

// -------my combo box options------- \
<select name="tld_extension">
<option value="com">.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="info">.info</option>
<option value="biz">.biz</option>
<option value="us">.us</option>
</select>

<input type="submit" name="submit" value="Go!">
</form>


I would like this to send the user and his variables to the php page. I would post what I have tried, but I would like to see a fresh start on this instead of trying to fix my poorly written code. Find the format that I have been working with below (all previous AS stripped out) (please keep reponses simple and stupid - kinda the way I feel right now ) Your help is greatly appreciated

Download layout fla here.

Converting Html Forms To Flash Forms?
i'm in the middle of creating a website for a record company. i've been doing it all in flash, so when they asked me to set up a newsletter facility, i decided it would be in flash. here's my problem:

the host i'm using has a newsletter add/remove facility in html. i've tried converting this into flash but it just wont work! the html form code provided by the hoist (which does work) is below:

<form action='http://cp.cyberstation.co.uk/list.cgi' method='post'>
<input type='hidden' name='list' value='Newsletter'/>
<input type='hidden' name='redirect-success' value='http://www.mickhayglaziers.co.uk/complete.html'/>
<b>Our Mailing List</b><br/>
<input type='text' name='email'/><br/>
<input class='radio' type='radio' name='action' value='add' checked='checked'/>Subscribe
<input class='radio' type='radio' name='action' value='delete'/>Unsubscribe<br/>
<input type='submit' value='Do it Now!'/>
</form>

The actionscript i used on the submit button when converted is:

on (release) {
list="Newsletter";
action="add";
loadVariablesNum ("http://cp.cyberstation.co.uk/list.cgi", "0", "Post");

}

The button is also, along with the list and action variables, on the main timeline!

can anyone offer any insight to where i'm going wrong?

Link From Frame In MC To Frame In Main Movie?
I am making a website. The entire thing is flash, meaning inside the flash website a link to the next page will go to a new frame with different content instead of opening a new .html page. One big movie. I have a movie clip as a rollout menu on the header of the flash movie website. I need to know if it is possible to make one of the rollout menu items link to a frame of the website and not a frame in the rollout movie clip itself. If so...how please. if I just put a frame number in the actionscript it stays in the rollout menu movie clip. I have tried giving the desired frame a label but that didn't do anything.

any help is greatly appreciated.

Multi Frame Forms
Hello,

I have a flash file that creates a quiz .xml file in the end.

On each of frames 10,20,30,40 etc. I have form text input fields that the user types in information. They are all named as instances.

I have a 'save' button that is across all the frames.

When I hit save it gets processed correctly but only the data from the frame I am on gets passed to the cold fusion page. The rest come accorss blank. Can I encompass all the form fields in my movie and have the data passed to the .cfm page? Here is some of my code and it works fine(just one frame is represented of data, but again the data is all blank after processing.

function onSubmit() {
// Initialize form variables:
formData = new LoadVars();
formData.dd_questions = dd_questions.getValue();
formData.CID = cid;
formData.courseid = courseid;

formData.type1 = "";
formData.answer1 = "";
formData.question1 = "";
formData.answer1_1 = "";
formData.answer1_2 = "";
formData.answer1_3 = "";
formData.answer1_4 = "";
formData.answer1_1_feedback = "";
formData.answer1_2_feedback = "";
formData.answer1_3_feedback = "";
formData.answer1_4_feedback = "";

formData.type1 = type1.getValue();
formData.answer1 = answer1.getValue();
formData.question1 = questions1.getValue();
formData.answer1_1 = answer1_1.getValue();
formData.answer1_2 = answer1_2.getValue();
formData.answer1_3 = answer1_3.getValue();
formData.answer1_4 = answer1_4.getValue();
formData.answer1_1_feedback = answer1_1_feedback.getValue();
formData.answer1_2_feedback = answer1_2_feedback.getValue();
formData.answer1_3_feedback = answer1_3_feedback.getValue();
formData.answer1_4_feedback = answer1_4_feedback.getValue();


// Create LoadVars instance to receive server variables:
replyData = new LoadVars();
// And define a callback handler for that instance:
replyData.onLoad = handleReply;
// Initialize replyData variables:
replyData.type1 = "";




// Submit the data and tell the user.
// Change the URL to point to the CFM or ASP file on your
// web server.
formData.sendAndLoad("showchapter1six2.cfm", replyData);
message_txt.text = "Saving Data, please wait...";

function handleReply(success) {
if(success == true) {
message_txt.text = "Data has been saved!";

} else {
message_txt.text = "An Error has occured. Please click save again!";
}
}







}

Multi-frame Forms
I have a need to create and publish a multi-frame form. It will use mostly Dynamic text boxes and checkboxes. I have all of the instances named but now need a starting point to get it to POST to a PHP script. Any pointers greatly appreciated.

Simple Forms To Email
I am trying to create a simple web page with 2 input text fields at the bottom for users to input a company name and donation amount. I have these created in flash mx2004 version 7 but I don't know what actions to attach to them to have the information users input transferred to an email address. Any help would be appreciated.

Shannon

Looking For A Tutorial On Simple Forms
I am looking for a tutorial that will introduce me to setting up a simple feedback form in Flash MX and that hopefully covers sending the gathered user input to FormMail.

The tutorials I have seen so far, seem to concentrate on radio buttons, combo boxes, check boxes, styling, etc., as opposed to text boxes and textareas and how to send results somewhere.

Any suggestions?

A Few Questions In Regards To Forms: Simple
Stop animation repeating:

-if i want to fade my form using an alpha of 0% starting out then 10 frames later fade to 100% alpha, then how do i make it so it doesnt repeat itself? instead do it once as the form is loaded.

text component trouble:

i have text fields im using as input text fields. a tutorial that i learned from told me to start out by making a button and place the text in the up frame. this way when i drag the text button onto the frame i can fade it and do other things as its a symbol..

Problem

doing this i end up with TWO instance names, one on the button symbol and one when i drag it onto the scene. which one am i using? also in the code am i making my own variable or am i using the one i specified in the button scene

i put my questions down below

PHP Code:





function onSubmit()
{

    // Initialize form variables:
    formData = new LoadVars();    

    //ok so is this a variable i make up now or am i using the one i gave to the text box button?
    formData.name = "";



    // Get textbox info:
    //is txtname the instance name of the textbox? if so which instance name? the one on the scene or the button
    formData.name  = txtname.getValue(); 








last question:

do i put the code in the frame/scene rather than the actualy submit button?

Simple Question About Referencing Forms
I have what I hope is a simple question. Could someone please provide a primer on how to reference forms (and things contained in forms) in AS2? Specifically, I am having trouble referencing a form loaded into another form. Here is my form structure:

Application
Form1
Form2

Loaded into Form1 is an swf containing another set of forms, with this structure:

NewApplication
NewForm1
NewForm2


So, how do I reference NewForm1 from Application and vice versa?

Thanks.

-Brian

Peculiar Movie Clip Behavior (or Button Behavior?)
Hmm. Weird. My movie clip menu behaves in a peculiar way.

My menu is built like a movie clip, and the buttons inside have regular button behavior. The menu rolls down on roll over and back up on roll out, and the buttons have the regular roll over behavior as well. All this works fine. Now comes the peculiar.

All buttons have the same code, which links to a different frame on the mainstage – except one button that link to an external URL. This button is the only one that works. Okay, so I know as much as there’s a spook lose in link land – I just can’t nail him. When I click the buttons, the menu just jumps up – not rolls up as it should, but jumps like it’s been reset. It doesn’t reset the entire scene, though, because another movie in the same frame keeps on playing.
Please help….!

Following code handles the movie clip from the mainstage:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe<this._totalframes) {
nextFrame();
}
} else {
if (this._currentframe>1) {
prevFrame();
}
}
}

Following code is placed in the first frame of the only button that works:

this.btn_butik.onRelease = function() {
getURL("myurl", "_blank");
};

And following is placed in the first frame of the other buttons:

this.btn_inspiration.onRelease = function () {
gotoAndPlay("scene_main", "page_inspiration");
}

I haven’t used the onClipEvent before this, so I might be missing something there.

Hope you can help

Wierd Behavior With SortOn (not That Numeric Sort Behavior)
NOTE: I have read a bunch of posts about sorting on numbers with the sortOn function and having 10 come before 2 but this isnt one of those posts.

I have an array of Objects that I created from an xml document.. I'm trying to output all the names in alphabetical order but i'm getting some wierd behavior.. it works for the most part until the end.. it then gives me a few "out of order" names.

when i switch around the order of the xml file it gives me different results after the sort...

Any help would be greatly appreciated!!!


(ive attached a folder with the .fla, .xml and .as files)
------------------------
the .fla code is:
------------------------
myXML = new XML();
myXML.ignoreWhite = true;
var myClassInstance = new MyClass();
myXML.onLoad = function(success) {
myClassInstance.populateArray(myXML);
};
myXML.load("people.xml");

------------------------
the .as code is:
-------------------------
class MyClass {
var peopleArray:Array = new Array();
public function MyClass() {
}
private function populateArray(_xmlData):Void {
var i:Number;
for (i=0; i<_xmlData.firstChild.childNodes.length; i++) {
peopleArray[i] = new Object();
peopleArray[i].id = parseInt(_xmlData.firstChild.childNodes[i].attributes.id);
peopleArray[i].personName = _xmlData.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
}
sortAndOutput();
}
public function sortAndOutput() {
var sortedPeopleArray:Array = peopleArray;
sortedPeopleArray.sortOn("personName", Array.DESCENDING);
var i:Number;
for (i in sortedPeopleArray) {
trace(sortedPeopleArray[i].personName);
}
}
}

-------------------------
.xml (excperpt from the file)
------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<people>
<person id="3">
<person_name>Donna</person_name>
</person>
<person id="4">
<person_name>Lisa</person_name>
</person>
<person id="5">
<person_name>John</person_name>
</person>
<person id="6">
<person_name>Lara</person_name>
</person>
..... more rows....
</people>

Linking Flash Buttons In A "layer" In Dreamweaver To The Main Frame Of A Frameset
Hi all!

I'm experiencing some problems with a site I am making.

I have a frameset and in the top frame, I have a flash navigation bar. The swf of the nav bar is in a layer in Dreamweaver 4 (a layer being those rectangular boxes so whatever is within them can be moved anywhere on that frame). I want the buttons within the swf to open the page the user selects in the main frame. What is happening at the moment is that all of the pages that the user wants to open are opening in a new window.

In Flash, I have opened up my nav bar up and made the link targets of the buttons to go to mainFrame, but despite this it still won't work.

Is there something I have to add in the action script or any HTML which I have to insert?

I would be most grateful to anybody who responds. Thank you very much.

Take care,

Mark

Probably Simple: Get Flash To End On Specifc Frame After Looping.
Newbie to FLASH with Simple Question:


www.zimbadesigns.com/clients/mmc/

I'm making a set of banners for my boss's website.

He wants the last frame of the banners to be different from the first frame. He also wants them to loop 3 times and then end on this specific frame. The problem is that he doesn't want the first frame to be the same as the last frame.

How can I get flash to finish a one frame after it plays the loop three times. I was able to find this code to control the loop:

if(++count > 2){
stop();
}

I have it in the last frame. I just need the banner to end on a frame that is not shown in the animation. I've been busting my head against a wall trying to figure this out. I'm hoping it's easy for someone here.

Go To The Main Frame?
HOw Can I Go Back to the Main Frame from a targeted movie?

The Problem is that I have two Scene And the first one have some target movies and I whant to go to the second one but I cant.

Some one PLease help me, Thanks.

Referencing Main Frame Via AS
I am using a set of Flash buttons in a frame set. Does anyone know how to call a new page in the main frame using the get URL command? have tried the _self, _blank etc switches, but none of them seem to open the page in the main target frame. ???

Go To Next Frame On Main Timeline From Mc
hi people

i'm inside a mc and it's just finished playing. now i want the playhead to go to the next frame on the main timeline and play on

can anyone help me?

cheers

Go To Frame On Main Scene
when a move clip goes to a certain frame how can i mke the main scene go to the 5 frame

thanks

Main FLA FRAME RATE
Hows it going yall?
I have a question regarding frame rates. I have always done all of my work at 12 fps, and have always been in awe of sites that have super crisp, punchy animations. I recently was looking at a web template store and saw a template that had the animative quality my sites lack. I bit the bullet and purchased the template so that I could disect it and see what the deal was. The thing was playing at 50 fps!!! I just finished a small site and punched my frame rate up to 40 fps and it seems to play nicely. Now here comes the big question, I am currently starting a much larger project(lots of bitmaps) and am worried about what attitude to take on the frame rates, do I go high or low?
Thanks for any replies and sorry to take your time,
Kambiz :D

Specify A Frame Destination From A Main Mc
Hello, I dont know how to do that

I have a main mc that calls an external mc, the buttons that call that external mc are a image thumbnails, so I would like to sepcify each button a different destination inside the external mc.

I guess I would also need a kind of condition like, if the external mc is loaded then go to frame X, if not continue loading....

Please help!!!

Thanx in advance

Creating A Simple Flash Movie With Poster Frame And Play/Pause Buttons
I have the .flv file and now I want to create a video player with play/pause buttons nad a poster frame.

I posted this over at the Adobe forums yesterday, but haven't had any response so I thought I would try here.

It's been over a year since I played with Flash last, and I have completely forgotten everything I learned.

I have a .flv file which I want to play on my website. It should display a poster frame when the page load, and not autoplay the movie. It should have the play button I made in photoshop sitting on top of the poster frame. When pressed, the movie should start playing and the button should be shifted for the pause button I made in PS (it should work just like the play/pause button in iTunes). When the movie has finished playing, it should jump back to the poster frame.

I have tried using the flvplayback component and also played around with just embedding the flv directly and inserting a play and pause button from the common library, but I can't seem to get it to work. With the flvplayback component I have managed most of it apart from using my own buttons and getting the poster frame to work (which apparently has to be done with Action script).

As I said, I know nearly nothing about this and it might just be a problem of me not knowing what terms to put into Google.

Any help/links appreciated.

Loading Links In The Main Frame.
I'm having a problem getting my navigation panel to load the links in the main frame. Right now I've got it opening a whole new window. I have the frames named topframe, leftframe, and mainframe. I need to get it so when you click on the link only the one page opens in the mainframe window.

I'll give you the link to check it out.

http://www.vrazelspolkaband.com/emailus.html

Only the E-mail Us link on the navigation panel is working because I am just testing it. I want so when you click on that, the page in the mainframe now opens again in the mainframe. So basically the same thing.

Targetting A Frame On The Main Timeline
Normally, I'd just use _root.gotAndStop(16) to target that frame on the main timeline but I have to publish this file in Flash 4 format. What would be the older code that would do this? Haven't worked in 4 for so long and have comepletely forgotten this.

Copyright © 2005-08 www.BigResource.com, All rights reserved