Re: [Flashcoders] Html coding: video for iPad and Flash on one page

2014-07-29 Thread natalia Vikhtinskaya
Unfortunately that new code still does not show video on iPad.
* I noticed that "/" is missed in source tag for video and added it but
that does not help.*
\n'+


2014-07-28 21:40 GMT+04:00 Karl DeSaulniers :

> Hi Natalia,
> Here you go. This works for me on my iPhone. I did notice in your code on
> the link you sent me, there was a number of extra lines and white space.
> If this happens again from copying from your email, view the source on the
> live example link provided and copy from there.
>
>
> Live Example:
> http://designdrumm.com/clients/natalia
>
>
> [CODE]
>
>  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> 
> 
> Jack And The Giant
> 
> function hasFlash() {
> try {
>   var AXO = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
>   if(AXO) { return true; } else { return false };
> } catch(e){
>   return navigator.mimeTypes ["application/x-shockwave-flash"] !=
> undefined ? true:false;
> }
> };
>
> function hasQt() {
> if (navigator.plugins) {
> for (i=0; i < navigator.plugins.length; i++ ) {
> if (navigator.plugins[i].name.indexOf
> ("QuickTime") >= 0) {
> return true;
> }
> }
> }
> if ((navigator.appVersion.indexOf("Mac") > 0) &&
> (navigator.appName.substring(0,9) == "Microsoft") &&
> (parseInt(navigator.appVersion) < 5) ) {
> return true;
> }
> return false;
> };
>
> function supports_video() {
>   return !!document.createElement('video').canPlayType;
> }
>
> function supports_h264_baseline_video() {
>   if (!supports_video()) { return false; }
>   var v = document.createElement("video");
>   return v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');
> }
> function supports_ogg_theora_video() {
>   if (!supports_video()) { return false; }
>   var v = document.createElement("video");
>   return v.canPlayType('video/ogg; codecs="theora, vorbis"');
> }
> function supports_webm_video() {
>   if (!supports_video()) { return false; }
>   var v = document.createElement("video");
>   return v.canPlayType('video/webm; codecs="vp8, vorbis"');
> }
>
> function loadVideo() {
> var videoCode = '';
> if( hasFlash() == false && supports_h264_baseline_video() != "") {
> /*HTML5 - h.264*/
>videoCode = '\n';
> } else if( hasFlash() == false && supports_ogg_theora_video() !=
> "") {
> /*HTML5*/
>videoCode = '\n';
> } else if( hasFlash() == false && supports_webm_video() != "") {
> /*HTML5*/
>videoCode = '\n';
> } else if( hasFlash() == false && supports_video() == false &&
> hasQt() == true ) {
> /*HTML4 QuickTime Embed - works on IE 7 and 8*/
> videoCode = ' classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="
> http://www.apple.com/qtactivex/qtplugin.cab"; height="100%" width="100%"
> >\n'+
> '  \n'+
> '   'height="100%"'+
> 'width="100%"'+
> 'type="video/quicktime"'+
> 'pluginspage="http://www.apple.com/quicktime/download/
> "'+
> 'style="position:absolute;z-index:0;"'+
> '/>\n'+
> '\n';
> } else if( hasFlash() == true ) {
> /*FLASH*/
>videoCode = ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"\n'+
> '  codebase="
> http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0
> "\n'+
> '  width="100%" height="100%" id="jack_giant" align="mc"
> style="position:absolute;z-index:0;">\n'+
>

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

Here is the code that I use (thank you Karl) and it works. Maybe it will be
useful for somebody. I try now to find way to change look of a controls
panel so the panel don't cover bottom of the video and text.
 If anybody solved this task please give me advice. Thank you for all your
help.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document

var nAgt = navigator.userAgent;
var isMobile = {
   Android: function() {
   return nAgt.match(/Android/i) ? true : false;
   },
   BlackBerry: function() {
   return nAgt.match(/BlackBerry/i) ? true : false;
   },
   iOS: function() {
   return nAgt.match(/iPhone|iPad|iPod/i) ? true : false;
   },
   Windows: function() {
   return nAgt.match(/IEMobile/i) ? true : false;
   },
   Symbian: function() {
   return nAgt.match(/SymbianOS/i) ? true : false;
   },
   any: function() {
   return (isMobile.Android() || isMobile.BlackBerry() ||
isMobile.iOS() || isMobile.Windows() || isMobile.Symbian());
   }
};
function loadVideo() {
 if( (isMobile.any()) || (isMobile.Android()) ||( isMobile.BlackBerry())
|| (isMobile.iOS()) || (isMobile.Windows())  || (isMobile.Symbian())){
  /*HTML5*/
  videoCode = '<video id="video"   width="100%" height="100%" controls
preload="auto" poster="screenshot.png"
style="position:absolute;z-index:0;">\n'+
  '<source src="jack_giant_video.mp4" type="video/mp4" />\n'+
  '</video>\n';
// here you can add another video format
 } else {
  /*FLASH*/
videoCode = '<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"\n'+
  '  codebase="
<a  rel="nofollow" href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"\n">http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"\n</a>'+

  '  width="100%" height="100%" id="jack_giant" align="mc"
style="position:absolute;z-index:0;">\n'+
  '  <param name="allowScriptAccess" value="sameDomain" />\n'+
  '  <param name="allowFullScreen" value="false" />\n'+
  '  <param name="movie" value="jack_giant.swf" />\n'+
  '  <param name="quality" value="high" />\n'+
  '  <param name="bgcolor" value="#fdef96" />' +
  '  <param name="scale" value="noscale" />\n'+
  '  <param name="align" value="mc" />\n'+
  '  <param name="salign" value="mc" />\n'+
  '  <embed src="jack_giant.swf"' +
  'bgcolor="#fdef96" width="100%" height="100%" '+
  'quality="high"' +
  'scale="noscale"' +
  'name="jack_giant"' +
  'align="mc"' +
  'salign="mc"' +
  'allowScriptAccess="sameDomain"' +
  'allowFullScreen="false"' +
  'type="application/x-shockwave-flash"'+
  'style="position:absolute;z-index:0;"'+
  '  />\n'+
  '</object>\n';

 }

 document.getElementById("video").innerHTML = videoCode;

}






 loadVideo();





2014-07-25 20:43 GMT+04:00 natalia Vikhtinskaya :

> Yes, Flash is priority. So I use what Karl offer with JavaScript. Solution
> without JavaScript unfortunately does not work. It would be nice because it
> is shorter way.
>
>
> 2014-07-25 14:06 GMT+04:00 Henrik Andersson :
>
> You got the priorities wrong. He wants to use Flash if possible, with
>> the video as the fallback.
>>
>> Karl DeSaulniers skriver:
>> > Hi Natalia,
>> > Looks like this is your best solution and doesn't involve any
>> javascript.
>> >
>> > 
>> >   
>> >   
>> >   
>> >   
>> > 
>> >   
>> > 
>> >
>> > [Source]
>> > http://www.w3schools.com/html/html_videos.asp
>> >
>> > You'll have to work it into what your doing.
>> > I think someone earlier mentioned this though.
>> > HTH,
>> >
>> > Karl DeSaulniers
>> > Design Drumm
>> > http://designdrumm.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] Html coding: video for iPad and Flash on one page

Yes, Flash is priority. So I use what Karl offer with JavaScript. Solution
without JavaScript unfortunately does not work. It would be nice because it
is shorter way.


2014-07-25 14:06 GMT+04:00 Henrik Andersson :

> You got the priorities wrong. He wants to use Flash if possible, with
> the video as the fallback.
>
> Karl DeSaulniers skriver:
> > Hi Natalia,
> > Looks like this is your best solution and doesn't involve any javascript.
> >
> > 
> >   
> >   
> >   
> >   
> > 
> >   
> > 
> >
> > [Source]
> > http://www.w3schools.com/html/html_videos.asp
> >
> > You'll have to work it into what your doing.
> > I think someone earlier mentioned this though.
> > HTH,
> >
> > Karl DeSaulniers
> > Design Drumm
> > http://designdrumm.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] Html coding: video for iPad and Flash on one page

Thank you for this information. What if I need
if support flash{
//code for flash
} else {
//code for video
}
How to solve that?



2014-07-22 17:34 GMT+04:00 James Merrill :

> Do not sniff for user agents! What will your code do when someone uses the
> next iPhone? Or if they have opera installed on their amazon fire? You can
> not predict what user agent strings will look like in the future, and are
> bound to serve up the wrong content to the wrong people.
>
> This problem has been solved by JS developers, and it's called feature
> detection. Instead of relying upon user agent sniffing, check whether the
> browser supports  tags.
>
> This library is all you need. http://modernizr.com/
>
> Then you can simply do:
>
> if(Modernizr.video){
> //code to show html5 video
> } else {
> //code to show flash video
> }
>
>
> On Tue, Jul 22, 2014 at 8:57 AM, natalia Vikhtinskaya <
> natavi.m...@gmail.com
> > wrote:
>
> > Thank you very much for the help. As I understand I use correct code. I
> > don't use different pages for video and flash. I did two blocks on the
> > page.
> >
> > 
> >  > controls="controls" preload="none" >
> >  
> > 
> >  
> >
> >  
> >  http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0
> > "
> > width="100%" height="100%" id="jack_giant" align="middle">
> >  
> >  
> >   > value="high" /> name="bgcolor"
> > value="#fdef96" />  > scale="noscale" bgcolor="#fdef96" width="100%" height="100%"
> > name="jack_giant" align="middle" allowScriptAccess="sameDomain"
> > allowFullScreen="false" type="application/x-shockwave-flash"
> pluginspage="
> > http://www.macromedia.com/go/getflashplayer"; />
> > 
> >  
> >
> > 
> >  if ((navigator.userAgent.match(/iPad/i) != null) ||
> > (navigator.userAgent.match(/iPhone/i) != null) ||
> > (navigator.userAgent.match(/iPod/i) != null)) {
> > document.getElementById("video").style.display = "block";
> > document.getElementById("flash").style.display = "none"; }
> >  
> >
> >
> > I should improve JavaScript as Karl shows but unfortunately iPad does not
> > play video when html file tests. I tested this mp4 video in browsers that
> > support html5 and they play video. The same video iPad does not play.
> Where
> > can be problem?
> >
> >
> > 2014-07-22 4:44 GMT+04:00 Karl DeSaulniers :
> >
> > > Here is what I use, it's simple and works like a charm for me.
> > >
> > > 
> > > var nAgt = navigator.userAgent;
> > >
> > > var isMobile = {
> > > Android: function() {
> > > return nAgt.match(/Android/i) ? true : false;
> > > },
> > > BlackBerry: function() {
> > > return nAgt.match(/BlackBerry/i) ? true : false;
> > > },
> > > iOS: function() {
> > > return nAgt.match(/iPhone|iPad|iPod/i) ? true : false;
> > > },
> > > Windows: function() {
> > > return nAgt.match(/IEMobile/i) ? true : false;
> > > },
> > > Symbian: function() {
> > > return nAgt.match(/SymbianOS/i) ? true : false;
> > > },
> > > any: function() {
> > > return (isMobile.Android() || isMobile.BlackBerry() ||
> > > isMobile.iOS() || isMobile.Windows() || isMobile.Symbian());
> > > }
> > > };
> > >
> > > if( isMobile.any() ) {
> > > location.href = "HTML5/index.html" ;
> > > } else {
> > > location.href = "FLASH/index.html" ;
> > > }
> > > 
> > >
> > >
> > > You can also chek for individual devices by just calling any of the
> > > following...
> > >
> > > isMobile.Android()
> > > isMobile.BlackBerry()
> > > isMobile.iOS()
> > > isMobile.Windows()
> > > isMobile.Symbian()
> > >
> > > You can also add your own deviced if you know the userAgent. Just add
> it
> > > to the array! :)
> > > Now, this does not check if flash is installed. I have the old skool
> > flash
> > > fallback for that and
> > > a link to the html 5 page in there as well so if they know they have a
> > > html5 compatible
> >

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

Thank you very much for the help. As I understand I use correct code. I
don't use different pages for video and flash. I did two blocks on the page.



 

 

 
 http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0";
width="100%" height="100%" id="jack_giant" align="middle">
 
 
  http://www.macromedia.com/go/getflashplayer"; />

 


 if ((navigator.userAgent.match(/iPad/i) != null) ||
(navigator.userAgent.match(/iPhone/i) != null) ||
(navigator.userAgent.match(/iPod/i) != null)) {
document.getElementById("video").style.display = "block";
document.getElementById("flash").style.display = "none"; }
 


I should improve JavaScript as Karl shows but unfortunately iPad does not
play video when html file tests. I tested this mp4 video in browsers that
support html5 and they play video. The same video iPad does not play. Where
can be problem?


2014-07-22 4:44 GMT+04:00 Karl DeSaulniers :

> Here is what I use, it's simple and works like a charm for me.
>
> 
> var nAgt = navigator.userAgent;
>
> var isMobile = {
> Android: function() {
> return nAgt.match(/Android/i) ? true : false;
> },
> BlackBerry: function() {
> return nAgt.match(/BlackBerry/i) ? true : false;
> },
> iOS: function() {
> return nAgt.match(/iPhone|iPad|iPod/i) ? true : false;
> },
> Windows: function() {
> return nAgt.match(/IEMobile/i) ? true : false;
> },
> Symbian: function() {
> return nAgt.match(/SymbianOS/i) ? true : false;
> },
> any: function() {
> return (isMobile.Android() || isMobile.BlackBerry() ||
> isMobile.iOS() || isMobile.Windows() || isMobile.Symbian());
> }
> };
>
> if( isMobile.any() ) {
> location.href = "HTML5/index.html" ;
> } else {
> location.href = "FLASH/index.html" ;
> }
> 
>
>
> You can also chek for individual devices by just calling any of the
> following...
>
> isMobile.Android()
> isMobile.BlackBerry()
> isMobile.iOS()
> isMobile.Windows()
> isMobile.Symbian()
>
> You can also add your own deviced if you know the userAgent. Just add it
> to the array! :)
> Now, this does not check if flash is installed. I have the old skool flash
> fallback for that and
> a link to the html 5 page in there as well so if they know they have a
> html5 compatible
> desktop browser, they can just click that if they don't what to install
> flash per se.
> HTH.
>
> Best,
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
>
>
> On Jul 21, 2014, at 7:36 PM, Mike Starr  wrote:
>
> > So this looks complicated.
> >
> > A few resources I recommend:
> > Adobe GoLive
> > ActiveX
> >
> >
> > On Mon, Jul 21, 2014 at 10:20 AM, Ross P. Sclafani <
> ross.sclaf...@gmail.com>
> > wrote:
> >
> >> I have done this for a video player i build that does hundreds of
> millions
> >> of streams / year across platforms and devices.
> >>
> >> I use SWFObject to attempt to write the flash SWF, and put our html5
> >> rendering code into the callback after the attempt, if the flash failed
> to
> >> write.
> >>
> >>
> >>
> >> On Jul 21, 2014, at 1:57 AM, natalia Vikhtinskaya <
> natavi.m...@gmail.com>
> >> wrote:
> >>
> >>> Thank you very much for this link. But I need a bit different. If
> browser
> >>> support HTML5 and Flash it should play Flash. Only platforms that does
> >> not
> >>> support Flash should play video.
> >>>
> >>>
> >>> 2014-07-20 21:55 GMT+04:00 Ruben Quintana :
> >>>
> >>>> http://coolestguidesontheplanet.com/use-html-5-video-on-all-browsers/
> >>>>
> >>>>
> >>>>
> >>>> On Sun, Jul 20, 2014 at 12:05 PM, natalia Vikhtinskaya <
> >>>> natavi.m...@gmail.com> wrote:
> >>>>
> >>>>> I need play video only for iPad and other devices that does not
> support
> >>>>> Flash. Does this code do that?
> >>>>>
> >>>>>
> >>>>> 2014-07-20 19:51 GMT+04:00 Micky Hulse :
> >>>>>
> >>>>>> On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya
> >>>>>>  wrote:
> >>>>>>> I tested on Windows - just blank page. It seems  does not like
> >>>>>>> style="display:none" but I don't kn

Re: [Flashcoders] Html coding: video for iPad and Flash on one page

Thank you very much for this link. But I need a bit different. If browser
support HTML5 and Flash it should play Flash. Only platforms that does not
support Flash should play video.


2014-07-20 21:55 GMT+04:00 Ruben Quintana :

> http://coolestguidesontheplanet.com/use-html-5-video-on-all-browsers/
>
>
>
> On Sun, Jul 20, 2014 at 12:05 PM, natalia Vikhtinskaya <
> natavi.m...@gmail.com> wrote:
>
> > I need play video only for iPad and other devices that does not support
> > Flash. Does this code do that?
> >
> >
> > 2014-07-20 19:51 GMT+04:00 Micky Hulse :
> >
> > > On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya
> > >  wrote:
> > > > I tested on Windows - just blank page. It seems  does not like
> > > > style="display:none" but I don't know another solition.
> > >
> > > I typically use:
> > >
> > >  controls>
> > > 
> > > 
> > > 
> > > ... Flash fallback goes here ...
> > > 
> > >
> > > You'll have to change width/height to match video.
> > >
> > > This app is great for converting your source to diff formats:
> > >
> > > <http://www.mirovideoconverter.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
> >
> ___
> 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] Html coding: video for iPad and Flash on one page

I need play video only for iPad and other devices that does not support
Flash. Does this code do that?


2014-07-20 19:51 GMT+04:00 Micky Hulse :

> On Sun, Jul 20, 2014 at 8:41 AM, natalia Vikhtinskaya
>  wrote:
> > I tested on Windows - just blank page. It seems  does not like
> > style="display:none" but I don't know another solition.
>
> I typically use:
>
> 
> 
> 
> 
> ... Flash fallback goes here ...
> 
>
> You'll have to change width/height to match video.
>
> This app is great for converting your source to diff formats:
>
> <http://www.mirovideoconverter.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] Html coding: video for iPad and Flash on one page

ok. I use now

 
 
I tested on Windows - just blank page. It seems  does not like
style="display:none" but I don't know another solition.


2014-07-20 18:42 GMT+04:00 Ross P. Sclafani :

> You don't embed QuickTime for iOS, you use the html5 video tag.
> Whatever solution you use should do that when flash isn't detected.
>
> Sent from my iPhone
>
> > On Jul 20, 2014, at 3:36 AM, natalia Vikhtinskaya 
> wrote:
> >
> > Hi
> > I am trying to find a simple way to show video file for devices that
> don't
> > have Flash
> > Here is the code
> >
> > 
> >  > CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"; WIDTH="900"
> > HEIGHT="575" >
> > 
> > 
> >  > PLUGINSPAGE="http://www.apple.com/quicktime/download"; WIDTH="900"
> > HEIGHT="575" AUTOPLAY="true">
> > 
> > 
> > 
> > http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0
> "
> > width="100%" height="100%" id="jack_giant" align="middle">
> > 
> > 
> >  > value="high" /> name="bgcolor"
> > value="#fdef96" />  > scale="noscale" bgcolor="#fdef96" width="100%" height="100%"
> > name="jack_giant" align="middle" allowScriptAccess="sameDomain"
> > allowFullScreen="false" type="application/x-shockwave-flash"
> pluginspage="
> > http://www.macromedia.com/go/getflashplayer"; />
> > 
> > 
> > 
> > if ((navigator.userAgent.match(/iPad/i) != null) ||
> > (navigator.userAgent.match(/iPhone/i) != null) ||
> > (navigator.userAgent.match(/iPod/i) != null)) {
> > document.getElementById("video").style.display = "block";
> > document.getElementById("flash").style.display = "none"; }
> > 
> >
> > But unfortunately that does not work.
> > Can anybody give me an advice what is the correct way for this task?
> > Thank you very much in advance.
> > ___
> > 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] Html coding: video for iPad and Flash on one page

Hi
I am trying to find a simple way to show video file for devices that don't
have Flash
Here is the code


http://www.apple.com/qtactivex/qtplugin.cab"; WIDTH="900"
HEIGHT="575" >
 
 
 http://www.apple.com/quicktime/download"; WIDTH="900"
HEIGHT="575" AUTOPLAY="true">
 
 
 
 http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0";
width="100%" height="100%" id="jack_giant" align="middle">
 
 
  http://www.macromedia.com/go/getflashplayer"; />

 

 if ((navigator.userAgent.match(/iPad/i) != null) ||
(navigator.userAgent.match(/iPhone/i) != null) ||
(navigator.userAgent.match(/iPod/i) != null)) {
document.getElementById("video").style.display = "block";
document.getElementById("flash").style.display = "none"; }
 

But unfortunately that does not work.
Can anybody give me an advice what is the correct way for this task?
Thank you very much in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Air Windows installed app

Ok, I understand. Where I must save my data?I have them in the same folder
as fla file.


2014-03-01 16:58 GMT+04:00 Henrik Andersson :

