|
Thanks Paul!
What I nearly forgot - what kind of files can Flash play? mp3 or similar compression level would be good...
and yes, if you could help me whipping it up, that would be cool.
[edit] Just found a cool tool on http://www.swift-tools.com/ - turning a mp3 into a flash. Great! However, it looks like I need to whip up a custom thingie.[/edit]
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
I'll look into it over the weekend I guess
Here's some background:
We want to demo listening tests on our web site - basically "can you hear the difference": it's always between a "perfect" sample and one of ca. 10 "modified" ones.
Ideally, I'd "preload" the sound files (without the user seeing their names - and also, not seeing which one takes longer to load and which is already in the cache).
And ideal UI would be two buttons to sdwitch between "Sample A", and "Sample B"
Is it possible to employ the cache - i.e. not download each sound file every time in this scenario? First the "perfect" sample is always the same, second, the user is likely to go back to a previously heard sample.
Just a few tips for the beginning, if you like
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
Is it possible to employ the cache - i.e. not download each sound file every time in this scenario? First the "perfect" sample is always the same, second, the user is likely to go back to a previously heard sample.
I honestly do not know wether Flash caches resources internally. SWF files themselves to cache fine though, so you could seperate all the mp3s into seperate SWF files and display them alongside each other as neccesary. Then already loaded files will just come from the cache and not have to be downloaded again.
The rest of what you are saying is easy enough. Flash is quite powerful (can you believe I connected Flash to SQL the other day? Hectic stuff.)
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Shog9:
Paul "The human happy pill" Watson
|
|
|
|
|
Paul Watson wrote:
peterchen wrote:
Is a flash plugin wider available than whatever you need to run a JAVA applet?
Debatable. I don't know the hard answer to that. However Flash is truly everywhere.
Reach the widest online audience:
Macromedia Flash Player is used by over 414 million people—the most widely viewable rich client technology to deploy content and applications. Also available for multiple device platforms including Microsoft® TV, Liberate®, Pocket PC and many others
http://www.macromedia.com/software/flash/productinfo/product_overview/[^]
IMHO - Flash is still the only way on the web to get your content to look exactly like you want it ... and only have to do (write) it one time. Not to mention the ease of making incredible mutlimedia websites, the use of components, vector graphics for sweet scalability ... etc, etc, etc.
Web standards are a great thing but I just wish there was a "standard" web browser that actually did everything in the standards.
Sorry, this wasn't meant to be a lash out at you Paul ... I have just been highly frustrated in web development recently
Wally Atkins Newport News, VA, USA
|
|
|
|
|
D2F3U wrote:
I have just been highly frustrated in web development recently
Well first off I can whip out of my bag of tricks 50 reasons why Flash is bad (binary, not a standard, owned by one company, poor accesability etc. etc.) so I don't think Flash is in anyway the correct technology for us to use to create entire websites.
Macromedia.com shows us that a combination of Flash and HTML is the way to go, that site is damned good IMO. Also funny to see how when they re-launched it was 99% Flash. People bitched, it did not work, people moaned, it was terrible to use. Now by beta 4 they have gone to using more HTML than Flash.
As for the web in general; We are trying to do in 4 years what the rest of the IT industry still has not done in 20 (cross platform environment? Does not exist yet.) Plus we are trying to do it not to a few hundred users at a time, but to hundreds of millions of very demanding users who expect the system to work as of yesterday.
Also you mention "your content to look exactly like you want it" well I could go on for 100 pages (with many links to Zeldman) about why that is exactly what we should NOT be aiming for, pixel precision is bad.
Anyway. I get frustrated too. But last week I coded up a simple enough website (20 pages or so) in a single day using HTML and CSS which worked in all modern browsers and worked damned well. I was so pumped, so the frustration is off set when you get things right.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Shog9:
Paul "The human happy pill" Watson
|
|
|
|
|
If you don't want to use Flash or java applets, etc., why not just use the following:
<bgsound balance="0" id="Sounder" loop="1" src="" volume="0">
and then a handler fcn
function setAudio(audioFile) {
Sounder.src = audioFile;
}
|
|
|
|
|
Is there a way to get around the 128KB size limit when caching data on the client-side using the userData behaviour? Otherwise is there a way to save an XML document onto the client-side machine for cross session access?
Using ASP (not ASP.NET) and javascript.
|
|
|
|
|
From what I am aware you can't do that!
sorry
Jason
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
on second thoughts, although might not be approprate for your app...
try and use an IFRAME or a frame of 0 width and use insertAdjacentHTML to write and read from it.
you can even dynamically write the IFRAME by doing something like:
<br />
document.body.insertAdjacentHTML('beforeEnd','<iframe id=myPage width=0 height=0></iframe>');<br />
then you can use:
<br />
myPage.document.body.innerHTML('YOUR XML CODE HERE');<br />
After that you acess it read it or rewrite it...
Hope this helps
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
Thanks - I am doing something like that to persist the XML across the whole application. The problem comes in when they login or logout and they need to download the file to start with. The XML is 400K and it doesn't change very often. I was hoping that there would be a way to persist the data on the client-side between sessions so they wouldn't have to download it every time.
I think I can do it using multiple frames and pages (and hence multiple userData behavior's), but I was hoping there would be a more elegant solution.
|
|
|
|
|
Well, if it is a intranet Internet Explorer only app why don't you try to do something wich ActiveX.
400K is a lot of dada. Do you really need all that on the client?
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
hidden input type usage is good for transfering one value but for array what should be done.
I have used
<%
Dim list(30)
'--Values are retrived from database
'--for e.g say
list(0)="One"
list(1)="Two"
...............
%>
Now at clinet side
'--This is not working for example
MsgBox <%=list(0)%>
Suggest me how to do it.
|
|
|
|
|
You will have to create a VBScript array and loop through the server side array to populate the client side array...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
this should work perfectly fine if there is no problem in your session but there is one important distinction which you are missing:
Now at clinet side
<script LANGUAGE=VBSCRIPT>
'--This is not working for example
MsgBox <%=list(0)%>
</script>
This is not a client side code it runs on your server and value of <%=list(0)%> fills up on the server side.
Hope this helps.
Happy Programming
-- Sumeet
|
|
|
|
|
even you guys insist that these tags accept relative sizes. the only sizes i can get it to accept are ones in pixels. using relative sizing makes them disappear.
how do i embed one html page inside another and retain control over the damn sizes?!?!
Aaron
|
|
|
|
|
Hi,
I am new to PHP, jumping from ASP. I know that there is Response.Redirect (URL) in ASP. But how does that comes in PHP??
I thought that it is Header ('location : URL'); But restriction says.. it should be the first piece of the code in the page. So... I am struck... please help...
I was born intelligent Education ruined me!.
|
|
|
|
|
SPS wrote:
thought that it is Header ('location : URL'); But restriction says.. it should be the first piece of the code in the page.
Yes that is the way to do it. It sends header information to the browser, all of which must be sent before there is any output (graphics, text, etc.) actually sent. Treat it the same as you would a cookie.
Basically, what this means is that you have to handle all of your redirects at the top of the page.
Jon Sagara
You know the world is off tilt, when the best rapper is a white guy, the best golfer is a black guy, the tallest basketball player is Chinese, and Germany doesn't want to go to war.
-- Charles Barkley
|
|
|
|
|
finally I got the answer....
The buffering concept will help to do it.... It goes like this...
<br />
<?php<br />
ob_start();<br />
<br />
<br />
header ("location : URL");<br />
ob_end_flush();<br />
?><br />
The above helped me to push the header succesfully..
I was born intelligent Education ruined me!.
|
|
|
|
|
HI,
Anyone knows how to drag and drop table content from a row/column to another row/column?
Thank you very much
|
|
|
|
|
Hopefully someone can help me...I'm creating this game...it's kind of like a create a story thing...and when the user clicks on a button it moves on to the next skit. Well, instead of moving onto the next skit, it's will keep playing the first skit. Does anyone know what actions have to be assigned?
email: candykid89@hotmail.com
AIM: BinaryBiotch
|
|
|
|
|
Macrmedia has some Flash forums on their website. You'll probably be better off getting your question answered there. Good luck.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Well, from what I can see it appears that the movie is looping which its default nature. You can use ActionScript to stop() the movie at the end of the skit and then let the buttons control where the movie goes after that (gotoAndPlay() ).
I am not sure if that is the problem but from the given information that is where I would start to look.
Can you tell me more about how you are making the movie? Is it all on the main timeline? Do you use different scenes to separate them?
Wally Atkins Newport News, VA, USA
|
|
|
|
|
in flash you can make actions in objets for example on(relase) on(mouseover) and you put sounds in this actions, put diferents layers in your movie one for actions, one for sound and images, and put javascript from your actions in your flash movie this is whit the command getURL(""), test the Macromedia Flash MX is very good
Para seguir la trayectoria:
mira al maestro,
sigue al maestro,
camina junto con el maestro,
mira a través del maestro,
conviértete en el maestro
(this is a poor traduction)
To make you trayectory:
Look your master
Follow your master
walk whit your master
look across you master
become in your master
|
|
|
|
|
I am looking for a function to toggle a frame from one page then another. I have a Image showing and want to be able to hit a button to toggle off frame contents and toggle on another, then reverse if need be.
I have a Frame Page EDMS.html with a frame called viewer and I want to toggle between Data_Form.html and Data_List.html.
Any quick Suggestions?
Remember: You are only as good as your last project.
|
|
|
|
|
I have two list boxes.
First list box is filled with some enteries from database.
Now when user select one entry from first list box(client-side event) then second list box is filled with values based on that first selection.
Second list box enteries are retrived from database(server side action).
Guide me how to do this.
|
|
|
|