Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 8th, 2003, 09:03 PM
illflux illflux is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 illflux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Var won't load from PHP within symbol / scrollbar's screwed

Hi,

I have a problem that I was unable to find a solution to by browsing the boards.

I want to have a flash movie that loads a string of text from a php file and presents it in a scrollable textbox. I have been messing around with various scrollbar solutions that others have made available, but have not been able to get them to work. If I have the flash movie call a text file holding the variable, it works fine. However, if I try to call the php file (which is outputting the exact same value for the variable), it won't work - the textbox shows up empty.

I eventually figured out that if I moved the textbox onto a frame on the main stage (instead of having it within a symbol, as it was when I started), the text loads and displays from the php file just fine. However, the scrolling functionality doesn't work. I'm assuming because the way the actionscript relates to the textbox, it's probably assuming that it's going to be located within the symbol, rather than on the main stage, where I put it.

So, can anybody tell me either 1) how to get my php file to load correctly in the textbox while keeping the textbox within a symbol, or 2) how to make the actionscript know to point to the textbox on the main stage, rather than within a symbol instance?

Thanks in advance.

Reply With Quote
  #2  
Old March 8th, 2003, 10:16 PM
illflux illflux is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 illflux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Oh yeah, I forgot to mention, I would like to make this accessible for Flash 5, but would settle on Flash 6 functionality if 5 won't do the trick.

Reply With Quote
  #3  
Old March 9th, 2003, 01:31 PM
illflux illflux is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 illflux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, cancel that, I figured it out. I had to put "_root." before the variable name in the textbox's var setting. I suck at actionscript, so this wasn't apparent to me until I saw someone do it in an example I stumbled across.

Now, my question is this: how can I make it so that a fresh copy of the file is downloaded every time? The php file outputs a list of links in random order, so I need a new copy to be retrieved every time the page is loaded or refreshed. I know that Flash stuff relies heavily on the browser cache, and when I load my variables, I used "listings.php?rnd="+random(999), but it still won't retrieve a fresh copy every time. It works perfectly in Opera, but not IE. If I spawn a new window containing the swf, it apparently retrieves a new version from the server, because it will refresh as expected, and any windows containing the swf, when refreshed, will also show the latest version, but will not load a new one when refreshed again.

Any tips?

Last edited by illflux : March 9th, 2003 at 01:40 PM.

Reply With Quote
  #4  
Old March 11th, 2003, 09:50 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
so something like

...loadVariables("myPHP.php?" + Math.random()*100000, "POST");

or

......load("myPHP.php?" + Math.random()*100000);

doesn't work at all? to my knoweldge, that is the only way to avoid the chache problem...

cheers,

bret

Reply With Quote
  #5  
Old March 11th, 2003, 11:15 AM
illflux illflux is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 illflux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually, after testing it at work, I've found that it does refresh every time after all. As long as it works when my boss is looking at it - that's all I care about.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Var won't load from PHP within symbol / scrollbar's screwed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway