[Flashcoders] Splitting TextField into Lines - Simple?

2007-08-16 Thread Dan Efergan

Hello FlashCoders.

The seemingly simple task of splitting a Textfield into it's (soft)  
wrapped lines is alluding me.


How can you tell the Text content of a particular line within a  
Textfield?  I'm trying to split out the individual lines to animate  
them.


Thanks,
Dan

Dan Efergan
dan [at] subsubskills.co.uk



___
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] Splitting TextField into Lines - Simple?

2007-08-16 Thread Dan Efergan

Thanks so far.

I suppose I could do something similar to the TextExtent thing  
filling up a textfield and checking it's textheight (does textheight  
update without a redraw?).


At least then it wouldn't be a deprecated command.

And I'm thinking cutting down processing by using making an estimate  
of line sizes based on character width, and hopefully start the check  
somewhere close to a line break.


I'll post any useful outcomes.
Dan

On 16 Aug 2007, at 14:21, Ian Thomas wrote:


It's a bit repetitive, but you can work it out with
TextFormat.getTextExtent(). Just keep adding characters until the  
rect's
height changes. (It's also - at least in Flash 8 - slightly  
incorrect when

using antialiased fonts).


Dan Efergan
dan [at] subsubskills.co.uk



___
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] Splitting TextField into Lines - Simple?

2007-08-16 Thread Dan Efergan
Thanks very much!  Haven't looked through yet, but that looks like  
it's going to save me an afternoon :-)


Dan

On 16 Aug 2007, at 14:41, Jon Bradley wrote:

Check out Jack's great Text Metrics class. He just posted this Aug.  
7th.


http://www.greensock.com/ActionScript/TextMetrics/

cheers,


Dan Efergan | subsub skills | Director

108c Stokes Croft | Bristol | BS1 3RU | mobile: 07970 065744

Subsub Skills supports, promotes and offers the best digital  
freelancers from across the South West and beyond.


Subsub Skills is part of the Sub Group Network.




___
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] Flash Projector Distribution

2007-08-08 Thread Dan Efergan

Hi FlashCoders,

I'm about to create a reasonably simple presentation that's going to  
be distributed as a small self contained projector.  It's pretty  
simple,  playing a video and then into a basic pages of information,  
so there's no OS interactions.


I'm wondering what peoples views are on packaging up the projector...  
has much changed since MX times when I last did it?


Bit of an open question, so in an attempt to be useful I've got some  
specifics below...


- Would Zinc, mProjector, Screenweaver, etc be overkill?
- Is Video still a potential issue for projectors?
- Where does AIR fit into all this?  I'm assuming it's also overkill  
for a simple presentation.

- Any new Flash 8 Projector specific classes I should have a look at?

For the sake of people searching the archives, and to save people  
wasting energy here's the resources I know of already:

- http://www.extendingflash.com/  http://www.beyondflash.com
- http://usuarios.lycos.es/didinomade/ProjectorsBurningFAQ.htm
- http://board.flashkit.com/board/forumdisplay.php?f=15 (Standalone   
Applications board)


Thanks for anyone's help.

Dan Efergan
dan [at] subsubskills.co.uk


___
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: Mootools morph text effect

2007-08-08 Thread Dan Efergan
As Eric says,  you'll want to run a setInterval (or place the code  
onto some suitable onEnterframe holder, such as a containing movieClip).


The code you'll want to look at is updating the TextFormat of the  
text field.  Using this you can update the fonts colour/size/ 
spacing.  You'll probably also want to change it's _width, _height,  
_x and _y.


Dan

On 7 Aug 2007, at 15:31, [EMAIL PROTECTED] wrote:


Hi
Does anyone know a way to morph 2 textfields as they are done using  
the (quite amazing) Mootools javascript framework?


http://demos.mootools.net/Fx.Morph


Dan Efergan
dan [at] subsubskills.co.uk



___
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] Preloading problem

2007-08-08 Thread Dan Efergan
You're pretty much there in your answer... you need to move both your  
linkage items  and Class imports to later frames.  Here's how I set  
up mine:


- Frame One:  Just the pre loading screen (no code yet)
- Frame Two: Import Classes and start preloader
- Frame Three: All Linked Objects

To do this you'll need to:

- Open your publish prefs,  and beside ActionScript 2 box find the  
Settings... button.  In there you can set your Class publish frame  
to 2.


- Switch off all Export before frame one in the linkage settings.   
Failing to do this with Movieclip's associated with Classes (such as  
components) will break these MCs.


- Drag all Linkage items on screen for one frame.  This loads them  
into memory ready for use later.



Hope this helps,
Dan

On 8 Aug 2007, at 15:58, Omar Fouad wrote:


Is there a way to let flash load the movieClips with linkage name  
on the
library, in any other frame except the first one? or to let the  
Preloader

Class instance run first?

Note that the Preloader class is attaching a movieClip from the  
Library on

the stage that shows the preload status.


Dan Efergan
dan [at] subsubskills.co.uk



___
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] Combo Box Disabled dropdown

2007-08-03 Thread Dan Efergan

Hello Flash Coders,

I'm pretty sure the solution to this problem is known to the list,   
as searching through the archive seems to hint to the problem.   
Unfortunately, through all my searching, I can't seem to find a  
concise answer,  so would appreciate someone pointing me towards the  
answer.


Basically my Combo box is appearing strange when disabled.  It show's  
an unusual gray box instead of the normal drop down button.  Once  
enabled it appears fine,  but reverts once disabled again.


This happens only when I've set the component not to export for first  
frame.


My Classes are exporting on the second frame,  and an instance of the  
combo box is placed on the third.


I've tried adding
Object.registerClass(ComboDownArrowDisabled, MovieClip);
To the first frame of my movie,  I'm assuming this is something to do  
with the solution.


Thanks for any help,
Dan

Dan Efergan
dan [at] subsubskills.co.uk



___
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] OS style command prompt

2006-08-22 Thread Dan Efergan
The other post Word Processor in Flash reminded me of a problem I  
had a while back which I'm sure someone on this list would have an  
idea how to get round.


I was trying to build a Flash application that behaved much like a  
command line OS.  So it consisted of an input text field, which  
printed text and waited for commands to be written into it before  
performing certain procedures.


The crux of the problem involved catching input commands, such as  
delete, enter etc, before they were applied to the Text field itself  
so they could be interpreted and more importantly controlled.


I tried running a watch on the textfield variable,  which so nearly  
let me do everything I wanted but wouldn't allow me to disallow the  
functionality (delete would still delete even though you got a chance  
to view the changes before they were applied).


Does anyone have examples of this kind of functionality already  
built?  I assume a constant updated variable of the content must be  
created to allow switching back to previous states if the user does  
something that's not allowed.  A running example would be a great help.


Thanks,

Dan Efergan
[EMAIL PROTECTED]


___
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] zoomin'

2006-08-16 Thread Dan Efergan
I love Crash Media's stuff, but I find the fact it takes over your  
Browser size infinitely more annoying than the pseudo 3d effect of  
that site.  I actually thought the site with it's easy option menus  
really quite nice.


As for Jakob Nielsen,  if he had his way the world would be a very  
droll place...(would you want the web to all look like http:// 
www.useit.com/).  His work towards an appreciation for accessibility  
is respected but our world's full of so much more than numbers and  
facts,  why shouldn't the web be the same?!


Anyhow, as for the original question, a simplified concept of what's  
going on there...


Say the distance from an item to the camera is reduced to a number  
(for example 0 -1000), then you can use that number to effect the  
scale of that object, creating the pseudo 3d 'vanishing towards the  
horizon'.


Things you want to watch out for include:
- Scale your objects using an Exponential scaler (check out the  
Easing ANimation Equations if you don't know them yet)
- The object should have a registration point the same as your  
'vanishing point' on the horizon. (In most cases you'll be using  
attachMovie to add your items, in which case another empty MovieClip  
in between can help you create this off axis space)
- The amount your object is above or below the y axis will affect how  
much the scale effects it's Y position, which is what will give you  
the correct sense of depth.  Leaving it on 0 will keep objects on one  
axis (as if you're lying on the ground looking straight ahead)
- Remember to hide items above 1000 (that have gone behind the  
camera) or less than 0 (otherwise they start appearing again flipped  
round)


For some kind of example (I'm sure there's better about), you can  
check out http://www.electricpavilion.org, click on 'Urban' or one of  
the other words above the Flash to see a number of buildings appear  
from the horizon.  I can offer you examples of this code if it's  
helpful.  Email off list.


Hope this helps,
Dan

On 14 Aug 2006, at 23:56, eric dolecki wrote:


I prefer what CRASH!MEDIA has done with projects/timeline. It doesn't
consume the entire site, letting me feel like I am still in  
control, not

navigating around in a mess of projects. Thats just me though.

On 8/14/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 sometimes it overwhelms the enjoyment of the information

You find it enjoyable to read about an ad agency's employees?

You're kidding, right?  I mean, do you think that anyone would give a
crap about that site if it had standard navigation?  Think outside  
the

box, man!

:)


Dan Efergan
[EMAIL PROTECTED]



___
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] Player question

2006-06-12 Thread Dan Efergan

Yep, I agree with Danny,

If you don't want to send EXE's consistently then create a shell  
'stub' application that loads content into it... send that once, and  
then continue to send SWF's.


No solution ever solves it though, problems tend to arise from the  
need to place the new swf into the same folder, and just generally  
sending more than one file can cause the less competent client  
confusion.


Dan

On 12 Jun 2006, at 14:13, Danny Kodicek wrote:

He can right-click the file (in Windows: in Mac, insert  
equivalents...) and choose open with... (Choose Program) Internet  
Explorer. Then swf files will be associated with Explorer from then  
on. Otherwise, I think it's possible to get the standalone Flash  
player from Adobe somewhere... Can't find it. But if not, you could  
always make an executable shell that loads your content into  
level0, or send him a copy of your own standalone player (on my  
machine it's in C:\Program Files\Macromedia\Flash 8\Players)


Dan Efergan
[EMAIL PROTECTED]



___
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] OT: Finding Sounds

2006-06-12 Thread Dan Efergan
Has anyone one got any good advice for good online sound libraries,  
for Flash development.


I've got a few which I use:
http://www.findsounds.com/
http://www.sounddogs.com/

And then Flash Kit, although that can be a bit tiresome...

Anyone got any more suggestions.

TIA

Dan

Dan Efergan
[EMAIL PROTECTED]
___
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] Flash and Javascript Interaction

2006-06-12 Thread Dan Efergan

I'm working with the ExternalInterface Class right now,

It seems to be working ok, but I am having a particular problem. Can  
anyone who's used both point out any differences between the  
ExternalInterface Class and the Integration Kit? Or was it just a pre  
Flash 8 solution?


My problem, in case you can also help with this (Should I be posting  
this in a separate post?):


My first call from Flash to Javascript (using ExternalInterace)  
initiates a Javascript Object, this works happily and returns it's  
name to prove it's existence.


The second call tries to refer to a method within that Object, using  
the same interface.  This fails from Flash, but works when called  
from a HTML link (which invokes a Javascript call).


Does ExternalInterface allow you to make method calls to an Object?  
If not does the JS/Flash Kit?


basic calls made are:

(First Call -Working, creates a JS Object)
var javaObj:String = jsHistory
var attempt:Object = ExternalInterface.call(initSubscriber, javaObj);

(Second Call - Not working, attempts to call JS Object method)
var attempt:Object = ExternalInterface.call 
(jsHistory.loadNextBookmark)


Thanks

On 12 Jun 2006, at 16:29, Mike Britton wrote:


I recommend going with ExternalInterface.  No external files needed:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/ 
html/wwhelp.htm?context=LiveDocs_Partsfile=2200.html


However the kit is good and definitely works!

Mike


Dan Efergan
[EMAIL PROTECTED]



___
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] Dynamically loading an SWF into a movie clip

2006-06-07 Thread Dan Efergan

Hi John,

Have you sorted this yet? Someone else here might have a better clue  
of what's going on, but as there's no posts yet...


Your code samples don't include enough to work out the low res  
picture example (have you got an online example of that happening?)  
or do not include the button code (are they applied from the root or  
directly to the buttons?).  But at a guess all of these issues seem  
to be based on timings and when various things are being initiated...  
I'm guessing this because moving the code around/ adding a preloader  
seem to effect the final output.


Why not try, continuing with the external preloader.  Then adding a  
number of traces on the buttons to confirm when they are coming into  
existence using clipEvent or similar.  Then work back from that using  
similar traces to make such functions are available, and movieClips  
needed for those functions etc...


It usually ends up being something simple like a missing stop() at  
the movie beginning, or functions initiating before assets are  
available.


Dan

On 6 Jun 2006, at 22:27, John Conta wrote:

This is my first post.  I'm John.  I've been playing with Flash for  
a few years now, and after getting a gig, I actually have to follow  
through with these ideas for once.  Here's my situation, which  
consists of two problems:


It works very nicely - the percentage goes up, the image fades, and  
all is well...until the main.swf comes in.  None of the buttons  
work, and I'm stuck.


I tried playing with the image_mcl.loadClip depths, but the buttons  
still don't respond!


This is what I mean:

http://www.elizabethjochum.com/preloader.htm

Thanks in advance for any help on this, really...I can't sleep  
until I figure this one out!!!



Dan Efergan
[EMAIL PROTECTED]



___
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] Where to politely and appropriately discuss pricing issues

2006-06-02 Thread Dan Efergan

I also believe that Responsibility plays a big part in pricing.

When I started freelance my prices were lead by skill level, the  
harder the skill, the more unique and therefore the more expensive  
(Charging more for Advanced Flash than simple CSS), basic supply and  
demand.  But now I'm mainly lead by the amount of responsibility the  
project demands.  Working in-house in a studio where they tell you  
each morning what you're doing (and therefore you go home at night  
with an empty head and have a good nights sleep) compared to heading  
up a team of developers.


Nice link, interesting about the hourly charge thing.  It's the same  
here in the Uk, people think hourly rates are dangerous.


Dan

I' read years ago that directly asking pricing in a public forum is  
gauche

and  a good way to get a good flame going.  At the same time I quoted
someone a price the other day on my first attempt at freelancing  
and I could
hear their jaw drop and knew I low-balled my hourly.  The problem  
is that I
have no idea what I should be pricing at with my level of  
experience and am
not sure the polite way to invite a conversation on this.  If  
anyone is
willing to offlist me and school me as to the etiquette of  
discussing how
people are setting their prices and what a medium-advanced to  
advanced Flash
component developer is charging right now I would welcome the  
guidance-



Dan Efergan
[EMAIL PROTECTED]



___
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] browser will not quit!!

2006-06-02 Thread Dan Efergan
You're FScommand is wrong... I'm pretty sure you need the blank  
argument as well.


Try:
on (release, releaseOutside ) {
   this.gotoAndStop ('buttonUp');
   getURL(javascript:window.close(this));
   fscommand(quit,);
}

(Extra blank argument to the end of the quit)

Dan

On 2 Jun 2006, at 14:42, Simon Turner wrote:

I am trying to get a browser window to quit upon completion of a  
Flash based Assessment.


It is running on a touch screen till using the html file generated  
when the fla file is published.  Everything works fine until the  
assessment is required to quit - but the current  coding i am using  
will not do this.


please have you any  ideas or work rounds that i may use or try?

current code is 

on (release, releaseOutside ) {
   this.gotoAndStop ('buttonUp');
   getURL(javascript:window.close(this));
   fscommand(quit);
}

many thanks
Simon



Dan Efergan
[EMAIL PROTECTED]



___
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] security issues with php mail from Flash?

2006-05-29 Thread Dan Efergan
Yep, the main exploitation would happen by using the underlying PHP  
script.


Google will help you with sorting the PHP:
http://www.google.com/search?client=safarirls=enq=stop+spammers+php 
+scriptsie=UTF-8oe=UTF-8


Also, the php online manual reference for 'mail' has a number of  
comments about securing your forms.


Dan

On 29 May 2006, at 00:43, f a r i d | s i l v a | a b o i d wrote:


I think that you must to put all protection against mysql injection
and spammers in the php processor, because your flash form its only an
usre interfase


Dan Efergan
[EMAIL PROTECTED]



___
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] scrubbing swfs like flvs?

2006-05-18 Thread Dan Efergan
You can control current frame, and therefore could build a device  
similar, but it would be difficult to inherit the exact  
characteristics of 'scrubbing'.


Is your swf purely 'top level' animation (i.e. no actionscript, and  
no looping movieclips) because if not, skipping quickly thorough the  
frames will not create the desired effect.


Also, if you are working with pure animation, then one of the easiest  
processes would be to output the animation as Quicktime or Avi and  
then reimport as a FLV... but then you'ld probably have done that  
already if so.


Hope that helps in some way,
Dan

On 18 May 2006, at 05:37, aaron smith wrote:


Does anyone know if you can scrub swf files like you can scrub flvs?

___
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


Dan Efergan
[EMAIL PROTECTED]



___
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] Clearing FLV visual content

2006-05-15 Thread Dan Efergan

Hi FlashCoders,

I've got an issue when swapping (progressive) video content over in a  
single Flash 8 FLVPlayer component.


I'm setting contentPath to load a movie and start playing it. When  
the user changes the movie I'm simply resetting contentPath to the  
new files path which changes the stream and starts playing the new FLV.


This works fine for all FLV's that contain both Video and Audio  
layers.  The problem occurs when I swap from a FLV with visual  
content to one with just Audio.  After loading the Audio the last  
visual frame of the previous video is left visible on-screen.


Is there anyway I can either:

- Clear that visual 'buffer'
- Find out whether the FLV is only audio to then either load a  
default visual and/or set the video._visible to false


I've tried the video.stop() and video.closeVideoPlayer() prior to  
opening the new stream, but these do not seem to clear it.


(Tangent: calling video.stop() without a loaded Video in place seems  
to make Flash  Flash player pretty unstable and causes both  
applications to crash)


Thinking about loading a blank movie between change overs, but any  
other suggestions appreciated.


Thanks

Dan Efergan
[EMAIL PROTECTED]

___
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] Clearing FLV visual content

2006-05-15 Thread Dan Efergan
Been testing loading a blank movie prior to the new movie using two  
quickly successive  contentPath calls, only to cause the same  
instability and Flash App crashing.


Thought I'd post it in case its useful...  Any other ideas more  
desperately needed. Thanks.


Dan

On 15 May 2006, at 22:12, Dan Efergan wrote:

I've tried the video.stop() and video.closeVideoPlayer() prior to  
opening the new stream, but these do not seem to clear it.


(Tangent: calling video.stop() without a loaded Video in place  
seems to make Flash  Flash player pretty unstable and causes both  
applications to crash)


Thinking about loading a blank movie between change overs, but any  
other suggestions appreciated.


Dan Efergan
[EMAIL PROTECTED]



___
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] Flash 8 Debugger Crashes

2006-05-15 Thread Dan Efergan
I haven't had the debugger crashing, but it tends to hang on the evil  
beach ball (Mac) for what seems like infinity, if trying to do any  
kind of intensive repetitive tasks (decompiling large amounts of XML  
is always a killer).


Probably not that useful, as the exact same thing happened in 2004 as  
well.  I usually tend to give up on the debugger for large projects  
and start using too many traces.


You tried http://osflash.org/xray . Not much experience with it, but  
might be a different way of getting in there.


Dan

On 15 May 2006, at 23:09, AJ Canepa wrote:

Has anyone experienced similar issues with debugger stability under  
Flash 8?


Dan Efergan
[EMAIL PROTECTED]



___
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] ScrollPane Pain

2006-04-17 Thread Dan Efergan

Thanks for the help everyone...

The end problem was something obscure, an external Class I was using  
had a line of code set like:

myObj = Object = {something:something}

A typo but one that didn't show up, and was causing utter chaos  
behind the scenes.


Dan

On 7 Apr 2006, at 10:10, Yotam Laufer wrote:

Make sure you execute everything after the component has  
initialized. A good

way is to handle things with your Class's onLoad event.


class a extends MovieClip {
  private var __sp:ScrollPane
  function a () {
  }
  function onLoad () {
__sp.content = yourlinkage
  }
}


other than that maybe you just need to __sp.invalidate () ?

Yotam.
___

Dan Efergan
[EMAIL PROTECTED]



___
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] Maximum String size?

2006-04-14 Thread Dan Efergan
I'm not sure of the correct answer (and have to agree with the  
previous post, big text probably means external files) but I imagine  
they fit into one of the standard Variable formats below the scene so  
either:

65535 characters (Unlikely to be this one) or
16777215 characters or
4294967295 characters.

Dan

On 14 Apr 2006, at 14:02, elibol wrote:

My two cents, I mean, 3 megs, that's like the size of the flash  
player. It's
probably better to use Flash as just the presentation layer and  
keep any
large amounts of data on the  serverside or the shell the swf is  
embedded
in. I don't know the capabilities of SWF Studio, but it definitely  
doesn't
seem like it would be capable of this sort of a thing. I'm thinking  
it might
just be that one has to program a shell app that embeds the main  
swf as a
view to the likes of an MVC pattern. I don't really know how to  
program in
lower level languages but I have read many books that have related  
topics
which were written and demonstrated in C/C++/SmallTalk/Java.  
Syntactically
they aren't all that different from Actionscript. Realistically  
though,
there is no way in hell you would go with something like this  
right? Damn.


Well, AS 3.0 is as beasty as Java. I've done alot of benchmark  
testing with
both and they are pretty much identical in speed, and both are  
about 20
times faster than the first ASVM. There is hope ;) I've seen some  
desktop

app that Jessie wrote so it's possible to deploy Flex 2.0 apps for the
desktop. I'm thinking if you went with AS 3.0 you could pimp this  
project.


Bottom line is if you listen to me you will probably never make the
deadline. You might not even be able to do what you're trying to  
do. What

exactly is it that you are trying to do?

M.

On 4/13/06, André Goliath [EMAIL PROTECTED] wrote:


Hi List,

just wondering if anyone knows the exact size (in chars) a String  
literal

may have?
I noticed that 3MB is definitly too big ;)

My App (OCX wrapped wihth SWF Studio) just quitted silently.
If I save the contents to disk and clear the literal from time to  
time it

works well.

Regards,

André

___
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


Dan Efergan
[EMAIL PROTECTED]



___
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] Instantiate a class by string

2006-04-12 Thread Dan Efergan

Kind of yes and no...

(Hello to the group by the way, new here)

Please excuse my lack of correct terminology, and number of  
assumptions, I think...


Once you understand the underlying structure of Flash, you realise  
that referencing properties, variables, and commands is very similar  
to referencing anything contained within an Object...


So in object Foo, you have a property called bar then you  
reference it through foo[bar].  The useful part is that Flash will  
eval() everything within those brackets.  So you could also reference  
foo[ba+r] to the same effect.


So with:
var theCommand = new commands [ commandNameToCheck ] ();

You're actually looking within the new commands structure, with the  
square brackets doing their  job, working like an eval().


Not sure if that was useful or not, but I'm pretty sure that's how  
it's going down.


Dan

On 12 Apr 2006, at 11:30, Cedric Muller wrote:


I am always wrong, but:

see the [] ?
this is 'eval()' equivalent ...

so, not the same than
var myStr = com.bob.Bar;
var myInstance = new myStr();

see ?


Are you sure?

If it doesn't, then

 var theCommand = new commands [ commandNameToCheck ] ();

definite does. It's used in ARP.

On 4/12/06, Steve Webster [EMAIL PROTECTED] wrote:

Hi Chris,


var qname:String = org.foo.Bar;

var x = new qname ();


That won't work. Did you mean:

var qname:String = org.foo.Bar;

var x = new eval(qname)();

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
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




--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
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


Dan Efergan
[EMAIL PROTECTED]



___
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] What's different between _alpha=0 and _visible =flase;

2006-04-06 Thread Dan Efergan
I've found that Attach and Removing Movieclips runs slower than  
hiding things off stage.  But the hassle is only worth it when  
working on performance critical work, such as games.


Also, _visible=false still referencing the object more so when on- 
screen than off.


There's a load of information in the mammoth forum post:
http://www.flashkit.com/board/showthread.php?t=434875

On 6 Apr 2006, at 09:20, Kalle Thyselius, Inlovewith wrote:


but probably attachMovie and removeMovieClip is the best way to go at
this problem, in order to get the best performance?


Dan Efergan
[EMAIL PROTECTED]



___
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] ScrollPane Pain

2006-04-06 Thread Dan Efergan

Hello All,

I've been having a nightmare with the standard ScrollPane Component  
in Flash 8, can't find anything useful online, so thought to try the  
collective brain...


What's happening:
The Content is attached to a Movieclip in the Library.
ScrollPane is not seeming to 'connect' with it's Content.  The  
ScrollPane size is 200x100, and this is shown by it's Border, but the  
content is always shown as the Default size (The default when  
dragging a ScrollPane on: 100x100).
The problem is based around the fact this is all happening inside a  
movie that has a Class attached.  Removing this Class allows the  
ScrollPane to work.


What I know:
The ScrollPane is finding it's content.  Using ScrollPane.content  
properties read out fine.
The ScrollPane + Movie work normally outside of the movieclip, or  
when I remove the Class linkage form that movieclip.


Anyone got any ideas how to make the scrollpane happy? How could a  
Class be interfering with the ScrollPane?


Thanks

Dan Efergan
[EMAIL PROTECTED]



___
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