> natalia Vikhtinskaya skriver:
> > This is code in app
> > var appDirectory:File =
> > File.applicationDirectory;//File.applicationStorageDirectory
> > var fileString:String = appDirectory.nativePath;
> > var appFile:File = File.documentsDirectory;
> > var
> >
> setsFile:String=fileString+File.separator+"data"+File.separator+"sets.xml"
> >
> > function initLoadXML():void{
> >
> > var XMLfile:File = File.applicationDirectory.resolvePath(setsFile);
> >
> > var myXMLLoader:URLLoader = new URLLoader(new URLRequest(XMLfile.url));
> >
> > myXMLLoader.addEventListener(Event.COMPLETE, setsLoaded);
> > }
> > function saveXML():void{
> >  var newFileStream:FileStream = new FileStream();
> > appFile =
> >
> appFile.resolvePath(fileString+File.separator+"data"+File.separator+"sets.xml");
> >
> > newFileStream.openAsync (appFile, FileMode.WRITE);
> > newFileStream.writeUTFBytes(xmlSets);
> > newFileStream.close ();
> > }
> > Maybe here is something wrong with path or I store data in a wrong
> place.I
> > have xml in the  folder data in the same folder as exe file with app.
> >
>
> Yes, there is something wrong: you are violating all the guidelines
> about correct filesystem use.
>
> Ask the user where to save data when reasonable, and default to a sane
> location.
>
> And never ever attempt to write to a location reserved for program
> files, only installers are allowed to touch those folders.
>
>
> ---
> Detta epostmeddelande innehåller inget virus eller annan skadlig kod för
> avast! antivirus är aktivt.
> http://www.avast.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] Air Windows installed app

This is code in app
var appDirectory:File =
File.applicationDirectory;//File.applicationStorageDirectory
var fileString:String = appDirectory.nativePath;
var appFile:File = File.documentsDirectory;
var
setsFile:String=fileString+File.separator+"data"+File.separator+"sets.xml"

function initLoadXML():void{

var XMLfile:File = File.applicationDirectory.resolvePath(setsFile);

var myXMLLoader:URLLoader = new URLLoader(new URLRequest(XMLfile.url));

myXMLLoader.addEventListener(Event.COMPLETE, setsLoaded);
}
function saveXML():void{
 var newFileStream:FileStream = new FileStream();
appFile =
appFile.resolvePath(fileString+File.separator+"data"+File.separator+"sets.xml");

newFileStream.openAsync (appFile, FileMode.WRITE);
newFileStream.writeUTFBytes(xmlSets);
newFileStream.close ();
}
Maybe here is something wrong with path or I store data in a wrong place.I
have xml in the  folder data in the same folder as exe file with app.


2014-03-01 15:19 GMT+04:00 natalia Vikhtinskaya :

> Installer put app to c\programfiles\companyname\folder\folderwithapp
> Installer do the job and copy files.The  App when it placed in Program
> files folder with subfolder with xml fil does not write it when I change
> xml and save it in app. Everythng works if app placed not in Programfile
> folder.
>
>
> 2014-03-01 14:55 GMT+04:00 Hans Wichman :
>
> Have your app write files into the users document area instead of a
>> subfolder of the app which will be in the Program Files folder and under
>> restrictions.
>> Part of it might be solved by instructing advanced installer to enforce
>> the user to have administrative permissions.
>>
>> best
>> Hans
>>
>>
>> On 3/1/2014 11:09 AM, natalia Vikhtinskaya wrote:
>>
>>> Thank you all for the help. Finally I understand where is problem. I
>>> created App with runtime embedded. Then I used Advanced Installer
>>> http://www.advancedinstaller.com/ and created installer package.  By
>>> default it installs my app to Program file folder. The App runs but
>>> nothing
>>> write on the disk. When the user choose any own folder on the disk for
>>> example c:\myApp then the app writes information on the disk without
>>> problem. Why that I don't know but unfortunately the customer wants
>>> installation process be without choosing other folders by users. It seems
>>> to him very complex. The user should just say "ok" what Installation
>>> process offer.  What  can I do? I tried to find way in Advanced Installer
>>> to change default folder but did not find that possible.  Do you have any
>>> advice?
>>>
>>>
>>> 2014-02-25 0:35 GMT+04:00 erik mattheis :
>>>
>>>  I'm unsure the status of this or if someone has suggested any of the
>>>> following:
>>>>
>>>> Are you saying the app doesn't work when using the installer but works
>>>> as
>>>> expected when copying the app folder somewhere outside of your clients
>>>> "Program Files" folder? This will fail with default Windows settings as
>>>> you
>>>> need elevated permissions to change files withing the Program Files
>>>> directory.
>>>>
>>>> If this is the case, look into writing the file to the app storage
>>>> directory
>>>>
>>>> http://help.adobe.com/en_US/FlashPlatform/reference/
>>>> actionscript/3/flash/filesystem/File.html#applicationStorageDirectoryor
>>>> the Documents directory
>>>>
>>>> http://help.adobe.com/en_US/FlashPlatform/reference/
>>>> actionscript/3/flash/filesystem/File.html#documentsDirectory
>>>>
>>>> As to "Unknown Publisher" you need to buy and include a security
>>>> certificate in the publish settings:
>>>>
>>>> http://www.adobe.com/devnet/air/articles/packaging-air-
>>>> apps-desktop.html#articlecontentAdobe_numberedheader
>>>>
>>>>
>>>> On Mon, Feb 24, 2014 at 1:02 AM, natalia Vikhtinskaya <
>>>> natavi.m...@gmail.com
>>>>
>>>>> wrote:
>>>>> Not sure I understand how I can use this information in Flash Cs6. I
>>>>> created app in this program as Air 3.2 for Desktop. I have only two
>>>>>
>>>> options
>>>>
>>>>> - Windows Installer and App with runtime embedded.
>>>>>
>>>>>
>>>>> 2014-02-23 16:42 GMT+04:00 Peter Ginneberge :
>>>>>
>>>>>  You can apply

Re: [Flashcoders] Air Windows installed app

Installer put app to c\programfiles\companyname\folder\folderwithapp
Installer do the job and copy files.The  App when it placed in Program
files folder with subfolder with xml fil does not write it when I change
xml and save it in app. Everythng works if app placed not in Programfile
folder.


2014-03-01 14:55 GMT+04:00 Hans Wichman :

> Have your app write files into the users document area instead of a
> subfolder of the app which will be in the Program Files folder and under
> restrictions.
> Part of it might be solved by instructing advanced installer to enforce
> the user to have administrative permissions.
>
> best
> Hans
>
>
> On 3/1/2014 11:09 AM, natalia Vikhtinskaya wrote:
>
>> Thank you all for the help. Finally I understand where is problem. I
>> created App with runtime embedded. Then I used Advanced Installer
>> http://www.advancedinstaller.com/ and created installer package.  By
>> default it installs my app to Program file folder. The App runs but
>> nothing
>> write on the disk. When the user choose any own folder on the disk for
>> example c:\myApp then the app writes information on the disk without
>> problem. Why that I don't know but unfortunately the customer wants
>> installation process be without choosing other folders by users. It seems
>> to him very complex. The user should just say "ok" what Installation
>> process offer.  What  can I do? I tried to find way in Advanced Installer
>> to change default folder but did not find that possible.  Do you have any
>> advice?
>>
>>
>> 2014-02-25 0:35 GMT+04:00 erik mattheis :
>>
>>  I'm unsure the status of this or if someone has suggested any of the
>>> following:
>>>
>>> Are you saying the app doesn't work when using the installer but works as
>>> expected when copying the app folder somewhere outside of your clients
>>> "Program Files" folder? This will fail with default Windows settings as
>>> you
>>> need elevated permissions to change files withing the Program Files
>>> directory.
>>>
>>> If this is the case, look into writing the file to the app storage
>>> directory
>>>
>>> http://help.adobe.com/en_US/FlashPlatform/reference/
>>> actionscript/3/flash/filesystem/File.html#applicationStorageDirectoryor
>>> the Documents directory
>>>
>>> http://help.adobe.com/en_US/FlashPlatform/reference/
>>> actionscript/3/flash/filesystem/File.html#documentsDirectory
>>>
>>> As to "Unknown Publisher" you need to buy and include a security
>>> certificate in the publish settings:
>>>
>>> http://www.adobe.com/devnet/air/articles/packaging-air-
>>> apps-desktop.html#articlecontentAdobe_numberedheader
>>>
>>>
>>> On Mon, Feb 24, 2014 at 1:02 AM, natalia Vikhtinskaya <
>>> natavi.m...@gmail.com
>>>
>>>> wrote:
>>>> Not sure I understand how I can use this information in Flash Cs6. I
>>>> created app in this program as Air 3.2 for Desktop. I have only two
>>>>
>>> options
>>>
>>>> - Windows Installer and App with runtime embedded.
>>>>
>>>>
>>>> 2014-02-23 16:42 GMT+04:00 Peter Ginneberge :
>>>>
>>>>  You can apply for a license to (re)distribute the Air runtime and then
>>>>> package it with your application.
>>>>> http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-
>>>>> 70d979a8124ef20a34b-8000.html
>>>>>
>>>>> Or you can include a captive copy of the Air runtime with your
>>>>>
>>>> application.
>>>>
>>>>> http://www.adobe.com/devnet/air/articles/air3-install-and-
>>>>> deployment-options.html
>>>>>
>>>>> The first option will install the Air runtime with your application, as
>>>>>
>>>> if
>>>>
>>>>> the user installed it himself, so it's separated from your application,
>>>>> meaning both your application and the Air Runtime can be uninstalled
>>>>> separately.
>>>>>
>>>>> The second options installs both as a bundle. When a user uninstalls
>>>>>
>>>> your
>>>
>>>> app, the runtime gets uninstalled with it.
>>>>>
>>>>> regards,
>>>>> Peter
>>>>>
>>>>>
>>>>>
>>>>> On 23/02/2014 7:28, natalia Vikhtinskaya wrote:
>>

Re: [Flashcoders] Air Windows installed app

Thank you all for the help. Finally I understand where is problem. I
created App with runtime embedded. Then I used Advanced Installer
http://www.advancedinstaller.com/ and created installer package.  By
default it installs my app to Program file folder. The App runs but nothing
write on the disk. When the user choose any own folder on the disk for
example c:\myApp then the app writes information on the disk without
problem. Why that I don't know but unfortunately the customer wants
installation process be without choosing other folders by users. It seems
to him very complex. The user should just say "ok" what Installation
process offer.  What  can I do? I tried to find way in Advanced Installer
to change default folder but did not find that possible.  Do you have any
advice?


2014-02-25 0:35 GMT+04:00 erik mattheis :

> I'm unsure the status of this or if someone has suggested any of the
> following:
>
> Are you saying the app doesn't work when using the installer but works as
> expected when copying the app folder somewhere outside of your clients
> "Program Files" folder? This will fail with default Windows settings as you
> need elevated permissions to change files withing the Program Files
> directory.
>
> If this is the case, look into writing the file to the app storage
> directory
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#applicationStorageDirectoryor
> the Documents directory
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#documentsDirectory
>
> As to "Unknown Publisher" you need to buy and include a security
> certificate in the publish settings:
>
> http://www.adobe.com/devnet/air/articles/packaging-air-apps-desktop.html#articlecontentAdobe_numberedheader
>
>
> On Mon, Feb 24, 2014 at 1:02 AM, natalia Vikhtinskaya <
> natavi.m...@gmail.com
> > wrote:
>
> > Not sure I understand how I can use this information in Flash Cs6. I
> > created app in this program as Air 3.2 for Desktop. I have only two
> options
> > - Windows Installer and App with runtime embedded.
> >
> >
> > 2014-02-23 16:42 GMT+04:00 Peter Ginneberge :
> >
> > > You can apply for a license to (re)distribute the Air runtime and then
> > > package it with your application.
> > > http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-
> > > 70d979a8124ef20a34b-8000.html
> > >
> > > Or you can include a captive copy of the Air runtime with your
> > application.
> > > http://www.adobe.com/devnet/air/articles/air3-install-and-
> > > deployment-options.html
> > >
> > > The first option will install the Air runtime with your application, as
> > if
> > > the user installed it himself, so it's separated from your application,
> > > meaning both your application and the Air Runtime can be uninstalled
> > > separately.
> > >
> > > The second options installs both as a bundle. When a user uninstalls
> your
> > > app, the runtime gets uninstalled with it.
> > >
> > > regards,
> > > Peter
> > >
> > >
> > >
> > > On 23/02/2014 7:28, natalia Vikhtinskaya wrote:
> > >
> > >> Thank you for help.
> > >>   I try to describe situation better. When I publish app as Windows
> > >> installer the user can take my exe file and install app on his pc. On
> > >> desktop he has icon after clicking on it he runs app. It plays well
> but
> > >> function "write" nothing do. I use
> > >>
> > >> newFileStream.openAsync (appFile, FileMode.WRITE);
> > >> newFileStream.writeUTFBytes(xmlSets);
> > >> newFileStream.close ();
> > >>
> > >> Yes, the user does not have Air and function that works only in Air
> does
> > >> not work for him. The same installation on my pc works well.
> > >> Okay. Next I created Application with runtime embedded. I gave the
> user
> > >> folder with all files that was created by Flash. He puts this folder
> on
> > >> his
> > >> pc and run exe file. This works well. Everything writes well. But he
> > wants
> > >> to have installation process that allow him to install this app as
> usual
> > >> new program. This second way does not give him that. Maybe I can
> combine
> > >> these two ways somehow? This is the first problem.
> > >> And additional question. Exe file shows information "Unknown
> publisher".
> > >> How I can change that?

Re: [Flashcoders] Air Windows installed app

Not sure I understand how I can use this information in Flash Cs6. I
created app in this program as Air 3.2 for Desktop. I have only two options
- Windows Installer and App with runtime embedded.


2014-02-23 16:42 GMT+04:00 Peter Ginneberge :

> You can apply for a license to (re)distribute the Air runtime and then
> package it with your application.
> http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-
> 70d979a8124ef20a34b-8000.html
>
> Or you can include a captive copy of the Air runtime with your application.
> http://www.adobe.com/devnet/air/articles/air3-install-and-
> deployment-options.html
>
> The first option will install the Air runtime with your application, as if
> the user installed it himself, so it's separated from your application,
> meaning both your application and the Air Runtime can be uninstalled
> separately.
>
> The second options installs both as a bundle. When a user uninstalls your
> app, the runtime gets uninstalled with it.
>
> regards,
> Peter
>
>
>
> On 23/02/2014 7:28, natalia Vikhtinskaya wrote:
>
>> Thank you for help.
>>   I try to describe situation better. When I publish app as Windows
>> installer the user can take my exe file and install app on his pc. On
>> desktop he has icon after clicking on it he runs app. It plays well but
>> function "write" nothing do. I use
>>
>> newFileStream.openAsync (appFile, FileMode.WRITE);
>> newFileStream.writeUTFBytes(xmlSets);
>> newFileStream.close ();
>>
>> Yes, the user does not have Air and function that works only in Air does
>> not work for him. The same installation on my pc works well.
>> Okay. Next I created Application with runtime embedded. I gave the user
>> folder with all files that was created by Flash. He puts this folder on
>> his
>> pc and run exe file. This works well. Everything writes well. But he wants
>> to have installation process that allow him to install this app as usual
>> new program. This second way does not give him that. Maybe I can combine
>> these two ways somehow? This is the first problem.
>> And additional question. Exe file shows information "Unknown publisher".
>> How I can change that?
>>
>> Thank you for any help. Not much places in net now where we can find help
>> for Flash questions.
>>
>>
>> 2014-02-20 16:26 GMT+04:00 David Benman :
>>
>>  ___
> 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] Air Windows installed app

Thank you for help.
 I try to describe situation better. When I publish app as Windows
installer the user can take my exe file and install app on his pc. On
desktop he has icon after clicking on it he runs app. It plays well but
function "write" nothing do. I use

newFileStream.openAsync (appFile, FileMode.WRITE);
newFileStream.writeUTFBytes(xmlSets);
newFileStream.close ();

Yes, the user does not have Air and function that works only in Air does
not work for him. The same installation on my pc works well.
Okay. Next I created Application with runtime embedded. I gave the user
folder with all files that was created by Flash. He puts this folder on his
pc and run exe file. This works well. Everything writes well. But he wants
to have installation process that allow him to install this app as usual
new program. This second way does not give him that. Maybe I can combine
these two ways somehow? This is the first problem.
And additional question. Exe file shows information "Unknown publisher".
How I can change that?

Thank you for any help. Not much places in net now where we can find help
for Flash questions.


2014-02-20 16:26 GMT+04:00 David Benman :

> Where are you saving the files to? You can't write to the application's
> folder when deployed but might work when you are testing on your machine.
> You need to be writing to a user folder, document folder, etc. anywhere but
> a subfolder of the Programs folder.
>
> On Feb 17, 2014, at 6:33 AM, natalia Vikhtinskaya 
> wrote:
>
> > Hi to all.
> > I solved all problems with xml editor in flash. I created AIR app that
> > loads and saves xml after editing. I created Windows installer app. It
> > works well on XP and Win 8. But when the user installs it on his pc (I
> > think he has no AIR program on it) app plays but not saves files . What
> do
> > you think is possible problem?
> > Thank you in advance.
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> David Benman
> Interactive Developer
> d...@dbenman.com
> http://www.dbenman.com
> (315) 637-8487 (home office)
>
>
>
>
> ___
> 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] Air Windows installed app

Hi to all.
I solved all problems with xml editor in flash. I created AIR app that
loads and saves xml after editing. I created Windows installer app. It
works well on XP and Win 8. But when the user installs it on his pc (I
think he has no AIR program on it) app plays but not saves files . What do
you think is possible problem?
Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] XML editing question

Hi to all who is here in the list. Sorry, I need your help again

//I filter big xml file to XMLList to see all node with topics for selected
subject

 topicList=xmlSets..subject.(@sbjName==subjectCb.selectedLabel).topic;

//place result to a text box

xmlText.text= topicList;

//edit text with topics. It looks like I  edit in notepad part of xml file
I can not find way to put this block back after editing to the main xml
file into the correct place.
I read a lot of articles on this subject but can not solve this.

Thank you in advance for your help.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Looking for simple solution to edit xml inside flash file

Thank you. In this article I see removeNode
xmlSets..subject.(@sbjName==subjectCb.selectedLabel).topic.(@topicName==topicCb.selectedLabel).title.(@titleName==titleCb.selectedLabel).removeNode()
does not work the same as delete.

2014-02-12 23:29 GMT+04:00 John R. Sweeney Jr. :

> This can help you understand creating and editing. There are many more
> resources out there.
>
> http://www.kirupa.com/web/xml/XMLmanageData3.htm
>
>
>
> John R. Sweeney Jr.
> Senior Interactive Multimedia Developer
> OnDemand Interactive Inc
> Hoffman Estates, IL 60169
>
>
>
>
> On Feb 12, 2014, at 1:01 PM, natalia Vikhtinskaya 
> wrote:
>
> > Yes, I see that no good solution. I use textField for editing node after
> > selection. But I have problem with deleting node. Maybe you can give me
> > advice.
> > I select this is
> > set1
> >
> > //var node:XMLList;
> > trace(node.childIndex())
> > //0
> >
> > trace(node)
> > set1
> >
> > trace(node.parent())
> > 
> >  set1
> >  set2
> > 
> >
> > I can not find way to delete this line that has "set1"
> > set1
> >
> > when I use
> > trace(node.parent().children()[ node.childIndex() ])
> > that delete "set1"
>
> ___
> 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] Looking for simple solution to edit xml inside flash file

Yes, I see that no good solution. I use textField for editing node after
selection. But I have problem with deleting node. Maybe you can give me
advice.
I select this is
 set1

//var node:XMLList;
trace(node.childIndex())
//0

trace(node)
set1

trace(node.parent())

  set1
  set2


I can not find way to delete this line that has "set1"
set1

when I use
trace(node.parent().children()[ node.childIndex() ])
that delete "set1"



2014-02-12 20:42 GMT+04:00 John R. Sweeney Jr. :

> Hi,
>
> Then either you have to roll your own, (write something from scratch in
> AS3) or look for something online like this:
> http://www.findbestopensource.com/product/as3-xmltexteditor
>
> Where you can take someone else's code as a start and then try and
> incorporate/modify it into your project.
>
> Good luck,
>
>
> John R. Sweeney Jr.
> Senior Interactive Multimedia Developer
> OnDemand Interactive Inc
> Hoffman Estates, IL 60169
>
>
>
>
> On Feb 12, 2014, at 3:28 AM, natalia Vikhtinskaya 
> wrote:
>
> > I need system inside Flash file for simple  users.
>
>
> ___
> 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] Looking for simple solution to edit xml inside flash file

I need system inside Flash file for simple  users.

2014-02-12 12:03 GMT+04:00 John R. Sweeney Jr. :

> If your PC based,
> http://www.microsoft.com/en-us/download/details.aspx?id=7973  This is
> free.
>
> There are many free editors for MAC or PC out there. Just do a search.
>
> John R. Sweeney Jr.
> Senior Interactive Multimedia Developer
> OnDemand Interactive Inc
> Hoffman Estates, IL 60169
>
>
>
>
> On Feb 12, 2014, at 12:54 AM, natalia Vikhtinskaya 
> wrote:
>
> > Hi to all
> > I need to find simple for user way to edit information in xml file
> (delete,
> > add, edit). Is that possible to do with data grid or scroll list? I can
> not
> > use outside CMS for xml I have to find way to do that in flash. Something
> > like -click btn edit-editable table of nodes on the screen -save-
> recreate
> > xml file from new list. Please give me advice for user friendly solution.
> > To see some examples would be very helpful.
> >
> > Thank you in advance.
>
>
> ___
> 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] Looking for simple solution to edit xml inside flash file

Hi to all
I need to find simple for user way to edit information in xml file (delete,
add, edit). Is that possible to do with data grid or scroll list? I can not
use outside CMS for xml I have to find way to do that in flash. Something
like -click btn edit-editable table of nodes on the screen -save- recreate
xml file from new list. Please give me advice for user friendly solution.
To see some examples would be very helpful.

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Read and save xml file on disk

Thank you! "\\' works.

2014-02-10 19:26 GMT+04:00 Jim Hayes :

> you need to escape the \   like so "\\"
>
> appFile = appFile.resolvePath(fileString+"\\personnel.xml");
> trace(fileString+"\\personnel.xml")
> 
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] on behalf of natalia
> Vikhtinskaya [natavi.m...@gmail.com]
> Sent: 10 February 2014 15:14
> To: Flash Coders List
> Subject: Re: [Flashcoders] Read and save xml file on disk
>
> Here how I try to save xml in the same folder where is my app
>
> import flash.filesystem.File;
> import flash.filesystem.FileStream;
> import flash.filesystem.FileMode;
> import flash.events.Event;
>
> //personnel. xml  file
> ..
>
> // save to disk
> var appDirectory:File = File.applicationDirectory;
> var newFileStream:FileStream = new FileStream();
> var fileString:String = appDirectory.nativePath;
> var appFile:File = File.documentsDirectory;
> appFile = appFile.resolvePath(fileString+"\personnel.xml");
> trace(fileString+"\personnel.xml")
> it gives  path myfolderpersonnel.xml instead of myfolder\personal.xml
>
> How to solve this problem?
>
> 2014-02-10 15:51 GMT+04:00 David Benman :
>
> > AIR is another publishing method available in Flash and because it
> creates
> > an executable that removes many of the Flash player's security
> > restrictions. Prior to Flash CC you could also create a Mac or Windows
> > projector that would save a file.
> >
> > I think most methods still require user interaction, but its usually not
> > that hard to scare up some sort of user interaction to trigger the
> saving.
> > The user doesn't necessarily need to choose the save location each time,
> > just the save process needs to be triggered by a user interaction.
> >
> > On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya  >
> > wrote:
> >
> > > Thank you for your answers. Unfortunately I don't know AIR or Zinc. I
> > > looked for a way to publish this application as swf file and then
> convert
> > > it to exe. I did that before with games.  So no way to do that without
> > AIR
> > > or Zinc?
> > >
> > > 2014-02-10 5:41 GMT+04:00 :
> > >
> > >> Natalia,
> > >>
> > >> You can use the File (see e.g. "applicationDirectory" or
> "resolvePath")
> > >> and Filestream (open, read, and write) functions, but these are
> > only
> > >> available if you're using Air (other wrappers like Zinc have similar
> > >> functionality).  If it's an executable created by simply Publishing
> with
> > >> Flash Player as the target, I think security issues prevent you from
> > doing
> > >> this.
> > >>
> > >> HTH,
> > >> --Dave
> > >>
> > >>>
> --
> > >>> From: natalia Vikhtinskaya 
> > >>>
> > >>> Hi to all friends
> > >>> I have to create stand alone application  that can read xml file then
> > >>> after
> > >>> editing save it on the disk. I need to do that by FlashCs6. I know
> that
> > >>> FileReference.load() : Loads data from a file selected by the user.
> > >>> FileReference.save() : Saves data to a file location selected by the
> > >> user.
> > >>> Is it possible to save and read without  the user?
> > >>> What is the better way for this task?
> > >>> Do you know any good tutorials with examples on this subject? This
> task
> > >> it
> > >>> new for me and I want to read about that more.
> > >>>
> > >>> Thank you in advance.
> > >>
> > >>
> > >> ___
> > >> 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
> >
> > David Benman
> > Interactive Developer
> > d...@dbenman.com
> > http://www.dbenman.com
> > (315) 637-8487 (home office)
> >
> >
> >
> >
> > ___
> > 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


Re: [Flashcoders] Read and save xml file on disk

Here how I try to save xml in the same folder where is my app

import flash.filesystem.File;
import flash.filesystem.FileStream;
import flash.filesystem.FileMode;
import flash.events.Event;

//personnel. xml  file
..

// save to disk
var appDirectory:File = File.applicationDirectory;
var newFileStream:FileStream = new FileStream();
var fileString:String = appDirectory.nativePath;
var appFile:File = File.documentsDirectory;
appFile = appFile.resolvePath(fileString+"\personnel.xml");
trace(fileString+"\personnel.xml")
it gives  path myfolderpersonnel.xml instead of myfolder\personal.xml

How to solve this problem?

2014-02-10 15:51 GMT+04:00 David Benman :

> AIR is another publishing method available in Flash and because it creates
> an executable that removes many of the Flash player's security
> restrictions. Prior to Flash CC you could also create a Mac or Windows
> projector that would save a file.
>
> I think most methods still require user interaction, but its usually not
> that hard to scare up some sort of user interaction to trigger the saving.
> The user doesn't necessarily need to choose the save location each time,
> just the save process needs to be triggered by a user interaction.
>
> On Feb 10, 2014, at 5:55 AM, natalia Vikhtinskaya 
> wrote:
>
> > Thank you for your answers. Unfortunately I don't know AIR or Zinc. I
> > looked for a way to publish this application as swf file and then convert
> > it to exe. I did that before with games.  So no way to do that without
> AIR
> > or Zinc?
> >
> > 2014-02-10 5:41 GMT+04:00 :
> >
> >> Natalia,
> >>
> >> You can use the File (see e.g. "applicationDirectory" or "resolvePath")
> >> and Filestream (open, read, and write) functions, but these are
> only
> >> available if you're using Air (other wrappers like Zinc have similar
> >> functionality).  If it's an executable created by simply Publishing with
> >> Flash Player as the target, I think security issues prevent you from
> doing
> >> this.
> >>
> >> HTH,
> >> --Dave
> >>
> >>> --
> >>> From: natalia Vikhtinskaya 
> >>>
> >>> Hi to all friends
> >>> I have to create stand alone application  that can read xml file then
> >>> after
> >>> editing save it on the disk. I need to do that by FlashCs6. I know that
> >>> FileReference.load() : Loads data from a file selected by the user.
> >>> FileReference.save() : Saves data to a file location selected by the
> >> user.
> >>> Is it possible to save and read without  the user?
> >>> What is the better way for this task?
> >>> Do you know any good tutorials with examples on this subject? This task
> >> it
> >>> new for me and I want to read about that more.
> >>>
> >>> Thank you in advance.
> >>
> >>
> >> ___
> >> 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
>
> David Benman
> Interactive Developer
> d...@dbenman.com
> http://www.dbenman.com
> (315) 637-8487 (home office)
>
>
>
>
> ___
> 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] Read and save xml file on disk (natalia Vikhtinskaya)

If I understand all advices correctly I created small test Flash CS6 and
published as AIR app

// xml personnel file
var personnel:XML = 
 
  CT
  Marketing
 
 
  NY
  Sales
 
 
  CT
  Engineering
 


// new node appended
personnel.appendChild( 
 MA
 Sales
 );
var prefsFile:File = File.applicationStorageDirectory;
prefsFile = prefsFile.resolvePath("personnel.xml");
var outputStringXML:String = personnel.toXMLString();
stream = new FileStream();
stream.open(prefsFile, FileMode.WRITE);
stream.writeUTFBytes(outputStringXML);

line
var prefsFile:File = File.applicationStorageDirectory;
gives mistake
Type was not found or was not a compile-time constant: File.

What is wrong here?


2014-02-10 15:03 GMT+04:00 Wenzler, Thomas :

> You might look at mProjector or zinc or something in that lane. AFAIK
> these have the additional classes to let you write txt or xml to the
> filesystem without further permission by the user. But this only works as
> executable Projector, not via Browser.
>
> Best regards, Thomas
>
>
> Mit besten Grüßen aus Köln
> stodt mediendesign GmbH
>
> i. A. Thomas Wenzler-Horn
>
> Multimedia-Entwickler
>
>
> stodtmediendesign GmbH
> Unter Krahnenbäumen 9
> 50668 Köln
>
> Telefon: +49 (0)221 222 514 43
> Telefax: +49 (0)221 222 514 50
> wenz...@stodt.de
>
> www.stodt.de
>
>
>
> Geschäftssitz: Köln - Amtsgericht Köln - HRB 32404,
>
>
> Geschäftsführer: Carsten Stodt
>
> Papier sparen für unsere Umwelt. Bitte drucken Sie diese E-Mail nicht
> unnötig aus!
>
> Saving paper means protecting our environment. Please don´t print this
> e-mail unless you really need to.
>
>
> -Ursprüngliche Nachricht-
> Von: flashcoders-boun...@chattyfig.figleaf.com [mailto:
> flashcoders-boun...@chattyfig.figleaf.com] Im Auftrag von
> flashcoders-requ...@chattyfig.figleaf.com
> Gesendet: Sonntag, 9. Februar 2014 18:00
> An: flashcoders@chattyfig.figleaf.com
> Betreff: Flashcoders Digest, Vol 76, Issue 3
>
> Send Flashcoders mailing list submissions to
> flashcoders@chattyfig.figleaf.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> or, via email, send a message with subject or body 'help' to
> flashcoders-requ...@chattyfig.figleaf.com
>
> You can reach the person managing the list at
> flashcoders-ow...@chattyfig.figleaf.com
>
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Flashcoders digest..."
>
>
> Today's Topics:
>
>1. Read and save xml file on disk (natalia Vikhtinskaya)
>
>
> --
>
> Message: 1
> Date: Sun, 9 Feb 2014 20:53:35 +0400
> From: natalia Vikhtinskaya 
> Subject: [Flashcoders] Read and save xml file on disk
> To: Flash Coders List 
> Message-ID:
> <
> can6sgrhpsyxpxajimdgqjwh1mfthxilycmtyivtfs+si-rv...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi to all friends
> I have to create stand alone application  that can read xml file then
> after editing save it on the disk. I need to do that by FlashCs6. I know
> that
> FileReference.load() : Loads data from a file selected by the user.
> FileReference.save() : Saves data to a file location selected by the user.
> Is it possible to save and read without  the user?
> What is the better way for this task?
> Do you know any good tutorials with examples on this subject? This task it
> new for me and I want to read about that more.
>
> Thank you in advance.
>
>
> --
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> End of Flashcoders Digest, Vol 76, Issue 3
> **
>
> ___
> 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] Read and save xml file on disk

Thank you for your answers. Unfortunately I don't know AIR or Zinc. I
looked for a way to publish this application as swf file and then convert
it to exe. I did that before with games.  So no way to do that without AIR
or Zinc?

2014-02-10 5:41 GMT+04:00 :

> Natalia,
>
> You can use the File (see e.g. "applicationDirectory" or "resolvePath")
> and Filestream (open, read, and write) functions, but these are only
> available if you're using Air (other wrappers like Zinc have similar
> functionality).  If it's an executable created by simply Publishing with
> Flash Player as the target, I think security issues prevent you from doing
> this.
>
> HTH,
> --Dave
>
> > ------
> > From: natalia Vikhtinskaya 
> >
> > Hi to all friends
> > I have to create stand alone application  that can read xml file then
> > after
> > editing save it on the disk. I need to do that by FlashCs6. I know that
> > FileReference.load() : Loads data from a file selected by the user.
> > FileReference.save() : Saves data to a file location selected by the
> user.
> > Is it possible to save and read without  the user?
> > What is the better way for this task?
> > Do you know any good tutorials with examples on this subject? This task
> it
> > new for me and I want to read about that more.
> >
> > Thank you in advance.
>
>
> ___
> 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] Read and save xml file on disk

Hi to all friends
I have to create stand alone application  that can read xml file then after
editing save it on the disk. I need to do that by FlashCs6. I know that
FileReference.load() : Loads data from a file selected by the user.
FileReference.save() : Saves data to a file location selected by the user.
Is it possible to save and read without  the user?
What is the better way for this task?
Do you know any good tutorials with examples on this subject? This task it
new for me and I want to read about that more.

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Convert flash to mp4 video

Hi
I need to convert fla with highlighting text. Frs=12 in this fla. I
exported it to mov file with settings 12 (and as test 25). Files plays
fine. Then I converted to mp4 with Movavi convector. In that file
animation(highlighting) plays faster than sound. Xilisoft convector has the
same problem. How to do right mp4 file? Should I change export settings in
Flash or try another way?

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (no subject)

Yes, I saw this link and that does not help. In Metro mode only Adobe.com
plays!. I read a lot of questions about that problem in Internet without
any working solution.
I also found another problem. Flash plays only in Desk mode and only from
Internet. If the html with flash runs from my pc flash is blocked and I
should click on the message and unblock it.

If anybody know how to solve the second problem please help.


2013/5/16 Dave Watts 

> > To all problems that Flash has I found new.
> > I tested some flash sites in Windows 8 Metro and found that some pages
> with
> > flash sites does not play. Adobe.com plays well. What  reason can be for
> > other sites?
> > Some sites said you need to upgrate you Flash player if they use
> swfobject,
> > some just nothing show.
>
> Did you check this page?
>
> http://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-8.html
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
>  ___
> 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] (no subject)

Hi
To all problems that Flash has I found new.
I tested some flash sites in Windows 8 Metro and found that some pages with
flash sites does not play. Adobe.com plays well. What  reason can be for
other sites?
Some sites said you need to upgrate you Flash player if they use swfobject,
some just nothing show.

Thanks in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Adobe Flash future

> Right now there are over 25,000+ apps in the App store and/or iTunes.

But they did not create in Flash I think.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Adobe Flash future

Matt,  If we need to have animation/cartoon or games  on iPad and
Android what is the programme for both platform? Do you mean that
Flash can be used for both and that is why it has potential? What the
tech word can offer in this situation?

2013/5/8 Matt S. :
> It's effectively dead in the browser, except for some niche markets (game
> dev, children's content, educational), but it will survive for a long time,
> and has some potential in App and Game development across platforms.
>
> The real problem is that in the tech world, being perceived as last-years
> technology — the stuff the Olds are using — is the kiss of death, even if
> the technology itself still has a lot of potential. Even if you *can* do
> something with Flash, many developers, especially younger ones, would
> sooner cut their swiping finger off than consider using it or admit to
> having used it if they did. I can't count the number of times I've heard
> people apologize when presenting something that was built in Flash, as
> though it were shameful or unprofessional. That kind of stigma is tough for
> any technology to overcome.
>
> .m
>
>
>
> On Wed, May 8, 2013 at 10:40 AM, natalia Vikhtinskaya > wrote:
>
>> Hi
>> What do you think about Flash technology in the near future? It is a
>> pity but it seems that almost all clients have no interest in Flash
>> projects.
>> Do you think Adobe Flash has no future? Where to move from Flash?
>>
>> Thanks
>> ___
>> 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] Adobe Flash future

Hi
What do you think about Flash technology in the near future? It is a
pity but it seems that almost all clients have no interest in Flash
projects.
Do you think Adobe Flash has no future? Where to move from Flash?

Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash to animated gif without looping

Hi
The client wants to convert flash animation to gif animation. Flash
animation has stop() at the end. This is simple task but I can not
make gif stop and not looping. I tried solution that I found in
Internet – when export to gif use animation 1 repetition. That does
not help. I can not find solution for so simple task and need advice.

Thank you in advance for any help.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] pull in html section to Flash

Thank you Karl
Some more questions:
1.  What Flash function can pull in basic html to flash?
2.  And what Flash function can get access to the database?
  I suppose that can not be done directly from flash. And how to
manage that dynamically with new url each time?


2012/11/21 Karl DeSaulniers :
> Hi Natalia,
> Yes you can, but it is the most basic of html. No DIVs for example.
> From the link you provided, that html would not work inside flash I don't
> think.
> If possible, get access to the database the comments are stored on
> and filter the data to your flash piece.
>
> HTH,
> Best,
> Karl
>
>
>
> On Nov 21, 2012, at 12:55 AM, natalia Vikhtinskaya wrote:
>
>> Hi to all
>> I need advice.
>> Is that possible to build a Flash/AS3 file that can pull in HTML data
>> from a website?
>> The site has a comment section (similar to this
>> http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need
>> that section to display, in real time, in the Flash file.
>> We also have the unique url of the site.  It changes on every page reload.
>>
>> What possible and not possible for flash in this situation and what
>> way I can use?
>>
>> Thank you in advance.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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


[Flashcoders] pull in html section to Flash

Hi to all
I need advice.
Is that possible to build a Flash/AS3 file that can pull in HTML data
from a website?
The site has a comment section (similar to this
http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need
that section to display, in real time, in the Flash file.
We also have the unique url of the site.  It changes on every page reload.

What possible and not possible for flash in this situation and what
way I can use?

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Button events under mc

THANK YOU Hans!!! I did something wrong. Yes, that works! Thank you to
everyone for help!

2012/7/9 Hans Wichman :
> i just did the same here, and it works perfectly.
> txt.mouseEnabled = false;
>
>
>
> On 9-7-2012 21:24, natalia Vikhtinskaya wrote:
>>
>> Yes I tried mouseEnabled for the text. That does not help.
>> I can not put button over the text because on OVER yellow block should
>> be under text. For some reason I also can not put text in each button.
>>
>> 2012/7/9 Hans Wichman :
>>>
>>> so did you disable the mouseEnabled of the text?
>>>
>>>
>>> On 9-7-2012 21:11, natalia Vikhtinskaya wrote:
>>>>
>>>> CS5.5
>>>>
>>>> 2012/7/9 Cor :
>>>>>
>>>>> Which version of Flash do you have?
>>>>>
>>>>>
>>>>> -Original Message-
>>>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
>>>>> Vikhtinskaya
>>>>> Sent: maandag 9 juli 2012 21:02
>>>>> To: Flash Coders List
>>>>> Subject: Re: [Flashcoders] Button events under mc
>>>>>
>>>>> http://www.mightybook.com/test/test.fla
>>>>> http://www.mightybook.com/test/test.swf
>>>>> If mouse exactly  over the text the button has even OUT. It is not
>>>>> correct.
>>>>>
>>>>> 2012/7/9 Hans Wichman :
>>>>>>
>>>>>> Hi Natalia,
>>>>>>
>>>>>> you probably need to set mouseChildren and mouseEnabled of the
>>>>>> overlying movieclip to false.
>>>>>>
>>>>>> hth,
>>>>>> h
>>>>>>
>>>>>>
>>>>>> On 9-7-2012 20:00, natalia Vikhtinskaya wrote:
>>>>>>>
>>>>>>> Hi to all.
>>>>>>> I have button under Movie clip. In AS3  button  does not have events
>>>>>>> OVER or CLICK in place where is this mc. In AS2 that worked without
>>>>>>> such problem. How can I have button events on entire button ?
>>>>>>>
>>>>>>> Thank in advance.
>>>>>>> ___
>>>>>>> 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 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Button events under mc

Yes I tried mouseEnabled for the text. That does not help.
I can not put button over the text because on OVER yellow block should
be under text. For some reason I also can not put text in each button.

2012/7/9 Hans Wichman :
> so did you disable the mouseEnabled of the text?
>
>
> On 9-7-2012 21:11, natalia Vikhtinskaya wrote:
>>
>> CS5.5
>>
>> 2012/7/9 Cor :
>>>
>>> Which version of Flash do you have?
>>>
>>>
>>> -Original Message-
>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
>>> Vikhtinskaya
>>> Sent: maandag 9 juli 2012 21:02
>>> To: Flash Coders List
>>> Subject: Re: [Flashcoders] Button events under mc
>>>
>>> http://www.mightybook.com/test/test.fla
>>> http://www.mightybook.com/test/test.swf
>>> If mouse exactly  over the text the button has even OUT. It is not
>>> correct.
>>>
>>> 2012/7/9 Hans Wichman :
>>>>
>>>> Hi Natalia,
>>>>
>>>> you probably need to set mouseChildren and mouseEnabled of the
>>>> overlying movieclip to false.
>>>>
>>>> hth,
>>>> h
>>>>
>>>>
>>>> On 9-7-2012 20:00, natalia Vikhtinskaya wrote:
>>>>>
>>>>> Hi to all.
>>>>> I have button under Movie clip. In AS3  button  does not have events
>>>>> OVER or CLICK in place where is this mc. In AS2 that worked without
>>>>> such problem. How can I have button events on entire button ?
>>>>>
>>>>> Thank in advance.
>>>>> ___
>>>>> 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 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] Button events under mc

CS5.5

2012/7/9 Cor :
> Which version of Flash do you have?
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
> Vikhtinskaya
> Sent: maandag 9 juli 2012 21:02
> To: Flash Coders List
> Subject: Re: [Flashcoders] Button events under mc
>
> http://www.mightybook.com/test/test.fla
> http://www.mightybook.com/test/test.swf
> If mouse exactly  over the text the button has even OUT. It is not correct.
>
> 2012/7/9 Hans Wichman :
>> Hi Natalia,
>>
>> you probably need to set mouseChildren and mouseEnabled of the
>> overlying movieclip to false.
>>
>> hth,
>> h
>>
>>
>> On 9-7-2012 20:00, natalia Vikhtinskaya wrote:
>>>
>>> Hi to all.
>>> I have button under Movie clip. In AS3  button  does not have events
>>> OVER or CLICK in place where is this mc. In AS2 that worked without
>>> such problem. How can I have button events on entire button ?
>>>
>>> Thank in advance.
>>> ___
>>> 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Button events under mc

http://www.mightybook.com/test/test.fla
http://www.mightybook.com/test/test.swf
If mouse exactly  over the text the button has even OUT. It is not correct.

2012/7/9 Hans Wichman :
> Hi Natalia,
>
> you probably need to set mouseChildren and mouseEnabled of the overlying
> movieclip to false.
>
> hth,
> h
>
>
> On 9-7-2012 20:00, natalia Vikhtinskaya wrote:
>>
>> Hi to all.
>> I have button under Movie clip. In AS3  button  does not have events
>> OVER or CLICK in place where is this mc. In AS2 that worked without
>> such problem. How can I have button events on entire button ?
>>
>> Thank in advance.
>> ___
>> 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] Button events under mc

Hi to all.
I have button under Movie clip. In AS3  button  does not have events
OVER or CLICK in place where is this mc. In AS2 that worked without
such problem. How can I have button events on entire button ?

Thank in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Sound control problem

Hi
I have mute button with class linked to this mc in the library

package lib
{
 import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;

 public class MuteControl extends flash.display.MovieClip
{
private var _so:SoundTransform;
public function MuteControl()
{

_so=new SoundTransform();
_so.volume = 1;
soundTransform=_so;
this.addEventListener(MouseEvent.CLICK, 
muteControlButton);
this.buttonMode = true;
this.mouseChildren = false;
return;
}



  private function muteControlButton(e:MouseEvent):void {
if (_so.volume==1){
_so.volume=0;
e.target.gotoAndStop(2);
} else {
_so.volume=1;
e.target.gotoAndStop(1);
}
this.soundTransform = _so;  //nothing changes
}



}

}

muteControlButton function works correctly but sound does not change.
Sound file attached on Timeline. What is wrong?

Please advice.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Count Down timer

Hi
I have a code on timeline for countDown that works well for mc timerObj

import com.flashspeaks.utils.CountdownTimer;
import com.flashspeaks.events.CountdownEvent;

var currentYear:Number = new Date().fullYear;
var targetDate:Date = new Date(2012, 1, 17);
var countdown:CountdownTimer=new CountdownTimer(targetDate);
countdown.addEventListener(CountdownEvent.COUNTDOWN_UPDATE,
onCountdownUpdate, false, 0, true);
function onCountdownUpdate(e:CountdownEvent):void {
timerObj.days.numberText.text=countdown.days;
timerObj.hours.numberText.text=countdown.hours;
timerObj.minutes.numberText.text=countdown.minutes;
timerObj.seconds.numberText.text=countdown.seconds;
}
I want to do the Class with the same functions

package lib
{
import com.flashspeaks.utils.CountdownTimer;
import com.flashspeaks.events.CountdownEvent;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;


public class TimerObject extends flash.display.MovieClip
{
public function TimerObject()
{

this.currentYear = new Date().fullYear;
this.targetDate = new Date(2012, 1, 17);
this.countdown=new CountdownTimer(targetDate);

super();
if (stage)
{
this.init();
}
else
{
addEventListener(flash.events.Event.ADDED_TO_STAGE, this.init);
}
return;
}

public function init(arg1:flash.events.Event=null):void
{

countdown.addEventListener(CountdownEvent.COUNTDOWN_UPDATE,
onCountdownUpdate, false, 0, true);
   return;
}

 private function onCountdownUpdate(e:CountdownEvent):void {
this.timerObj.days.numberText.text=countdown.days;
this.timerObj.hours.numberText.text=countdown.hours;
this.timerObj.minutes.numberText.text=countdown.minutes;
this.timerObj.seconds.numberText.text=countdown.seconds;
}



public var timerObj:flash.display.MovieClip;

private var currentYear:Number;

   private var targetDate:Date;

private var countdown:CountdownTimer;
}
}

Class is linked in the library to mc timerObj

that gives error
TypeError: Error #1009: Не удается вызвать свойство или метод со
ссылкой на объект "null".
at lib::TimerObject/onCountdownUpdate()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.flashspeaks.utils::CountdownTimer/updateTime()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

What is wrong in my class?

Thank you in advance.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Facebook share button

Hi
I  need to have Facebook share button in Flash with ability to have my
own description and picture. I looked at many examples in net but did
not find any working example.
For example on this page from ADOBE
http://cookbooks.adobe.com/post_Facebook_share_button_in_AS3_without_external_Java-17581.html

Code
function onFBClick(e:MouseEvent) {
 if(ExternalInterface.available) {
 var code:XML = 
   http://www.facebook.com/share'
   var l="http://supergeekery.com";
   var host = "supergeekery.com"
   var e=encodeURIComponent
   var t="SuperGeekery is blog by some guy who likes geeky things."
   var p='.php?src=bm&v=4&i=1277427231&u='+e(l)+'&t='+e(t);
   
try{if(!/^(.*\.)?facebook\.[^.]*$/.test(host))throw(0);share_internal_bookmarklet(p)}catch(z)
{a=function() {if
(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if
(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0);
 }
   ]]>
 ;
 ExternalInterface.call(code);   }}

Result facebook page has title and description from metatages on the
url page instead of "SuperGeekery is blog by some guy who likes geeky
things" that I expected to see.

Please anybody share the code to have share button for Facebook and
Tweetter from flash with description and image link that goes from
swf. Is it possible  don't use ExternalInterface and make code more
simple?

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Image grid with zoom effect

Yes, timer does this magc! Thank you Karim! Thank you Cédric also.

Maybe you  can give me better idea for calculation when I calculate
picture size and column numbers on the start. I want it be in width
from 180 to 225.  Column number should depends on stage width and I
will calculate it after resizing has finished but I can not find good
logic formula for that.

I know it is not good gode
var startPicW:Number=180; / /in the beginning I use this
var startPicH:Number=120;
function initPic():void {

var p:Number=startPicW/startPicH;
maxCol=Math.round(stage.stageWidth/startPicW)
var diff:Number=stage.stageWidth-startPicW*maxCol;
if (diff<0){
maxCol-=1;
}
diff=stage.stageWidth - startPicW*maxCol;
startPicW+=Math.round(diff/maxCol)
startPicH=startPicW/p;

.
}


3 января 2012 г. 18:30 пользователь Cédric Muller  написал:
> just use a timer (as Karim pointed out)
> or compare the previous values (stageWidth and stageHeight) with the current 
> ones: if both are equal you could fire your resize code
> or you could, ultimately, resize your application each time resize is called 
> too (depending on how you are handling your resize code, this could work)
>
>> Maybe I don't understand your idea.
>> I checked
>> stage.addEventListener(Event.RESIZE, resizeHandler);
>> function resizeHandler(e:Event=null):void {
>>               trace("stage "+stage.stageWidth)
>> }
>>
>> That gives me
>> stage 999
>> stage 967
>> stage 911
>> stage 835
>> stage 790
>> stage 745
>> stage 705
>> stage 679
>> stage 674
>> stage 673
>> I need to do something only once after the last changes where stage is 673.
>> How Resize Event can help in this situation?
>>
>>
>>
>>
>>
>> 3 января 2012 г. 16:46 пользователь Cédric Muller  
>> написал:
>>> or you could setup a CustomEvent.RESIZED thing that you throw when your 
>>> resize code has been executed ... but you could also be ok by just calling 
>>> a method /after/ the resize code/loop
>>>
>>> private function resizeHandler (e:Event):void {
>>>        //      resize code here (could be long)
>>>        //      resize code here
>>>        //      end of resize code/loop, now we dispatch a RESIZED event
>>>        var ce:CustomEvent = new CustomEvent(CustomEvent.RESIZED);
>>>        dispatchEvent(ce);
>>> }
>>>
>>> (your class needs to somewhat extend flash.events.EventDispatcher)
>>>
 Or, if you really need to, you can do something like this:

 import flash.utils.setTimeout;
 import flash.utils.clearTimeout;

 var timeOutID : uint;
 stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true)

 function resizeHandler( e : Event = null ) : void {

    clearTimeout(  timeOutID ) ;
    timeOutID = setTimeout( resizeIsComplete , 250 );

 }

 function resizeIsComplete() : void {
    trace('resizeIsComplete');
 }



 On 3 Jan 2012, at 08:05, Cédric Muller wrote:

> Yes, I know, but I interpreted what was needed, and I /think/ RESIZE does 
> the job:
>
> RESIZE occurs
> your 'resize' code is executed
> when your code has been executed, it is RESIZEd.
>
> :) Ok, ok, I know
>
>> Cédric Muller skriver:
>>> stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true)
>>>
>>>
>>>
 Is it possible to get information in swf from a browser that resizing
 process is finished?

>>
>> Sorry, but that event is not for when the resizing has finished. It is
>> when it is happening.
>>
>> ___
>> 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 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] Image grid with zoom effect

Maybe I don't understand your idea.
I checked
stage.addEventListener(Event.RESIZE, resizeHandler);
function resizeHandler(e:Event=null):void {
trace("stage "+stage.stageWidth)
}

That gives me
stage 999
stage 967
stage 911
stage 835
stage 790
stage 745
stage 705
stage 679
stage 674
stage 673
I need to do something only once after the last changes where stage is 673.
How Resize Event can help in this situation?





3 января 2012 г. 16:46 пользователь Cédric Muller  написал:
> or you could setup a CustomEvent.RESIZED thing that you throw when your 
> resize code has been executed ... but you could also be ok by just calling a 
> method /after/ the resize code/loop
>
> private function resizeHandler (e:Event):void {
>        //      resize code here (could be long)
>        //      resize code here
>        //      end of resize code/loop, now we dispatch a RESIZED event
>        var ce:CustomEvent = new CustomEvent(CustomEvent.RESIZED);
>        dispatchEvent(ce);
> }
>
> (your class needs to somewhat extend flash.events.EventDispatcher)
>
>> Or, if you really need to, you can do something like this:
>>
>> import flash.utils.setTimeout;
>> import flash.utils.clearTimeout;
>>
>> var timeOutID : uint;
>> stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true)
>>
>> function resizeHandler( e : Event = null ) : void {
>>
>>    clearTimeout(  timeOutID ) ;
>>    timeOutID = setTimeout( resizeIsComplete , 250 );
>>
>> }
>>
>> function resizeIsComplete() : void {
>>    trace('resizeIsComplete');
>> }
>>
>>
>>
>> On 3 Jan 2012, at 08:05, Cédric Muller wrote:
>>
>>> Yes, I know, but I interpreted what was needed, and I /think/ RESIZE does 
>>> the job:
>>>
>>> RESIZE occurs
>>> your 'resize' code is executed
>>> when your code has been executed, it is RESIZEd.
>>>
>>> :) Ok, ok, I know
>>>
 Cédric Muller skriver:
> stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true)
>
>
>
>> Is it possible to get information in swf from a browser that resizing
>> process is finished?
>>

 Sorry, but that event is not for when the resizing has finished. It is
 when it is happening.

 ___
 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Image grid with zoom effect

Is it possible to get information in swf from a browser that resizing
process is finished?

2 января 2012 г. 18:26 пользователь natalia Vikhtinskaya
 написал:
> Yes, you are right. Thank you very much.
> I added isDrag var
> so:
> setMouseController=function(){
>        mouseController.onMouseDown = function(){
>       isDrag=false;
>        yOff=container_mc._y -_ymouse;
>        mouseController.onMouseMove=moveIt;}}
>
> function moveIt() {
>       isDrag=true;
>                ..///move screen
> }
>
> and
> mc.bg.onRelease=function(){
>        if (!isDrag){
>
>        .       //zoom picture
>        }
> }
>
> Now dragging is perfect.
>
> The only question I still have is resizing layout when pictures are not 
> zoomed.
> How to catch event when resizing is finished? I see that they do that
> somehow. And how calculate number and size of the pictures  in the
> row.  It depends on the stage size but I don't see logic. This magic I
> don't understand at all.
>
>
> 2 января 2012 г. 17:19 пользователь Cédric Muller  
> написал:
>> Hi
>>
>> the 'release event' (leading to zooming) only occurs when you 'drag' and
>> then 'release' on the same image. If you drag an image (f.ex nb 16) and
>> release your mouse on nb 15, everything works fine.
>> You should try a simpler solution where you validate a click by looking at
>> the time between the mouse down and the mouse up (drag + release) events, or
>> something along those lines.
>> You seem to be checking whether the mouse still is on the same image, if
>> that is true, regardless of the mouse movement/time spent dragging, the
>> release event occurs.
>>
>> You could also add a param like 'isDragging=true/false'.
>>
>> hth,
>> Cedric
>>
>>
>>> Thank you for help.
>>> I created prototype  http://www.mightybook.com/test/
>>> that works similar to
>>>
>>> http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
>>> (page "event")
>>>
>>> 1. Sometimes an event "release" invokes  when I press a mouse longer
>>> trying to drag screen and move mouse slow. Another words sometimes I
>>> zoom picture at the end of the movement.
>>> Example page works perfect with draging screen.
>>>
>>> How can I improve drag function for screen?
>>>
>>> Here is some code
>>> setMouseController=function(){
>>>        mouseController.onMouseDown = function(){
>>>        yOff=container_mc._y -_ymouse;
>>>        mouseController.onMouseMove=moveIt;}
>>> }
>>>
>>> mouseController.onMouseUp = function(){
>>>        delete mouseController.onMouseMove;
>>> }
>>>
>>> function moveIt() {
>>>                var thisY=(yOff+_ymouse);
>>>                if(thisY <= yMin)
>>>                thisY = yMin
>>>                if(thisY >= yMax)
>>>                thisY = yMax;
>>>                Tweener.addTween(container_mc, { _y:thisY, time:1,
>>> transition:"easeOut",onComplete:finishMoveTween});
>>>
>>> }
>>>
>>>
>>> initPicAction=function(){
>>>  for (var i:Number=1; i<=lastNumber; i++){
>>>                var mc:MovieClip=container_mc["pic"+i];
>>>                mc.picNum.text=i;
>>>
>>>
>>>                mc.bg.onRelease=function(){
>>>                        currentPic=this._parent;
>>>                        Tweener.removeTweens(container_mc);
>>>                        delete mouseController.onMouseMove;
>>>                        delete mouseController.onMouseDown;
>>>                        placeZommedPicture();
>>>
>>>                }
>>>
>>>        }
>>> }
>>>
>>> placeZommedPicture=function(){
>>>                if (!scaled){
>>>                        var
>>> targetXScale:Number=container_mc._xscale*scaleFactor;
>>>                        var
>>> targetYScale:Number=container_mc._yscale*scaleFactor;
>>>                        scaled=true;
>>>                        Tweener.addTween(container_mc,
>>> {_xscale:targetXScale,_yscale:targetYScale, time:0.5,
>>> transition:"easeOut",onComplete:finishTween});
>>>                }
>>>                        var
>>> targetX:Number=Math.round(centerX-currentPic.

Re: [Flashcoders] Image grid with zoom effect

льзователь Geografiek
>>  написал:
>>>
>>> At first I thought no, but maybe you do.
>>> Here's some code I used for zooming
>>>
>>> var oldScale:Number; // initial scale of the _dpoToZoom
>>> var newScale:Number; // target scale of the _dpoToZoom
>>> var scaleFactor:Number = newScale/oldScale;
>>> var globalMouse:Point = new Point(stage.mouseX, stage.mouseY);
>>> var localMouse:Point = _dpoToZoom.parent.globalToLocal(globalMouse);
>>> var deltaX:Number = localMouse.x - _dpoToZoom.x;
>>> var deltaY:Number = localMouse.y - _dpoToZoom.y;
>>> var newX:Number = Math.round((localMouse.x - (deltaX * scaleFactor)));
>>> var newY:Number = Math.round((localMouse.y - (deltaY * scaleFactor)));
>>> TweenLite.to(_dpoToZoom, _tweenDuration, {
>>>                       scaleX:_currentScale,
>>>                       scaleY:_currentScale,
>>>                       x:newX,
>>>                       y:newY,
>>>                       ease:Cubic.easeOut,
>>>                       });
>>>
>>> HTH
>>> Willem van den Goorbergh
>>>
>>> On 27 dec 2011, at 15:19, natalia Vikhtinskaya wrote:
>>>
>>>> Thank you. Should I convert local x.y to Global x,y for clicked mc?
>>>>
>>>> 27 декабря 2011 г. 17:02 пользователь Geografiek
>>>>  написал:
>>>>>
>>>>> Hi Natalia,
>>>>> Yes I think that's the general idea. The math is really not that hard.
>>>>> just scaling (always the same) and moving (relative to the position of
>>>>> the picture clicked)
>>>>> Grab paper and pencil and visualize what you want to achieve to get
>>>>> your calculations started. It really helps.
>>>>> success
>>>>> Willem van den Goorbergh
>>>>>
>>>>> On 27 dec 2011, at 13:08, natalia Vikhtinskaya wrote:
>>>>>
>>>>>> Hi
>>>>>> I want to create image grid with zoom effect similar to this
>>>>>>
>>>>>> http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
>>>>>> Click on "event". I need an advice how to place
>>>>>>
>>>>>> If  I create a grid inside one mainMc how I can manage it? I need to
>>>>>> zoom this mainMc, move all images but clicked image must be in the
>>>>>> centre of the screen. Is this correct idea in general? How to make
>>>>>> calculation? What is the way to solve it?
>>>>>>
>>>>>> Thank you for any help.
>>>>>>
>>>>>> ___
>>>>>> Flashcoders mailing list
>>>>>> Flashcoders@chattyfig.figleaf.com
>>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>>>>> Geografiek is een in Utrecht gevestigd kartografisch bureau
>>>>> Willem van den Goorbergh is telefonisch bereikbaar onder nummer
>>>>> 030-2719512
>>>>> of mobiel: 06-26372378
>>>>> postadres: Hooghiemstraplein 89 3514 AX UTRECHT
>>>>> Bezoek onze website op: www.geografiek.nl
>>>>> twitter: @wvdgoorbergh
>>>>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ___
>>>>> 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
>>>
>>>
>>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>>> Geografiek is a Dutch, Utrecht-based map and chart design company.
>>> Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512
>>> or cell phone: (+31)6-26372378
>>> visiting address: Hooghiemstraplein 89 3514 AX UTRECHT
>>> Visit our website at: www.geografiek.nl
>>> twitter: @wvdgoorbergh
>>> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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


Re: [Flashcoders] Image grid with zoom effect

Thank you for help.
I created prototype  http://www.mightybook.com/test/
that works similar to
http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
(page "event")

1. Sometimes an event "release" invokes  when I press a mouse longer
trying to drag screen and move mouse slow. Another words sometimes I
zoom picture at the end of the movement.
Example page works perfect with draging screen.

How can I improve drag function for screen?

Here is some code
setMouseController=function(){
mouseController.onMouseDown = function(){
yOff=container_mc._y -_ymouse;
mouseController.onMouseMove=moveIt;}
}

mouseController.onMouseUp = function(){
delete mouseController.onMouseMove;
}

function moveIt() {
var thisY=(yOff+_ymouse);
if(thisY <= yMin)
thisY = yMin
if(thisY >= yMax)
thisY = yMax;
Tweener.addTween(container_mc, { _y:thisY, time:1,
transition:"easeOut",onComplete:finishMoveTween});

}


initPicAction=function(){
  for (var i:Number=1; i<=lastNumber; i++){
var mc:MovieClip=container_mc["pic"+i];
mc.picNum.text=i;


mc.bg.onRelease=function(){
currentPic=this._parent;
Tweener.removeTweens(container_mc);
delete mouseController.onMouseMove;
delete mouseController.onMouseDown;
placeZommedPicture();

}

}
}

placeZommedPicture=function(){
if (!scaled){
var 
targetXScale:Number=container_mc._xscale*scaleFactor;
var 
targetYScale:Number=container_mc._yscale*scaleFactor;
scaled=true;
Tweener.addTween(container_mc,
{_xscale:targetXScale,_yscale:targetYScale, time:0.5,
transition:"easeOut",onComplete:finishTween});
}
var 
targetX:Number=Math.round(centerX-currentPic._x*scaleFactor);
var 
targetY:Number=Math.round(centerY-currentPic._y*scaleFactor);
Tweener.addTween(container_mc, {_x:targetX, _y:targetY, 
time:0.5,
transition:"easeOut",onComplete:finishTween});

}

initPicAction();
setMouseController();

2.  I see that objects lay out AFTER swf is resized. How that possible?
I know that stage.onResize function invokes when swf IS RESIZED.






27 декабря 2011 г. 18:30 пользователь Geografiek
 написал:
> At first I thought no, but maybe you do.
> Here's some code I used for zooming
>
> var oldScale:Number; // initial scale of the _dpoToZoom
> var newScale:Number; // target scale of the _dpoToZoom
> var scaleFactor:Number = newScale/oldScale;
> var globalMouse:Point = new Point(stage.mouseX, stage.mouseY);
> var localMouse:Point = _dpoToZoom.parent.globalToLocal(globalMouse);
> var deltaX:Number = localMouse.x - _dpoToZoom.x;
> var deltaY:Number = localMouse.y - _dpoToZoom.y;
> var newX:Number = Math.round((localMouse.x - (deltaX * scaleFactor)));
> var newY:Number = Math.round((localMouse.y - (deltaY * scaleFactor)));
> TweenLite.to(_dpoToZoom, _tweenDuration, {
>scaleX:_currentScale,
>scaleY:_currentScale,
>x:newX,
>y:newY,
>        ease:Cubic.easeOut,
>});
>
> HTH
> Willem van den Goorbergh
>
> On 27 dec 2011, at 15:19, natalia Vikhtinskaya wrote:
>
>> Thank you. Should I convert local x.y to Global x,y for clicked mc?
>>
>> 27 декабря 2011 г. 17:02 пользователь Geografiek
>>  написал:
>>> Hi Natalia,
>>> Yes I think that's the general idea. The math is really not that hard.
>>> just scaling (always the same) and moving (relative to the position of the 
>>> picture clicked)
>>> Grab paper and pencil and visualize what you want to achieve to get your 
>>> calculations started. It really helps.
>>> success
>>> Willem van den Goorbergh
>>>
>>> On 27 dec 2011, at 13:08, natalia Vikhtinskaya wrote:
>>>
>>>> Hi
>>>> I want to create image grid with zoom effect similar to this
>>>> http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
>>>> Click on "event". I need an advice how to place
>>>>
>>>> If  I create a grid inside one mainMc how I can manage it? I need to
>>>> zoom this mainMc, move all images but clicked image must be in the
>>>> centre of the screen. Is 

Re: [Flashcoders] Image grid with zoom effect

Thank you. Should I convert local x.y to Global x,y for clicked mc?

27 декабря 2011 г. 17:02 пользователь Geografiek
 написал:
> Hi Natalia,
> Yes I think that's the general idea. The math is really not that hard.
> just scaling (always the same) and moving (relative to the position of the 
> picture clicked)
> Grab paper and pencil and visualize what you want to achieve to get your 
> calculations started. It really helps.
> success
> Willem van den Goorbergh
>
> On 27 dec 2011, at 13:08, natalia Vikhtinskaya wrote:
>
>> Hi
>> I want to create image grid with zoom effect similar to this
>> http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
>> Click on "event". I need an advice how to place
>>
>> If  I create a grid inside one mainMc how I can manage it? I need to
>> zoom this mainMc, move all images but clicked image must be in the
>> centre of the screen. Is this correct idea in general? How to make
>> calculation? What is the way to solve it?
>>
>> Thank you for any help.
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> Geografiek is een in Utrecht gevestigd kartografisch bureau
> Willem van den Goorbergh is telefonisch bereikbaar onder nummer 030-2719512
> of mobiel: 06-26372378
> postadres: Hooghiemstraplein 89 3514 AX UTRECHT
> Bezoek onze website op: www.geografiek.nl
> twitter: @wvdgoorbergh
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>
>
>
>
>
> ___
> 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] Image grid with zoom effect

Thank you. I  know that (stage.width-mc.width)/2 gives me center point
for mc that is on the stage. But I have different situation. mainMc
has 20 mcs for example. Clicking on any of that mc I should move and
zoom mainMc and that movement based on the position of the mc that is
inside mainMc.  How to calculate that or I need another way of
looking?

27 декабря 2011 г. 15:32 пользователь Henrik Andersson
 написал:
> natalia Vikhtinskaya skriver:
>>How to make calculation?
>
> Call up your favorite math teacher and ask him/her to teach you basic
> geometry and per cent again.
> ___
> 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] Image grid with zoom effect

Hi
I want to create image grid with zoom effect similar to this
http://www.zara.com/webapp/wcs/stores/servlet/category/us/en/zara-us-W2011-s/149501/
Click on “event”. I need an advice how to place

If  I create a grid inside one mainMc how I can manage it? I need to
zoom this mainMc, move all images but clicked image must be in the
centre of the screen. Is this correct idea in general? How to make
calculation? What is the way to solve it?

Thank you for any help.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Convert flash animation with sound to Ipad

Thank you very much. Not all is clear for me but I try to understand.

2011/9/21 Kevin Newman :
> To make an app, you'll want to change the publishing settings to publish as
> iPhone app.
>
> The only thing is, you'll be publishing with AIR 2.0 by default from Flash
> CS5 - there is a way to overlay the AIR package to get it to work with newer
> AIR builds (AIR 2.7 is fast much much faster, and supports iPad, retina,
> etc.).
>
> Alternatively, you could use the command line, and not worry about
> overlaying the AIR SDK:
> http://icodesnip.com/snippet/actionscript-3/adt-command-line-to-compile-ios-app-in-air-26
>
> You could put that command line in a bat file (and edit it as needed), and
> run that after you do a test movie from Flash (to generate the swf). I do
> that to get access to the interpreter builds (which you can't get from
> Flash's iOS publish dialog) for more rapid iteration (a full AOT compile is
> very very slow, but produces quick runtime performance, vs. the interpreter
> which compiles fast, but runs more slowly).
>
> This is windows centric, but I found it the easiest entry point to getting
> up and running with PFI (the old name)/AIR for iOS:
> http://gotoandlearn.com/play.php?id=133
>
> Kevin N.
>
>
> On 9/21/11 12:50 PM, natalia Vikhtinskaya wrote:
>>
>> I have Flash CS5. And I try to find way to convert animation into iPad
>> application. Flash file has not much scripting: stop() and script for
>> navigation buttons. So I have two questions:
>> 1. What format should I save  in Flash CS5?
>> 2. Should I have CS5.5 for better result?
>> 3. What  should I change in scripting so that play correctly in iPad?
>> I am looking for simple example that can help.
>
> ___
> 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] Convert flash animation with sound to Ipad

I have Flash CS5. And I try to find way to convert animation into iPad
application. Flash file has not much scripting: stop() and script for
navigation buttons. So I have two questions:
1. What format should I save  in Flash CS5?
2. Should I have CS5.5 for better result?
3. What  should I change in scripting so that play correctly in iPad?
I am looking for simple example that can help.


Google Swifty can not convert flash with streaming sound and masks.

2011/9/21 Kevin Newman :
> That question could mean 1 of two different targets:
>
> 1. HTML5 - so that the "flash app" runs in Mobile Safari, integrated with
> the website. In that case, you need to port or convert to HTML/JS/CSS. I
> haven't found anything particular hands free to do that conversion, but you
> could try Google Swiffy if it's AS2 (don't know if it supports Sound). I'm
> not sure what you'd use for AS3 (there is Jangaroo, but it doesn't convert
> fla or swf, only AS3, and doesn't run particular well on the current version
> of iOS).
>
> 2. An iOS App Store app, that can be installed through that system. In that
> case AIR for iOS is probably a good bet. If you don't have Flash CS5 (or
> 5.5), you can use the free SDK to compile the necessary app. Make sure to
> use at least AIR 2.7 (especially if you target CPU mode), as it's much much
> faster than previous versions.
>
> Which do you mean?
>
> Kevin N.
>
>
> On 9/21/11 6:59 AM, natalia Vikhtinskaya wrote:
>>
>> I want to convert Flash application to iPad.
>
> ___
> 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] Convert flash animation with sound to Ipad

Do I need CS5 or CS5.5? I am looking  for any working example or
tutorial for using timeline animation and touch events.

2011/9/21 Deepanjan Das :
> Hi Natavi,
> You need to use Adobe Flash CS5 to export flash for iPad.
> Remember to use touch events and no mouse over and mouse outs in Ipad.
>
> Warm Regards
> Deepanjan Das
> W: http://deepanjandas.wordpress.com
> || Om Manasamarthadata Shri Aniruddhaya Namah
> ||<http://www.manasamarthyadata.com/>
> *Think of the environment before printing this email
> __
> *
>
> On Wed, Sep 21, 2011 at 4:29 PM, natalia Vikhtinskaya > wrote:
>
>> Hi
>> I want to convert Flash application to iPad. Flash is frame based
>> animation with streaming sound, masks and buttons Back/Next/Stop/Play.
>>  I googled this subject and did not find any useful information with
>> examples. Please give me advice where to learn more.
>>
>> Thank you in advance.
>> ___
>> 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] Convert flash animation with sound to Ipad

Hi
I want to convert Flash application to iPad. Flash is frame based
animation with streaming sound, masks and buttons Back/Next/Stop/Play.
 I googled this subject and did not find any useful information with
examples. Please give me advice where to learn more.

Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] f4v video does not play in test mode

Thank you!

2011/4/26 Henrik Andersson :
> The test player in the IDE is too old. f4v support was added to the player
> after CS 3 was released.
> ___
> 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] f4v video does not play in test mode

Hi
When I test movie with f4v video in  Flash CS3 it does not play. But
it does play when I test this swf in browser. Both test situations
have video on my pc. What the reason of that can be?

Thanks in advance
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] video fast forward button

Hi
I need to use fast forward button in ns stream video code.  How I can
forward video to the last point of the video that has been already
loaded?

Thank you in advance
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Export QT mov with 29.97

Hi
Flash file has frame rate 30. I need to export it to H264 with frame
rate 29.97. When I select these settings I get mov file with frame
rate 29.41. I don't understand why that happened. How can I get 29.97?
Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Exploring full-screen mode

Problem is solved. I reinstalled video driver.
THANK YOU Glen and Karl very much!

2011/2/24 Glen Pike :
> Hi,
>
>    Sorry, I did not post the forum link before - it could be a problem with
> H/W acceleration:
>
>    http://forums.techarena.in/windows-software/1349719.htm
>
>
>  http://www.google.com/support/forum/p/Chrome/thread?tid=74fc99d821fed64a&hl=en
>
>    Hopefully this might help
>
>    Glen
>
>
> On 24/02/2011 13:31, natalia Vikhtinskaya wrote:
>>
>> I uninstaled and installed FP again. Result is the same. FP doesn't
>> show content in full mode.
>>
>> 2011/2/24 Glen Pike:
>>>
>>> Hi,
>>>
>>>    This sounds like a video driver problem, although I am not 100%.
>>>
>>>    When you re-installed flashplayer, did you uninstall first - use the
>>> uninstaller:
>>>
>>>    http://www.adobe.com/support/flashplayer/downloads.html#uninstaller
>>>
>>>    Check out this post about similar complaint - it might help resolve
>>> it, I
>>> don't know.
>>>
>>>    Glen
>>>
>>>
>>>
>>> On 24/02/2011 12:54, natalia Vikhtinskaya wrote:
>>>>
>>>> Karl, thank you for your help. I see something wrong on my side. I
>>>> also don't see any youtube fullscreen video. But I don't know where
>>>> the  problem can be. If I play swf without browser I also don't see
>>>> content in full screen mode. That means it is FlashPlayer problem.
>>>> What else can I check or change?
>>>>
>>>> 2011/2/24 Karl DeSaulniers:
>>>>>
>>>>> Here is a sample. Make sure allowFullScreen is set in your HTML.
>>>>>
>>>>> http://designdrumm.com/nataliaVikhtinskaya/
>>>>>
>>>>> Best,
>>>>> Karl
>>>>>
>>>>> On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote:
>>>>>
>>>>>> Try this natalia...
>>>>>>
>>>>>> import flash.geom.Rectangle;
>>>>>>
>>>>>> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
>>>>>> Stage.height/2);
>>>>>> Stage.scaleMode = "maintainAspectRatio";
>>>>>>
>>>>>> function goFullScreen()
>>>>>> {
>>>>>>   Stage["displayState"] = "fullScreen";
>>>>>> }
>>>>>>
>>>>>> function exitFullScreen()
>>>>>> {
>>>>>>   Stage["displayState"] = "normal";
>>>>>> }
>>>>>>
>>>>>> function menuHandler(obj, menuObj)
>>>>>> {
>>>>>>   if (Stage["displayState"] == "normal")
>>>>>>   {
>>>>>>      menuObj.customItems[0].enabled = true;
>>>>>>      menuObj.customItems[1].enabled = false;
>>>>>>   }
>>>>>>   else
>>>>>>   {
>>>>>>      menuObj.customItems[0].enabled = false;
>>>>>>      menuObj.customItems[1].enabled = true;
>>>>>>   }
>>>>>> }
>>>>>>
>>>>>> this.onFullScreen = function(bFullScreen:Boolean):Void {
>>>>>>        if (bFullScreen){
>>>>>>                Stage.showMenu = true;
>>>>>>        }
>>>>>> }
>>>>>>
>>>>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>>>>
>>>>>> fullscreenCM.hideBuiltInItems();
>>>>>>
>>>>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
>>>>>> goFullScreen);
>>>>>> fullscreenCM.customItems.push( fs );
>>>>>>
>>>>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>>>>> exitFullScreen);
>>>>>> fullscreenCM.customItems.push( xfs );
>>>>>>
>>>>>> Stage.addListener(Stage["displayState"] == "fullScreen",
>>>>>> onFullScreen);
>>>>>> _root.menu = fullscreenCM;
>>>>>>
>>>>>>
>>>>>> Works for me.. :)
>>>>>>
>>>>>> Best,
>>>>>> Karl
>>>>>>
>>>>>>

Re: [Flashcoders] Exploring full-screen mode

I found some here
http://forums.adobe.com/thread/659297?tstart=0
How  can I open Settings Manager or what new drivers I need for Flash Player 10?

2011/2/24 natalia Vikhtinskaya :
> Yes playing swf locally stand alone or as projector file gives the
> same effect in full screen. Movie plays but I see blank screen.
>
> 2011/2/24 Karl DeSaulniers :
>> Are you trying to run the file locally? Stand alone?
>> Did you try making a projector of it?
>> I think a projector file can go fullscreen.
>>
>> Karl
>>
>> On Feb 24, 2011, at 7:31 AM, natalia Vikhtinskaya wrote:
>>
>>> I uninstaled and installed FP again. Result is the same. FP doesn't
>>> show content in full mode.
>>>
>>> 2011/2/24 Glen Pike :
>>>>
>>>> Hi,
>>>>
>>>>   This sounds like a video driver problem, although I am not 100%.
>>>>
>>>>   When you re-installed flashplayer, did you uninstall first - use the
>>>> uninstaller:
>>>>
>>>>   http://www.adobe.com/support/flashplayer/downloads.html#uninstaller
>>>>
>>>>   Check out this post about similar complaint - it might help resolve it,
>>>> I
>>>> don't know.
>>>>
>>>>   Glen
>>>>
>>>>
>>>>
>>>> On 24/02/2011 12:54, natalia Vikhtinskaya wrote:
>>>>>
>>>>> Karl, thank you for your help. I see something wrong on my side. I
>>>>> also don't see any youtube fullscreen video. But I don't know where
>>>>> the  problem can be. If I play swf without browser I also don't see
>>>>> content in full screen mode. That means it is FlashPlayer problem.
>>>>> What else can I check or change?
>>>>>
>>>>> 2011/2/24 Karl DeSaulniers:
>>>>>>
>>>>>> Here is a sample. Make sure allowFullScreen is set in your HTML.
>>>>>>
>>>>>> http://designdrumm.com/nataliaVikhtinskaya/
>>>>>>
>>>>>> Best,
>>>>>> Karl
>>>>>>
>>>>>> On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote:
>>>>>>
>>>>>>> Try this natalia...
>>>>>>>
>>>>>>> import flash.geom.Rectangle;
>>>>>>>
>>>>>>> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
>>>>>>> Stage.height/2);
>>>>>>> Stage.scaleMode = "maintainAspectRatio";
>>>>>>>
>>>>>>> function goFullScreen()
>>>>>>> {
>>>>>>>  Stage["displayState"] = "fullScreen";
>>>>>>> }
>>>>>>>
>>>>>>> function exitFullScreen()
>>>>>>> {
>>>>>>>  Stage["displayState"] = "normal";
>>>>>>> }
>>>>>>>
>>>>>>> function menuHandler(obj, menuObj)
>>>>>>> {
>>>>>>>  if (Stage["displayState"] == "normal")
>>>>>>>  {
>>>>>>>     menuObj.customItems[0].enabled = true;
>>>>>>>     menuObj.customItems[1].enabled = false;
>>>>>>>  }
>>>>>>>  else
>>>>>>>  {
>>>>>>>     menuObj.customItems[0].enabled = false;
>>>>>>>     menuObj.customItems[1].enabled = true;
>>>>>>>  }
>>>>>>> }
>>>>>>>
>>>>>>> this.onFullScreen = function(bFullScreen:Boolean):Void {
>>>>>>>       if (bFullScreen){
>>>>>>>               Stage.showMenu = true;
>>>>>>>       }
>>>>>>> }
>>>>>>>
>>>>>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>>>>>
>>>>>>> fullscreenCM.hideBuiltInItems();
>>>>>>>
>>>>>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
>>>>>>> goFullScreen);
>>>>>>> fullscreenCM.customItems.push( fs );
>>>>>>>
>>>>>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>>>>>> exitFullScreen);
>>>>>>> full

Re: [Flashcoders] Exploring full-screen mode

Yes playing swf locally stand alone or as projector file gives the
same effect in full screen. Movie plays but I see blank screen.

2011/2/24 Karl DeSaulniers :
> Are you trying to run the file locally? Stand alone?
> Did you try making a projector of it?
> I think a projector file can go fullscreen.
>
> Karl
>
> On Feb 24, 2011, at 7:31 AM, natalia Vikhtinskaya wrote:
>
>> I uninstaled and installed FP again. Result is the same. FP doesn't
>> show content in full mode.
>>
>> 2011/2/24 Glen Pike :
>>>
>>> Hi,
>>>
>>>   This sounds like a video driver problem, although I am not 100%.
>>>
>>>   When you re-installed flashplayer, did you uninstall first - use the
>>> uninstaller:
>>>
>>>   http://www.adobe.com/support/flashplayer/downloads.html#uninstaller
>>>
>>>   Check out this post about similar complaint - it might help resolve it,
>>> I
>>> don't know.
>>>
>>>   Glen
>>>
>>>
>>>
>>> On 24/02/2011 12:54, natalia Vikhtinskaya wrote:
>>>>
>>>> Karl, thank you for your help. I see something wrong on my side. I
>>>> also don't see any youtube fullscreen video. But I don't know where
>>>> the  problem can be. If I play swf without browser I also don't see
>>>> content in full screen mode. That means it is FlashPlayer problem.
>>>> What else can I check or change?
>>>>
>>>> 2011/2/24 Karl DeSaulniers:
>>>>>
>>>>> Here is a sample. Make sure allowFullScreen is set in your HTML.
>>>>>
>>>>> http://designdrumm.com/nataliaVikhtinskaya/
>>>>>
>>>>> Best,
>>>>> Karl
>>>>>
>>>>> On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote:
>>>>>
>>>>>> Try this natalia...
>>>>>>
>>>>>> import flash.geom.Rectangle;
>>>>>>
>>>>>> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
>>>>>> Stage.height/2);
>>>>>> Stage.scaleMode = "maintainAspectRatio";
>>>>>>
>>>>>> function goFullScreen()
>>>>>> {
>>>>>>  Stage["displayState"] = "fullScreen";
>>>>>> }
>>>>>>
>>>>>> function exitFullScreen()
>>>>>> {
>>>>>>  Stage["displayState"] = "normal";
>>>>>> }
>>>>>>
>>>>>> function menuHandler(obj, menuObj)
>>>>>> {
>>>>>>  if (Stage["displayState"] == "normal")
>>>>>>  {
>>>>>>     menuObj.customItems[0].enabled = true;
>>>>>>     menuObj.customItems[1].enabled = false;
>>>>>>  }
>>>>>>  else
>>>>>>  {
>>>>>>     menuObj.customItems[0].enabled = false;
>>>>>>     menuObj.customItems[1].enabled = true;
>>>>>>  }
>>>>>> }
>>>>>>
>>>>>> this.onFullScreen = function(bFullScreen:Boolean):Void {
>>>>>>       if (bFullScreen){
>>>>>>               Stage.showMenu = true;
>>>>>>       }
>>>>>> }
>>>>>>
>>>>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>>>>
>>>>>> fullscreenCM.hideBuiltInItems();
>>>>>>
>>>>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
>>>>>> goFullScreen);
>>>>>> fullscreenCM.customItems.push( fs );
>>>>>>
>>>>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>>>>> exitFullScreen);
>>>>>> fullscreenCM.customItems.push( xfs );
>>>>>>
>>>>>> Stage.addListener(Stage["displayState"] == "fullScreen",
>>>>>> onFullScreen);
>>>>>> _root.menu = fullscreenCM;
>>>>>>
>>>>>>
>>>>>> Works for me.. :)
>>>>>>
>>>>>> Best,
>>>>>> Karl
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote:
>>>>

Re: [Flashcoders] Exploring full-screen mode

I uninstaled and installed FP again. Result is the same. FP doesn't
show content in full mode.

2011/2/24 Glen Pike :
> Hi,
>
>    This sounds like a video driver problem, although I am not 100%.
>
>    When you re-installed flashplayer, did you uninstall first - use the
> uninstaller:
>
>    http://www.adobe.com/support/flashplayer/downloads.html#uninstaller
>
>    Check out this post about similar complaint - it might help resolve it, I
> don't know.
>
>    Glen
>
>
>
> On 24/02/2011 12:54, natalia Vikhtinskaya wrote:
>>
>> Karl, thank you for your help. I see something wrong on my side. I
>> also don't see any youtube fullscreen video. But I don't know where
>> the  problem can be. If I play swf without browser I also don't see
>> content in full screen mode. That means it is FlashPlayer problem.
>> What else can I check or change?
>>
>> 2011/2/24 Karl DeSaulniers:
>>>
>>> Here is a sample. Make sure allowFullScreen is set in your HTML.
>>>
>>> http://designdrumm.com/nataliaVikhtinskaya/
>>>
>>> Best,
>>> Karl
>>>
>>> On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote:
>>>
>>>> Try this natalia...
>>>>
>>>> import flash.geom.Rectangle;
>>>>
>>>> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
>>>> Stage.height/2);
>>>> Stage.scaleMode = "maintainAspectRatio";
>>>>
>>>> function goFullScreen()
>>>> {
>>>>   Stage["displayState"] = "fullScreen";
>>>> }
>>>>
>>>> function exitFullScreen()
>>>> {
>>>>   Stage["displayState"] = "normal";
>>>> }
>>>>
>>>> function menuHandler(obj, menuObj)
>>>> {
>>>>   if (Stage["displayState"] == "normal")
>>>>   {
>>>>      menuObj.customItems[0].enabled = true;
>>>>      menuObj.customItems[1].enabled = false;
>>>>   }
>>>>   else
>>>>   {
>>>>      menuObj.customItems[0].enabled = false;
>>>>      menuObj.customItems[1].enabled = true;
>>>>   }
>>>> }
>>>>
>>>> this.onFullScreen = function(bFullScreen:Boolean):Void {
>>>>        if (bFullScreen){
>>>>                Stage.showMenu = true;
>>>>        }
>>>> }
>>>>
>>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>>
>>>> fullscreenCM.hideBuiltInItems();
>>>>
>>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
>>>> goFullScreen);
>>>> fullscreenCM.customItems.push( fs );
>>>>
>>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>>> exitFullScreen);
>>>> fullscreenCM.customItems.push( xfs );
>>>>
>>>> Stage.addListener(Stage["displayState"] == "fullScreen", onFullScreen);
>>>> _root.menu = fullscreenCM;
>>>>
>>>>
>>>> Works for me.. :)
>>>>
>>>> Best,
>>>> Karl
>>>>
>>>>
>>>>
>>>> On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote:
>>>>
>>>>> Hi
>>>>> I am trying to use full screen mode. I tested this example for AS2
>>>>> http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
>>>>>
>>>>> Here is a test html with goScaledFullScreen function
>>>>> http://www.mightybook.com/test/adobeAS2.html
>>>>>
>>>>> As you can see in full mode  content disappears.
>>>>> The same if I use goFullScreen function.
>>>>> What is wrong in my adaptation?
>>>>>
>>>>> Code with custom context menu from this article
>>>>>
>>>>> import flash.geom.Rectangle;
>>>>>
>>>>> function goFullScreen()
>>>>> {
>>>>>   Stage["displayState"] = "fullScreen";
>>>>> }
>>>>>
>>>>> function goScaledFullScreen(){
>>>>>   var screenRectangle:Rectangle = new Rectangle();
>>>>>   screenRectangle.x = 0;
>>>>>   screenRectangle.y = 0;
>>>>>   screenRectangle.width=Stage.width/2;
>>>>>   screenRectang

Re: [Flashcoders] Exploring full-screen mode

No, link does not work for me, I will try to uninstall Flash Flayer
now. Do fullscreen has security?

2011/2/24 Karl DeSaulniers :
> The security of fullscreen is your problem I think.
> You cant go fullscreen in a test movie in flash, FYI.
> Has to be on a server or local html file (I believe)
> And I don't think you can use one movie to make another fullscreen.
> Did my link work for you?
>
> Karl
>
> On Feb 24, 2011, at 6:54 AM, natalia Vikhtinskaya wrote:
>
>> Karl, thank you for your help. I see something wrong on my side. I
>> also don't see any youtube fullscreen video. But I don't know where
>> the  problem can be. If I play swf without browser I also don't see
>> content in full screen mode. That means it is FlashPlayer problem.
>> What else can I check or change?
>>
>> 2011/2/24 Karl DeSaulniers :
>>>
>>> Here is a sample. Make sure allowFullScreen is set in your HTML.
>>>
>>> http://designdrumm.com/nataliaVikhtinskaya/
>>>
>>> Best,
>>> Karl
>>>
>>> On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote:
>>>
>>>> Try this natalia...
>>>>
>>>> import flash.geom.Rectangle;
>>>>
>>>> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
>>>> Stage.height/2);
>>>> Stage.scaleMode = "maintainAspectRatio";
>>>>
>>>> function goFullScreen()
>>>> {
>>>>  Stage["displayState"] = "fullScreen";
>>>> }
>>>>
>>>> function exitFullScreen()
>>>> {
>>>>  Stage["displayState"] = "normal";
>>>> }
>>>>
>>>> function menuHandler(obj, menuObj)
>>>> {
>>>>  if (Stage["displayState"] == "normal")
>>>>  {
>>>>     menuObj.customItems[0].enabled = true;
>>>>     menuObj.customItems[1].enabled = false;
>>>>  }
>>>>  else
>>>>  {
>>>>     menuObj.customItems[0].enabled = false;
>>>>     menuObj.customItems[1].enabled = true;
>>>>  }
>>>> }
>>>>
>>>> this.onFullScreen = function(bFullScreen:Boolean):Void {
>>>>       if (bFullScreen){
>>>>               Stage.showMenu = true;
>>>>       }
>>>> }
>>>>
>>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>>
>>>> fullscreenCM.hideBuiltInItems();
>>>>
>>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
>>>> goFullScreen);
>>>> fullscreenCM.customItems.push( fs );
>>>>
>>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>>> exitFullScreen);
>>>> fullscreenCM.customItems.push( xfs );
>>>>
>>>> Stage.addListener(Stage["displayState"] == "fullScreen", onFullScreen);
>>>> _root.menu = fullscreenCM;
>>>>
>>>>
>>>> Works for me.. :)
>>>>
>>>> Best,
>>>> Karl
>>>>
>>>>
>>>>
>>>> On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote:
>>>>
>>>>> Hi
>>>>> I am trying to use full screen mode. I tested this example for AS2
>>>>> http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
>>>>>
>>>>> Here is a test html with goScaledFullScreen function
>>>>> http://www.mightybook.com/test/adobeAS2.html
>>>>>
>>>>> As you can see in full mode  content disappears.
>>>>> The same if I use goFullScreen function.
>>>>> What is wrong in my adaptation?
>>>>>
>>>>> Code with custom context menu from this article
>>>>>
>>>>> import flash.geom.Rectangle;
>>>>>
>>>>> function goFullScreen()
>>>>> {
>>>>>  Stage["displayState"] = "fullScreen";
>>>>> }
>>>>>
>>>>> function goScaledFullScreen(){
>>>>>  var screenRectangle:Rectangle = new Rectangle();
>>>>>  screenRectangle.x = 0;
>>>>>  screenRectangle.y = 0;
>>>>>  screenRectangle.width=Stage.width/2;
>>>>>  screenRectangle.height=Stage.height/2;
>>>>>  Stage["fullScreenSourceRect"] = screenRectangle;
>>&g

Re: [Flashcoders] Exploring full-screen mode

Glen, thank you for your help also. I don't think it is cache problem.
I see now that any swf that plays in Flash Player disappear if I chose
full screen from Flash Player Menu. Movie still plays I here sound but
screen is blank.

2011/2/24 Glen Pike :
> Hi,
>
>    IE 8 is fine with 10.1.85.3 & 10,2,152,26
>    Firefox 3.6.13 is fine with 10,2,152,26
>
>    Cache problem?
>
>    Glen
>
> On 24/02/2011 10:09, natalia Vikhtinskaya wrote:
>>
>> I see white empty screen in full mode. IE 8, FireFox 3.6, FlashPlayer 10
>>
>> 2011/2/24 Glen Pike:
>>>
>>> Hi,
>>>
>>>    It looks reasonable from here - I see a grey background with a blue
>>> rectangle that still shows up if I go full-screen - they are cropped
>>> slightly, i.e. the blue rectangle is at the bottom right hand corner of
>>> my
>>> screen and I have white bars top and bottom - maybe the swf doesn't match
>>> my
>>> screen proportion - 1280 x 1024
>>>
>>>    Glen
>>>
>>>
>>> On 24/02/2011 09:48, natalia Vikhtinskaya wrote:
>>>>
>>>> Hi
>>>> I am trying to use full screen mode. I tested this example for AS2
>>>> http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
>>>>
>>>> Here is a test html with goScaledFullScreen function
>>>> http://www.mightybook.com/test/adobeAS2.html
>>>>
>>>> As you can see in full mode  content disappears.
>>>> The same if I use goFullScreen function.
>>>> What is wrong in my adaptation?
>>>>
>>>> Code with custom context menu from this article
>>>>
>>>> import flash.geom.Rectangle;
>>>>
>>>> function goFullScreen()
>>>> {
>>>>    Stage["displayState"] = "fullScreen";
>>>> }
>>>>
>>>> function goScaledFullScreen(){
>>>>    var screenRectangle:Rectangle = new Rectangle();
>>>>    screenRectangle.x = 0;
>>>>    screenRectangle.y = 0;
>>>>    screenRectangle.width=Stage.width/2;
>>>>    screenRectangle.height=Stage.height/2;
>>>>    Stage["fullScreenSourceRect"] = screenRectangle;
>>>>    Stage["displayState"] = "fullScreen";
>>>> }
>>>>
>>>> function exitFullScreen()
>>>> {
>>>>    Stage["displayState"] = "normal";
>>>> }
>>>>
>>>> function menuHandler(obj, menuObj)
>>>> {
>>>>    if (Stage["displayState"] == "normal")
>>>>    {
>>>>       menuObj.customItems[0].enabled = true;
>>>>       menuObj.customItems[1].enabled = false;
>>>>    }
>>>>    else
>>>>    {
>>>>       menuObj.customItems[0].enabled = false;
>>>>       menuObj.customItems[1].enabled = true;
>>>>    }
>>>> }
>>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>>
>>>> fullscreenCM.hideBuiltInItems();
>>>>
>>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full
>>>> Screen",goScaledFullScreen);
>>>> fullscreenCM.customItems.push( fs );
>>>>
>>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>>> exitFullScreen);
>>>> fullscreenCM.customItems.push( xfs );
>>>>
>>>> _root.menu = fullscreenCM;
>>>>
>>>>
>>>> Thank you in advance.
>>>> ___
>>>> 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Exploring full-screen mode

Karl, thank you for your help. I see something wrong on my side. I
also don't see any youtube fullscreen video. But I don't know where
the  problem can be. If I play swf without browser I also don't see
content in full screen mode. That means it is FlashPlayer problem.
What else can I check or change?

2011/2/24 Karl DeSaulniers :
> Here is a sample. Make sure allowFullScreen is set in your HTML.
>
> http://designdrumm.com/nataliaVikhtinskaya/
>
> Best,
> Karl
>
> On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote:
>
>> Try this natalia...
>>
>> import flash.geom.Rectangle;
>>
>> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
>> Stage.height/2);
>> Stage.scaleMode = "maintainAspectRatio";
>>
>> function goFullScreen()
>> {
>>   Stage["displayState"] = "fullScreen";
>> }
>>
>> function exitFullScreen()
>> {
>>   Stage["displayState"] = "normal";
>> }
>>
>> function menuHandler(obj, menuObj)
>> {
>>   if (Stage["displayState"] == "normal")
>>   {
>>      menuObj.customItems[0].enabled = true;
>>      menuObj.customItems[1].enabled = false;
>>   }
>>   else
>>   {
>>      menuObj.customItems[0].enabled = false;
>>      menuObj.customItems[1].enabled = true;
>>   }
>> }
>>
>> this.onFullScreen = function(bFullScreen:Boolean):Void {
>>        if (bFullScreen){
>>                Stage.showMenu = true;
>>        }
>> }
>>
>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>
>> fullscreenCM.hideBuiltInItems();
>>
>> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
>> goFullScreen);
>> fullscreenCM.customItems.push( fs );
>>
>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>> exitFullScreen);
>> fullscreenCM.customItems.push( xfs );
>>
>> Stage.addListener(Stage["displayState"] == "fullScreen", onFullScreen);
>> _root.menu = fullscreenCM;
>>
>>
>> Works for me.. :)
>>
>> Best,
>> Karl
>>
>>
>>
>> On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote:
>>
>>> Hi
>>> I am trying to use full screen mode. I tested this example for AS2
>>> http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
>>>
>>> Here is a test html with goScaledFullScreen function
>>> http://www.mightybook.com/test/adobeAS2.html
>>>
>>> As you can see in full mode  content disappears.
>>> The same if I use goFullScreen function.
>>> What is wrong in my adaptation?
>>>
>>> Code with custom context menu from this article
>>>
>>> import flash.geom.Rectangle;
>>>
>>> function goFullScreen()
>>> {
>>>   Stage["displayState"] = "fullScreen";
>>> }
>>>
>>> function goScaledFullScreen(){
>>>   var screenRectangle:Rectangle = new Rectangle();
>>>   screenRectangle.x = 0;
>>>   screenRectangle.y = 0;
>>>   screenRectangle.width=Stage.width/2;
>>>   screenRectangle.height=Stage.height/2;
>>>   Stage["fullScreenSourceRect"] = screenRectangle;
>>>   Stage["displayState"] = "fullScreen";
>>> }
>>>
>>> function exitFullScreen()
>>> {
>>>   Stage["displayState"] = "normal";
>>> }
>>>
>>> function menuHandler(obj, menuObj)
>>> {
>>>   if (Stage["displayState"] == "normal")
>>>   {
>>>      menuObj.customItems[0].enabled = true;
>>>      menuObj.customItems[1].enabled = false;
>>>   }
>>>   else
>>>   {
>>>      menuObj.customItems[0].enabled = false;
>>>      menuObj.customItems[1].enabled = true;
>>>   }
>>> }
>>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>>
>>> fullscreenCM.hideBuiltInItems();
>>>
>>> var fs:ContextMenuItem = new ContextMenuItem("Go Full
>>> Screen",goScaledFullScreen);
>>> fullscreenCM.customItems.push( fs );
>>>
>>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>>> exitFullScreen);
>>> fullscreenCM.customItems.push( xfs );
>>>
>>> _root.menu = fullscreenCM;
>>>
>>>
>>> Thank you in advance.
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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] Exploring full-screen mode

The same result with this code. In full screen I see blank screen.
That means it is not code problem. I reinstalled Flash Player but that
does not help. Can you please give me link with this code from you?

2011/2/24 Karl DeSaulniers :
> Try this natalia...
>
> import flash.geom.Rectangle;
>
> Stage["fullScreenSourceRect"] = new Rectangle( 0, 0, Stage.width/2,
> Stage.height/2);
> Stage.scaleMode = "maintainAspectRatio";
>
> function goFullScreen()
> {
>   Stage["displayState"] = "fullScreen";
> }
>
> function exitFullScreen()
> {
>   Stage["displayState"] = "normal";
> }
>
> function menuHandler(obj, menuObj)
> {
>   if (Stage["displayState"] == "normal")
>   {
>      menuObj.customItems[0].enabled = true;
>      menuObj.customItems[1].enabled = false;
>   }
>   else
>   {
>      menuObj.customItems[0].enabled = false;
>      menuObj.customItems[1].enabled = true;
>   }
> }
>
> this.onFullScreen = function(bFullScreen:Boolean):Void {
>        if (bFullScreen){
>                Stage.showMenu = true;
>        }
> }
>
> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>
> fullscreenCM.hideBuiltInItems();
>
> var fs:ContextMenuItem = new ContextMenuItem("Go Full Screen",
> goFullScreen);
> fullscreenCM.customItems.push( fs );
>
> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
> exitFullScreen);
> fullscreenCM.customItems.push( xfs );
>
> Stage.addListener(Stage["displayState"] == "fullScreen", onFullScreen);
> _root.menu = fullscreenCM;
>
>
> Works for me.. :)
>
> Best,
> Karl
>
>
>
> On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote:
>
>> Hi
>> I am trying to use full screen mode. I tested this example for AS2
>> http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
>>
>> Here is a test html with goScaledFullScreen function
>> http://www.mightybook.com/test/adobeAS2.html
>>
>> As you can see in full mode  content disappears.
>> The same if I use goFullScreen function.
>> What is wrong in my adaptation?
>>
>> Code with custom context menu from this article
>>
>> import flash.geom.Rectangle;
>>
>> function goFullScreen()
>> {
>>   Stage["displayState"] = "fullScreen";
>> }
>>
>> function goScaledFullScreen(){
>>   var screenRectangle:Rectangle = new Rectangle();
>>   screenRectangle.x = 0;
>>   screenRectangle.y = 0;
>>   screenRectangle.width=Stage.width/2;
>>   screenRectangle.height=Stage.height/2;
>>   Stage["fullScreenSourceRect"] = screenRectangle;
>>   Stage["displayState"] = "fullScreen";
>> }
>>
>> function exitFullScreen()
>> {
>>   Stage["displayState"] = "normal";
>> }
>>
>> function menuHandler(obj, menuObj)
>> {
>>   if (Stage["displayState"] == "normal")
>>   {
>>      menuObj.customItems[0].enabled = true;
>>      menuObj.customItems[1].enabled = false;
>>   }
>>   else
>>   {
>>      menuObj.customItems[0].enabled = false;
>>      menuObj.customItems[1].enabled = true;
>>   }
>> }
>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>
>> fullscreenCM.hideBuiltInItems();
>>
>> var fs:ContextMenuItem = new ContextMenuItem("Go Full
>> Screen",goScaledFullScreen);
>> fullscreenCM.customItems.push( fs );
>>
>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>> exitFullScreen);
>> fullscreenCM.customItems.push( xfs );
>>
>> _root.menu = fullscreenCM;
>>
>>
>> Thank you in advance.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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] Exploring full-screen mode

I see white empty screen in full mode. IE 8, FireFox 3.6, FlashPlayer 10

2011/2/24 Glen Pike :
> Hi,
>
>    It looks reasonable from here - I see a grey background with a blue
> rectangle that still shows up if I go full-screen - they are cropped
> slightly, i.e. the blue rectangle is at the bottom right hand corner of my
> screen and I have white bars top and bottom - maybe the swf doesn't match my
> screen proportion - 1280 x 1024
>
>    Glen
>
>
> On 24/02/2011 09:48, natalia Vikhtinskaya wrote:
>>
>> Hi
>> I am trying to use full screen mode. I tested this example for AS2
>> http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
>>
>> Here is a test html with goScaledFullScreen function
>> http://www.mightybook.com/test/adobeAS2.html
>>
>> As you can see in full mode  content disappears.
>> The same if I use goFullScreen function.
>> What is wrong in my adaptation?
>>
>> Code with custom context menu from this article
>>
>> import flash.geom.Rectangle;
>>
>> function goFullScreen()
>> {
>>    Stage["displayState"] = "fullScreen";
>> }
>>
>> function goScaledFullScreen(){
>>    var screenRectangle:Rectangle = new Rectangle();
>>    screenRectangle.x = 0;
>>    screenRectangle.y = 0;
>>    screenRectangle.width=Stage.width/2;
>>    screenRectangle.height=Stage.height/2;
>>    Stage["fullScreenSourceRect"] = screenRectangle;
>>    Stage["displayState"] = "fullScreen";
>> }
>>
>> function exitFullScreen()
>> {
>>    Stage["displayState"] = "normal";
>> }
>>
>> function menuHandler(obj, menuObj)
>> {
>>    if (Stage["displayState"] == "normal")
>>    {
>>       menuObj.customItems[0].enabled = true;
>>       menuObj.customItems[1].enabled = false;
>>    }
>>    else
>>    {
>>       menuObj.customItems[0].enabled = false;
>>       menuObj.customItems[1].enabled = true;
>>    }
>> }
>> var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);
>>
>> fullscreenCM.hideBuiltInItems();
>>
>> var fs:ContextMenuItem = new ContextMenuItem("Go Full
>> Screen",goScaledFullScreen);
>> fullscreenCM.customItems.push( fs );
>>
>> var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
>> exitFullScreen);
>> fullscreenCM.customItems.push( xfs );
>>
>> _root.menu = fullscreenCM;
>>
>>
>> Thank you in advance.
>> ___
>> 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] Exploring full-screen mode

Hi
I am trying to use full screen mode. I tested this example for AS2
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

Here is a test html with goScaledFullScreen function
http://www.mightybook.com/test/adobeAS2.html

As you can see in full mode  content disappears.
The same if I use goFullScreen function.
What is wrong in my adaptation?

Code with custom context menu from this article

import flash.geom.Rectangle;

function goFullScreen()
{
   Stage["displayState"] = "fullScreen";
}

function goScaledFullScreen(){
   var screenRectangle:Rectangle = new Rectangle();
   screenRectangle.x = 0;
   screenRectangle.y = 0;
   screenRectangle.width=Stage.width/2;
   screenRectangle.height=Stage.height/2;
   Stage["fullScreenSourceRect"] = screenRectangle;
   Stage["displayState"] = "fullScreen";
}

function exitFullScreen()
{
   Stage["displayState"] = "normal";
}

function menuHandler(obj, menuObj)
{
   if (Stage["displayState"] == "normal")
   {
  menuObj.customItems[0].enabled = true;
  menuObj.customItems[1].enabled = false;
   }
   else
   {
  menuObj.customItems[0].enabled = false;
  menuObj.customItems[1].enabled = true;
   }
}
var fullscreenCM:ContextMenu = new ContextMenu(menuHandler);

fullscreenCM.hideBuiltInItems();

var fs:ContextMenuItem = new ContextMenuItem("Go Full
Screen",goScaledFullScreen);
fullscreenCM.customItems.push( fs );

var xfs:ContextMenuItem = new ContextMenuItem("Exit Full Screen",
exitFullScreen);
fullscreenCM.customItems.push( xfs );

_root.menu = fullscreenCM;


Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] full screen rectangle

Hi to all
Two years ago I saw a link with working example "full screen
restangle" AS2 sent by Muzak. This link does exist now. Can anybody
resend working example with  "full screen restangle" ? Code example
that I try from adobe documentation does not work for me.

Thank you!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiline text width

Text box has setting "single line"
I make it multiline
desc.txt.autoSize = "left";
desc.txt.multiline = true;
That gives me correct width but long text is now in in one big line.
If i add
desc.txt.wordWrap = true;
It gives correct nultiline text but width is now not correct for short text.

2011/2/21 Cor :
> Give your text box a width
> Set :
> wordWrap = true;
> mulitLine = true;
>
> HTH
> Cor
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
> Vikhtinskaya
> Sent: maandag 21 februari 2011 15:16
> To: Flash Coders List
> Subject: [Flashcoders] Multiline text width
>
> Hi
> I have multiline dynamic text box. Text can have different width because it
> is html text and has . I need to know text width.
>
> If  I use txt. autoSize = "left" that does not have effect for multiline
> text box.
> What possible solution?
>
> Thanks in advance.
> ___
> 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] Multiline text width

Hi
I have multiline dynamic text box. Text can have different width
because it is html text and has . I need to know text width.

If  I use txt. autoSize = "left" that does not have effect for
multiline text box.
What possible solution?

Thanks in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] from AS2 to AS3

I need to convert game from AS2 to AS3. This game has movie clip
“_items” on the stage with frames. Each frame has different mc.
frame 1- has mc “item1”
frame 2- has mc |”item2” …

_items.gotoAndStop(2)
trace(_items.item2) // for AS2 it gives mc
In AS3 it gives none
(it works correctly only _items.gotoAndStop(1); trace(_items.item1))


I need to have variable with reference
var mc:MovieClip=_items.item2

How to solve this situation in AS3?

Thank you in advance.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Unique array AS3

THANK YOU AGAIN!!!

2011/1/13 Juan Pablo Califano :
> PS:
>
> I mentioned that a random sort was not the best approach.
>
> Here's a better way to randomize an array:
>
> public static function shuffle(array:Array):void {
>    var tmp:*;
>    var cur:int;
>    var top:int;
>
>    cur = top = array.length;
>    if(top) {
>        while(--top) {
>            cur = Math.floor(Math.random() * (top + 1));
>            tmp = array[cur];
>            array[cur] = array[top];
>            array[top] = tmp;
>        }
>    }
> }
>
>
> 2011/1/13 Juan Pablo Califano 
>
>> Try this:
>>
>>  function uniqueRandomInt(min:Number, max:Number, n:Number) {
>>  var a:Array = [];
>>  var i:Number = min;
>>  while (a.push(i++)>  a.sort(function (a:Number, b:Number) {
>>   return Math.floor(Math.random()*3)-1;
>>
>>  });
>>  return a.slice(0,n);
>> }
>>
>> Although a random sort is not the best means to randomize an array, it
>> should work reasonably.
>>
>> The problem with your code was this line:
>>
>> Math.random()*2-1;
>>
>> Your sort function should return 3 diferent values (n < 1, n = 0 and; n >
>> 0) as evenly distributed as possible. Math.random gives you a number that
>> is great or equal to 0 and *less* than 1. It will not give you 1 back
>> (0.9, but not 1).
>>
>> So if you do:
>>
>> Math.random() * 2
>>
>> You'll either get 0 or 1 (with decimals); it's not posibble to get 2. You
>> should instead use 3 as the multiplier and floor it; the result should be 0,
>> 1 or 2 (this will have as much randomness as Math.random provides). Now
>> substract 1 and you'll get -1, 0 or 1, which is what you want for your sort
>> function.
>>
>>
>> Cheers
>> Juan Pablo Califano
>> 2011/1/13 natalia Vikhtinskaya 
>>
>> Hi
>>> I use function that creates unique array
>>>
>>> function uniqueRandomInt(min:Number, max:Number, n:Number) {
>>>                        var a:Array = [];
>>>                        var i:Number = min;
>>>                        while (a.push(i++)>>                                ;
>>>                        }
>>>                        a.sort(function (a:Number, b:Number) { return
>>> Math.random()*2-1;});
>>>                        return a.slice(0, n);
>>>                }
>>>
>>> It works fine for AS2. But for AS3 it gives always the same result
>>> if I ask
>>> uniqueRandomInt(1, 6, 6); I always get 4,2,3,1,5,6
>>>
>>> What is wrong in this code for AS3?
>>>
>>> Thank you in andvance.
>>> ___
>>> 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] Unique array AS3

Thank you very much!! Now it works well.

2011/1/13 Juan Pablo Califano :
> Try this:
>
> function uniqueRandomInt(min:Number, max:Number, n:Number) {
>  var a:Array = [];
>  var i:Number = min;
>  while (a.push(i++)  a.sort(function (a:Number, b:Number) {
>  return Math.floor(Math.random()*3)-1;
>  });
>  return a.slice(0,n);
> }
>
> Although a random sort is not the best means to randomize an array, it
> should work reasonably.
>
> The problem with your code was this line:
>
> Math.random()*2-1;
>
> Your sort function should return 3 diferent values (n < 1, n = 0 and; n > 0)
> as evenly distributed as possible. Math.random gives you a number that
> is great or equal to 0 and *less* than 1. It will not give you 1 back
> (0.9, but not 1).
>
> So if you do:
>
> Math.random() * 2
>
> You'll either get 0 or 1 (with decimals); it's not posibble to get 2. You
> should instead use 3 as the multiplier and floor it; the result should be 0,
> 1 or 2 (this will have as much randomness as Math.random provides). Now
> substract 1 and you'll get -1, 0 or 1, which is what you want for your sort
> function.
>
>
> Cheers
> Juan Pablo Califano
> 2011/1/13 natalia Vikhtinskaya 
>
>> Hi
>> I use function that creates unique array
>>
>> function uniqueRandomInt(min:Number, max:Number, n:Number) {
>>                        var a:Array = [];
>>                        var i:Number = min;
>>                        while (a.push(i++)>                                ;
>>                        }
>>                        a.sort(function (a:Number, b:Number) { return
>> Math.random()*2-1;});
>>                        return a.slice(0, n);
>>                }
>>
>> It works fine for AS2. But for AS3 it gives always the same result
>> if I ask
>> uniqueRandomInt(1, 6, 6); I always get 4,2,3,1,5,6
>>
>> What is wrong in this code for AS3?
>>
>> Thank you in andvance.
>> ___
>> 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] Unique array AS3

Hi
I use function that creates unique array

function uniqueRandomInt(min:Number, max:Number, n:Number) {
var a:Array = [];
var i:Number = min;
while (a.push(i++)http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] text to array

THANK YOU

2010/12/30 Zeh Fernando :
> Geografiek's reply still stands - you still use a split since the new
> line/carriage return is just another character (but which will depend on the
> file's system used).
>
> lines = alltxt.split("\r\n"); // 0x0d 0x0a, windows
> lines = alltxt.split("\n"); // 0x0a, linux/osx
> lines = alltxt.split("\r"); // 0x0d, old macs
>
> Try \r\n first. If that doesn't work, then it's \n or \r.
>
> Zeh
>
> On Thu, Dec 30, 2010 at 2:14 PM, natalia Vikhtinskaya > wrote:
>
>> Yes, I understand that I should use split method.
>> If I do
>> arrayTxt=txt.split(";")
>> I get array with elements
>> [1] - start
>> [2] - end
>> [3] - event
>> [4]- location
>> [5]- sponsor
>> [6] - empty element // this is unnecessary element in array.
>> ..
>>
>> That's why I want to get array where each element is line in text. But
>> I don't know how to separate lines.
>> array=[";Start;End;Event;Location;Sponsor;",
>> ";Start;End;Event;Location;Sponsor;",...]
>>
>> then each String can be converted to array with split.
>>
>> 2010/12/30 Geografiek :
>> > Hi Natalia,
>> > Take a look at the String.split() method in the help docs.
>> > HTH,
>> > Willem van den Goorbergh
>> >
>> > On 30 dec 2010, at 17:12, natalia Vikhtinskaya wrote:
>> >
>> >> Hi
>> >> I need convert text that loads from txt file to array.
>> >> Text looks like these lines:
>> >> ;Start;End;Event;Location;Sponsor;
>> >> ;Start;End;Event;Location;Sponsor;
>> >> ;Start;End;Event;Location;Sponsor;
>> >> …
>> >> I need array of lines [line1,line2,line3,…] How I can do that?
>> >> Thank you in advance.
>> >>
>> >> ___
>> >> Flashcoders mailing list
>> >> Flashcoders@chattyfig.figleaf.com
>> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> >
>> > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> > Geografiek is a Dutch, Utrecht-based map and chart design company.
>> > Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512
>> or cell phone: (+31)6-26372378
>> > or by fax: (+31)302719687
>> > snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
>> > Visit our website at: www.geografiek.nl
>> > twitter: @wvdgoorbergh
>> > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>> >
>> >
>> >
>> >
>> >
>> > ___
>> > 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


Re: [Flashcoders] text to array

Yes, I understand that I should use split method.
If I do
arrayTxt=txt.split(";")
I get array with elements
[1] - start
[2] - end
[3] - event
[4]- location
[5]- sponsor
[6] - empty element // this is unnecessary element in array.
..

That's why I want to get array where each element is line in text. But
I don't know how to separate lines.
array=[";Start;End;Event;Location;Sponsor;",
";Start;End;Event;Location;Sponsor;",...]

then each String can be converted to array with split.

2010/12/30 Geografiek :
> Hi Natalia,
> Take a look at the String.split() method in the help docs.
> HTH,
> Willem van den Goorbergh
>
> On 30 dec 2010, at 17:12, natalia Vikhtinskaya wrote:
>
>> Hi
>> I need convert text that loads from txt file to array.
>> Text looks like these lines:
>> ;Start;End;Event;Location;Sponsor;
>> ;Start;End;Event;Location;Sponsor;
>> ;Start;End;Event;Location;Sponsor;
>> …
>> I need array of lines [line1,line2,line3,…] How I can do that?
>> Thank you in advance.
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> Geografiek is a Dutch, Utrecht-based map and chart design company.
> Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or 
> cell phone: (+31)6-26372378
> or by fax: (+31)302719687
> snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
> Visit our website at: www.geografiek.nl
> twitter: @wvdgoorbergh
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>
>
>
>
>
> ___
> 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] text to array

Hi
I need convert text that loads from txt file to array.
Text looks like these lines:
;Start;End;Event;Location;Sponsor;
;Start;End;Event;Location;Sponsor;
;Start;End;Event;Location;Sponsor;
…
I need array of lines [line1,line2,line3,…] How I can do that?
Thank you in advance.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Remove video sound

Hi
I have problem with video sound. It is AS2.
Sound starts with this code
var so:Sound;
var vSound:MovieClip;


vSound=theVideo.createEmptyMovieClip("vSound",theVideo.getNextHighestDepth());
vSound.attachAudio(ns);
so=new Sound(vSound);
so.setVolume(100);

on close button
clearVideo=function(){
theVideo.removeMovieClip();
vSound.removeMovieClip();
delete so;
}

Video removed but sound still plays. What is wrong?
Thank you in advance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Masked mc and total size

How I can check how they intersect? Can you explain at this example
how I should calculate total size?

2010/12/8 Henrik Andersson :
> natalia Vikhtinskaya skriver:
>>
>> Mask is 100px width. Image is 200px width. Putting 3 masked mc in one
>> container don't give 300px width.
>>
>
> True, but if you put the image at (0,50) the visible size is 50 pixels. That
> is, assuming that the image has the registration point in the top left
> corner. And that the mask covers the region (0,0) to (100,100).
>
> My point is that you can't just take the width of the mask or the maskee but
> have to actually check how they intersect.
>
> Good luck if the mask/maskee isn't rectangular and/or rotated.
> ___
> 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] Masked mc and total size

Mask is 100px width. Image is 200px width. Putting 3 masked mc in one
container don't give 300px width.

2010/12/8 Henrik Andersson :
> Glen Pike skriver:
>>
>> mc.mask.width?
>
> What if the maskee is smaller? What if the mask and the maskee only
> partially overlaps?
> ___
> 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] Masked mc and total size

Hi
I have mc content_mc with 3 mc inside. Each of them has image with
different size and masked with size 100px width.
I expected to get total size for container_mc  3*100. But it is not true.
When I trace(content_mc._width) it gives me 497.  I need correct
calculation for content mc.
What I can do for that? I tried different type of masks – dynamic and
static. Result always wrong.

Thank you in advance.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RollOver AS2

I mean that I disabled  buttons during transitions but then it does
not run again because event has already happened.

2010/11/8 natalia Vikhtinskaya :
> Yes, I did that and that was my logic mistake. I should not do that.
> THANK YOU VERY MUCH to everybody for help!!! I could not find that
> obviouse mistake many hours.
>
> 2010/11/8 ZaoNews :
>> Hi,
>>
>> did you try to disable all buttons during transitions, when stop you enable 
>> all
>>
>>
>>
>> 2010/11/8 natalia Vikhtinskaya :
>>> Nothing of that helps.
>>>
>>> 2010/11/8 Karl DeSaulniers :
>>>> Try
>>>>
>>>> box.onRelease = box.onReleaseOutside = function(){
>>>>        //move out
>>>> };
>>>>
>>>> maybe?
>>>> Your box moves before its released, so this may work.
>>>> Hopefully it wont fire it to move twice.
>>>>
>>>> or maybe try moving it after the onPress instead, so that the release
>>>> doesn't do that action and lets the mouse reset.
>>>>
>>>> box.onPress = function(){
>>>>        //move out
>>>> };
>>>>
>>>> and if that does not work. lol
>>>>
>>>> box.onPress = function(){
>>>>        //move out
>>>> };
>>>>
>>>> box.onRelease = box.onReleaseOutside = function(){
>>>>        this.onRollOver = null;
>>>> };
>>>>
>>>> I am reaching at this point. :)
>>>>
>>>> HTH,
>>>> Karl
>>>>
>>>>
>>>> On Nov 8, 2010, at 7:10 AM, natalia Vikhtinskaya wrote:
>>>>
>>>>>> box.onRelease=function(){
>>>>>>                                       ///move it out
>>>>>>
>>>>>>                       }
>>>>
>>>> Karl DeSaulniers
>>>> Design Drumm
>>>> http://designdrumm.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
>>>
>>
>>
>>
>> --
>> Atenciosamente,
>> Isaías J. Campos
>>
>> www.zaonamidia.com
>> www.flickr.com/zaonamidia
>>
>> ___
>> 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] RollOver AS2

Yes, I did that and that was my logic mistake. I should not do that.
THANK YOU VERY MUCH to everybody for help!!! I could not find that
obviouse mistake many hours.

2010/11/8 ZaoNews :
> Hi,
>
> did you try to disable all buttons during transitions, when stop you enable 
> all
>
>
>
> 2010/11/8 natalia Vikhtinskaya :
>> Nothing of that helps.
>>
>> 2010/11/8 Karl DeSaulniers :
>>> Try
>>>
>>> box.onRelease = box.onReleaseOutside = function(){
>>>        //move out
>>> };
>>>
>>> maybe?
>>> Your box moves before its released, so this may work.
>>> Hopefully it wont fire it to move twice.
>>>
>>> or maybe try moving it after the onPress instead, so that the release
>>> doesn't do that action and lets the mouse reset.
>>>
>>> box.onPress = function(){
>>>        //move out
>>> };
>>>
>>> and if that does not work. lol
>>>
>>> box.onPress = function(){
>>>        //move out
>>> };
>>>
>>> box.onRelease = box.onReleaseOutside = function(){
>>>        this.onRollOver = null;
>>> };
>>>
>>> I am reaching at this point. :)
>>>
>>> HTH,
>>> Karl
>>>
>>>
>>> On Nov 8, 2010, at 7:10 AM, natalia Vikhtinskaya wrote:
>>>
>>>>> box.onRelease=function(){
>>>>>                                       ///move it out
>>>>>
>>>>>                       }
>>>
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.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
>>
>
>
>
> --
> Atenciosamente,
> Isaías J. Campos
>
> www.zaonamidia.com
> www.flickr.com/zaonamidia
>
> ___
> 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] RollOver AS2

Nothing of that helps.

2010/11/8 Karl DeSaulniers :
> Try
>
> box.onRelease = box.onReleaseOutside = function(){
>        //move out
> };
>
> maybe?
> Your box moves before its released, so this may work.
> Hopefully it wont fire it to move twice.
>
> or maybe try moving it after the onPress instead, so that the release
> doesn't do that action and lets the mouse reset.
>
> box.onPress = function(){
>        //move out
> };
>
> and if that does not work. lol
>
> box.onPress = function(){
>        //move out
> };
>
> box.onRelease = box.onReleaseOutside = function(){
>        this.onRollOver = null;
> };
>
> I am reaching at this point. :)
>
> HTH,
> Karl
>
>
> On Nov 8, 2010, at 7:10 AM, natalia Vikhtinskaya wrote:
>
>>> box.onRelease=function(){
>>>                                       ///move it out
>>>
>>>                       }
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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] RollOver AS2

It is not what I need
Look here http://www.mightybook.com/test/slide.html
On click- boxes moves, on over - side boxes should move to the left or
to the right side. But if you click and mouse is still over one of
side boxes it does not move to the right or the left. I should move
mouse and only after that over effect works.

2010/11/8 Karl DeSaulniers :
> Hi Natalia,
> My solution was more for a MC that is added with attachMovie() and has the
> frames pre-made.
> In your case, I would look into swapping the two MCs depths with the
> onRelease.
> This, I am thinking, will force the new MCs onRollOver state and let the
> mouse do its job. :)
>
> http://www.kirupa.com/developer/actionscript/swapdepth.htm
>
> HTH,
> Best,
>
> Karl
>
>
> On Nov 8, 2010, at 7:10 AM, natalia Vikhtinskaya wrote:
>
>> Sorry I sent without question. Should I uttach this invisible button
>> to each box? How then Rollover funtion should look?
>>
>> 2010/11/8 natalia Vikhtinskaya :
>>>
>>> Here is code
>>> init=function(){
>>>          for (var i:Number=1; i<=maxId; i++){
>>>
>>> var box:MovieClip=_root.createEmptyMovieClip(("box"+i),boxDepth);
>>>                       //I will load picture in box
>>>                       …….
>>>                       box.onRollOver=function(){
>>>                               //effect
>>>                       }
>>>                       box.onRollOut=function(){
>>>                               //end effect
>>>
>>>                       }
>>>                       box.onRelease=function(){
>>>                                       ///move it out
>>>
>>>                       }
>>>
>>>                 }
>>>
>>> }
>>>
>>>
>>> 2010/11/8 Karl DeSaulniers :
>>>>
>>>> Natalia,
>>>> Do you have one invisible button for both rollover states of your MC?
>>>> Try putting separate invisible buttons. One on the "up" frame, one on
>>>> the
>>>> "over" frame and one on the "down" frame if you have that.
>>>> Because there will be a new button on each frame, it should force it to
>>>> read
>>>> it.
>>>> Sometimes if you have one invisible button spanning three frames lets
>>>> say,
>>>> it doesn't register the rollOver again, because your already over it.
>>>>
>>>> HTH,
>>>> Best,
>>>>
>>>> Karl
>>>>
>>>>
>>>> On Nov 8, 2010, at 6:16 AM, natalia Vikhtinskaya wrote:
>>>>
>>>>> What do you mean?
>>>>>
>>>>> 2010/11/8 Cor :
>>>>>>
>>>>>> Maybe using mouseover solve it for you?
>>>>>>
>>>>>> Regards,
>>>>>> Cor van Dooren
>>>>>>
>>>>>> -Original Message-
>>>>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>>>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
>>>>>> natalia
>>>>>> Vikhtinskaya
>>>>>> Sent: maandag 8 november 2010 12:33
>>>>>> To: Flash Coders List
>>>>>> Subject: [Flashcoders] RollOver AS2
>>>>>>
>>>>>> I have some MovieClip with rollOver and rollOut functions. They
>>>>>> overlap each other. After click on top mc it moves out and in this
>>>>>> place show up another clip. But rollover for this next mc starts only
>>>>>> if I move mouse out from this clip and place it again. Only after that
>>>>>> I see rollover effect. How to make rollover function starts
>>>>>> immediately when clip shows up under the mouse? AS2.
>>>>>>
>>>>>> Thank you in advance
>>>>>> ___
>>>>>> Flashcoders mailing list
>>>>>> Flashcoders@chattyfig.figleaf.com
>>>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>>>> Geen virus gevonden in het binnenkomende-bericht.
>>>>>> Gecontroleerd door AVG - www.avg.com
>>>>>> Versie: 9.0.864 / Virusdatabase: 271.1.1/3241 - datum van uitgifte:
>>>>>> 11/07/10
>>>>>> 20:34:00
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>
>>>> Karl DeSaulniers
>>>> Design Drumm
>>>> http://designdrumm.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
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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] RollOver AS2

Sorry I sent without question. Should I uttach this invisible button
to each box? How then Rollover funtion should look?

2010/11/8 natalia Vikhtinskaya :
> Here is code
> init=function(){
>           for (var i:Number=1; i<=maxId; i++){
>
> var box:MovieClip=_root.createEmptyMovieClip(("box"+i),boxDepth);
>                        //I will load picture in box
>                        …….
>                        box.onRollOver=function(){
>                                //effect
>                        }
>                        box.onRollOut=function(){
>                                //end effect
>
>                        }
>                        box.onRelease=function(){
>                                        ///move it out
>
>                        }
>
>                  }
>
> }
>
>
> 2010/11/8 Karl DeSaulniers :
>> Natalia,
>> Do you have one invisible button for both rollover states of your MC?
>> Try putting separate invisible buttons. One on the "up" frame, one on the
>> "over" frame and one on the "down" frame if you have that.
>> Because there will be a new button on each frame, it should force it to read
>> it.
>> Sometimes if you have one invisible button spanning three frames lets say,
>> it doesn't register the rollOver again, because your already over it.
>>
>> HTH,
>> Best,
>>
>> Karl
>>
>>
>> On Nov 8, 2010, at 6:16 AM, natalia Vikhtinskaya wrote:
>>
>>> What do you mean?
>>>
>>> 2010/11/8 Cor :
>>>>
>>>> Maybe using mouseover solve it for you?
>>>>
>>>> Regards,
>>>> Cor van Dooren
>>>>
>>>> -Original Message-
>>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
>>>> Vikhtinskaya
>>>> Sent: maandag 8 november 2010 12:33
>>>> To: Flash Coders List
>>>> Subject: [Flashcoders] RollOver AS2
>>>>
>>>> I have some MovieClip with rollOver and rollOut functions. They
>>>> overlap each other. After click on top mc it moves out and in this
>>>> place show up another clip. But rollover for this next mc starts only
>>>> if I move mouse out from this clip and place it again. Only after that
>>>> I see rollover effect. How to make rollover function starts
>>>> immediately when clip shows up under the mouse? AS2.
>>>>
>>>> Thank you in advance
>>>> ___
>>>> Flashcoders mailing list
>>>> Flashcoders@chattyfig.figleaf.com
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>> Geen virus gevonden in het binnenkomende-bericht.
>>>> Gecontroleerd door AVG - www.avg.com
>>>> Versie: 9.0.864 / Virusdatabase: 271.1.1/3241 - datum van uitgifte:
>>>> 11/07/10
>>>> 20:34:00
>>>>
>>>> ___
>>>> 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
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.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] RollOver AS2

Here is code
init=function(){
   for (var i:Number=1; i<=maxId; i++){

var box:MovieClip=_root.createEmptyMovieClip(("box"+i),boxDepth);
//I will load picture in box
…….
box.onRollOver=function(){
//effect
}
box.onRollOut=function(){
//end effect

}
box.onRelease=function(){
///move it out

}

  }

}


2010/11/8 Karl DeSaulniers :
> Natalia,
> Do you have one invisible button for both rollover states of your MC?
> Try putting separate invisible buttons. One on the "up" frame, one on the
> "over" frame and one on the "down" frame if you have that.
> Because there will be a new button on each frame, it should force it to read
> it.
> Sometimes if you have one invisible button spanning three frames lets say,
> it doesn't register the rollOver again, because your already over it.
>
> HTH,
> Best,
>
> Karl
>
>
> On Nov 8, 2010, at 6:16 AM, natalia Vikhtinskaya wrote:
>
>> What do you mean?
>>
>> 2010/11/8 Cor :
>>>
>>> Maybe using mouseover solve it for you?
>>>
>>> Regards,
>>> Cor van Dooren
>>>
>>> -Original Message-
>>> From: flashcoders-boun...@chattyfig.figleaf.com
>>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
>>> Vikhtinskaya
>>> Sent: maandag 8 november 2010 12:33
>>> To: Flash Coders List
>>> Subject: [Flashcoders] RollOver AS2
>>>
>>> I have some MovieClip with rollOver and rollOut functions. They
>>> overlap each other. After click on top mc it moves out and in this
>>> place show up another clip. But rollover for this next mc starts only
>>> if I move mouse out from this clip and place it again. Only after that
>>> I see rollover effect. How to make rollover function starts
>>> immediately when clip shows up under the mouse? AS2.
>>>
>>> Thank you in advance
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>> Geen virus gevonden in het binnenkomende-bericht.
>>> Gecontroleerd door AVG - www.avg.com
>>> Versie: 9.0.864 / Virusdatabase: 271.1.1/3241 - datum van uitgifte:
>>> 11/07/10
>>> 20:34:00
>>>
>>> ___
>>> 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
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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] RollOver AS2

What do you mean?

2010/11/8 Cor :
> Maybe using mouseover solve it for you?
>
> Regards,
> Cor van Dooren
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
> Vikhtinskaya
> Sent: maandag 8 november 2010 12:33
> To: Flash Coders List
> Subject: [Flashcoders] RollOver AS2
>
> I have some MovieClip with rollOver and rollOut functions. They
> overlap each other. After click on top mc it moves out and in this
> place show up another clip. But rollover for this next mc starts only
> if I move mouse out from this clip and place it again. Only after that
> I see rollover effect. How to make rollover function starts
> immediately when clip shows up under the mouse? AS2.
>
> Thank you in advance
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> Geen virus gevonden in het binnenkomende-bericht.
> Gecontroleerd door AVG - www.avg.com
> Versie: 9.0.864 / Virusdatabase: 271.1.1/3241 - datum van uitgifte: 11/07/10
> 20:34:00
>
> ___
> 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] RollOver AS2

I have some MovieClip with rollOver and rollOut functions. They
overlap each other. After click on top mc it moves out and in this
place show up another clip. But rollover for this next mc starts only
if I move mouse out from this clip and place it again. Only after that
I see rollover effect. How to make rollover function starts
immediately when clip shows up under the mouse? AS2.

Thank you in advance
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Converting fla to mov

Sorry, I did not understand a little. I must to have my fla with
30fps? Is mp4 format that I get from QT is broadcast ?

2010/10/25 Karl DeSaulniers :
> Hi Natalia,
> First you export from flash with the animation codec the way I was
> describing,
> then you open that exported file into QuickTime and re-export it in the mp4
> format.
>
> Yes 24 to 30 fps for video. 30fps for broadcast.
>
> Best,
> Karl
>
>
> On Oct 25, 2010, at 4:55 AM, natalia Vikhtinskaya wrote:
>
>> Thank you very much! Your advices really helped to create mov file.
>> When I export to mov file In Compression Type I see many possible
>> types. My final goal is converting mov to broadcast video: 4x3 NTSC
>> standard definition and 16x9 1080p high definition.
>> I honestly say that I know nothing about those standards. Does
>> compression type when I export flash to mov mean something for final
>> proadcast video? I did not see anything about these two formats in QT
>> settings when I export mov to mp4. I understand that is not directly
>> flash question but maybe somebody can say some words about that.
>>
>> Should I create fla with 30fps if I need it to export in video format?
>>
>> 2010/10/25 Karl DeSaulniers :
>>>
>>> I didn't even think of that.. right on rhodes. :)
>>> Makes sense, you would even have better control to make multiple MOVs
>>> for different media from the same file with different frame rates. if the
>>> frame rate doesn't matter.
>>> But remember what frame rate you created it in for some situations
>>> though,
>>> because if your Fla. is made at at 12 fps and you export it at 30fps
>>> it will make everything move faster than the way you originally made it
>>> and
>>> knew it to play.
>>> And if you have video playing "in" your Fla. that is set to say 30fps,
>>> you
>>> will
>>> have to get your export back up to 30fps for those videos to look right.
>>>
>>> Best,
>>> Karl
>>>
>>> On Oct 25, 2010, at 3:17 AM, tom rhodes wrote:
>>>
>>>> good idea to export it at 1 fps, that way you don't get skipped frames
>>>> (even
>>>> with heavy actionscript use), then speed up the resulting mov to the
>>>> original framerate and you've got a perfect mov.
>>>>
>>>>
>>>> On 25 October 2010 07:25, Karl DeSaulniers  wrote:
>>>>
>>>>> @Henrik
>>>>> One possible solution for the script problem is to take the frame that
>>>>> the
>>>>> MC which has that script in it
>>>>> and extend that MCs frame to the same length as how long it would take
>>>>> to
>>>>> execute.
>>>>> Even if there is only one frame inside that MC.
>>>>> The export reads the main timeline and if you have a MC that sits on
>>>>> one
>>>>> frame,
>>>>> extend that frame to the execute time length in frames and it will give
>>>>> the
>>>>> main timeline export the room to record your script working/executing.
>>>>> Then just move frames that would come after that effect/script to the
>>>>> appropriate spot on the timeline considering this adjustment.
>>>>> Your main timeline will be super long, but It should export your
>>>>> particle
>>>>> effect.
>>>>> I think also, you have to export as animation to execute any scripts
>>>>> you
>>>>> have in your fla.
>>>>> This is just a theory and I have not tested, but if you try, let me
>>>>> know
>>>>> if
>>>>> it works or not.
>>>>>
>>>>> Best,
>>>>> Karl
>>>>>
>>>>>
>>>>>
>>>>> On Oct 24, 2010, at 6:03 PM, Karl DeSaulniers wrote:
>>>>>
>>>>>  Hi Natalia,
>>>>>>
>>>>>> Sure, its simple. Go to file menu, select export, select QuickTime in
>>>>>> the
>>>>>> drop-down menu,
>>>>>> navigate to the folder you want to save everything to,
>>>>>> hit save, a dialog box will pop up, on it there should be a "QuickTime
>>>>>> Settings" button - select it,
>>>>>> Once you have gotten this far, now you must start thinking of how you
>>>>>> want
>>>>>> things exported.
>>>>>> If your flash movi

Re: [Flashcoders] Converting fla to mov

ction and then place it in your fla.
>>>>
>>>> But back tot he export.
>>>>
>>>> Once you have chosen the way you want to export, and you've clicked the
>>>> "QuickTime Settings" button,
>>>> in that dialog box you will see a "Video" "Sound" and "Prepare for
>>>> internet streaming".
>>>> the first one is where you will find the "Animation Codec".
>>>> Make sure the Video check box is selected and then choose the "Settings"
>>>> button.
>>>> Under the drop-down menu, select "Animation" (This is the Animation
>>>> Codec)
>>>> then you will have some settings that will show, like a "Motion" and
>>>> "Data
>>>> Rate" and "Compressor".
>>>> Here is where you set things to the highest. Set the frame rate to
>>>> "current" (the rate you made your flash file) or 30 fps (usually best
>>>> for
>>>> real motion)
>>>> "Data Rate" Should be grayed out so don't worry about that, if it isn't,
>>>> set it to automatic the first round, and then "Compressor" should be set
>>>> to
>>>> "Millions of Colors+"
>>>> or what ever is the highest in your drop-down, or just drag the slider
>>>> all
>>>> the way to the right if your slider is not grayed out.
>>>> Press ok.
>>>>
>>>> Go to the "Sound" check box, enable it if you have sound, don't if you
>>>> don't. :)
>>>> Here set your audio to the least compressed.
>>>> Compressor : none
>>>> Rate: 48.000
>>>> Size: 16 bit
>>>> Use: Stereo
>>>>
>>>> then choose your stream type. I usually use "Fast start with compressed
>>>> head"
>>>> (I believe this improves the loading of the video when served from the
>>>> internet and deals with the buffer, but don't quote me on it)
>>>>
>>>> Now when exporting this movie, know that it will take a long time if you
>>>> have a large movie.
>>>> Especially if your using scripts and embedded movies with animation and
>>>> your timing the export.
>>>> So view and time your movie as a swf first to get a general idea of how
>>>> long it will take.
>>>> Literally, get a stopwatch and time it. record how long it takes for it
>>>> to
>>>> play with all the scripts and animations doing their thing.
>>>> Take this time and put it in the box for export stop with elapsed time.
>>>> the format is kind of weird.
>>>> Ever looked up in the corder of your video recorder and saw those
>>>> strings
>>>> of numbers  usually looked like 00:01:35:24.
>>>> Well that string I just typed says the track is 1 min 35 sec 24
>>>> mill-sec.
>>>> You will need to set the time you got in this format for that export
>>>> option
>>>> to work properly.
>>>>
>>>> Once you have the file exported, then go open it with QuickTime and
>>>> export
>>>> "that" file to the size and settings you need for displaying on the
>>>> internet
>>>> File menu -> Select "Export" or maybe in your case "Export for web".
>>>>
>>>> NOTE:
>>>> Do not over write the export you made from flash. Keep it on the side as
>>>> you may have to try several times to get your perfect file for the
>>>> internet.
>>>> This file will have all the detail in it at a clean and clear resolution
>>>> and sound and can always be compressed down.
>>>> (I make a duplicate of this and edit that one just to be safe)
>>>>
>>>> There are some situations where an persons flash file has code or
>>>> certain
>>>> ways animations are made that just don't translate,
>>>> so this is not the most perfect of solutions, but like I said when I
>>>> started this.
>>>> I have had much success.
>>>>
>>>> HTH,
>>>>
>>>> Best,
>>>> Karl
>>>>
>>>>
>>>> On Oct 24, 2010, at 6:17 AM, natalia Vikhtinskaya wrote:
>>>>
>>>>  Thank you for your advice. But I did not understand what you mean:
>>

Re: [Flashcoders] Converting fla to mov

Thank you for your advice. But I did not understand what you mean:
Export a MOV file using the "Animation" Codec with the highest
settings first.
I can not export move file from Flash. I said this function does not
work. How  did you do export from Flash with best and largest
settings?

2010/10/24 Karl DeSaulniers :
> I have had very good success.
>
> Export a MOV file using the "Animation" Codec with the highest settings
> first.
> Here you want to set things to Best and Largest sizes.
> Your not going to be keeping this copy necessarily.
> Then open that movie in Quicktime and export to your
> desired settings for what ever your wanting the video for.
>
> Oh and any Movieclips you have that play content inside them,
> move their content to a new layer on the main timeline.
>
> HTH,
> Best
>
> On Oct 23, 2010, at 12:48 PM, natalia Vikhtinskaya wrote:
>
>> Yes, I googled. Can somebody recommend really good tool?
>>
>> 2010/10/23 Henrik Andersson :
>>>
>>> I would rather use a dedicated tool. Googling "swf to video" should find
>>> most of them.
>>> ___
>>> 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
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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] Converting fla to mov

Yes, I googled. Can somebody recommend really good tool?

2010/10/23 Henrik Andersson :
> I would rather use a dedicated tool. Googling "swf to video" should find
> most of them.
> ___
> 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] Converting fla to mov

What is the best solution if I want to convert swf to mp4 for broadcast video?

2010/10/23 Henrik Andersson :
> The built in exporter is crap and doesn't deal with actionscript. You might
> get better luck with a 3rdparty solution.
> ___
> 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] Converting fla to mov

Did anybody convert fla to mov format successfully? I tried Flash 3,
4, 5 without any success.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] export to video broadcast and mov format

Hi
Please give me advice how to convert flash file to video broadcast 4x3
NTSC standard definition and 16x9 1080p high definition.
Can I use for that Adobe Media Encoder?
And second question I tried export fla to mov file. Everything works
till final message “Recording Flash Content” with full process bar
hang up on the screen and move file does not creates. What can be a
reason that I can not create mov file without any error message from
Flash.

Thank you in advance.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Get function problem

Sometime project is small. And all I need is attach some movie clip
from a library. It was not a problem control it in AS2. It looks AS3
nothing can do with small task.

2010/9/10 Merrill, Jason :
> Also, you should typecast your variables if you aren't.  So instead of:
>
> theVideo=new videoPanel();
>
> do:
>
> var theVideo:videoPanel = new videoPanel();
>
> perhaps Flash is choking because it doesn't know what type theVideo is.
>
> Also, minor unrelated point, but 99.9% of Flash developers start class names 
> in UpperCase, not lowerCase as a convention.
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community  and visit our 
> Instructional Technology Design Blog
> (Note: these resources are only available for Bank of America associates)
>
>
>
>
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason
> Sent: Friday, September 10, 2010 10:45 AM
> To: Flash Coders List
> Subject: RE: [Flashcoders] Get function problem
>
> Not sure that's true, but never tried.  If you're moving to classes, you 
> should consider moving code off the timeline.  Add your movie clip to a 
> document class - call the function in there.  I think people who try and do a 
> hybrid mix of timeline and class coding are only asking for headaches.  Pick 
> one or the other if you can.
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community  and visit our 
> Instructional Technology Design Blog
> (Note: these resources are only available for Bank of America associates)
>
>
>
>
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com 
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia 
> Vikhtinskaya
> Sent: Friday, September 10, 2010 10:04 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Get function problem
>
> I found that AS3 does not allow tocall function from timeline if this 
> function is inside MovieClip placed on the stage. Is there any other way to 
> do that?
>
> 2010/9/10 Merrill, Jason :
>> Maybe because you declared your function as "statVideo" in the class
>> and you're trying to call "startVideo" from the timeline.  If that was
>> just a typo in your e-mail, and not the case in your project, then be
>> sure your function is declared public. Other than that, you've done it
>> right so must be something else you've done in your setup we don't know 
>> about.
>>
>>
>>
>> Jason Merrill
>>
>> Instructional Technology Architect
>> Bank of America   Global Learning
>>
>> Join the Bank of America Flash Platform Community  and visit our
>> Instructional Technology Design Blog
>> (Note: these resources are only available for Bank of America
>> associates)
>>
>>
>>
>>
>>
>> -Original Message-
>> From: flashcoders-boun...@chattyfig.figleaf.com
>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
>> natalia Vikhtinskaya
>> Sent: Friday, September 10, 2010 5:17 AM
>> To: Flash Coders List
>> Subject: [Flashcoders] Get function problem
>>
>> AS3. I have linked mc with name videoPanel in library. This mc has
>> function statVideo() on his own timeline frame;
>>
>> Then on main timeline I have code
>> theVideo=new videoPanel();
>> panelItem.addChild(theVideo);
>> and I want to play function startVideo, so
>>
>> theVideo.startVideo();
>>
>> but that gives me error
>> TypeError: Error #1006: startVideo is not a function.
>> I can get any variables in theVideo but I can not get function. How to
>> solve this problem in this situation?
>>
>> Thanks in advance.
>> ___
>> 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 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] Get function problem

I found that AS3 does not allow tocall function from timeline if this
function is inside MovieClip placed on the stage. Is there any other
way to do that?

2010/9/10 Merrill, Jason :
> Maybe because you declared your function as "statVideo" in the class and
> you're trying to call "startVideo" from the timeline.  If that was just
> a typo in your e-mail, and not the case in your project, then be sure
> your function is declared public. Other than that, you've done it right
> so must be something else you've done in your setup we don't know about.
>
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community  and visit our
> Instructional Technology Design Blog
> (Note: these resources are only available for Bank of America
> associates)
>
>
>
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of natalia
> Vikhtinskaya
> Sent: Friday, September 10, 2010 5:17 AM
> To: Flash Coders List
> Subject: [Flashcoders] Get function problem
>
> AS3. I have linked mc with name videoPanel in library. This mc has
> function statVideo() on his own timeline frame;
>
> Then on main timeline I have code
> theVideo=new videoPanel();
> panelItem.addChild(theVideo);
> and I want to play function startVideo, so
>
> theVideo.startVideo();
>
> but that gives me error
> TypeError: Error #1006: startVideo is not a function.
> I can get any variables in theVideo but I can not get function. How to
> solve this problem in this situation?
>
> Thanks in advance.
> ___
> 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


  1   2   3   >