Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Hi Karl, Thanks a lot for help. I am using AS2.0 only. But this solves half of the problem. Suppose if I navigate away from this page to some other page having same player embedded. Now how player will recognize that user has paused it in previous page? That means I have to send some variable out to web page when user pauses it. Any idea? On Fri, Jun 5, 2009 at 5:44 PM, Karl DeSaulniers wrote: > That is AS2 and goes inside your flash file along with the button to play > and pause.. > BTW > > Not sure how or if it works with AS3 if that is what your programing with. > Someone may be able to make a conversion? > > Best, > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > > On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: > > Hi, >> >> I need to create a simple flash audio player with play, pause (and/or >> volume >> control). It will be added to a web page. >> >> Now the problem is if a user pauses the player, I need to retain its >> paused >> state between web pages untill he decides to play it again. And if he >> plays >> it and navigates to some other page using simple anchor (non flash), then >> audio should automatically play untill he pauses it. >> >> My idea is to store play/pause state in some variable (or XML), so that >> state can be maintained. BUT I do not know how to do it. >> CAN ANYONE HELP? >> >> Rajiv >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Thanks Sid, Can you give any example to use SharedObject. I have not used it before. Rajiv On Fri, Jun 5, 2009 at 5:44 PM, Sidney de Koning wrote: > Hi Rajiv, > > Take a close look at the SharedObject, this is basicaaly a Flash cookie > written on the users side and you can read it out when ever you need. > > Hope this helps, > > Sid > > > On Jun 5, 2009, at 1:59 PM, Rajiv Seth (Pixeldust) wrote: > > Hi, >> >> I need to create a simple flash audio player with play, pause (and/or >> volume >> control). It will be added to a web page. >> >> Now the problem is if a user pauses the player, I need to retain its >> paused >> state between web pages untill he decides to play it again. And if he >> plays >> it and navigates to some other page using simple anchor (non flash), then >> audio should automatically play untill he pauses it. >> >> My idea is to store play/pause state in some variable (or XML), so that >> state can be maintained. BUT I do not know how to do it. >> CAN ANYONE HELP? >> >> Rajiv >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > Sidney de Koning - be a geek, in rockstar style! > Flash / AIR Developer @ www.funky-monkey.nl > Technical Writer @ www.insideria.com > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with links in htmlText
Thanks Taka!!! That worked perfectly!! :) -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 On Jun 5, 2009, at 6:22 PM, Taka Kojima wrote: unescape ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with links in htmlText
sorry, I pasted the wrong result loop: for each (var result:GoogleNewsItem in resultObject.results) { search_mc.searchResults.htmlText = search_mc.searchResults.htmlText +""+result.title+""; } -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 On Jun 5, 2009, at 5:50 PM, Karl DeSaulniers wrote: Can we see your code where you assigning the URL? Sent from losPhone On Jun 5, 2009, at 6:33 PM, Carl Welch wrote: Hi Guys & Gals, I am having a hard time getting htmlText to link their hrefs properly. example here: http://www.carlwelch.com/searchTest.html I have the href target set to "_blank", but when the link is selected, my server address (http://www.carlwelch.com/) gets added to the beginning of the url, like this: http://www.carlwelch.com/http%3A%2F%2Fwww.metnews.com%2Farticles%2F2009%2Fhanl060309.htm ... how can I prevent this from happening??? Thanks!! -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with links in htmlText
I'm using Joris' google search API: import be.boulevart.google.ajaxapi.search.news.data.GoogleNewsItem; import be.boulevart.google.ajaxapi.search.news.GoogleNewsSearch; import be.boulevart.google.events.GoogleApiEvent; import be.boulevart.google.events.GoogleAPIErrorEvent; import be.boulevart.google.ajaxapi.search.GoogleSearchResult; var googleNewsSearch:GoogleNewsSearch=new GoogleNewsSearch(); googleNewsSearch.search("Theft",0,"d","Los Angeles","en"); googleNewsSearch .addEventListener(GoogleApiEvent.NEWS_SEARCH_RESULT,onWebResults); googleNewsSearch .addEventListener(GoogleAPIErrorEvent.API_ERROR,onAPIError); function onWebResults(e:GoogleApiEvent):void { var resultObject:GoogleSearchResult=e.data as GoogleSearchResult; trace("Estimated Number of Results: "+resultObject.estimatedNumResults); trace("Current page index: "+resultObject.currentPageIndex); trace("Number of pages: "+resultObject.numPages); for each (var result:GoogleNewsItem in resultObject.results) { trace(result.title, result.url); searchResults.htmlText = searchResults.htmlText +result.title, result.url; } } function onAPIError(evt:GoogleAPIErrorEvent):void { trace("An API error has occured: " + evt.responseDetails, "responseStatus was: " + evt.responseStatus); } -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 On Jun 5, 2009, at 5:50 PM, Karl DeSaulniers wrote: Can we see your code where you assigning the URL? Sent from losPhone On Jun 5, 2009, at 6:33 PM, Carl Welch wrote: Hi Guys & Gals, I am having a hard time getting htmlText to link their hrefs properly. example here: http://www.carlwelch.com/searchTest.html I have the href target set to "_blank", but when the link is selected, my server address (http://www.carlwelch.com/) gets added to the beginning of the url, like this: http://www.carlwelch.com/http%3A%2F%2Fwww.metnews.com%2Farticles%2F2009%2Fhanl060309.htm ... how can I prevent this from happening??? Thanks!! -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with links in htmlText
I looked at your stream, and it looks like you are using the wrong response data. "unescapedUrl":"http://www.nbclosangeles.com/news/local/Employee-Allegedly-Steals-250K-in-Fuel-from-City.html","url":"http%3A%2F%2Fwww.nbclosangeles.com%2Fnews%2Flocal%2FEmployee-Allegedly-Steals-250K-in-Fuel-from-City.html"; The response returns two properties, you should be using "unescapedUrl", and it looks like you are using "url" to set the href. So, you can do one of two things. Obviously, since the unescapedUrl is already being passed back, you can just use that or when you set the href you can run an unescape on it in flash, i.e. "unescape(url)" - Taka On Fri, Jun 5, 2009 at 5:50 PM, Karl DeSaulniers wrote: > Can we see your code where you assigning the URL? > > Sent from losPhone > > > On Jun 5, 2009, at 6:33 PM, Carl Welch wrote: > > Hi Guys & Gals, >> >> I am having a hard time getting htmlText to link their hrefs properly. >> >> example here: >> http://www.carlwelch.com/searchTest.html >> >> I have the href target set to "_blank", but when the link is selected, my >> server address (http://www.carlwelch.com/) gets added to the beginning of >> the url, like this: >> >> >> http://www.carlwelch.com/http%3A%2F%2Fwww.metnews.com%2Farticles%2F2009%2Fhanl060309.htm >> >> ... how can I prevent this from happening??? >> >> >> Thanks!! >> -- >> Carl Welch >> http://www.carlwelch.com >> http://blog.jointjam.com >> carlwelchdes...@gmail.com >> 805.403.4819 >> >> >> >> >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Problem with links in htmlText
Can we see your code where you assigning the URL? Sent from losPhone On Jun 5, 2009, at 6:33 PM, Carl Welch wrote: Hi Guys & Gals, I am having a hard time getting htmlText to link their hrefs properly. example here: http://www.carlwelch.com/searchTest.html I have the href target set to "_blank", but when the link is selected, my server address (http://www.carlwelch.com/) gets added to the beginning of the url, like this: http://www.carlwelch.com/http%3A%2F%2Fwww.metnews.com%2Farticles%2F2009%2Fhanl060309.htm ... how can I prevent this from happening??? Thanks!! -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Projector "Serial Number" protection
I second that notion. Zinc is not your friend. On Fri, Jun 5, 2009 at 3:18 PM, Info wrote: > We did several projects using Zinc and regretted every one. We kept > running into .dll errors and they kept issuing updates saying they were > fixed, which they weren't. Worse yet, if you complained in their forums > your post would get deleted. > > I had high hopes for v3.0 because they rewrote from the ground up and > claimed that the .dll errors could not happen now. Nope. We still got > them. > > We finally said enough. They got our money to upgrade to v3 but they'll > never get another cent from our company. I would turn down a project before > I even considered taking one that required Zinc. > > > > At 02:05 AM 5/27/2009, you wrote: > >> Likewise (I seem to keep saying this) I have had a number of serious >> problems with Zinc over the years, and our company has had to migrate >> away from it. >> >> Ian >> >> On Wed, May 27, 2009 at 1:07 AM, Muzak wrote: >> > Careful with buying Zinc if you don't already have a license. >> > As of late, their support is non existing. They haven't responded in >> quite >> > some time on their support forums. >> > I've asked them (a month ago) about a (serious) bug that has been around >> > since August 2008 and haven't heard anything. >> > >> > Just a friendly warning :) >> > >> > - Original Message - From: "Glen Pike" < >> postmas...@glenpike.co.uk> >> > To: "Flash Coders List" >> > Sent: Wednesday, May 27, 2009 12:22 AM >> > Subject: Re: [Flashcoders] Projector "Serial Number" protection >> > >> > >> >> Hi, >> >> >> >> Cheers guys - Zinc looks quite sturdy and possibly a nice investment, >> >> depending on whether the (humanoid) client wants to go for something >> >> flexible. >> >> >> >> Found a few other products that let you bundle in serial protection - >> >> probably less flexible, but cheap - links for anyone interested. >> Comments >> >> welcome.. >> >> http://www.increditools.com/flash_exe_builder/features.php >> >> http://www.chameleonflash.com/index.html >> >> >> >> As for the robots - they can look after themselves - can't put serial >> >> numbering on an OS Linux app, so we have to resort to making the robots >> walk >> >> and fight their own battles :P >> >> >> >> Later >> >> >> >> Glen >> >> >> > >> > ___ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Problem with links in htmlText
Hi Guys & Gals, I am having a hard time getting htmlText to link their hrefs properly. example here: http://www.carlwelch.com/searchTest.html I have the href target set to "_blank", but when the link is selected, my server address (http://www.carlwelch.com/) gets added to the beginning of the url, like this: http://www.carlwelch.com/http%3A%2F%2Fwww.metnews.com%2Farticles%2F2009%2Fhanl060309.htm ... how can I prevent this from happening??? Thanks!! -- Carl Welch http://www.carlwelch.com http://blog.jointjam.com carlwelchdes...@gmail.com 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] get raw bytes and computer spectrum access for the microphone
http://bugs.adobe.com/jira/browse/FP-1766 You just need to sign up seriously, it would enable to so many applications I have been dreaming of for the web. for more info: http://www.getmicrophone.com/?p=17 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Projector "Serial Number" protection
We did several projects using Zinc and regretted every one. We kept running into .dll errors and they kept issuing updates saying they were fixed, which they weren't. Worse yet, if you complained in their forums your post would get deleted. I had high hopes for v3.0 because they rewrote from the ground up and claimed that the .dll errors could not happen now. Nope. We still got them. We finally said enough. They got our money to upgrade to v3 but they'll never get another cent from our company. I would turn down a project before I even considered taking one that required Zinc. At 02:05 AM 5/27/2009, you wrote: Likewise (I seem to keep saying this) I have had a number of serious problems with Zinc over the years, and our company has had to migrate away from it. Ian On Wed, May 27, 2009 at 1:07 AM, Muzak wrote: > Careful with buying Zinc if you don't already have a license. > As of late, their support is non existing. They haven't responded in quite > some time on their support forums. > I've asked them (a month ago) about a (serious) bug that has been around > since August 2008 and haven't heard anything. > > Just a friendly warning :) > > - Original Message - From: "Glen Pike" > To: "Flash Coders List" > Sent: Wednesday, May 27, 2009 12:22 AM > Subject: Re: [Flashcoders] Projector "Serial Number" protection > > >> Hi, >> >> Cheers guys - Zinc looks quite sturdy and possibly a nice investment, >> depending on whether the (humanoid) client wants to go for something >> flexible. >> >> Found a few other products that let you bundle in serial protection - >> probably less flexible, but cheap - links for anyone interested. Comments >> welcome.. >> http://www.increditools.com/flash_exe_builder/features.php >> http://www.chameleonflash.com/index.html >> >> As for the robots - they can look after themselves - can't put serial >> numbering on an OS Linux app, so we have to resort to making the robots walk >> and fight their own battles :P >> >> Later >> >> Glen >> > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Dynamic fonts and Tweens
John, I just ran into this issue yesterday. You need to set the blendMode on the textfield so it will force the player to render system fonts to its own layer: textField.blendMode = BlendMode.LAYER; Alan Howdy all, Does anyone know of a solution to doing an alpha Tween on a movieclip that contains dynamic text field. This is AS2 & CS3. I attach a linked mc from the library, populate that text field, myMc.mySecond_mc.myTextMc.text. The font family Tahoma is stored in a linked font symbol in my library. It attaches, populates and functions fine, but the _alpha Tween has no effect on the mc. Any suggestions? Thanks in advance for any advise, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic fonts and Tweens
I'm not sure what you mean by embed. I created in the library a ³New Font², selected Tahoma, set the linkage ³export in first frame², gave it a name ³myTahoma². The I went to my dynamic text field and selected for its font ³myTahoma *². Then I set the linkage for the mc with the textfield inside of it and called it ³myNav_mc². Then attached myNav_mc, positioned it on the screen, attached rollover and rollout functions to it (that work fine). But when I set the _alpha, nothing. :( I¹m I missing a step? Thanks, John on 6/5/09 9:47 AM, Jordan L. Chilcott at jchilc...@interactivityunlimited.com wrote: > Did you set your embed properties (either in the property control panel > or with AS)? > > jord ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic fonts and Tweens
After I attach the mc, I position both the _x and _y with no problem. The _alpha does not function. I¹m now trying it in just a simple, new moving and the alpha works if I attach the mc, but if I change the text with AS, then it does not work. John on 6/5/09 9:47 AM, Jordan L. Chilcott at jchilc...@interactivityunlimited.com wrote: > Did you set your embed properties (either in the property control panel > or with AS)? > > jord ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] does as3 optimize functions called by the constructor?
>From what I've heard; the functions themselves *are* optimized, as opposed to how the constructor works. So it's just the actual stuff inside the constructor that's jit-compiled. To be honest, though, I tried testing that scenario that and found no stable difference at all by moving all the constructor code to a separate function. It's likely the added function call negates any speed gained with using code from 'properly' compiled functions, and only very complex constructor blocks would benefit from it. Zeh On Fri, Jun 5, 2009 at 11:49 AM, Anthony Pace wrote: > Hello, > > I know that as3 does not compile, at least not in an optimized fashion, the > constructor for a class; however, what about the function that is called in > the constructor? is that too left to be jit compiled? > > > Thanks in advance, > Anthony > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] does as3 optimize functions called by the constructor?
Hello, I know that as3 does not compile, at least not in an optimized fashion, the constructor for a class; however, what about the function that is called in the constructor? is that too left to be jit compiled? Thanks in advance, Anthony ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic fonts and Tweens
It's likely it's not using an embedded font (whether it's embedded on the library or not is just a detail and doesn't say much about your actual textfield). Can you rotate the mc? If you can't, it's not using it. If you use embedded fonts you'll be able to change its _alpha. If you *can* rotate it it means it's using embedded fonts. Then you are supposed to change its _alpha normally. If you can't, there's something else on your code that's preventing the _alpha change from taking place, or doing so with a value that produces no result. There's no difference between an _alpha tween from a _x, _rotation, or _xscale tween. Zeh On Fri, Jun 5, 2009 at 11:34 AM, John R. Sweeney Jr wrote: > Howdy all, > > Does anyone know of a solution to doing an alpha Tween on a movieclip that > contains dynamic text field. > > This is AS2 & CS3. I attach a linked mc from the library, populate that > text > field, myMc.mySecond_mc.myTextMc.text. The font family Tahoma is stored in > a > linked font symbol in my library. It attaches, populates and functions > fine, > but the _alpha Tween has no effect on the mc. > > Any suggestions? > > > Thanks in advance for any advise, > John > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic fonts and Tweens
Did you set your embed properties (either in the property control panel or with AS)? jord John R. Sweeney Jr wrote: Howdy all, Does anyone know of a solution to doing an alpha Tween on a movieclip that contains dynamic text field. This is AS2 & CS3. I attach a linked mc from the library, populate that text field, myMc.mySecond_mc.myTextMc.text. The font family Tahoma is stored in a linked font symbol in my library. It attaches, populates and functions fine, but the _alpha Tween has no effect on the mc. Any suggestions? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Dynamic fonts and Tweens
Hi, Check this one out :) http://www.oddhammer.com/tutorials/alpha_dynamic_text/ Glen John R. Sweeney Jr wrote: Howdy all, Does anyone know of a solution to doing an alpha Tween on a movieclip that contains dynamic text field. This is AS2 & CS3. I attach a linked mc from the library, populate that text field, myMc.mySecond_mc.myTextMc.text. The font family Tahoma is stored in a linked font symbol in my library. It attaches, populates and functions fine, but the _alpha Tween has no effect on the mc. Any suggestions? Thanks in advance for any advise, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Dynamic fonts and Tweens
Howdy all, Does anyone know of a solution to doing an alpha Tween on a movieclip that contains dynamic text field. This is AS2 & CS3. I attach a linked mc from the library, populate that text field, myMc.mySecond_mc.myTextMc.text. The font family Tahoma is stored in a linked font symbol in my library. It attaches, populates and functions fine, but the _alpha Tween has no effect on the mc. Any suggestions? Thanks in advance for any advise, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Unwanted Irregular Angles with Graphics.lineTo
That's what I thought originally, but all my position tracing gives me whole integers On Fri, Jun 5, 2009 at 9:21 AM, Jer Brand wrote: > Really stupid question, but (I'm assuming you're doing this in a MovieClip) > is the MovieClip you're drawing on have x and y in whole pixels > (no decimal)? > > I've seen Flash really mangle lines (specially from lineTo) when they or > their container was positioned on a fraction of a pixel. > > I'm still asleep so hope this makes sense... > > Jer > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Unwanted Irregular Angles with Graphics.lineTo
Ah! The scale mode = 'none' did it. Thank you Mr Pace. On Thu, Jun 4, 2009 at 6:51 PM, Anthony Pace wrote: > //using your co-ordinates, this works fine, with no weirdness that I can see > > this.graphics.lineStyle(1,0x33,1,true,'none'); > this.graphics.moveTo(4,0); > // no need for this.graphics.lineTo(4,0); because you are already > there > this.graphics.lineTo(0,4); > this.graphics.lineTo(0,11); > this.graphics.lineTo(8,11); > this.graphics.lineTo(8,4); > this.graphics.lineTo(4,0); > > John Giotta wrote: >> >> This is probably a well known issue, but I'm probably out of the loop. >> >> I'm drawing a rather small shape with the draw API, but I'm getting >> odd pixel points. >> My shape: >> (4, 0), (0, 4), (0, 11), (8, 11), (8, 4), (4,0) >> >> Its basically a square with a steeple top. When drawn, the line from >> 8, 4 to 4,0 actually looks like it starts from 7, 3 giving me a offset >> in my angle. >> >> Anyone know why this is? >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Unwanted Irregular Angles with Graphics.lineTo
Really stupid question, but (I'm assuming you're doing this in a MovieClip) is the MovieClip you're drawing on have x and y in whole pixels (no decimal)? I've seen Flash really mangle lines (specially from lineTo) when they or their container was positioned on a fraction of a pixel. I'm still asleep so hope this makes sense... Jer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
That is AS2 and goes inside your flash file along with the button to play and pause.. BTW Not sure how or if it works with AS3 if that is what your programing with. Someone may be able to make a conversion? Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Hi Rajiv, Take a close look at the SharedObject, this is basicaaly a Flash cookie written on the users side and you can read it out when ever you need. Hope this helps, Sid On Jun 5, 2009, at 1:59 PM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Here you go.. :) //var loopTune:Sound = new Sound(); You can change this variable to what ever you have as the new Sound() var soundPosition:Number = 0; function stopPlaying() { loopTune.stop(); musicPlays = false; return (musicPlays); } function startPlaying() { if (musicPlays == false) { musicPlays = true; loopTune.start(soundPosition, 0); } return (musicPlays); } function pausePlaying() { if (this.loopTune.position > 0) { soundPosition = loopTune.position / 1000; } stopPlaying(); } /*- Start/Stop Song Button Script -*/ function playStop() { if (musicPlays == true) { pausePlaying(); } else if (musicPlays == false) { startPlaying(); } } HTH Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Audio Player play/pause state: PLEASE HELP
Hi, I need to create a simple flash audio player with play, pause (and/or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders