Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (547)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java applets in a Flash based website?  (Read 3459 times)
0 Members and 1 Guest are viewing this topic.
Offline Phased
« Posted 2012-07-25 06:16:37 »

Well for school, I have to create a website, I had no idea what to make it on, so the best thing I thought would be Java tutorials, nothing fancy, just have to have 5 pages, I plan to have like 7! Just going to write a tutorial like a simple multiplication calculator or something like that, then display some Java applets, because I'm so bad at design I thought I would check out some templates, found some cool looking flash based website, and was like oh wow this would look cool! I'm going to use that! then I started to think, how will I be able to display an applet, because the applet code is for HTML.

In other words, has anyone used a flash website, and has been able to display a Java applet on it? or know a work around? or will I just have to mimic the website design to HTML, and make the website use the HTML version of the website to display just the applet?
Offline ReBirth
« Reply #1 - Posted 2012-07-25 06:36:03 »

I think there is no way to do that. There is a trick though, dont use flash for your whole page. Use the flash as ornament only, lefting blank html body in center so you can insert applet there.

Offline meingrosserfreundjo

Senior Newbie





« Reply #2 - Posted 2012-07-25 06:37:18 »

Embedding Flash in Java is hard enough but the other way round is afaik not possible.

And before you start to split your flash thing in multiple parts to put around your Applet i'd suggest you just do HTML+CSS (which i think is the intended purpose of letting you create a website in the first place?).

There are some pretty awsome Templates out there. Go get 'em  Wink
(EDIT: Writing your own would be the best option though... You just don't have to invent the wheel over and over again. Use the best parts and ditch the rest)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Phased
« Reply #3 - Posted 2012-07-25 06:44:26 »

Quote
I think there is no way to do that. There is a trick though, dont use flash for your whole page. Use the flash as ornament only, lefting blank html body in center so you can insert applet there.
I was afraid of that, I'm by far not a web designer and would find that like super hard lol

Quote
And before you start to split your flash thing in multiple parts to put around your Applet i'd suggest you just do HTML+CSS (which i think is the intended purpose of letting you create a website in the first place?).

im in year 11, doing one year 12 subject, which is IPT (Information Process and Technology, pretty much systems, gantt charts, flow charts, data flow diagrams, system testing plan, feasibility studies etc) the assignment was a 4 part assignment, first start planing out the website what it is on, the design, second was feasibility studies, what technology we need, the pricing, time it will take to create etc. third part was to do data flow diagrams and all those kind of stuff, system testing plans, more detailed design, story board, sitemap etc.

The last part was to create a website, we are allowed to use templates, he said, this is not a website development course, we just want you to know how to design the system and that, so were allowed to use templates, or using dreamweaver or any other program where you don't need to type one line of code in. So, might just go for a HTML website, just the flash websites look cool Tongue
Offline ReBirth
« Reply #4 - Posted 2012-07-25 06:45:22 »

Actually I never do this before, but if flash can be inserted by html code inside like iframe does (idk, google it), then it may be possible.

[offtopic/]
Welcome to JGO,    meingrosserfreundjo. Your very first post is help someone, great!

Offline Phased
« Reply #5 - Posted 2012-07-25 06:47:47 »

Actually I never do this before, but if flash can be inserted by html code inside like iframe does (idk, google it), then it may be possible.

http://www.flashmo.com/page/1

download one of there examples, they start off with a HTML, and use flash for the design, and XML for the pages aswell as CSS file oh and JavaScript, but I have no idea what it is used for XD
Offline meingrosserfreundjo

Senior Newbie





« Reply #6 - Posted 2012-07-25 10:38:03 »

...he said, this is not a website development course, we just want you to know how to design the system and that, so were allowed to use templates, or using dreamweaver or any other program where you don't need to type one line of code in...

Didn't know that. Then i would really suggest just to take a Template and fiddle around a bit until it looks the way you like it/can use it. Is there any particular Reason that the Flash-Site is so preferable? Are we talking about "cool" Animations here or really a well done Concept/Style?

Is this a public Template? You got any URL or some kind of way to show the Flash-Site or what you want to achieve?
Offline meingrosserfreundjo

Senior Newbie





« Reply #7 - Posted 2012-07-25 10:45:45 »

Just looked at a few of the Examples from the URL you posted.

A lot of these Designs can be achieved with a Combination of CSS-structured HTML and a bit of JavaScript (=The "little" neat scripting Language that provides all these nifty little dynamic features of modern Websites. Side-scrolling and other animations, automatic Reloads,... you name it)

Most things that have some kind of Animation or dynamic Functions are done using JavaScript. That is if not using Flash of course (what i personally prefer).
Offline meingrosserfreundjo

Senior Newbie





« Reply #8 - Posted 2012-07-25 10:58:39 »

[offtopic/]
Welcome to JGO,    meingrosserfreundjo. Your very first post is help someone, great!

Thanks for the warm welcome. I had to write something sometime. I got so much Information for my own Projects just being passive and reading the Topics of the Forum. First thing wenn i start up my Machine is reading news and new posts in Topics I'm interested in. Kinda keeps me informed what the latest best practices or librarys are. Just to keep up with changes that occur every day (or so it seems).

So i figured i'd start to give something back, hoping that somebody could use parts of my rambling to solve his/her problems or questions like i do quite a few times.  Cheesy
Offline Phased
« Reply #9 - Posted 2012-07-25 11:49:22 »

Well, we have like 1 - 2 weeks to make the website, I only know the basics of HTML, as like its so simple, what I was doing today when I actually started to make the website, was fiddling around with Dreamweaver, chose their simple 3 column header and footer and just added their menu button thing in, and fiddled around with the code changing colours and stuff like that, as its definitely not the easiest thing to do when changing the colour of a certain part with Dreamweaver =\ they could improve on that (that or I just failed at clicking in the right spot?).

Like I said, I just assumed the animations and stuff was kind of based off flash, This is pretty much one of the first times iv had too look into web development, designing something is definitely not my strong point. I'll still look for some HTML templates that I like, was just hoping their might of been a way to implement with a flash based website, because out of all the flash and html ones I looked at, by far the flash ones looked the coolest of the ones I saw.

Thanks though for everyone who replied, I'll probably either continue on with oh so pro design skills, or find a template Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline meingrosserfreundjo

Senior Newbie





« Reply #10 - Posted 2012-07-25 12:40:53 »

Since i have developed some Sites i might be able to help you here and there.

Should questions rise concerning JavaScript, HTML, CSS or a Combination of all three i will do my best to answer them.

Some references:
http://www.w3schools.com/
http://de.selfhtml.org/

These are my choice when it comes to looking up how to use "this" HTML-Element for "that" purpose, the Syntax of a Function in JavaScript or debugging both for Errors/Mistakes.

Sometimes you will find a "best practice" or "how NOT to...". Often spared me countless Hours of Searching and Optimizing.

And a little extra: http://www.csszengarden.com/ - what can be done with the same source and some CSS  Pointing
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #11 - Posted 2012-07-25 12:53:13 »

There are multiple ways of making a website. Using Dreamweaver for all of it is one, but so is using MS Word.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #12 - Posted 2012-07-25 18:44:42 »

I recommend WordPress for your website Smiley

Never, ever, visit w3schools.com. They are so bad that killing babies is better.

Offline sproingie

JGO Kernel


Medals: 202



« Reply #13 - Posted 2012-07-25 20:03:50 »

What exactly is wrong with w3schools?  I find they're an excellent reference for CSS, just for one.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #14 - Posted 2012-07-25 20:05:34 »

What exactly is wrong with w3schools?  I find they're an excellent reference for CSS, just for one.
A significant amount of information on w3schools is incorrect. It's better avoided. (eventhough I use it myself, for quick fixes)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Cero
« Reply #15 - Posted 2012-07-25 20:06:08 »

What exactly is wrong with w3schools?  I find they're an excellent reference for CSS, just for one.
A significant amount of information on w3schools is incorrect. It's better avoided.
True that.

Offline meingrosserfreundjo

Senior Newbie





« Reply #16 - Posted 2012-07-25 22:25:03 »

I was not aware that seemingly w3schools presents you with wrong information. Huh
I for my part never stumbled upon something error-prone and liked the Feature where you can tamper around with the code directly online without much hassle.
But i also have to admit that i never read the explaining paragraphs around the bits of code since that is all i need (use it more like a quick reference than to learn).

Might keep my eyes open for aforementioned wrong informations the next time i stop by at w3schools.
Offline meingrosserfreundjo

Senior Newbie





« Reply #17 - Posted 2012-07-25 22:30:04 »

I recommend WordPress for your website Smiley

I second that suggestion. Choose a Design you like once and forget about it. All you have to do from there is to pump out Sites/Content. Might be just the thing for you.  Wink
Offline ReBirth
« Reply #18 - Posted 2012-07-25 23:51:32 »

A significant amount of information on w3schools is incorrect. It's better avoided. (eventhough I use it myself, for quick fixes)
My whole life is lie! I always look on them for basic html learn!

Offline meingrosserfreundjo

Senior Newbie





« Reply #19 - Posted 2012-07-26 06:19:57 »

Some references:
http://de.selfhtml.org/

Just saw that i suggested a German Help-Site in an english Forum  Emo *facepalm*. Sorry for that. Force of habit.

A significant amount of information on w3schools is incorrect. It's better avoided. (eventhough I use it myself, for quick fixes)
My whole life is lie! I always look on them for basic html learn!

It did (and still does) work for me. I think if you approach the tutorials on w3schools with a certain amount of skepticism and caution it may work quite well for some fundamental basics. As i mentioned i never really read something mindblowing wrong. Undecided

@ra4king Are we talking about false practices here or really about errors?
@Riven same question. How would you define that "significant amount of false information"?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #20 - Posted 2012-07-26 06:24:41 »

There are even websites fully  dedicated on correcting (naming and shaming) w3schools, like http://w3fools.com/

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline sproingie

JGO Kernel


Medals: 202



« Reply #21 - Posted 2012-07-26 06:33:05 »

About half the items on that w3fools page seemed like nitpicking ... but the other half had some whoppers.  And hey I learned about the google blacklist in the bargain, no need for a greasemonkey extension, so that was cool too.
Offline gimbal

JGO Knight


Medals: 25



« Reply #22 - Posted 2012-07-26 08:22:40 »

About half the items on that w3fools page seemed like nitpicking ...

I agree with you, but we're talking about a whopping huge pile of nitpicks. So many tiny flaws still makes for a pretty useless information source to me.

I wouldn't mind it much, but this has been going on for so long now and I see little effort to better the website given the whopping amount of information available to be able to do so - they don't even have to think about it really, just spoon over what other people have already written down for them :/ That is the biggest fail in the whole story to me.
Offline meingrosserfreundjo

Senior Newbie





« Reply #23 - Posted 2012-07-26 08:57:43 »

So i possibly have to change my mind about w3schools after all.  Sad
Reading the Posts and the information bits around the code on w3schools proofes to be a bit frustrating.

Still i'm missing a how to at the bottom of the majority of the how not to sections. They do describe whats wrong. But not how to make it right. Some code-snippets would sometimes be nice.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (13 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (58 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!