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








Loading Dynamic Text Breaks Formmail Forms [renamed]


This matter is something I haven't been able to solve for long and now I'm really desperate to find out an answer.
Here's a link to a very simple zip file (as example) containing the conflictive fla and other files, for those of you who may want to have a look at it.

TO SIMPLIFY THINGS:
It seems that whenever I use a couple of AS instructions to load some Dynamic text from a text file, Forms which are based in formmail, stop working (no matter if these forms are made of dynamic or static text). Why??

INTO MORE DETAILS:
In the attached fla example file here, I've simplified things very much by just leaving 2 Forms (one made with Dynamic text and another one without any dynamic text on it).
Very peculiar, if in frame 1 I call the variables from the text file:

ActionScript Code:
webcontent= "File.txt"loadVariablesNum (webcontent, 0);

the 2 Forms stop working properly: The static one doesn't even seem to submit data and the dynamic one, it seems data has been sent but data is never received.
As soon as I delete these 2 lines of AS, they work properly again (although of course, no words can be seen in the Form made with dynamic text).

Both submit buttons contain the following AS:

ActionScript Code:
on (release) {        subject = "Customer Form from your Web";        recipient = "info@mydomain.com";        loadVariables ("http://www.mydomain/cgi-bin/formmail.pl", "", "POST");        _root.Form.gotoAndStop ("Thanks");}

So...I don't have the least idea of what's going on with this all.
Perhaps any of you could explain what's wrong with such a simple thing like this and how to avoid this strange behaviour.

Thank you very much!




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-30-2004, 12:24 PM


View Complete Forum Thread with Replies

Sponsored Links:

Loading Dynamic Text Breaks Formmail Forms [renamed]
This matter is something I haven't been able to solve for long and now I'm really desperate to find out an answer.
Here's a link to a very simple zip file (as example) containing the conflictive fla and other files, for those of you who may want to have a look at it.

TO SIMPLIFY THINGS:
It seems that whenever I use a couple of AS instructions to load some Dynamic text from a text file, Forms which are based in formmail, stop working (no matter if these forms are made of dynamic or static text). Why??

INTO MORE DETAILS:
In the attached fla example file here, I've simplified things very much by just leaving 2 Forms (one made with Dynamic text and another one without any dynamic text on it).
Very peculiar, if in frame 1 I call the variables from the text file:

ActionScript Code:
webcontent= "File.txt"loadVariablesNum (webcontent, 0);

the 2 Forms stop working properly: The static one doesn't even seem to submit data and the dynamic one, it seems data has been sent but data is never received.
As soon as I delete these 2 lines of AS, they work properly again (although of course, no words can be seen in the Form made with dynamic text).

Both submit buttons contain the following AS:

ActionScript Code:
on (release) {        subject = "Customer Form from your Web";        recipient = "info@mydomain.com";        loadVariables ("http://www.mydomain/cgi-bin/formmail.pl", "", "POST");        _root.Form.gotoAndStop ("Thanks");}

So...I don't have the least idea of what's going on with this all.
Perhaps any of you could explain what's wrong with such a simple thing like this and how to avoid this strange behaviour.

Thank you very much!

View Replies !    View Related
Formmail Forms & Dynamic Text (I'm Puzzled?)
Hi experienced users!
Well, I'm creating a website for a friend which it's being made using Dynamic Texts (he wants different switchable languages).
Problems come when submitting the Form... I've used the same Form model (formmail) for other websites which did not use any Dynamic Text and they worked without problems.
The exact problem is that the submitted Form is not received (don't think it's even sent) to the specified email address. However, if the same website does not contain any dynamic text, then the form works properly and the query is received at my mailbox.
Has anybody experienced a similar situation?? I'm completely lost because I can't understand the reason for this behaviour, the only thing I know for sure is that the problem is variable related.
Any idea will be welcome and highly appreciated.
Cheers!
Manare

View Replies !    View Related
Formmail Forms & Dynamic Text (I'm Puzzled?)
Hi experienced users!
Well, I'm creating a website for a friend which it's being made using Dynamic Texts (he wants different switchable languages).
Problems come when submitting the Form... I've used the same Form model (formmail) for other websites which did not use any Dynamic Text and they worked without problems.
The exact problem is that the submitted Form is not received (don't think it's even sent) to the specified email address. However, if the same website does not contain any dynamic text, then the form works properly and the query is received at my mailbox.
Has anybody experienced a similar situation?? I'm completely lost because I can't understand the reason for this behaviour, the only thing I know for sure is that the problem is variable related.
Any idea will be welcome and highly appreciated.
Cheers!
Manare

View Replies !    View Related
Formmail Forms & Dynamic Text (I'm Puzzled?)
Hi experienced users!
Well, I'm creating a website for a friend which it's being made using Dynamic Texts (he wants different switchable languages).
Problems come when submitting the Form... I've used the same Form model (formmail) for other websites which did not use any Dynamic Text and they worked without problems.
The exact problem is that the submitted Form is not received (don't think it's even sent) to the specified email address. However, if the same website does not contain any dynamic text, then the form works properly and the query is received at my mailbox.
Has anybody experienced a similar situation?? I'm completely lost because I can't understand the reason for this behaviour, the only thing I know for sure is that the problem is variable related.
Any idea will be welcome and highly appreciated.
Cheers!
Manare

View Replies !    View Related
Adding Line Breaks And Paragraph Breaks In Dynamic Text - Best Method
I'm using dynamic text and wondering what is the best way (heck, any way) to mark line breaks or paragraph breaks. I'm curious about what Flash MX AS 1.0 is capable of/ supports. I have read a little about HTML enabbling and then using HTML tags, which is probably a good solution. Just wondering if there is something else, or if that is supported by AS 1.0 at all.

I have read a few threads on special characters (SC), including Moock's site, but line breaking doesn't seem to be part of SC.

And, I've read this, but it looks like it is for Action Script 2.0:
http://www.actionscript.org/forums/s...ght=line+break

Does anyone know off hand if AS1 supports CSS, or was that new in AS2.

-Thanks,
AB.

I hope everyone is not on holiday.

View Replies !    View Related
Forms And FormMail.pl
I wanted to make a form in Flash and followed the tutorial ( http://www.flashkit.com/tutorials/Dy...15/index.shtml )........but it no worky....


using this for my send button:

On (Release)
Load Variables ("http://www.mydomain.com/cgi-bin/myform.cgi", 1, vars=POST)
End On

is this just for flash4?

thanks

View Replies !    View Related
Sending Forms In Flash With FormMail
Hey guys, i have a question. i'm trying to make a feature for my website where a visitor can sign up for a mailing list. i have a form on my site else where (done in HTML) and it uses the server-side script FormMail to process and deliver the form. I was wondering if there was any 'easy' way for me to use this same script from flash for this feature.

if you'd like to take a look at the feature itsself, the URL is www.thegreenlightgroup.com/mailinglist.swf (if it comes up the size of the screen, just know it's not actually that large on the page).

thanks for the help.

View Replies !    View Related
Sending Forms In Flash With FormMail
Hey guys, i have a question. i'm trying to make a feature for my website where a visitor can sign up for a mailing list. i have a form on my site else where (done in HTML) and it uses the server-side script FormMail to process and deliver the form. I was wondering if there was any 'easy' way for me to use this same script from flash for this feature.

if you'd like to take a look at the feature itsself, the URL is www.thegreenlightgroup.com/mailinglist.swf (if it comes up the size of the screen, just know it's not actually that large on the page).

thanks for the help.

View Replies !    View Related
Flash Formmail Forms Work Remotely...but Not On The Server?
Hey guys...

Have a very odd problem.
I have flash forms that call a formmail script that work fine while testing my movie and just opening the .swf off my hard drive...it accesses the script and sends me the email.

But when I upload the .swf to the server and view them live, they do not send me the email. The files are identical, same path and recipient, so I have no idea why they work remotely but not on the server.

My hosting service has not idea?
Anyone have a suggestion...any help would be much appreciated.

thanks
tony

View Replies !    View Related
Line Breaks In Dynamic Text
I'm using a dynamic text box to give information about items that the user selects. Is there a way to insert a line break (carriage return) in Actionscript.

Example:

onClipEvent (enterFrame) {
_root.imgText1.text="This is where I put the descriptive text for image 1. Some desciptions are rather lengthy and maybe I would like to insert a line break in this area of code... like maybe right here. The only problem is I don't know if such a thing can be done, or if it can, how to do it."
}

View Replies !    View Related
Strange Breaks In Dynamic Text
I've loaded my external text into my mC, and can access it with no problem. However, I'm getting very strange line breaks that aren't indicated anywhere in my original text file. It's a single and continuous sentence all on one line. Sometimes the break is at the end of the dynamic text field, like it's supposed to be, but other times it breaks in the middle of a line without any sort of apparent regard for punctuation or anything, so I don't THINK that's it (though it could be, I suppose).

I thought that my Word Wrap option in Notepad might POSSIBLY be messing it up, so I turned that off, but it didn't change anything.

Any ideas?

View Replies !    View Related
Line Breaks In Dynamic Text?
I have some text that goes into a dynamic text box and I would like to
break it. I would like to break it after the first sentence. I thought
the <br> might do it, but it seems not like this?

bodyCopy.errorText.text = "Username and password do not match.<br>Please
re-enter your username and password.";


Thank you!

View Replies !    View Related
Line Breaks / Carriage Returns In Forms
I am using a php based mail form script and I am having a problem:
Everything works great, accept that when you hit the enter key to move to a new line, the output that is sent is only the first line of text and nothing after.
If I let my typing run to the end of the box and let it move down to the next line on its own it works fine..
Im a little new at forms in flash, but isnt there a way to get this to work?

Thanks in advance for any help with my lil problem.

View Replies !    View Related
Grrr ... Line Breaks In Dynamic Text
... how go about it? Pressing "enter" doesn't give me a paragraph or line break. Instead, I get error messages.

Tne text is in

On clip event (load) ... variablename="mytextbutnolinebreakpossible"

View Replies !    View Related
Sending Text To PHP But I Need Dynamic Line Breaks
Sending text from Flash to PHP e-mailing script but I need dynamic line breaks in my string that I send to the script. How do you create dynamic line breaks in Flash. Anybody have an idea? (<br> doesn't work either)

View Replies !    View Related
Adding Line Breaks In Dynamic Text
It seems like it should be easy, but I am trying to add hard line breaks to text strings that I am building dynamically, and can't find the right code to insert these breaks. Any help would be appreciated

View Replies !    View Related
Removing Line Breaks From A Dynamic Text Box?
I've got a text box with stuff coming from an xml doc.

it will onyl be about 2 lines but I dont know if there is line breaks before or after the text. I need to get rid of them

is there anyway in flash I can set flash to ignore any breaks?

View Replies !    View Related
[CS3] Prevent Word Breaks In Dynamic Text Box
I am working with arabic text that is being pulled in from xml into dynamically created text boxes, the only issue is:

when the text is wrapped to the next line, words are being "split" or "broken" in two, making no sense to the reader. is there a way to test if a word is being broken and then force the whole word to the next line?

I have messed with searching for spaces and amount of characters on a line, but the results have been multiple breaks happening : ie text looking like this:

hello how are
you
doing?

any thoughts on this?

IMS

View Replies !    View Related
Line Breaks In Dynamic Text Field
How do you do it. I basically want to be able to put double spaces between my paragraphs.

This is how my text field is set

ActionScript Code:
set (myTextField, "A bunch of text here");

View Replies !    View Related
AS2 .. Adding Line Breaks In Dynamic Text
Hey there.

I've been poking around for an answer and I found some help here and on other forums, but the answers I found are not helping.

I have an app that loads random quotes from an external text file. The file liiks like this:

quote1=blah blah blah
&quote2= blah blah blah
&quote3= blah blah blah

All the way to 25 quotes total. I want to add line breaks in the text. Some answeres said insert
or
in the text like so:

&quote4=This is a quote
from some dude (or
)

Also, I read that if you turn "render text as HTML" on, you could use <br> for line breaks.

I have tried all three options and all just display the extrea characters in my dynamic text when it pulls a quote.

Is there something I am missing? Is there an easier way to go about this?

Thanks in advance for your help!

View Replies !    View Related
Line Breaks In Dynamic Text Field
How do you do it. I basically want to be able to put double spaces between my paragraphs.

This is how my text field is set

ActionScript Code:
set (myTextField, "A bunch of text here");

View Replies !    View Related
Line Breaks In Dynamic Text Objects
All,

Forgive me this trivial question, but is there an easy way to insert a line break in a dynamic text field without using the HTML property?

I know you can set the text field's HTML property to true, which would allow you to use <br> tags, but that requires that you use a device font, and I would rather use an embedded, anti-aliased font.

In vb, you can put a "vbcrlf" in the middle of a text string to create the effect I'm looking for. Is there a similar trick in Actionscript?

Of course, you could also use two text fields, but my problem is that sometimes the field should include a line break or two, and sometimes it should not.

Many, many thanks in advance for your help and advice!

Cheers

View Replies !    View Related
Dynamic Text Not Showing Up [renamed]
I have a deadline and am relatively new to flash - I've used a tutorial to load dynamic text into a text field using buttons. The code on each button is

on (release) {
loadText = new loadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}

Obviously button 2 loads "TEXT2.txt" and so on

But I need to scroll it using a dragger rather than up and down buttons provided in the components (whch don't look great). Can anyone help!!!!!

View Replies !    View Related
Creating Line Breaks With Dynamic Text Boxes Using HTML?
I have an array with a series of informational text lines. I would like to place them in a status dynamic text box listing which ones have been processed. To do this I need to make a dynamic text box with line breaks after each item in an array. Here is my script so far:

imageClips = new Array();
imageClips = ["WindowsInit.jpg","CTRLA.jpg"];


I then have a dynamic text box with html enabled called:
Status

In my action script I have entered the following code:

Status.text = "<br>" + 1imageClips[0] + "</br>" + "<br>" + imageClips[1] + "</br>";

I want the first line to read "WindowsInit.jpg" in the list, and then break to the next line reading "CTRLA.jpg"

Whenever I run the script it does not work. Can someone tell me how to properly insert line breaks into dynamic text boxes using arrays of text with a line break?

Thanks,
Sam

View Replies !    View Related
Dynamic Text Assignment Problems In MX04 [renamed]
onClipEvent (load) {
_root.acc = 100;
}

acc is a dynamic text, but when I run the movie it gives an undefined error. What do i do?

View Replies !    View Related
Dynamic Text Assignment Problems In MX04 [renamed]
onClipEvent (load) {
_root.acc = 100;
}

acc is a dynamic text, but when I run the movie it gives an undefined error. What do i do?

View Replies !    View Related
Forms/dynamic Text Box
is it possible to do this when you render a dynamic text box in html?

I am just looking for the best possible way to have a input box for an email address that gets submitted by a form.

View Replies !    View Related
Text Not Loading From "Scrolling Dynamically Loaded Text" Tutorial [renamed]
Hello!

I'm Having a problem with an ActionScript from one of Kirupa's Flash Tutorials, the tut is named "Scrolling Dynamically Loaded TexT". Well, I followed the tut exactly and when I click on File > Publish Preview and The Text file doesn't load where it's suppose to. I have the txt file in the same folder as the .fla file and it should work. I have also tried Ctrl+Enter to preview it and it still doesn't work. Is their something wrong with the ActionScript? Can someone please help me out here, Please post an actual working ActionScript for Flash MX Pro 2004. I would greatly appreciate it!

Thanks in advance.

View Replies !    View Related
Text Not Loading From "Scrolling Dynamically Loaded Text" Tutorial [renamed]
Hello!

I'm Having a problem with an ActionScript from one of Kirupa's Flash Tutorials, the tut is named "Scrolling Dynamically Loaded TexT". Well, I followed the tut exactly and when I click on File > Publish Preview and The Text file doesn't load where it's suppose to. I have the txt file in the same folder as the .fla file and it should work. I have also tried Ctrl+Enter to preview it and it still doesn't work. Is their something wrong with the ActionScript? Can someone please help me out here, Please post an actual working ActionScript for Flash MX Pro 2004. I would greatly appreciate it!

Thanks in advance.

View Replies !    View Related
Dynamic Text Field And Forms. Please Help
Hi guys

I'm trying to submit a form using ASP using the code below. It's working fine by itself and I'm getting a result back from the asp page changing the Dynamic text field to "sent" when the mail is sent. However, when I try to load this movie as an external swf into a different movie, no result gets returned. Any ideas,(all files are in the same folder)

on (press) {
DynText = "Sending";
loadVariablesNum("sendmail.asp", 0, "POST");
}

Thanks guys,

This is driving me nuts!!!

View Replies !    View Related
Dynamic Text In Flash Forms (within Coldfusion)
I'm using Flash forms within Coldfusion. Is it possible to have text within a form dynamically change based on a radio button selection after the Flash form has already compiled? Specifically, in the code below where the label is "How strongly do you feel that abortion #VA_S1_Q1# be an option available to Vanessa?" I want #VA_S1_Q1# to automatically display the label value of the selected radio button in the VA_S1_Q1 group (i.e., "should" or "should not").

Thanks,
Jason


Code:


<CFFORMGROUP TYPE="page" LABEL="Should" HEIGHT="225">
<CFFORMGROUP TYPE="PANEL" LABEL="Do you think that abortion should or should not be an option available to Vanessa?">
<CFINPUT type="radio" name="VA_S1_Q1" label="Should" value="1" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
<CFINPUT type="radio" name="VA_S1_Q1" label="Should Not" value="2" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
<CFINPUT type="radio" name="VA_S1_Q1" label="Don't Know" value="8" onClick="alert('Do you lean more toward should or should not?')">
<CFINPUT type="radio" name="VA_S1_Q1" label="Refused" value="9" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
</CFFORMGROUP>
</CFFORMGROUP>
<CFFORMGROUP TYPE="page" LABEL="How Strongly" HEIGHT="225">
<CFFORMGROUP TYPE="PANEL" LABEL="How strongly do you feel that abortion #VA_S1_Q1# be an option available to Vanessa?#chr(10)#Would you say very strongly, somewhat strongly, or not very strongly?">
<CFINPUT type="radio" name="VA_S1_Q2" label="Very Strongly" value="2" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
<CFINPUT type="radio" name="VA_S1_Q2" label="Somewhat Strongly" value="1" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
<CFINPUT type="radio" name="VA_S1_Q2" label="Not Very Strongly" value="0" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
<CFINPUT type="radio" name="VA_S1_Q2" label="Don't Know" value="8" onClick="alert('Which one do you lean more toward: highly, moderately, slightly, or not at all obligated?')">
<CFINPUT type="radio" name="VA_S1_Q2" label="Refused" value="9" onCLick="V#VignetteNumber#_S1_Nav.selectedIndex=V#VignetteNumber#_S1_Nav.selectedIndex+1">
</CFFORMGROUP>
</CFFORMGROUP>

View Replies !    View Related
Dynamic Textbox _y Per Dynamic Line Breaks
I would like to feed variable character lengthed text data to text boxes in my dynamically placed buttons (touch screen kiosk). In my movies i am reading from either xml or db via FSP. I want the text in the text boxes (which label the buttons) to aways be centered in the button graphic, no matter how many lines. I imagine i would set up a conditional and set the _y of the text field per the amount of new line breaks that were dymically created by means of which are still a mystery to me..

Is there a way to achive this without manually adding "
" or whatever your prefered linebreaker is? I've done very similar things, but i've aways had to manually build and associate an array in flash to assure appropriate line breaking. Now i'm dealing with many hundreds of buttons and existing data (such as the strings i would like to label the buttons with)

this is one of, if not the last hurtle for me as far as how dynamic i want my projects to be...! please help!

btw, im using FlashMX

View Replies !    View Related
Img Tag Breaks Dynamic Links
I'm loading html text into an html enabled dynamic text box via an xml file. Everything is working fine except that when I add an image with an img tag the anchor tag links stop working.

The css formating is still there but when you click on them it freakishly selects all the text on that line to the left of where you click.

Has anyone else had this problem or have an idea what might be causing it?

thanks

View Replies !    View Related
[F8] XML Loading With Line Breaks.. PLEASE HELP
Hello There,

in my application i am loading 5 to 10 XML files from the same folder of SWF..
its done in Flash 8..

but my client says.. they dont need to see (10) XML files in the folder.. they need a swf file only..

is there any way to use that in flash.. as text variables ,etc ?

i tried to change the code from . this to

var gXM = new XML();

gXML.onLoad = myLoad;
gXML.load("myxml.xml");

function myLoad(ok) {
.............
....................



------------- i chagned the code to

xmlStr("<xml><object>...<object/></xml>"); - <<<< its not working for multi lines XML .. its working for 1 line only. (line breaks)

var gXML= new XML(xmlStr);
//gXML.onLoad = myLoad;

myLoad();

Thanks a lot...

please help me..its urgent :-)

View Replies !    View Related
Loading External Swf Breaks CSS?
Ok I've gone through the tutorials on "Using CSS Styles" and "Applying CSS to Externally Loaded Text"

I've gotten everything working fine as far as that goes the fla's work perfectly until I load the swf's into my main movie? I get the "Error...." and the variable "format" stays undefined.

When I test the sfw's by themselves they work but trying the main swf it just displays the error???

Basically if I have confused anyone its like this... I'm trying to use Externally loaded text with CSS then load that swf into another swf, that being my main website and the first being various contents for different sections.

Thanks in advance... also if anyone wants to see my fla's email me @ nagmier _.@._ followthebeat.com and I'll zip up a stripped down version without all the graphics etc
Any help would be greatly apppreciated as I'm desperate I spent about 5 hours trying to figure this out yesterday and it drove me nuts I'm sure its something simple but I'm a flash noob and I've been outta the coding game for a while now

View Replies !    View Related
Loading External Swf Breaks CSS?
Ok I've gone through the tutorials on "Using CSS Styles" and "Applying CSS to Externally Loaded Text"

I've gotten everything working fine as far as that goes the fla's work perfectly until I load the swf's into my main movie? I get the "Error...." and the variable "format" stays undefined.

When I test the sfw's by themselves they work but trying the main swf it just displays the error???

Basically if I have confused anyone its like this... I'm trying to use Externally loaded text with CSS then load that swf into another swf, that being my main website and the first being various contents for different sections.

Thanks in advance... also if anyone wants to see my fla's email me @ nagmier _.@._ followthebeat.com and I'll zip up a stripped down version without all the graphics etc
Any help would be greatly apppreciated as I'm desperate I spent about 5 hours trying to figure this out yesterday and it drove me nuts I'm sure its something simple but I'm a flash noob and I've been outta the coding game for a while now

View Replies !    View Related
[F8] Line Breaks In Dynamic Textbox
I'd like to output the value of multiple input textboxes to one dynamic textbox, but have the values separated by line breaks.

What is the operator for inserting a line break? Here's some code I'm working with.

submit.onRelease = function () {
alert.text = name.text + message.text;
}

How do I insert a line between name.text and message.text??

Any help would be appreciated. Thanks!

View Replies !    View Related
Loading Two Swf's Next To Each Other [renamed]
ok wow!! i need HELP big time with some stuff! first of all..im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?


also im wanting to make a text scroller with JUST the slider. how can i go about this?

p.s.
would appreciate just verbal help b/c i would like to try to do this without using someone elses stuff ...if thats ok...?!

View Replies !    View Related
Loading Two Swf's Next To Each Other [renamed]
ok wow!! i need HELP big time with some stuff! first of all..im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?


also im wanting to make a text scroller with JUST the slider. how can i go about this?

p.s.
would appreciate just verbal help b/c i would like to try to do this without using someone elses stuff ...if thats ok...?!

View Replies !    View Related
Loading A Movie Breaks Its Combo Box
I have a strange combo box error.

In my .fla with the form, the drop down/scroll bar portion of the combo box work fine.

But when my parent movie loads the movie with the form, the combo boxes will no longer drop down.

I'm thinking it has to do with a depth() problem but I'm not sure. Any one else experienced this?

View Replies !    View Related
Loading As2 From As3 Breaks Tweener On Second Load
hey all,
i've come accross an interesting one.

i have a an as3 swf which loads in an as2 swf. the as2 swf has some caurina tweener animations in it. when the as2 swf is loaded the first time, these work great. any other time, they don't work. everything else in the as2 swf works fine.

any ideas?

View Replies !    View Related
Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
ok - here's the url

http://www.rongilcreast.com/Test_Site/main.html

when I 'test movie' in Flash, the text comes in. But not now that it's online . . .

2nd problem. I want to add a scrollbar to the textbox, but when I drag the scrollbar onto the textbox, it doesn't snap-to the text box and resize itself.

all the files are here:

http://www.rongilcreast.com/Test_Site/main.fla
http://www.rongilcreast.com/Test_Site/main.swf
http://www.rongilcreast.com/Test_Site/Index.txt

whatamIdoin'wrong?

tia . . .

View Replies !    View Related
Text Loaded From Text File Doesn't Have Breaks
I am loading text into a dynamic textbox from an extrenal plain-text file. I was wondering how I would go about putting breaks into my text. HTML is enabled in this dynamic textbox, and I've tried using the <br> tag for breaks, but to no avail. Before hand I could just press enter twice at the end of a line to get a line break, but somehow this doesn't seem to work anymore.

Does anybody have any suggestions? If you aren't quite sure what I am trying to say, please look at the links section on this website ( http://www.alienmelon.com ). There you will see that there are no line breaks inbetween lines of text (no whitespace between lines).

Thanks,

Dr. Shim

View Replies !    View Related
Help With Kirupa's Dynamic Scroller Tutorial [renamed]
Hey all,

I'm having problems with kirupa's tutorial:

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

Basically, I wanna know how to use html in the text file. I clicked the "Render txt as HTML" button in flash, but the tags don't show as html...help?

Thanks!

View Replies !    View Related
Help With Kirupa's Dynamic Scroller Tutorial [renamed]
Hey all,

I'm having problems with kirupa's tutorial:

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

Basically, I wanna know how to use html in the text file. I clicked the "Render txt as HTML" button in flash, but the tags don't show as html...help?

Thanks!

View Replies !    View Related
[fmx] Problems With Loading Into A MovieClip Via A String [renamed]
Alright, I know this is a mess, please forgive me.
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.

Any ideas?


Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
var myLoader = new com.qlod.LoaderClass();
var picPath = "";
var pics = ['winterrangep1.jpg',
'winterrangep2.jpg',
'winterrangep3.jpg',
'winterrangep4.jpg',
'winterrangep5.jpg',
'winterrangep6.jpg'];
var picText = [''];
var picCount = _root.pics.length - 1;
var objIndex= 0;
var nextX = 265.4;
var nextY = 293.9;
var prevX = 0;
var prevY = 297.4;
MovieClip.prototype.loadObj = function (file, i) {
if (file.length) {
trace(i);
objWhereToLoad = "_root.holder_mc.mc_"+i;
objWhereToLoad = objWhereToLoad.toString();
trace(objWhereToLoad);
myLoader.load(objWhereToLoad, file);
var mc_loader = _root.attachMovie("loader", "mc_loader", 4);
mc_loader._x = nextX-mc_loader._width/2;
mc_loader._y = nextY;
mc_loader.loadBar.onLoadProgress = function(loaderObj) {
this._xscale = loaderObj.getPercent();
trace(this + ' Progress: ' + loaderObj.getPercent());
};
mc_loader.loadBar.onLoadComplete = function(success, loaderObj) {
removeMovieClip(mc_loader);
current_index++;
load****();
trace(this + ' Complete');
};
myLoader.addListener(mc_loader.loadBar);
} else {
trace(this + ' No Image to Load');
}
};
var holder_mc = _root.createEmptyMovieClip("holder_mc", _root.depth++);
current_index = 0;
load**** = function () {
//var mc = loadMovie(""+pics[current_index]+"", holder_mc["mc_"+current_index]);
loadObj(pics[current_index], current_index);
if (last_index == current_index) {
break;
}
var last_index = current_index;
};
load****();
for (i=0; i<pics.length; i++) {
holder_mc.createEmptyMovieClip("mc_"+i+"", depth++);
}

View Replies !    View Related
How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en

the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...

basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!

Please if someone could give me a helping hand on this i would really appriciate it!!!!

-AlBERT

View Replies !    View Related
Loading Random Background Problems [renamed]
I am looking for someone skilled with Flash, a Wizard hopefully...

I have been trying to create a .swf that loads a Random background image (like the one on Kirupa's MX tutorial on this site) ... and my skills are just too insuficient.. I got it working but the images loads in sequence too fast and my general composition and work is kinda messy...

Is there someone here who is interested in helping out ?

The project is for our website, we are a non-commercial gaming clan, and alot of programmers, but none of us have any serious Flash experience. We are able to advertise/link back to anyone who might wanna help us out.

Contact me on email: therseus@gmail.com

View Replies !    View Related
Loading An Image Into A MovieClip, Then Into BitmapData [renamed]
Hello,

I am trying to load an image into a movieclip and then draw the contents of the movieclip to a bitmapData object. Below is some sample code.


Code:
target.jpg_mc.loadMovie(url);
target.createEmptyMovieClip("loader_mc", 100);
target.loader_mc.bmc = target.jpg_mc; // movieclip where to load original image
target.loader_mc.tmc = target.bmp_mc; // movieclip with smoothed image
target.loader_mc.onEnterFrame = function(){

bl = this.bmc.getBytesLoaded();
bt = this.bmc.getBytesTotal();
if (bl >= bt && bt > 4 && this.bmc._width > 0 && this.bmc._height > 0){
//target._parent._visible = true;

this.bmc._visible = false;

var bitmap = new BitmapData(this.bmc._width, this.bmc._height, true);
this.tmc.attachBitmap(bitmap, 100,"auto", true);
bitmap.draw(this.bmc);

Stage.addListener(target);

target.gotoAndPlay("in");
this.removeMovieClip();
}
}
For some reason it always draws a white box rather than the image. Has anyone ever seen this happen with the bitmapData class?

Thanks for any help!

Wade

View Replies !    View Related
[fmx] Problems With Loading Into A MovieClip Via A String [renamed]
Alright, I know this is a mess, please forgive me.
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.

Any ideas?


Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
var myLoader = new com.qlod.LoaderClass();
var picPath = "";
var pics = ['winterrangep1.jpg',
'winterrangep2.jpg',
'winterrangep3.jpg',
'winterrangep4.jpg',
'winterrangep5.jpg',
'winterrangep6.jpg'];
var picText = [''];
var picCount = _root.pics.length - 1;
var objIndex= 0;
var nextX = 265.4;
var nextY = 293.9;
var prevX = 0;
var prevY = 297.4;
MovieClip.prototype.loadObj = function (file, i) {
if (file.length) {
trace(i);
objWhereToLoad = "_root.holder_mc.mc_"+i;
objWhereToLoad = objWhereToLoad.toString();
trace(objWhereToLoad);
myLoader.load(objWhereToLoad, file);
var mc_loader = _root.attachMovie("loader", "mc_loader", 4);
mc_loader._x = nextX-mc_loader._width/2;
mc_loader._y = nextY;
mc_loader.loadBar.onLoadProgress = function(loaderObj) {
this._xscale = loaderObj.getPercent();
trace(this + ' Progress: ' + loaderObj.getPercent());
};
mc_loader.loadBar.onLoadComplete = function(success, loaderObj) {
removeMovieClip(mc_loader);
current_index++;
load****();
trace(this + ' Complete');
};
myLoader.addListener(mc_loader.loadBar);
} else {
trace(this + ' No Image to Load');
}
};
var holder_mc = _root.createEmptyMovieClip("holder_mc", _root.depth++);
current_index = 0;
load**** = function () {
//var mc = loadMovie(""+pics[current_index]+"", holder_mc["mc_"+current_index]);
loadObj(pics[current_index], current_index);
if (last_index == current_index) {
break;
}
var last_index = current_index;
};
load****();
for (i=0; i<pics.length; i++) {
holder_mc.createEmptyMovieClip("mc_"+i+"", depth++);
}

View Replies !    View Related
How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en

the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...

basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!

Please if someone could give me a helping hand on this i would really appriciate it!!!!

-AlBERT

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved