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 28th, 2003, 05:32 AM
jokerbabe jokerbabe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Sweden
Posts: 3 jokerbabe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to jokerbabe Send a message via Yahoo to jokerbabe
Question jsp, mySQL import into flash

Hi all!

I have a problem and a question. Any help is greatly appreciated.

I´m setting up a website running unix, apache, mySQL and jsp. I would like a flash frontend to the site but have a need of publishing tables of data from the database. My question is if it is possible to do this inside the flash area of the frontend.

I´m not a programmer, I just try to get information enough to take a decision on how to approach it. So in any answer please leave out the code parts ;-)

TIA

Jokerbabe

Reply With Quote
  #2  
Old March 28th, 2003, 10:48 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
hello,

there are no "tables" per se in flash. However, through some simple code you could take the jsp output and construct your own tables. There are also many components (the data grid for example) that are built specifically to help flash's lack of support for native tables. It's plenty possible, but will just take a little work around...

also, what kind of data will you be displaying? the datagrid is only for textual data. If you need pictures in there, you'll need to build your own "row" element and just duplicate and allocate as you need. It will take an intermediate amount of Flash knowledge to be able to take the data and turn it into what you want (just to warn you).

cheers,

bret

Reply With Quote
  #3  
Old March 31st, 2003, 01:39 AM
jokerbabe jokerbabe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Sweden
Posts: 3 jokerbabe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to jokerbabe Send a message via Yahoo to jokerbabe
Okej...

Sounds like a waste of time to get into that type of flash programming since the data partly consists of pictures.

The thing is, I´d like to show different buildings with a reasonable amount of textual data like architect, building year and stuff, and of course an undefined number of pictures of that building. Maybe the best solution is to leave the flash front end when displaying the buildings. But it would be a lot more boring...

Thanks anyway!

Reply With Quote
  #4  
Old March 31st, 2003, 03:11 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
well, i'm not saying it's not possible... there are plenty of methods you could use to integrate pictures into dynamic flash pages... it will just take a little (a lot of) work... basically you'll have to build your page, knowing the exact dimensions of every element on the page. that's not so hard, since everything has a _width and _height property, but to make a completely dynamic page would take a little effort...

Reply With Quote
  #5  
Old March 31st, 2003, 03:52 AM
jokerbabe jokerbabe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Sweden
Posts: 3 jokerbabe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to jokerbabe Send a message via Yahoo to jokerbabe
Well, it´s the workload I´m afraid of and try to work around ;-)

The problem is, as I understand it, that the pictures should be uploaded by a number of people (not that many, but many enough) that you can´t trust to adjust pictures to a certain width and height. That means that I have little control over the sizes of the pictures and the number of pictures.

Is the method otherwise to have actionscripts interpreting the jsp-pages or could flash actionscripts communicate directly with the sql? (I´m on thin ice here, just had to ask anyway. Feel free to laugh if it was a silly question)

I guess there is a long row of obstacles which has to be overcome, the easiest way out - even if it´s less fun - maybe is to display the jsp page instead...

Reply With Quote
  #6  
Old March 31st, 2003, 04:49 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
you'll have to forgive me if this isn't all clear, it's about 4:30 am here...

Flash can't directly communicate with any server side technology. What it can do is load .jsp, PHP, .asp, .pl etc. pages that format the output in a way that flash can interpret it. That basic format is as follows:

&variable=value&variable2=value2&

Instead of having your Java server page write out HTML, it would write out all of the data that you want to display, (or even give links to pictures that flash could load in) and then once flash loads all of the &variable=value pairs in, it could build the pages dynamically from within the Flash movie. The sizing of the pictures shouldn't be a problem because you can resize/resample them server-side, or resize them once they get loaded into flash.

If you want to learn more of the details of the Flash side of things, i would suggest that you look at the loadVariables() and LoadVars() objects. These will be the primary methods of getting data in and out of flash.

Your .jsp page will obviously have to change in it's formatting, as it will no longer be writing an HTML page... one thing you might consider, because it sounds like it might make your data organisation easier, is to format an XML document, instead of the &variable=value method. Flash has a built in XML parser that works pretty well, and it would be a lot clearer as to what data you were loading in. i have actually one no work with .jsp, but i know that PHP has a built in XML class, and .jsp should have the same.

i wasn't trying to discourage you from the project, i just wanted to let you know that it will take 1) a lot of planning, both server side and client side and 2) a good understanding of dynamic data in Flash, including loadVariables, LoadVars and/or XML in flash.

cheers,

bret

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > jsp, mySQL import into flash


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