A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: know when dynamic text is updated?

  1. #1

    know when dynamic text is updated?

    I have a movie, 1 keyframe so far.

    The is a dynamic text box with a lot of text, when the movie loads, the text appears 1-2 seconds after load time.

    The scroll bar doesn't scroll the entire length of text because of this.

    Is there any way to tell when the text is loaded, then create the scroll bar?
    Last edited by SuprasRbetter; 09-23-2004 at 05:07 PM.

  2. #2
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308
    post fla please

  3. #3
    This is a project I took over after the previous guy got fired, its a nightmare, there is no sense in this being a flash file to begin with. You should have seen it before I started fixing it up.

    http://www.structtech.com/dynamicindex.zip


    The problem is in frame 1. When Im working on a blank project and use the actionscript it works fine. However when I use it on this project the actionscript doesn't run. I can't find the problem, then again ive been awake for 15 hours, and im pretty sure that it is a simple solution, such as a var name or something stupid, I just cant find it, and frusterated.







    text.txt has the following contents:

    text=THE WATER CRAFT PRO TOUR 04-19-2004

    The Personal Water Craft pro tour heads to Macon, Georgia and Lake
    Tobesofkee on the 24th and 25th of April for a World Qualifier. All
    racers have their eyes on the RESQ pro/am points and the bonus that
    comes with the points lead for the AMI, Surf and Turf Championship
    Series. Hosted by Mike Young of Surf and Turf Promotions and sanctioned
    by the APBA. RESQ is proud to sponsor the series and looks forward to a
    great year of racing. Check out the race host web site at
    surfandturfpromotions.com and following race check APBA's site at
    www.apbapwr.com to get the race
    results.


    Great racing on Q,
    TEAM RESQ U.S.A.






    RESQ PRO/AM 2004 02-09-2004

    Hello RESQers:

    RESQ launches the jet ski pro tour as the official power drink of the AMI
    Surf and Turf Promotion sponsored pro jet ski tour event. The event
    takes place March 20th and 21st at the Radisson on Okaloosa Island in Ft
    Walton Beach, FL. This event is for points toward the World Nationals,
    Come out and see top names competing at their favourite venue on the
    Emerald
    Coast.

    Contact the office of Mike Young @ Surf and Turf Promotions for further
    information: 850-609-1712.

    RESQ-IS-REALITY|COM
    Team RESQ USA



    RESQ Spring Break 2004 01-30-2004

    Hello RESQers:

    RESQ power drink opens Spring Break 2004 with a bang as the exclusive
    power drink of Concerts for Charity and Elemental Supremacy. We are
    sponsoring the concert on March 19th at the Emerald Coast Conference
    Center on Okaloosa Island in Ft. Walton Beach, FL. The feature act will be
    Digital Underground with Shock G. The event will contain many acts with
    R&B, Hip Hop and Techno being performed in separate venues under
    one roof. For advanced ticket info: contact Fred for further details
    visit www.elementalsurpremacy.com

    Q it up!
    Team RESQ USA



    ...::: Happy New Year 2004 :::... 01-01-2004

    Ladies and Gentlemen:

    On behalf of TEAM RESQ USA and our management I would like to thank all
    our partners, team members and especially our customers who
    made RESQ their first choice and a very popular source of energy.

    We wish everyone a prosperous and Happy New Year 2004.

    Yours,
    Arno
    Team RESQ USA



    The RESQ World Premier 12-16-2003

    Friday the 19th of December: Commences The RESQ World Premier

    Team RESQ hits Atlanta for the "Pure Energy Tour", in coordination with
    ”Destinations and Beyond” magazine. RESQ is touring with 10 beautiful RESQ
    calendar girls promoting RESQ power drink.

    We are searching for talented new teammates throughout the Southeast and
    will be promoting a town near you soon. We are holding
    auditions at the Riviera club on Saturday the 20th of December from
    2pm-10pm. All ladies interested in participating on a reality show in
    beautiful Destin Florida this spring, swimsuit calendar shoot, music video
    or the next cover girl for the Destinations and Beyond magazine should
    come see us at the
    club.

    All artists should bring demos and come perform in front of industry
    scouts, also a special appearance by Def Jam South execs. Take I85 to the
    10th St. exit, 10th St. to Peachtree St, Address #1055 Peachtree (big
    yellow building across the street from club Vision).
    www.rivieraclub.com / 404-607-7277. Come audition and stay as our guest,
    we will bring the energy till
    8am!

    Team RESQ USA




    I.T....I.S....H.E.R.E....N.O.W...! 12-12-2003

    Ladies and Gentlemen!

    New RESQ® with it’s new power formula 2004 has arrived in the United
    States and will soon be available throughout the South-Eastern states.
    Continuous research and development resulted in a new
    intelligent high quality powerdrink that exceeded all our expectations
    when it comes to awesome TASTE, lasting ENERGY, outstanding QUALITY
    and refreshing DESIGN. This new product – or even better – this new
    “feeling” makes it an absolute unique enjoyment and sets it apart from
    our competition.

    Have a try and you will find out that energy drinks can indeed taste and
    look delicious.

    RESQ-IS-REALITY.COM
    Yours,
    TEAM RESQ U.S.A.

  4. #4
    anyone?

  5. #5
    Junior Member
    Join Date
    Sep 2002
    Location
    Richardson, TX
    Posts
    27
    Yipes!!! This thing has all sorts of problems..

    First, to your question at hand, the scrollbar and scrollpane components do not automatically resize if their contents change after they've been loaded, only if they're told to (which would be something that could be included in the loadVars.onLoad function). Or you can do like I did in the attached, and just cram all the text into a text field in a movie clip and create a background to go behind it and provide some margin. (makes it somewhat harder to update though)


    There is an inherent problem with how that text field is designed though in that it will only continue to get bigger. You need a list of your news history so that your users can click to get specific notes by headline, instead of scrolling and scrolling and scrolling, etc.

    The MAJOR issue with this is the huge file size!! Published to .swf it is 2.3MB, which is INSANE even on broadband, and exponentially more impossible on dialup (this is about a 10-minute wait time to download your homepage on an average dialup connection, and a 10-20 second wait on broadband, which is considerably longer than most pages out there). There's no way anyone on dialup would be patient enough to wait for this to download, even with the best preloader on the planet (which I didn't look to see if there even was one).

    This has way too many huge things crammed into one file - the browser experience needs to be streamlined so that it'll load fast, and bring up the big files (video, audio) in the background while the user reads text or whatever. Take advantage of loading external movie clips and driving data (like your news articles) with a database would help a lot.. There's probably a lot of extra code being loaded that isn't necessary anymore either.


    I know you didn't ask for a review, but that's just my $0.02 on what you have here. I feel your pain.

    If you need to get it out there right away, the attached file will work fine.
    Laughter is the very best medicine. Remember that when your appendix bursts next week.

  6. #6
    Junior Member
    Join Date
    Sep 2002
    Location
    Richardson, TX
    Posts
    27
    The file is too big to upload here


    Try here:

    http://www.threepointlanding.net/DynamicIndex.zip

    (that's my old band's site)
    Laughter is the very best medicine. Remember that when your appendix bursts next week.

  7. #7
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    Didn't read other posts but you could use this to laod the text and then check if it is loaded
    code:

    loadtext = new LoadVars();
    loadtext.load("yourtext.txt");
    loadtext.onLoad = function(doneloading) {
    if(doneloading) {
    trace("text is finished loading");
    _root.scrollbar._visible = true;
    }else{
    trace("couldn't load text");
    _root.scrollbar._visible = false;
    }
    };


    So tired of all the fighting....

    http://joejoe2288.kawanda.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center