[Flashcoders] [AS3] TextField Bug: Text outside of the TF

2008-09-26 Thread Benicio del Toro
hi,

I ve'got an input TextField. What I want to do is to reset the TF content
and put some prompt text inside, which I set using AS (e.g. 'your email'
prompt).

The problem:
If before resetting the TF, the text in it is longer than the TF width,
Flash doesn't put the prompt text where it is supposed to (left-aligned
inside the textfield), but further to the left outside of the TF. Actually
the offset is more or less equal to the diference between the previous text
length and the TF width.

In my real project the misplaced text is visible right away, and when I
tried to recreate the problem in a test .fla, it becomes visible after
resizing the test player window.
The text returns into the right place after clicking on the textfield (and
no, setting focus progammaticaly does not help).

Have you ever encountered such problem and know any solution?

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


Re: [Flashcoders] CS3: "Test Movie" vs. published swf (or, how to update test player?)

2008-07-20 Thread Benicio del Toro
Just one qiuick thing.
the only way to update the test player in Flash that I found is installing
latest Flash update. It helped in my case. Replacing files in Flash's
players directory doesn't affect the test player.

best
konrad

2008/7/21, peter ginsberg <[EMAIL PROTECTED]>:
>
> This isn't precisely related to AS3, but it's definitely something in my
> code in particular causing this issue.  I'm working on an application (a
> game) that contains some pretty complicated AS3 code.  It's a CS3 project,
> with a main .fla file and several sub .flas with their own classes.  I
> don't
> think the details are too important to my question, at least not right now.
>
> Here's what happened:
> -Publish the FLA into a SWF, open swf in standalone player or browser --
> works fine, good frame rate, etc.
> -Built the FLA using "Test Movie", the swf is extremely slow to load, frame
> rate is terrible, and the application eventually crashes and brings flash
> CS3 down with it.
>
> I tried another system I had CS3 installed on and got a similar effect,
> only
> this time the game wouldn't even start.  It would choke on one of the
> loaded
> swfs.  On this system as well, hitting publish resulted in a perfectly
> swell
> working swf.
>
> I've noticed some differences in the past, but this is pretty over the top.
>
> My best theory so far is that this is a version problem.  On the first
> computer (winXP), I noticed the version of Flash Player installed as a
> standalone and browser plugin was 9,0,124,0 BUT the version in CS3 Test
> Movie was 9.0.45.0.  On the second computer (Vista64), also 9,0,124,0 in
> the
> browser, but the version CS3 Test Movie was 9.0.115.0.
>
> Operating on this theory, I grabbed the debug players from:
> http://www.adobe.com/support/flashplayer/downloads.html then removed flash
> player using the uninstall utility.  I installed the new debug players
> (including copying from the Debug folder of the download into my
> \Adobe\Adobe Flash CS3\Players folder.  Rebooted.  I tried this process
> several times, but:
> trace(flash.system.Capabilities.version);
> Continues to report "WIN 9,0,115,0" as the version when I test movie.
>
> So, my questions:
> 1. How do I really update the player flash CS3 uses with test movie?
> 2. Is there anything else different about the player used in test movie
> that
> I should be considering when figuring out the problem here?
> 3. Assuming I have done something in my code that caused a bug which was
> fixed between flash player microversions, does anyone have any ideas where
> to start looking to pinpoint exactly what the root cause is?
>
> Apologies for the length of my question, I'm trying to anticipate what
> people will want to know.  Thanks in advance.
>
> _peter
> ___
> 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] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Benicio del Toro
Thanks for the tips.
I tried it on two different machines and after restart of both Flash and the
computer.
I also did check the autodeclare thing.

What's more I did manage to narow the problem to one line of recently
modified code and still don't get it.

I've got an array containing subtitle data (:
subtitles:Aray = [
new SubtitleAction ("bbb", 3, 3)
, new SubtitleAction ("bbb", 8, 3)
, new SubtitleAction ("bbb", 15, 3)
, new SubtitleAction ("bbb", 21.5, 3)
, new SubtitleAction ("bbb", 24, 3)
etc.
]

where SubtitleAction is simply a datatype class with following constructor:

public function SubtitleAction (text:String, triggerTime:Number ,
durationTime:Number)
{
super (TYPE_SUBTITLE);
this.text = text;
this.triggerTime = Math.floor(triggerTime);
this.durationTime = durationTime;
}

It does nothing else except being used by another part of application (which
manages display of subtitles).
SubtitleAction extends another class: ActionEvent but it makes use of only
one super's variable: 'type', which is set to constant: TYPE_SUBTITLE. The
problem starts when I try to set triggerTime not to a round number but to
21.5 for example like in the fourth line. To make sure that it's nothing
that would cause problem anywhere further I added Math.round () to round the
value in the constructor BUT it still adding .5 to 21messes up the whole
app. No compiler or regular runtime errors, just a bunch of 1065 Errors
begining with "Variable (my DocumentClass name ) is not defined".

I can live with round numbers of seconds to adjust the subtitles, but I
can't without understanding what's happening here. :-)

Best,
Konrad



2008/7/18 Fabio Pinatti <[EMAIL PROTECTED]>:

> On Fri, Jul 18, 2008 at 5:29 PM, Benicio del Toro <
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I'm working on a quite large AS3 project in Flash and I'm closing to the
> > end
> > of it but suddenly my main file stopped compiling properly. There are no
> > compilers errors, but the application doesn't seem to start, and I get
> tons
> > of 1065:  'Variable xx is not defined' errors. I guess it lists most
> of
> > my custom classes (there are probably around 50 different classes in the
> > project, excluding simple indentifiers for the library assets.
> >
> > It all happened when I was editing some very non critical parts of the
> code
> > (adjusting timings of movie subtitles), but at some point I picked up my
> > phone and may have clicked on something unconsciously by mistake.  :-(
> >
> > I started looking into code, but honestly I don't know what may have
> caused
> > it. Is there any obvious reason, that I should check in the first place?
> >
> > Please help, I spent last 1,5 month writing the damn thing and it should
> > run
> > on public on Monday...
> >
> > Best regards,
> > Konrad
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> Maybe you've marked off the "Automatically Declare Stage Instances", did
> you
> try see that?
>
> Best
>
> --
> Fábio Pinatti
> :: web.developer
>  www.pinatti.com.br
> :: 19. 9184.3745 / 3342.1130
> ___
> 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] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Benicio del Toro
Hi,

I'm working on a quite large AS3 project in Flash and I'm closing to the end
of it but suddenly my main file stopped compiling properly. There are no
compilers errors, but the application doesn't seem to start, and I get tons
of 1065:  'Variable xx is not defined' errors. I guess it lists most of
my custom classes (there are probably around 50 different classes in the
project, excluding simple indentifiers for the library assets.

It all happened when I was editing some very non critical parts of the code
(adjusting timings of movie subtitles), but at some point I picked up my
phone and may have clicked on something unconsciously by mistake.  :-(

I started looking into code, but honestly I don't know what may have caused
it. Is there any obvious reason, that I should check in the first place?

Please help, I spent last 1,5 month writing the damn thing and it should run
on public on Monday...

Best regards,
Konrad
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Where to upgrade the Flash IDE test player?

2008-07-08 Thread Benicio del Toro
Hi,

I've got FP 9.0.45.0 installed now that is used by Flash IDE when testing.
I need to upgrade it, but I can't locate the test player on my disk.
(I've got latest versions of flash players in IE and FF).



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