Php vs textfile dynamic text

ok i am at the last part of my project. it worked all well and reads all text fields from a text file as seen on :
http://www.myblueranch.com/index2.html
now i am trying to get the same thing working from MYSQL.
Notice that the text file i used for index2.html is called
www.myblueranch.com/trees1.txt
and it was a direct copy/paste from the php page that gave the results from the MYSQL query. (the php query page is:)
www.myblueranch.com/flash_names.php
The problem is i am getting an error in
www.myblueranch.com/index.html
which uses the php to get the text for the dynamic fields.
I get the following error:
TypeError: Error #2007: Parameter text must be non-null.
    at flash.text::TextField/set text()
    at final_fla::MainTimeline/onDataLoad()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
my flash movie has 113 buttons called button_1 --> button_113 and 113 dynamic text fields tcname_1-->tcname_113
my AC3 code is the following:
// button links: to all buttons to open in iframe 'tdes'
// link corrosponds to button number
// i have 113 buttons.
    for(var i:int=1;i<=130;i++){
        if(this["button_"+i]){
            this["button_"+i].addEventListener(MouseEvent.CLICK,f);   
    function f(e:MouseEvent):void{
        var n:String=e.currentTarget.name.split("_")[1];
        navigateToURL(new URLRequest("ranch.php?id="+n),"tdes");
// end of button links
//Create the URLLOader instance
    var myLoader:URLLoader = new URLLoader()
    //the data will come as URL-encoded variables
    myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
    //Load using an URLRequest, even beeing local
    myLoader.load(new URLRequest("flash_names.php"))
    //onLoad handler listener
    myLoader.addEventListener(Event.COMPLETE, onDataLoad)
    //Error handling   
    myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError)
    myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError)
    //Could be an error or just a message
    myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus)   
    //add a listener for the complete event
    function onDataLoad(evt:Event){
        trace(evt.target.data.cant);
        for(var i:uint=1; i<evt.target.data.cant; i++){ 
            this["tcname_"+i].text = evt.target.data["tcname_"+i]
            this["tcname_"+i].autoSize="left"
            this["tcname_"+i].multiline = true;
            this["tcname_"+i].wordWrap = true;
            this["tcname_"+i].width = 70;http://forums.adobe.com/post!input.jspa?container=2066&containerType=14
            this["tcname_"+i].visible = false;
            this["button_"+i].addEventListener(MouseEvent.ROLL_OVER, buttonover);
            this["button_"+i].addEventListener(MouseEvent.ROLL_OUT, buttonout);
            trace(i);
// ON ROLLOVER make text field visible and change color
    function buttonover(e:Event){
        var tf:TextField=TextField(this["tcname_"+e.currentTarget.name.split("_") [1]]);
        trace (tf.name);
        tf.visible = true;
        tf.textColor=0xff0000;
// ON ROLLOVER make change color and make invisible
    function buttonout(e:Event){
        var tf:TextField=TextField(this["tcname_"+e.currentTarget.name.split("_") [1]]);
        tf.textColor=0x000000;
        tf.visible = false;
    //error callbacks
    function onIOError(evt:IOErrorEvent){
        trace("IOError: "+evt.text)
    function onHTTPStatus(evt:HTTPStatusEvent){
        trace("HTTPStatus: "+evt.status)
    function onSecurityError(evt:SecurityErrorEvent){
        trace("SecurityError: "+evt.text)

Kenneth this created another problem:
1- i changed the code of the php to make it look like:
&tcname_1=Cherokee SweetGum&tcname_2=cedar&tcname_3=cedar&cant=3
and now i get this error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at flash.net::URLLoader/onComplete()
Also when i do that even when i load from a textfile (i.e. not from MYSQL through php) i see no text at all!!
2- Where did you want me to put these trace lines? if i put them in the end of my ac3 script i get this compile error:
Scene 1, Layer 'Layer 1', Frame 1, Line 97
1120: Access of undefined property evt.
did i do something wrong?

Similar Messages

  • Put PHP Content into Dynamic Text Field

    How do I put the contents of a php document into a dynamic
    text field in a Flash document? Thanks.
    G

    Do you mean an html document generated from a PHP script?
    Do you mean the source of a PHP script?
    Probably you mean you want to format a page such as a PHP
    script would do.
    That is done either manually inside a Flash movie or
    dynamically via
    Actionscripting. Then you only send data back and forth
    between PHP and
    Flash using either the LoadVars or the XML Actionscript
    classes. You can use
    HTML inside of Flash TextField objects but again that will be
    data sent from
    the PHP server script.
    Here are some basic examples I use in Flash seminars you can
    look at:
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/LoadVarsEx01.php
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/LoadVars/Ex02/LoadVarsEx02.p hp
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/GenerateFlashObjectsFromPHP/ Ex01/GenerateFlashObjectsFromPHPEx01_Doc.php
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
    You also want to look at the docs for LoadVars and XML
    sendAndLoad methods:
    XML
    http://livedocs.macromedia.com/flash/8/main/00002879.html
    LoadVars
    http://livedocs.macromedia.com/flash/8/main/00002336.html
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "gena.wenli" <[email protected]> wrote in
    message
    news:e5g6av$lpv$[email protected]..
    How do I put the contents of a php document into a dynamic
    text field in a
    Flash document? Thanks.
    G

  • Issue with visibiliy of dynamic text and hyperlinks

    Hi everyone,
    It's been a while since I've build a Flash site and a I'm finding a out a lot has changed.
    I'm building a simple site with some pictures, text and the 5 last posts from Twitter.
    This last one is not working out that well.
    First of all:
    The outputed data from Twitter is displayed into a dynamic text field which is working fine when I test the movie in Flash, but as soon as I upload it to my server the text is not visible.
    Flash already told me that I need to enclose my font in the movie (that's new for me) and I did that using the button in the properties windows.
    But it still won't work.
    I recreated the Twitter reader in a empty document to isolate it from my website during the troubleshooting.
    Here's the AS I'm using:
    var loadXML:XML = new XML();
        loadXML.ignoreWhite = true;
        loadXML.onLoad = processXML;
        loadXML.load("twitter.php"); //used when swf in placed on server
        loadXML.load("");
        function processXML(loaded:Boolean)
            if(loaded)
                var node = this.firstChild;
                tweet_1.text = node.childNodes[0].childNodes[2].firstChild;
                tweet_2.text = node.childNodes[1].childNodes[2].firstChild;
                tweet_3.text = node.childNodes[2].childNodes[2].firstChild;
                tweet_4.text = node.childNodes[3].childNodes[2].firstChild;
                var follower_count = node.childNodes[9].childNodes[11].childNodes[9].firstChild;// Creates variable
                trace(follower_count); //loads variable into output
                follower_count_txt.text = follower_count;// show follower count in text box
            else
                error_txt.text = "Error loading XML file";
                        for (i=0; i<follower_count; i++)
                            _root.attachMovie("tweep_mc", "tweep"+i+"_mc", i);
                            _root["tweep"+i+"_mc"]._x = 150 + random(500);
                            _root["tweep"+i+"_mc"]._y = 150 + random(500);
                            trace(i);
                        trace(i);
        follow_btn.onRelease = function()
            getURL("");
    facebook_btn.onRelease = function()
            getURL("");
    stop();
    Right here you can see the output of it on the server.
    The second issue:
    The items posted to Twitter will simply always contain pictures which Twitter posts as hyperlinks.
    Is there a way to make those hyperlinks function in my dynamic text field?
    Hope you guys can help me out!
    Thanks in advance!!
    Karim

    Ok.. After some resarch I find out the guy who created this made use of the Twitter API.. Since I don't know how to do that and
    can't find straight answers that's not an option for me...
    Althought...
    What I forgot to mention in the first post:
    This is what the beginning of actionscript is actually looking like right now and why it is working offline:
    var loadXML:XML = new XML();
        loadXML.ignoreWhite = true;
        loadXML.onLoad = processXML;
        loadXML.load("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=karimbizid2");
    I'm getting the data direct from the Twitter server.
    This procedure does'nt neceserly need a PHP file to store the XML, right?
    I'm guessing it's just a visual issue why the text isn't showing.
    Karim

  • Using loadVariables() to populate a Dynamic Text in a MovieClip

    Hello everyone,
    I am trying to populate a Dynamic Text with data from a
    remote database. I have no problem populating the Dynamic Text with
    the data from the remote database if the Dynamic Text is placed in
    the main timeline using the following code.
    loadVariables ("php/attorney.php", "");
    Once I move the Dynamic Text into a Movie Clip with instance
    name of “MC_But_1” I am only able to populate the
    Dynamic Text if I place the above code in the movie clip. Since it
    is going to take sometimes for the data to be transferred from the
    remote database I rather to do this on the main timeline before the
    MC_But_1 is shown. I have used the following code but for some
    reason it is not working.
    loadVariables ("php/attorney.php", _root.MC_But_1);
    Can someone be kind enough to tell me where I am going wrong?
    Thank you very much and have a great day.
    Khoramdin

    > Since it is going to take sometimes for the data to be
    > transferred from the remote database
    That is one of the best arguments for abandoning
    loadVariables() in
    favor of LoadVars(). Check that out in the manual. It's
    better because
    there are events that get triggered when a data transfer has
    completed
    and you can write an event handler script to deal with server
    responses.
    Christian Scholz-Flöter

  • Dynamic Text in Form Results

    Anyone know how do I include the dynamic text box data in a
    form? The user clicks on a picture when then populates a dynamic
    text field box with the text using external txt files. I then want
    the user to be able to email the form with some input fields filled
    out (which is working fine), but I cannot get the text from the
    dynamic fields to come through in the email. Thanks

    lcameron@cameronsolutions
    <[email protected]> wrote:
    > Thanks Franz for all your help, sorry I wish I knew
    something about
    > PHP but never needed it before. I tried the code with
    not much
    > success but I think I have entered it in all wrong? Do
    you think you
    > could show me to whole code it should be? I have put...
    >
    > <?PHP
    > while (list($myName, $myValue) = each($_POST)){
    > $myMessage .= $myName."\n";
    > for($i = 0; $i < strlen($myName); $i++){
    > $myMessage .= "=";
    > }
    > $myMessage .= "\n";
    > $myMessage .= $myValue;
    > $myMessage .= "\n\n\n";
    > }
    >
    > $to = "[email protected]";
    >
    > $shape = $_POST['shape'];
    > $coping = $_POST['coping'];
    > $name = $_POST['name'];
    > $email = $_POST['email'];
    >
    > $subject = "Website Enquiry\n";
    > $myMessage .= "Website Enquiry\n\n";
    > $myMessage .= "Shape: $shape\n";
    > $myMessage .= "Coping: $coping\n";
    > $myMessage .= "Name: $name\n";
    > $myMessage .= "Email: $email\n";
    > $mailheaders = "From: $name <email>\n";
    > $sentOk = mail($to,$subject,$myMessage,$mailheaders);
    > echo "sentOk=" . $sentOk;
    >>
    >
    > The results that come through in the email are;
    >
    >
    > loadText
    > ========
    > start=&onLoad=%5Btype%20Function%5D
    >
    > name
    > ====
    > Lisa
    >
    > email
    > =====
    > [email protected]
    >
    > Website Enquiry
    >
    > Shape:
    > Coping:
    > Name: Lisa
    > Email: [email protected]
    Acually this seems to be just fine. All the underlined words
    are variables,
    sent from Flash to PHP.
    Your variable loadText seems to be shaken a little. Is this
    variable the one
    you`re looking for?
    Freundliche Grüße,
    Franz Marksteiner

  • Create a Link using Dynamic Text and Capture Variable

    I am building a dynamic website using Dreamweaver CS5 with Coldfusion 9
    Currently I have created a dynamic text table. The table is created by querying the Invoice table and displays the all the customers Invoices. The columns Include Invoice #, Date, Amount Paid, BalanceRemaining, Due Date. So basically lists all the invoices I have applied to the unique customer. It is pulled up using a session variable I created from the login page.
    My question is this I want to make the "Invoice #" linked so when you click on it it goes to a new page and performs a new query which retrieves infro related to that specific invoice such as Services Rendered, Service Description, Date, Price, Total. I was able to create a link to the Invoice # but I am stuck trying to figure out how to capture the Unique Invoice # and apply it to the new query. Is this possible if so how?
    Thanks for your help!

    Now keep in mind I am speaking strictly from a web and SQL standpoint as I have no experience with coldfusion.
    If you are able to create the link to the Invoice, I am perceiving this as the following:
    Invoice
    Links to
    #123
    page.php?invoice=123
    #345
    page.php?invoice=345
    If your page is setup like that then you already have the data stored in the browser request with the GET method.  In PHP the equivalent is the $_GET array.  I am assuming ColdFusion has a similar array to work with forms.  Then on your following page you obviously need to check that the visitor came from the prior page with the proper permissions to ensure that someone doesn't get the address page.php?invoice=### and just guesses through and views all invoices if they are not supposed to.  Then your query would look something like the following:
    SELECT * FROM invoice_table WHERE invoice_number = $_GET['invoice']
    Remember this in written in PHP so yours should be a similar equivalent.
    Hopefully this helps a little to get you going in the right direction.

  • Dynamic text works in preview but not when uploaded

    Can someone help me resolve as to why my dynamic text works
    in DW8 preview by I get an error after FTPing the page.
    Warning: require_once(/Connections/oneandone.php)
    [function.require-once]: failed to open stream: No such file or
    directory in /homepages/0/dxxxx/htdocs/xxxcom/index_by_town.php on
    line 1
    Fatal error: require_once() [function.require]: Failed
    opening required '/Connections/oneandone.php'
    (include_path='.:/usr/local/lib/php5') in
    /homepages/0/dxxxx/htdocs/xxxcom/index_by_town.php on line 1
    My testing server is my remote server.
    Thanks

    ah ha sorted - seems to have something to do with relative
    links. Changing site root relative links to document relative links
    has done the trick.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=263&threadid=1154447&hi ghlight_key=y&keyword1=virtual%28%29

  • Dynamic Text Box Variables

    Hi,
    At the moment im using the variable option of a dynamic text
    box to load text. The variable is loaded into the swf via an
    external htm file that has multiple variables in it (i dunno if
    that makes sense but you know how you can load in a set of
    variables from an html like eg. down below):
    Anyway, now i want to have 10 different movie clips that act
    as buttons, so that when they are clicked, they change the variable
    of the dynamic text box soo it loads a different section of text
    from the html file. I have tried the .variable property of the text
    box but still no luck. I looked at another thread else where but i
    dont understand exactly how they are changing it there. I'll copy
    in the link anyway just incase it helps or someone can explain what
    they are doing. Can anyone help me with this??
    Thanks in advance for your help
    Cheers
    Damien

    haha Oops. Heres the link to that other thread. My bad.
    http://www.flashmove.com/forum/showthread.php?t=11070

  • Dynamic text, system fonts, and special characters...

    This one is boggling my mind so if someone can help, please
    do
    I've got a dynamic text area pulling text from a MySQL
    database via AMFPHP. The text includes special characters such as
    accents, umlauts, etc (multi-language site platform). Most of them
    work fine, and ALL of them work fine when I'm on a Mac client.
    However, if I use a Windows client machine in either Firefox or
    IE6, there are a couple characters that for whatever reason just
    don't seem to show up -- instead I get the [] box character.
    The only characters I've found that seem to be affected like
    this are European quote characters like &#146; &#147; and
    &#148; (hex characters 146, 147, 148). I'm using the familiar
    ampersand-pound-number-semicolon escape sequence for them. And like
    I said, they all display fine on Mac/Firefox and Mac/Safari. Why
    are all my other special characters (umlauts, accents, etc) working
    fine and just these things failing? It's also worth noting that
    they look fine if I dump them out to a PHP file and pull it up in a
    browser...
    Please, if anyone can help... I've been bashing my head
    against this for the better part of the day!!

    Hi,
    did you take a look at the "gateway.php' ? There you can
    define charsets. Maybe a western europe charset will
    help you out. Since french language is using a lot more
    accents and so.
    This is what you can find in the gateway.php of amfphp. Just
    have to set the right one ;)

  • Text arrays (variables) and Dynamic Text Box

    Hello everyone. I have a text file (let's call it sample.txt)
    that has numerous variables or arrays in this format:
    &info=This is some information
    &stuff=This is more stuff
    &whatever=Even more stuff again....
    Anyway, I need to load a particular variable via individual
    buttons from this same sample.txt file into a dynamic text box
    (let's call it dynText), and I am a bit lost as to how to do it.
    Please provide me a solution thank you.
    Glenn

    Thank you very much, it's greatly appreciated. It worked
    perfectly except that it does not like variables that begin with
    numbers like:
    &401_2b=401_2b
    The above doesn't work, but if I do this...
    &h401_2b=401_2b
    Everything is fine. Problem being, I am generating the
    variables via PHP and therefore cannot "change" them. Can you
    provide me with a way that ActionScript can "see" the variable that
    starts with a numeric value? Thanks for your time.
    Glenn

  • Adding Scrollbar and buttons to Dynamic Text

    Hello,
    I am trying to connect dynamic text to scrollbar and buttons. I did tutorial and Lynda.com and practically pasted the code in with my file names and for some reason it does not work. It says I have a "Access of Undefined Property mask_mc" Did I need to create a variable for this? I didn't in the tutorial.
    Right now I have the dynamic text loading successfuly in 2 different places and I wantd to add the scrollbar. I put the variables on frame 1 code and then I put the actually load code on the frame where it is needed.
    Any suggestions?
    Thanks! Sandra
    HERE IS CODE FOR FRAME 1:
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest;
    var scrollPercent:Number = 0;
    var minScroll:Number;
    var maxScroll:Number;
    var targetScroll:Number = philText_mc.y;
    var easing:Number = 5;
    var scrollAmt:Number = 15;
    var scrollDirection:Number = 0;
    HERE IS CODE FOR FRAME WHERE TEXT LOADS:
    textReq = new URLRequest("text_philosophy.txt");
    function philosophyTextLoaded(event:Event):void {
        philText_mc.philosophy_txt.text = textLoader.data;
        minScroll = philText_mc.y;
        maxScroll = minScroll - philText_mc.height + mask_mc.height;
    function dragScroller(event:MouseEvent):void
        var dragX:Number = line_mc.x - scroller_mc.width/2 + 1;
        var dragY:Number = line_mc.y;
        var dragW:Number = 0;
        var dragH:Number = line_mc.height - scroller_mc.height;
        scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
        stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
        stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
        stage.removeEventListener(Event.ENTER_FRAME, scrollText);
    function stopDragging(event:MouseEvent):void
        scroller_mc.stopDrag();
    function setScrollPercent(event:Event):void
        scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
        if(scrollPercent < 0)
            scrollPercent = 0;
        else if(scrollPercent > 1)
            scrollPercent = 1;
        targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
        philText_mc.y -= (philText_mc.y - targetScroll) / easing;
    function scrollUp(event:MouseEvent):void
        setDirection(scrollAmt);
    function scrollDown(event:MouseEvent):void
        setDirection(-scrollAmt);
    function setDirection(dir:Number):void
        scrollDirection = dir;
        stage.addEventListener(Event.ENTER_FRAME, scrollText);
        stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
        stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
    function scrollText(event:Event):void
        targetScroll += scrollDirection;
        philText_mc.y -= (philText_mc.y - targetScroll) / easing;
        if(philText_mc.y > minScroll)
            philText_mc.y = minScroll;
            targetScroll = minScroll;
        else if(philText_mc.y < maxScroll)
            philText_mc.y = maxScroll;
            targetScroll = maxScroll;
        scrollPercent = (philText_mc.y - minScroll) / (maxScroll - minScroll);
        scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
    function stopScrolling(event:MouseEvent):void
        scrollDirection = 0;
    textLoader.load(textReq);
    scroller_mc.buttonMode = true;
    philText_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
    scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
    textLoader.addEventListener(Event.COMPLETE, philosophyTextLoaded);
    up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
    down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);

    Hello again,
    Maybe I am asking this question wrong. Instead of making you try and figure out what's going on in my file what I really need to know is how you would take this code I am attaching and make it happen on another frame besides frame 1 and it doesn't appear on frame 1. I think this may help me understand a little better.
    Also another way I was thinking to get around this would be to pull in an external swf into the spot where I want this text to go because I can make the scrollbars and external text work when it is the only thing going on in the movie. Would this be a bad way to set this up? and also SInce it is an external movie would I have maintimeline issues with mouse/scroller control?
    thanks! sandra
    Here is working code:
    var textLoader:URLLoader = new URLLoader();
    var textFile:URLRequest = new URLRequest("text/external.txt");
    var scrollPercent:Number = 0;
    var minScroll:Number;
    var maxScroll:Number;
    var targetScroll:Number = text_mc.y;
    var easing:Number = 5;
    var scrollAmt:Number = 15;
    var scrollDirection:Number = 0;
    function textLoaded(event:Event):void
        text_mc.external_txt.text = textLoader.data;
        minScroll = text_mc.y;
        maxScroll = minScroll - text_mc.height + mask_mc.height;
    function dragScroller(event:MouseEvent):void
        var dragX:Number = line_mc.x - scroller_mc.width/2 + 1;
        var dragY:Number = line_mc.y;
        var dragW:Number = 0;
        var dragH:Number = line_mc.height - scroller_mc.height;
        scroller_mc.startDrag(false, new Rectangle(dragX,dragY,dragW,dragH));
        stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
        stage.addEventListener(Event.ENTER_FRAME, setScrollPercent);
        stage.removeEventListener(Event.ENTER_FRAME, scrollText);
    function stopDragging(event:MouseEvent):void
        scroller_mc.stopDrag();
    function setScrollPercent(event:Event):void
        scrollPercent = (scroller_mc.y - line_mc.y) / (line_mc.height - scroller_mc.height);
        if(scrollPercent < 0)
            scrollPercent = 0;
        else if(scrollPercent > 1)
            scrollPercent = 1;
        targetScroll = (scrollPercent * (maxScroll - minScroll)) + minScroll;
        text_mc.y -= (text_mc.y - targetScroll) / easing;
    function scrollUp(event:MouseEvent):void
        setDirection(scrollAmt);
    function scrollDown(event:MouseEvent):void
        setDirection(-scrollAmt);
    function setDirection(dir:Number):void
        scrollDirection = dir;
        stage.addEventListener(Event.ENTER_FRAME, scrollText);
        stage.addEventListener(MouseEvent.MOUSE_UP, stopScrolling);
        stage.removeEventListener(Event.ENTER_FRAME, setScrollPercent);
    function scrollText(event:Event):void
        targetScroll += scrollDirection;
        text_mc.y -= (text_mc.y - targetScroll) / easing;
        if(text_mc.y > minScroll)
            text_mc.y = minScroll;
            targetScroll = minScroll;
        else if(text_mc.y < maxScroll)
            text_mc.y = maxScroll;
            targetScroll = maxScroll;
        scrollPercent = (text_mc.y - minScroll) / (maxScroll - minScroll);
        scroller_mc.y = (scrollPercent * (line_mc.height - scroller_mc.height)) + line_mc.y;
    function stopScrolling(event:MouseEvent):void
        scrollDirection = 0;
    textLoader.load(textFile);
    scroller_mc.buttonMode = true;
    text_mc.external_txt.autoSize = TextFieldAutoSize.LEFT;
    scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
    textLoader.addEventListener(Event.COMPLETE, textLoaded);
    up_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollUp);
    down_btn.addEventListener(MouseEvent.MOUSE_DOWN, scrollDown);

  • Using Dynamic Text to tell a Hyperlink where to go.

    So I am having a little trouble on my site, and this community seems like a good place to go for help, and I am sure someone out here can help me.
    I have a webpage that uses dynamic text and images, and it serves as my user profile page. I know the database and all of that stuff is set up correctly because all of the dynamic text shows up as it should.
    Here is the problem I am having. I have an area where a user will be able to view files he has uploaded, and click on the name of a file to view it.
    The way I have it set up, is the clickable text is dynamic text from the server, called uploadname1. I want to make this text into a link, that sends them to the file stored as fileupload1.
    Here is my code that I thought should do it.
    "<a href="<?php echo $row_Recordset1['fileupload1']; ?>"/><?php echo $row_Recordset1['uploadname1']; ?></a>" (minus the quotes of course)
    The text underlines and changes the color as it should, but it is not clickable. Can someone out there help me?
    Tyler

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Profile - NoteScoop</title>
    <style type="text/css">
    body {
    background-image: url(../bgg.jpg);
    background-repeat: no-repeat;
    color: #FFF;
    #bio {
    font-family: Tahoma, Geneva, sans-serif;
    height: 213px;
    width: 460px;
    left: 404px;
    top: 53px;
    position: absolute;
    #editlink {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFF;
    position: absolute;
    height: 40px;
    width: 80px;
    left: 178px;
    top: 677px;
    a:link {
    color: #FFFBF0;
    a:visited {
    color: #FFFBF0;
    a:hover {
    color: #FFFBF0;
    a:active {
    color: #FFFBF0;
    #photo {
    position: absolute;
    height: 220px;
    width: 205px;
    left: 121px;
    top: 70px;
    #submit {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    left: 290px;
    top: 25px;
    position: absolute;
    width: 59px;
    #about {
    position: absolute;
    height: 25px;
    width: 90px;
    left: 128px;
    top: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    #abouthead {
    position: absolute;
    height: 25px;
    width: 48px;
    left: 466px;
    top: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    #contact {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 25px;
    width: 85px;
    left: 616px;
    top: 25px;
    #blog {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 25px;
    width: 33px;
    left: 792px;
    top: 25px;
    #notes {
    font-family:Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 84px;
    width: 460px;
    left: 425px;
    top: 510px;
    #friends {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    left: 421px;
    top: 278px;
    width: 460px;
    #uploader {
    font-family: Tahoma, Geneva, sans-serif;
    position: absolute;
    height: 53px;
    width: 460px;
    left: 543px;
    top: 645px;
    #groups {
    font-family: Tahoma, Geneva, sans-serif;
    position: absolute;
    height: 354px;
    width: 292px;
    left: 80px;
    top: 366px;
    #ad1 {
    position: absolute;
    height: 220px;
    width: 205px;
    left: -40px;
    top: 38px;
    #sponsored {
    font-family: Tahoma, Geneva, sans-serif;
    color: #000;
    position: absolute;
    height: 22px;
    width: 122px;
    left: 958px;
    top: 69px;
    </style>
    </head>
    <body>
    <div class="sponsored" id="sponsored">
      <div class="ad1" id="ad1"><a href="http://www.xfactordesigns.com"><img src="xfactor_designs_badge.jpg" /></a></div>
      Sponsored Links
    </div>
    <div class="groups" id="groups">
      <p>Study Halls, a feature which we are waiting to bring out until it is fully ready, will change the way you study forever. </p>
      <p>Study Halls will allow you to create a worldwide network of people in the same class, school, or major as you.</p>
      <p>Study Halls will contain useful note listings, chatrooms, tutors and more! </p>
      <p>We look forward to being able to open these to you soon!</p>
    </div>
    <div class="uploader" id="uploader">
      <form id="form3" name="form3" enctype="multipart/form-data" method="post" action="">
        <input type="file" name="upload" id="upload" />
      </form>
    </div>
    <div class="notes" id="notes"><a href="az.doc"/>tester</a></div>
    <div class="blog" id="blog"><a href="http://www.quincycreations.com">Blog</a></div>
    <div class="contact" id="contact"><a href="contact.php">Contact</a></div>
    <div class="photo" id="photo"><img src="profilephotos/twhite.jpg" alt="UserPhoto" width="205" height="220" /></div>
    <div class="abouthead" id="abouthead"><a href="About.php">About</a></div>
    <div class="submit" id="submit"><a href="Submit.php">Submit</a></div>
    <div class="editlink" id="editlink"><a href="editprofile.php">Edit Profile</a></div>
    <div class="about" id="about"><a href="classes.php">Subjects</a></div>
    <div class="bio " id="bio">
      <form id="form1" name="form1" method="post" action="">
        <p><h3>Tyler      White</h3>
        </p>
        <p>College: Xavier University of Louisiana </p>
        <p>Major: Mathematics</p>
        <p>Not only am I the creator of NoteScoop, but I am also a college student. I study Mathematics and am doing research in Differential Equations. When I am not doing work or math, I am spending time with my wonderful girlfriend, most likely on Minecraft.</p>
        <p> </p>
        <p> </p>
      </form>
    </div>
    <div class="friends" id="friends">
      <form id="form2" name="form2" method="post" action="">
        <p> </p>
        <table width="460" height="147" border="o">
          <tr>
            <th width="146" height="141" scope="row"><img src="profilephotos/paminaprofile.jpg" width="104" height="107" /></th>
            <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
            <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
          </tr>
        </table>
        <p> </p>
        <p> </p>
        <p> </p>
      </form>
    </div>
    </body>
    </html>

  • Paragraphs with dynamic text

    Hi!
    I have a database (mysql) and a field called article where I
    upload my articles where I load it into my webpage dynamically.
    However, the paragraphs in my field do not appear in my webpage -
    my articles just appear as one large block of text. Here, take a
    look
    http://financestudent.cutpage.com/news.php
    Is there a way to get my paragraphs in? Or better yet, a
    better way of achieving creating a news section?
    Cheers
    Jamie

    Assuming $content holds the text from that textarea, just do
    this -
    $content = nl2br($content);
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "kllwca" <[email protected]> wrote in
    message
    news:esroen$t2n$[email protected]..
    > Would anyone happen to know how to make this work for
    user entered data?
    > I'm using a PHP database. The text area accepts
    paragraphs, but when
    > displayed, all of the breaks are removed.

  • SWF & Dynamic Text

    Hi all,
    I'm getting myself a little confused. I think this is so easy
    I am missing it.
    My Flash file contains some dynamic text fields. When I
    publish the Flash file I get the swf, great.
    But, how do I publish the file that contains the dynamic text
    changes?
    THX.

    A couple of guesses are:
    1. If the HTML document you got with the purchased template
    was the same
    name as the movie, then by republishing the Flash movie you
    could have
    overwritten the HTML doc that contains the Javascript. If
    this is the case,
    then you needed to turn of publishing the html
    File->Publish Settings and
    hopefully you have the original copy.
    2. You may not be using the correct HTML file. How are you
    testing? If you
    are using File->Publish Preview as mentioned above Flash
    may be generating
    an HTML document for the testing convenience and you may not
    be using the
    correct HTML with the Javascript in it.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "DesignBetty" <[email protected]> wrote in
    message
    news:e269d1$pp5$[email protected]..
    Thanks for responding. Please excuse my "neophytness" about
    this. Javascript
    and php seems so easy right now.
    Let me explain a bit clearer.
    I am updating an old template that was purchased (groan).
    The fla file has
    dymanic text boxes. I also have the swf file. And then I have
    another html
    doc
    that stands alone. This html doc allows me to changes the
    variables in the
    swf
    doc.
    Sounds great, huh?
    But I have made a few simple changes in the FLA doc (font,
    position, etc).
    Now
    when I republish it I get a SWF doc that doesn't reference
    the html doc that
    lets me change those variables.
    Am I missing a step?
    thx!

  • Please Help -- Dynamic Text Wont Load :-(

    Hi Gang,
    I've just written a quick mail form in Flash8Pro/PHP - the
    user enters their contact details & a message, and it sends it
    off to the specified email address.
    The feature works fine for the most part, but there's one
    little problem. The dynamic text field that confirms the message
    has been sent successfully isn't working properly. I'm using the
    following php code to send dynamic text back to the flash document
    saying the message has gone through OK:
    print "sendresult=Message Sent!";
    where sendresult is the name of the dynamic text field's
    variable.
    The strange thing is that the code works fine if the
    sendresult dynamic text field is inserted into the main flash
    document. It's only when I put the sendresult field into the movie
    clip that holds the flash mail form (including the button with the
    loadvariablesnum command), that the text won't update at all. I've
    tried:
    print "_root.enquirypage.sendresult=Data Sent!"
    and
    print "enquirypage.sendresult=Data Sent!", but neither of
    those make any difference.
    Any suggestions? Anybody know what's causing this problem?
    Any help would be very very appreciated - I know I could probably
    get around this by just setting the visibility of the dynamic text
    field on & off when necessary and keeping it in the main flash
    doc, but I'll be using this feature quite a lot and I'd really like
    a proper/versatile solution. In case it's necessary, the
    actionscript that sends the message off to the php is just:
    loadVariablesNum ("form.php", 0, "POST");
    Many thanks in advance gang,
    - Jay

    Your code loadVariablesNum ("form.php", 0, "POST"); will load
    your variable sendresult in level 0 - the main timeline. If you put
    the text field inside a movie clip it expects a local variable in
    that movie clip.
    Use _level0.sendresult or _root.sendresult as the dynamic
    field's variable.
    Or, instead of loadVariablesNum you could use loadVariables,
    like this:
    _root.enquirypage.loadVariables("form.php", "POST");
    or, if you make the call from a button inside the movie clip:
    this.loadVariables("form.php", "POST");
    /uamg

Maybe you are looking for