[Flashcoders] [ANN]: Another PaperVision proj.com 3D - online class

2008-11-22 Thread Vic Cekvenich
I would like to inform you of an online (world wide) class on 3D Flex/Flash
w/ Proj.com engine, using PaperVision:

• Event details and to register:
http://proj.com/Default.aspx?pageId=212996eventId=32084EventViewMode=EventDetails

• 1 class composed of 2 sessions: on mornings of December 13 and 20

• 3D gaming and Rich UI included

• Early registration discount available now, reg will close when filled up.

Website: http://proj.com

.V

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


[Flashcoders] Ann. class: 3D Interactive UI, Papervision w/ Flex for Games and more- hands on

2008-10-22 Thread Vic Cekvenich
In SF on 11/20.
more info at: http://papervision.proj.com :

A 10 hour bootcamp in Flex to learn 3D using Papervision. Taught by
professional trainer Vic Cekvenich.

We will cover hands on labs from scratch:

* Setting up the SDK
* Warm up: 2D Motion
* 3D Primitives
* 3D Math
* Materials
* Make a complex objects (Collada)
* Interactions
* Shadows/Reflection
* Flash 10
* Calling a remote (web java/data ) service
* and more.


This is an intensive all day class stressing techniques useful for gaming
and traditional 3D. You will walk out comfortable creating simple 3D games
or a Rich UI Web site.

You must provide your own laptop, over 1 GB ram recommended. Power will be
provided for each laptop. We will mail you class prep materials on a usb
stick 10 days before the class. You will also have support after the class.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] What does this error msg mean?

2006-09-29 Thread vic
A class's instance variables may only be initialized to compile-time constant 
expressions.



Victor
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AS2 Application Tutorials

2006-09-28 Thread vic
Hey all, I am trying to get up to speed fast on Pure AS2 application/website 
coding.  I found a really cool application tutorial on lynda.com; does anyone 
know of any others that are good?  Thanks, Victor 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Saluti alla ML

2006-09-28 Thread vic
I parol Italiano un po ma non molto bene.  e non lo so questa lista parlano 
italiano.  Ma, come stai?  Victor 

Haha, I hope she was speaking Italian, and for that matter I hope I was too.  
LOL


-- Original Message --
From: Daniele La Delfa [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Thu, 28 Sep 2006 19:22:00 +0200 (CEST)

Salve a tutti,

mi sono appena iscritto!
Volevo giusto salutare tutta la lista...

A presto,
Daniele

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Script for IE

2006-09-28 Thread vic

I use this method.  Unzip the attached JS file and put it into a scripts 
directory in your root.

HTML Usage:

head
script type=text/javascript src=scripts/swfobject.js/script
/head

body

!--start new code for MS IE activeX issue--
div id=navigation
!--
object 
classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354

codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0;
width=757
height=147
id=main
align=middle
param name=allowScriptAccess 
value=sameDomain /
param name=movie 
value=main.swf?linkSection='+query1+' /
param name=quality 
value=high /
param name=bgcolor 
value=#ff /
embed 
src=main.swf?linkSection='+query1+'
quality=high bgcolor=#ff
width=757
height=147
name=main
align=middle
allowscriptaccess=sameDomain

type=application/x-shockwave-flash

pluginspage=http://www.macromedia.com/go/getflashplayer; /
/object
--
 /div
 script type=text/javascript
 var agt=navigator.userAgent.toLowerCase();
 var so = new SWFObject(main.swf, core, 757, 147, 8);
 so.addParam(wmode, transparent);
 so.addVariable(quality, high);
 so.addVariable(linkSection, query1);
 so.write(navigation);
/script
/body

That should fix it...just repleace the obvious things in the code, like the 
name of your swf and the height/width and you should be good to go.  Victor

-- Original Message --
From: Batista Mihai [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Thu, 28 Sep 2006 11:28:38 -0700 (PDT)

Hello! Can anyone help me with a script: i want the swf to be enabled when the 
viewers open the swf in internet explorer so they don’t have to “click to 
activate”. Thank you! Mike


-
Get your email and more, right on the  new Yahoo.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Check Problem

2006-09-28 Thread vic
I did this by making a radio button MC with two frames bith with stop actions.  
When it is clicked I tell it to gotoAndStop(2) (frame 2) and tell the other 
radion button to gotoAndStop(1), therefore when you click one it becomes 
checked and the other becomes unchecked.  There may be a more elegant way but 
that worked great for me.  Victor 
- Original Message - 
From: Laurent CUCHET [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, September 28, 2006 2:27 PM
Subject: [Flashcoders]  Check Problem


 There is 2 checkbox, cb1 and cb2
 
 Is it possible to make one selected and the other unselcted like radiobutton
 ? 
 How can I do ?
 
 Thank s a lot
 
 //1
 function checkbox_1(evt1:Object) {
if (evt1.checkbox.selected) {
typ_txt.text = choice1;
}
 }
 cb1.addEventListener(click, checkbox_1);
 //2
 function checkbox_2(evt2:Object) {
if (evt2.checkbox.selected) {
typ_txt.text = choice2;
}
 }
 cb2.addEventListener(click, checkbox_2);
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Check Problem

2006-09-28 Thread vic
I guess I failed to mention that my solution does not use components, not a big 
fan of them.  Hey Steven, it was cool talking with you and Ivan yesterday.  I 
am almost done with a pretty big AS2 App.  This stuff is getting easier and 
easier.  I will be up to speed SOON.  TTYL, Victor 


-- Original Message --
From: Steven Sacks | BLITZ [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Thu, 28 Sep 2006 14:34:12 -0700

Why are you making checkboxes behave like radio buttons?  Use radio
buttons for single select and checkboxes for multi select.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Dynamic TextField Problem

2006-09-28 Thread vic
Hey all, I have this function that dynamically creates a text field...if I tell 
it to make wordWrap = true then the text disappears.  Here is the func:

// Public Methods:
public static function createHTMLText(mcParent:MovieClip, 
sInstanceName:String, nX:Number, nY:Number, nHeight:Number, nWidth:Number, 
bMultiLine:Boolean, bWordWrap:Boolean, bEmbedFonts:Boolean, 
cssStyles:TextField.StyleSheet):TextField {
trace('TextUtilities');
mcParent.createTextField(sInstanceName, 
mcParent.getNextHighestDepth(), nX, nY, nWidth, nHeight);
var tField:TextField = mcParent[sInstanceName];
tField.html = true;
tField.selectable = false;
tField.autoSize = left;
tField.multiline = bMultiLine;
tField.wordWrap = bWordWrap;
tField.embedFonts = bEmbedFonts;
tField.styleSheet = cssStyles;
return tField;
}


Any ideas?  Thanks, Victor 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic TextField Problem

2006-09-28 Thread vic
Haha, got it...stupid...I passed I passed it height and width and created the 
textField with those switched around...got it working now...Thanks for the 
help, hope nobody spent any amount of time on it.  Victor 


-- Original Message --
From: vic  [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Thu, 28 Sep 2006 17:26:20 -0700

Hey all, I have this function that dynamically creates a text field...if I 
tell it to make wordWrap = true then the text disappears.  Here is the func:

// Public Methods:
   public static function createHTMLText(mcParent:MovieClip, 
 sInstanceName:String, nX:Number, nY:Number, nHeight:Number, nWidth:Number, 
 bMultiLine:Boolean, bWordWrap:Boolean, bEmbedFonts:Boolean, 
 cssStyles:TextField.StyleSheet):TextField {
   trace('TextUtilities');
   mcParent.createTextField(sInstanceName, 
 mcParent.getNextHighestDepth(), nX, nY, nWidth, nHeight);
   var tField:TextField = mcParent[sInstanceName];
   tField.html = true;
   tField.selectable = false;
   tField.autoSize = left;
   tField.multiline = bMultiLine;
   tField.wordWrap = bWordWrap;
   tField.embedFonts = bEmbedFonts;
   tField.styleSheet = cssStyles;
   return tField;
   }


Any ideas?  Thanks, Victor 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q: passing flash form data with NO server sidescripting

2006-09-27 Thread vic
You could put a php file on another server and hit that.  If you do I think you 
need to allowDomain and have a crossDomain XML file on the server, if memory 
serves correct.  V


-- Original Message --
From: [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Wed, 27 Sep 2006 07:01:42 -0400

Hi
I have an unusual flash form project in that the hosting provider doesn't 
support ANY server side scripting.
My goal is to simply pass name value pairs from a form...I assume the only way 
I can do this is using sendAndLoad and a LoadVars object. Since the hosting 
provider dooesn't support any server side scripting, instead of targeting a 
specific file on the server, I was simply going to target a directory and then 
retrieve the name value pairs from the server's log file.

Does this make sense?

Any other solutions greatly appreciated!
Jim Bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Delegating Events and AS2

2006-09-27 Thread vic
John, I think so but what I am trying to do it set up a BtnFunc Class that I 
can pass an argument to in order to set up the functionality of the button 
(argument bein the button instance name).  I am pretty close I have this so far:

FLA (with btnOnStage on stage):

import mx.utils.Delegate;
function handleEvent(eventObj) {
trace('handleConstruct')
trace(eventObj.target);
trace(eventObj.type);
trace(eventObj.message);
trace(eventObj.time);
}
var myBtnClass = new BtnFunc(0, btnOnStage);
myBtnClass.addEventListener('click', Delegate.create(this, handleEvent));

--


Class (BtnFunc.as):

import mx.events.EventDispatcher;
import mx.utils.Delegate;
class BtnFunc {
var addEventListener:Function;
var removeEventListener:Function;
var dispatchEvent:Function;
function BtnFunc(id, btn) {
EventDispatcher.initialize(this);
btn.onRelease = function() {
trace('dispatching event');
dispatchEvent({type:'click', target:this, message:btn+' 
was clicked'});
};
}
}


It is firing off the event perfectly but my listener is not getting it and thus 
not running the handleEvent func.  What's the prob?


var myClass = new Timer(1000);
myClass.addEventListener('timeout', Delegate.create(this, handleConstruct));

- Original Message - 
From: John Grden [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, September 27, 2006 8:13 AM
Subject: Re: [Flashcoders] Delegating Events and AS2


I think Delegate gives you what you're talking about Vic - control over your
 scope issues.  Delegate enables you to manage scope with in your class.  So,
 if you have an XML object and you want to maintain the response/return in
 your class, you do just as Dan has described.
 
 make sense?
 
 On 9/27/06, vic [EMAIL PROTECTED] wrote:

 Danno, that is really cool, I will try that but I have done it, I made a
 site template that, when a button is clicked it dispatches an Event...but I
 had the hardest time doing it.  I am looking for a simple way to do it that
 works in a Class. without worrying about scope.  Mine relies heavily upon
 scope.  Anyone have any example?  Thanks, V


 -- Original Message --
 From: Dan Rogers [EMAIL PROTECTED]
 Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Date:  Tue, 26 Sep 2006 20:55:32 -0700

 Vic, if you've ever used the XML or NetStream classes... it mimics
 those types of event updates.  For example...
 
 var xmlData = new XML();
 xmlData.onLoad = function () {
// gets invoked by the XML instance
 }
 
 So if you delegate the onLoad method, you get something like this:
 
 xmlData.onLoad = Delegate.create(this, xmlDataLoad);
 
 ... which is essentially what I am trying to do with my own classes.
 Another reason I like delegating events this way, is that the
 compiler will catch typos in the names of the event functions, so I
 am not searching around trying to figure out why a certain event is
 not firing.
 
 -Danro
 
 
 On Sep 26, 2006, at 7:06 PM, vic wrote:
 
  Hey Dan, I like the way you do it, its pretty simple.  But here is,
  what probably will be an incredibly stupid question:
 
  How do I capture the event?  Thanks, V
 
  I personally use an extremely simplified way of dealing with events.
  I've used EventDispatcher before, but it feels like overkill most of
  the time.  I realize my method has no ability to multicast events,
  but it's quick, easy to read and gets the job done.
 
  Here's an example:
 
  ___
  // WidgetManager.as
 
  import mx.utils.Delegate;
 
  class WidgetManager {
  private var _widget1:Widget;
  private var _widget2:Widget;
 
  public function WidgetManager (timeline:MovieClip) {
  _widget1 = new Widget(1, timeline.widget1_mc);
  _widget1.clickEvent = Delegate.create(this, widgetClick); // add event
 
  _widget2 = new Widget(2, timeline.widget2_mc);
  _widget2.clickEvent = Delegate.create(this, widgetClick); // add event
  }
 
  private function widgetClick (eventObj:Object):Void {
  trace(widget  + eventObj.id +  was clicked);
  eventObj.target.clickEvent = null; // remove event
  }
  }
 
  ___
  // Widget.as
 
  import mx.utils.Delegate;
 
  class Widget {
  public var clickEvent:Function; // event method
  private var _id:Number;
  private var _buttonMC:MovieClip;
 
  public function Widget (id:Number, mc:MovieClip) {
  _id = id;
  _buttonMC = mc;
  _buttonMC.onPress = Delegate.create(this, buttonPress);
  }
 
  public function buttonPress ():Void {
  clickEvent({target:this, id: _id});
  }
  }
 
 
 
 
  On Sep 26, 2006, at 12:09 PM, Sean Scott wrote:
 
  Hi All!,
 
  wondering if someone can point me in the right direction.  I am
  trying
  to find a ASBoradcast / Event Dispatcher light model for my app.
 
  Basically i

Re: [Flashcoders] Trying to create an emptyMovieClip and then loadanimage into it

2006-09-26 Thread vic
sorry again, here is non-revered code:

class ImageViewerMain extends MovieClip {
// Constants:
public static var CLASS_REF = ImageViewerMain;
// Public Properties:
// Private Properties:
// var to pass from constructor func to loadImage func
private var newlyCreatedImgHolder_mc:MovieClip;
// Initialization:
// set constructor func
public function ImageViewerMain(targetImg_mc:MovieClip, 
targetThumb_mc:MovieClip, depth) {
// create the empty movie holder with a unique instnace name 
and depth
for (var i = 0; i_level0.numOfItems; i++) {
// use the array previously created to set the 
imageToLoad var
var newImageToLoad = _level0.imageArray[i];
var newThumbToLoad = _level0.thumbArray[i];
// create as many empty movieClips as there are images 
in the XML with unique instance names
makeImageMovieClips(i, newImageToLoad, targetImg_mc);
}
}
// Public Methods:
// Semi-Private Methods:
// Private Methods:
private function makeImageMovieClips(i, newImageToLoad, targetImg_mc) {
// create movieClip name
var imgMovieClip = [img_+i];
trace('creating empty movie clip called '+imgMovieClip);
_level0.createEmptyMovieClip(imgMovieClip,i);
// run the loadMovie func
loadImage(newImageToLoad, imgMovieClip);
}
// func to load image into newly created movieClip
private function loadImage(newImageToLoad:String, imgMovieClip):Void {
trace('trying to load '+newImageToLoad+' into '+imgMovieClip)
imgMovieClip.loadMovie(newImageToLoad)
}
}


But it does not work and I feel that it is a scope issue but I am not sure why. 
 Thanks, V


-- Original Message --
From: vic  [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Tue, 26 Sep 2006 00:30:08 -0700

Shoot, that is reverted code...hold a tick and I will reprise it the way it 
was when it was looking tight and NOT working.  Sorry, V


-- Original Message --
From: vic  [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Tue, 26 Sep 2006 00:24:56 -0700

I have a Class, I am trying to create an empty movieClip on the stage, that 
is going well because I see this when i hit ctl+alt+v:

Variable _level0.imgViewer = [object #8] {}
Movie Clip: Target=_level0.emptyViewerContainer_mc
Movie Clip: Target=_level0.emptyThumbContainer_mc
Movie Clip: Target=_level0.img_0
Movie Clip: Target=_level0.img_1
Movie Clip: Target=_level0.img_2
Movie Clip: Target=_level0.img_3
Movie Clip: Target=_level0.img_4
Movie Clip: Target=_level0.img_5

So I know I am doing that right, but then I want to loadMovie ( a JPG) into 
it.  that is where I am falling short.  Anyone see the problem?  Below is the 
Class code...thanks in advace, Victor
//
class ImageViewerMain extends MovieClip {
  // Constants:
  public static var CLASS_REF = ImageViewerMain;
  // Public Properties:
  // Private Properties:
  // var to pass from constructor func to loadImage func
  private var newlyCreatedImgHolder_mc:MovieClip;
  // Initialization:
  // set constructor func
  public function ImageViewerMain(targetImg_mc:MovieClip, 
 targetThumb_mc:MovieClip, depth) {
  // create the empty movie holder with a unique instnace name 
 and depth
  for (var i = 0; i_level0.numOfItems; i++) {
  // use the array previously created to set the 
 imageToLoad var
  var newImageToLoad = _level0.imageArray[i];
  var newThumbToLoad = _level0.thumbArray[i];
  // create as many empty movieClips as there are images 
 in the XML with unique instance names
  makeImageMovieClips(i, newImageToLoad, targetImg_mc);
  }
  }
  // Public Methods:
  // Semi-Private Methods:
  // Private Methods:
  private function makeImageMovieClips(i, newImageToLoad, targetImg_mc) {
  // create movieClip name
  var imgMovieClip = [img_+i];
  trace('creating empty movie clip called '+imgMovieClip);
  _level0.createEmptyMovieClip(imgMovieClip,i);
  // run the loadMovie func
  loadImage(newImageToLoad, imgMovieClip,i);
  }
  // func to load image into newly created movieClip
  private function loadImage(img:String, imgMovieClip:MovieClip,i):Void {
  trace(img)
  }
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive

Re: [Flashcoders] Trying to create an emptyMovieClip and then load animage into it

2006-09-26 Thread vic
Shoot, that is reverted code...hold a tick and I will reprise it the way it was 
when it was looking tight and NOT working.  Sorry, V


-- Original Message --
From: vic  [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Tue, 26 Sep 2006 00:24:56 -0700

I have a Class, I am trying to create an empty movieClip on the stage, that is 
going well because I see this when i hit ctl+alt+v:

Variable _level0.imgViewer = [object #8] {}
Movie Clip: Target=_level0.emptyViewerContainer_mc
Movie Clip: Target=_level0.emptyThumbContainer_mc
Movie Clip: Target=_level0.img_0
Movie Clip: Target=_level0.img_1
Movie Clip: Target=_level0.img_2
Movie Clip: Target=_level0.img_3
Movie Clip: Target=_level0.img_4
Movie Clip: Target=_level0.img_5

So I know I am doing that right, but then I want to loadMovie ( a JPG) into 
it.  that is where I am falling short.  Anyone see the problem?  Below is the 
Class code...thanks in advace, Victor
//
class ImageViewerMain extends MovieClip {
   // Constants:
   public static var CLASS_REF = ImageViewerMain;
   // Public Properties:
   // Private Properties:
   // var to pass from constructor func to loadImage func
   private var newlyCreatedImgHolder_mc:MovieClip;
   // Initialization:
   // set constructor func
   public function ImageViewerMain(targetImg_mc:MovieClip, 
 targetThumb_mc:MovieClip, depth) {
   // create the empty movie holder with a unique instnace name 
 and depth
   for (var i = 0; i_level0.numOfItems; i++) {
   // use the array previously created to set the 
 imageToLoad var
   var newImageToLoad = _level0.imageArray[i];
   var newThumbToLoad = _level0.thumbArray[i];
   // create as many empty movieClips as there are images 
 in the XML with unique instance names
   makeImageMovieClips(i, newImageToLoad, targetImg_mc);
   }
   }
   // Public Methods:
   // Semi-Private Methods:
   // Private Methods:
   private function makeImageMovieClips(i, newImageToLoad, targetImg_mc) {
   // create movieClip name
   var imgMovieClip = [img_+i];
   trace('creating empty movie clip called '+imgMovieClip);
   _level0.createEmptyMovieClip(imgMovieClip,i);
   // run the loadMovie func
   loadImage(newImageToLoad, imgMovieClip,i);
   }
   // func to load image into newly created movieClip
   private function loadImage(img:String, imgMovieClip:MovieClip,i):Void {
   trace(img)
   }
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Trying to create an emptyMovieClip and then load an image into it

2006-09-26 Thread vic
I have a Class, I am trying to create an empty movieClip on the stage, that is 
going well because I see this when i hit ctl+alt+v:

Variable _level0.imgViewer = [object #8] {}
Movie Clip: Target=_level0.emptyViewerContainer_mc
Movie Clip: Target=_level0.emptyThumbContainer_mc
Movie Clip: Target=_level0.img_0
Movie Clip: Target=_level0.img_1
Movie Clip: Target=_level0.img_2
Movie Clip: Target=_level0.img_3
Movie Clip: Target=_level0.img_4
Movie Clip: Target=_level0.img_5

So I know I am doing that right, but then I want to loadMovie ( a JPG) into it. 
 that is where I am falling short.  Anyone see the problem?  Below is the Class 
code...thanks in advace, Victor
//
class ImageViewerMain extends MovieClip {
// Constants:
public static var CLASS_REF = ImageViewerMain;
// Public Properties:
// Private Properties:
// var to pass from constructor func to loadImage func
private var newlyCreatedImgHolder_mc:MovieClip;
// Initialization:
// set constructor func
public function ImageViewerMain(targetImg_mc:MovieClip, 
targetThumb_mc:MovieClip, depth) {
// create the empty movie holder with a unique instnace name 
and depth
for (var i = 0; i_level0.numOfItems; i++) {
// use the array previously created to set the 
imageToLoad var
var newImageToLoad = _level0.imageArray[i];
var newThumbToLoad = _level0.thumbArray[i];
// create as many empty movieClips as there are images 
in the XML with unique instance names
makeImageMovieClips(i, newImageToLoad, targetImg_mc);
}
}
// Public Methods:
// Semi-Private Methods:
// Private Methods:
private function makeImageMovieClips(i, newImageToLoad, targetImg_mc) {
// create movieClip name
var imgMovieClip = [img_+i];
trace('creating empty movie clip called '+imgMovieClip);
_level0.createEmptyMovieClip(imgMovieClip,i);
// run the loadMovie func
loadImage(newImageToLoad, imgMovieClip,i);
}
// func to load image into newly created movieClip
private function loadImage(img:String, imgMovieClip:MovieClip,i):Void {
trace(img)
}
}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread vic
Hey Dan, I like the way you do it, its pretty simple.  But here is, what 
probably will be an incredibly stupid question: 

How do I capture the event?  Thanks, V

I personally use an extremely simplified way of dealing with events.   
I've used EventDispatcher before, but it feels like overkill most of  
the time.  I realize my method has no ability to multicast events,  
but it's quick, easy to read and gets the job done.

Here's an example:

___
// WidgetManager.as

import mx.utils.Delegate;

class WidgetManager {
private var _widget1:Widget;
private var _widget2:Widget;

public function WidgetManager (timeline:MovieClip) {
_widget1 = new Widget(1, timeline.widget1_mc);
_widget1.clickEvent = Delegate.create(this, widgetClick); // add event

_widget2 = new Widget(2, timeline.widget2_mc);
_widget2.clickEvent = Delegate.create(this, widgetClick); // add event
}

private function widgetClick (eventObj:Object):Void {
trace(widget  + eventObj.id +  was clicked);
eventObj.target.clickEvent = null; // remove event
}
}

___
// Widget.as

import mx.utils.Delegate;

class Widget {
public var clickEvent:Function; // event method
private var _id:Number;
private var _buttonMC:MovieClip;

public function Widget (id:Number, mc:MovieClip) {
_id = id;
_buttonMC = mc;
_buttonMC.onPress = Delegate.create(this, buttonPress);
}

public function buttonPress ():Void {
clickEvent({target:this, id: _id});
}
}




On Sep 26, 2006, at 12:09 PM, Sean Scott wrote:

 Hi All!,

 wondering if someone can point me in the right direction.  I am trying
 to find a ASBoradcast / Event Dispatcher light model for my app.

 Basically i have a number of MCs that will have to either react to
 events being broadcast or broadcast their own.

 I have Essential AS2 by Colin Moock.  Trying to find something i can
 import and maybe pass scope to it, vs have my main class extend it.

 I've googled, searched the archived and exausted my more talented
 flash developer friends.

 Thanks,
 Sean
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Delegating Events and AS2

2006-09-26 Thread vic
Danno, that is really cool, I will try that but I have done it, I made a site 
template that, when a button is clicked it dispatches an Event...but I had the 
hardest time doing it.  I am looking for a simple way to do it that works in a 
Class. without worrying about scope.  Mine relies heavily upon scope.  Anyone 
have any example?  Thanks, V


-- Original Message --
From: Dan Rogers [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Tue, 26 Sep 2006 20:55:32 -0700

Vic, if you've ever used the XML or NetStream classes... it mimics  
those types of event updates.  For example...

var xmlData = new XML();
xmlData.onLoad = function () {
   // gets invoked by the XML instance
}

So if you delegate the onLoad method, you get something like this:

xmlData.onLoad = Delegate.create(this, xmlDataLoad);

... which is essentially what I am trying to do with my own classes.   
Another reason I like delegating events this way, is that the  
compiler will catch typos in the names of the event functions, so I  
am not searching around trying to figure out why a certain event is  
not firing.

-Danro


On Sep 26, 2006, at 7:06 PM, vic wrote:

 Hey Dan, I like the way you do it, its pretty simple.  But here is,  
 what probably will be an incredibly stupid question:

 How do I capture the event?  Thanks, V

 I personally use an extremely simplified way of dealing with events.
 I've used EventDispatcher before, but it feels like overkill most of
 the time.  I realize my method has no ability to multicast events,
 but it's quick, easy to read and gets the job done.

 Here's an example:

 ___
 // WidgetManager.as

 import mx.utils.Delegate;

 class WidgetManager {
 private var _widget1:Widget;
 private var _widget2:Widget;

 public function WidgetManager (timeline:MovieClip) {
 _widget1 = new Widget(1, timeline.widget1_mc);
 _widget1.clickEvent = Delegate.create(this, widgetClick); // add event

 _widget2 = new Widget(2, timeline.widget2_mc);
 _widget2.clickEvent = Delegate.create(this, widgetClick); // add event
 }

 private function widgetClick (eventObj:Object):Void {
 trace(widget  + eventObj.id +  was clicked);
 eventObj.target.clickEvent = null; // remove event
 }
 }

 ___
 // Widget.as

 import mx.utils.Delegate;

 class Widget {
 public var clickEvent:Function; // event method
 private var _id:Number;
 private var _buttonMC:MovieClip;

 public function Widget (id:Number, mc:MovieClip) {
 _id = id;
 _buttonMC = mc;
 _buttonMC.onPress = Delegate.create(this, buttonPress);
 }

 public function buttonPress ():Void {
 clickEvent({target:this, id: _id});
 }
 }




 On Sep 26, 2006, at 12:09 PM, Sean Scott wrote:

 Hi All!,

 wondering if someone can point me in the right direction.  I am  
 trying
 to find a ASBoradcast / Event Dispatcher light model for my app.

 Basically i have a number of MCs that will have to either react to
 events being broadcast or broadcast their own.

 I have Essential AS2 by Colin Moock.  Trying to find something i can
 import and maybe pass scope to it, vs have my main class extend it.

 I've googled, searched the archived and exausted my more talented
 flash developer friends.

 Thanks,
 Sean
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http

Re: [Flashcoders] embedded font not displaying

2006-09-25 Thread vic
I have been having font issues with Flash for the longest time.  First, I want 
to say hello to you all, I am brand new here and really impressed by the level 
of programming.  I came from actionscript.org where I almost always help people 
out but I dont think that is going to be the case for me here for some time.  

Anyway, I was working on this international site that had to display different 
languages depending upon an HTML querystring.  The copy is pulled from XML.  So 
what I needed to do was to use actionscript to embed the font but when I did 
that I could not format it as HTML.  Does anyone have the solution...it could 
be myText.htmlText = 'foo' but I am not sure. 

Thanks, 

Victor Gaudioso 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] embedded font not displaying

2006-09-25 Thread vic
But if ido this wont i have to embed fonts for all fonts (Chineese, arabic, 
english, etc.)?  Doesnt that make the movie huge?



-- Original Message --
From: John Grden [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Date:  Mon, 25 Sep 2006 14:27:47 -0400

also, depending on the what sytles you apply to your html (IE: bi),
you'll have to embed that part of the font as well.

to do this,

1.  create a dynamic textfield on stage and select the font you want to use
2.  Click the render text as HTML button in the property inspector
3.  Double click to enter text
4.  type:  r b i bi
5.  select the b, click the bold button.  Select the i, click the
italic button, select bi and click the bold then italic button.
6.  what you should have is something that looks like this:  r b  i bi
7.  Click the embed... button - select Uppercase, Lowercase, Numerals,
Punctuation - click ok to close

put this textbox off stage somewhere and hide it.  It's only job is to
include the normal, italic, bold and bold/italic font outlines.  Create
another dynamic text box that will recieve your HTML formatted data and you
should be good.

hth vic!

Jpg

PS welcome to the crack habbit of FlashCoders ;)


On 9/25/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote:

 Make sure you also have this line:
 myText.html = true;


  Does anyone have the solution...it could be myText.htmlText = 'foo'
 but I am not sure.

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




-- 
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com