Bitcoin Forum
April 23, 2025, 10:26:45 AM *
News: Merit Poker is still available for a limited time
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Other / Off-topic / Re: Let's Count to 21 Million with Images on: July 24, 2012, 12:16:18 AM
2  Bitcoin / Project Development / Re: Minor Flash Action Script touch up needed - 1 BTC bounty on: July 17, 2012, 06:11:17 PM
Try adding the following lines at the very end of the file.

Code:
function firstStart():void {
playButton.y = 100;
pauseButton.y = 0;
pauseButton.visible = true;
playButton.visible = false;
pline.visible = true;

ExternalInterface.call("js_playTune", root.loaderInfo.parameters.pid);
playTune(root.loaderInfo.parameters.mp3_path);
progressTimer.start();
}

firstStart();

This should work unless the code has issues elsewhere.  I haven't really thoroughly checked it, but it seemed to be okay, elsewhere, at a quick glance.


That made it work. Thank you very much!

Sent 1 Bitcoin to the address in your signature.

3  Other / Off-topic / Re: Let's Count to 21 Million with Images on: July 17, 2012, 06:06:12 PM
4  Bitcoin / Project Development / Re: Minor Flash Action Script touch up needed - 1 BTC bounty on: July 14, 2012, 11:00:46 AM
Well i can not try anything i do not have the class GLPlayer anyway.
but you can try to add
onPlayClick(null);
at the end of the code, it might just work.



No doesn't work.
Also when I do that it shrinks the .swf file from 4kb to 1kb and doesn't load at all.

Perhaps somebody else here has at least CS4 to have a look at it.


5  Bitcoin / Project Development / Re: Minor Flash Action Script touch up needed - 1 BTC bounty on: July 12, 2012, 11:33:24 PM
Do you have the actual .mp3 ?
[EDIT] didn't saw the .fla... i'll have a look Smiley
Do you have a version compatible with flash CS3 ? ( do not have above... )

CS4 is the lowest I can save in Sad

Here's the code, maybe that helps:



Code:
var timerResolution:int = 200;
var glp:GLPlayer;
var curPath:String;
var playOnce:Boolean = root.loaderInfo.parameters.playOnce;

pauseButton.visible = false;

function playTune(s:String) : void {
if (!glp || curPath != s) {
glp = new GLPlayer(new URLRequest(s));
curPath = s;
}
glp.position = 0;
if (playOnce) {
glp.playOnce();
} else {
glp.playLoop();
}
}

function pauseTune() : void {
if (!glp) return;
glp.pause();
}

function getTunePosition() : Number {
if (!glp) return 0.0;
return glp.position-50;
}

function getTuneLength() : Number {
if (!glp) return 0.0;
return glp.length;
}

function isTuneLoaded() : Boolean {
if (!glp) return false;
return glp.canSeek;
}


var pline:Sprite = new Sprite();
var progressTimer:Timer = new Timer(timerResolution);
progressTimer.addEventListener(TimerEvent.TIMER, showProgress);

pline.visible = false;
addChild(pline);

function drawProgress(cur:Number, total:Number) : void {
if (!total || total == 0) return pline.graphics.clear();
pline.graphics.clear();
var max:Number = cur/total*360.0;
var rad, cx, cy : Number;
var r:Number = 12.5;

pline.graphics.lineStyle(0.1, 0x888888);
for (var i=0; i<max; i++) {
rad = i*Math.PI/180.0;
cx = r*Math.sin(rad);
cy = r*Math.cos(rad);
pline.graphics.drawCircle(cx+15, cy+15, 1);
}
}

function showProgress(ev:TimerEvent):void {
var cpos:Number = getTunePosition();
var totalLen:Number = getTuneLength();
drawProgress(cpos, totalLen);

if (playOnce && cpos >= totalLen-timerResolution-100) {
setTimeout(function() {
onPauseClick();
}, timerResolution+150);
}
}

function onPlayClick(ev:MouseEvent):void {
playButton.y = 100;
pauseButton.y = 0;
pauseButton.visible = true;
playButton.visible = false;
pline.visible = true;

ExternalInterface.call("js_playTune", root.loaderInfo.parameters.pid);
playTune(root.loaderInfo.parameters.mp3_path);
progressTimer.start();
}


function onPauseClick(ev:MouseEvent=null):void {
pauseButton.y = 100;
playButton.y = 0;
pauseButton.visible = false;
playButton.visible = true;
pline.visible = false;

progressTimer.stop();
progressTimer.reset();
ExternalInterface.call("js_pauseTune", root.loaderInfo.parameters.pid);
pauseTune();
}

function onPauseOver(ev:MouseEvent):void {
pline.visible = false;
}

function onPauseOut(ev:MouseEvent):void {
pline.visible = true;
}
Security.allowInsecureDomain("*");
Security.allowDomain("*");
ExternalInterface.addCallback("halt", onPauseClick);
playButton.addEventListener(MouseEvent.CLICK, onPlayClick);
playButton.addEventListener(MouseEvent.MOUSE_OVER, onPauseOver);
pauseButton.addEventListener(MouseEvent.MOUSE_OVER, onPauseOver);
pauseButton.addEventListener(MouseEvent.MOUSE_OUT, onPauseOut);
pauseButton.addEventListener(MouseEvent.CLICK, onPauseClick);
6  Bitcoin / Project Development / [CLOSED] Minor Flash Action Script touch up needed - 1 BTC bounty on: July 12, 2012, 06:39:23 PM
[removed link] uses a small action script that loops mp3's.

the source file is at [removed link] (Adobe Flash CS4)

I want the mp3 to autostart on pageload instead of waiting for the user to click the play button.

It should be fairly simple to do, however, I know nothing about Action Scripts.

Bounty: 1 BTC


Let me know if you need additional info!



7  Bitcoin / Project Development / Re: 5BTC bounty for best new website logo. Now a 10BTC bounty!!! on: July 12, 2012, 06:22:16 PM
I didn't want to spend too much time on this but I liked the challenge. so here's a basic design.
modifications are possible.

let me know if you think this is interesting to you.






8  Other / Off-topic / Re: [ANN]Legal complaint against bitcoinica.com on: February 17, 2012, 03:26:03 AM
Man.. guys like you are the reason why I hate the law.

If you don't like a service don't do business with it.


9  Bitcoin / Bitcoin Discussion / Re: community backed legal entity to defend bitcoin related projects is a must on: February 16, 2012, 11:59:01 AM


And, such rules are not that easy to pass. They'll need to define what bitcoin is, to explain how it differs from facebook money and the gaming industry money, why people living in democracies can't buy bits with their money, etc. It will be even harder if we put up some fight.



good point



10  Bitcoin / Bitcoin Discussion / Re: Worlds First Bitcoin Tattoo [NSFW] on: February 16, 2012, 10:33:15 AM
yeah I know this thread hasn't been posted in in 120 days, but fuck it I'll just shoot it up to the top once more Smiley


And they said you couldn't eat money....


11  Bitcoin / Bitcoin Discussion / Re: Bruce Wagner speaks about TradeHill on: February 16, 2012, 05:45:29 AM
Tradehill....

you should've never called yourself a hill when the market leader already was a mountain.


I mean...


12  Other / Off-topic / Re: Answer the question above with a question. on: February 12, 2012, 12:18:12 AM
Is this really the end of the thread?
13  Other / Off-topic / Re: My new business idea is going to be worth billions on: February 08, 2012, 11:11:14 PM



I'm selling shares now for $1,000,000USD per share, with a trillion shares available.

Is everyone ready to get in on this bleeding edge synergy?


That logo will at least get you all the chicks, in spite of all reasonable skepticism, guaranteed!


14  Other / Off-topic / Re: [namecoin] new concept of domain names alltogether possible? on: February 08, 2012, 11:07:30 PM
why the hell would you save the www after all that talk of redoing the internet naming scheme?

bit://enjoy.coke/

makes more sense at that point... because you could already get that domain if you made a top level named coke. Which is where we got all these other top level names from such as .info, .name, .biz


The first part (enjoy) would become the TLD.
Registering that would enable you to create urls like
...://enjoy.coke/
...://enjoy.pepsi/
...://enjoy.watching.pics.of.my.naked.sister/cherrypie_mayhem.jpg
for example Smiley

Registering "www" first you could sell as many traditional looking web addresses as you want and thereby adopt the entire web while youre at it...
15  Local / Deutsch (German) / Re: Drittes Münchner Bitcoin Meetup am 21.09.11 (CHECK IT OUT) on: September 19, 2011, 02:04:02 PM
Cool!


bis Mittwoch!


16  Local / Deutsch (German) / Re: Drittes Münchner Bitcoin Meetup (Terminfindungsphase) on: September 09, 2011, 11:05:23 AM
17. und 18. wären für mich beide in Ordnung.

17  Other / Off-topic / Re: [namecoin] new concept of domain names alltogether possible? on: August 19, 2011, 03:46:59 PM
That's a rather powerful spell to use on something as trivial as that.


Huh? Spell? What do you mean?
18  Local / Anfänger und Hilfe / Re: HOWTO: Bitcoin gegen Bargeld on: August 19, 2011, 03:33:56 PM
Mein HOWTO soll nur eine Möglichkeit aufzeigen wie zwei Privatpersonen schnell und unkompliziert tauschen können.

Die normale Variante über den Client gestaltet sich wegen des Bestätigungsprozesses (und eventueller Blockchain-Updates) gerade bei kleineren Transaktionen nämlich sehr aufwendig.


Aber jeder wie er mag.



Speedy
19  Other / Off-topic / Re: [namecoin] new concept of domain names alltogether possible? on: August 15, 2011, 08:24:46 PM
dude.. don't ask
20  Other / Off-topic / [namecoin] new concept of domain names alltogether possible? on: August 15, 2011, 08:04:45 PM
with the emergence of distributed dns's such as namecoin, could the fundamental logic of domains be redefined alltogether?

could a url be made to look like this?:

protocol://space.subspace1.subspace2.subspace3/folder/file?=POST_DATA

with 'space' being the domain name and the idea of TLD's and country name suffixes dropped entirely?


I'm writing this because I had a science ficticious hallucination last night and a white-bearded guy with a pointed hat and an e-cigar told me the domain name system was gonna be renamed to 'space name system' (SNS) and that those www.'s and dot-something's were gonna be a thing of the past.

I also saw something about desktops disappearing and 3d nodebrowsers...uh never mind


Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!