[Flashcoders] [SOLVED:] Multiple colors for text inside DataGrid-CellRenderer?

2009-11-04 Thread Roman Blöth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear Glen,


Glen Pike schrieb:
I adapted the example on the following page to show you a quick test:
 
 http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f4a.html
 
 
I changed the drawLayout function to highlight the word renderer in
 red.  You need to import TextFormat and TextField classes too.
  override protected function drawLayout():void {   
textField.width = this.width;
var text:String = textField.text;
var tf:TextFormat = textField.getTextFormat();
var redIdx:int = text.indexOf(renderer);
if (-1 != redIdx) {
tf.color = 0xff;
}
TextField(textField).setTextFormat(tf, redIdx, (redIdx + 8));
super.drawLayout();
}
 Try that...
Well, I'm flabbergasted. It works great and this really is the first
time I have the feeling to get some kind of real control on that whole
list component.


Thanks a 1000 times and best regards,
Roman.
- --

Tracks  Fields GmbH
Winsstraße 57
10405 Berlin
Germany

T:  +49- (0)30- 44 32 33 57
F:  +49- (0)30- 44 32 33 55
www.tracksandfields.com

Registergericht: Amtsgericht Charlottenburg, HRB 113924
Geschäftsführer: Christian Mix-Linzer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJK8UtxAAoJEIy2NMFSBJ3cmVkH/i0EZOolJqxKlAvoQHIqZjZJ
P+qJP5l0hKfU7g/YIe9WD8OH32zhOZCBmvZTEmmgLRHf1GBnBte7UwDyt1i7V262
m2ldMAyh/K0XLEK59ZLMU2jH57/lvN2qXEiQfHYtOjGn+Iz1azx8/wnfI1SGc7Tl
oGnekyrC22dN9an3HN3f/lVSOAKdyIs9BPD1n3eCT42tTBYtwqM4ngitk+ZGx7hx
e8eXI/Yt1dgO4p3vRK1e0umWQ54jRMVHPs7mAxDoJUhscbJ/7FtU7+XKjR3RWPx+
ubN6HC9aNABlFf8s5sr2U79C6ZNPZwAQbPm6h0fMUsJjpVdVXRJ/viwTqIhHJ7c=
=+mti
-END PGP SIGNATURE-
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] [Solved] Aaargh - how to put an image into a fl.controls.List?!

2009-06-30 Thread Roman Blöth

Dear Kenneth, dear list,


Kenneth Kawamoto schrieb:
It should work if you create a MovieClip in the Library and place your 
PNG inside, then use the MovieClip Class name as icon.
In fact this now works! The button within the MovieClip shows up on my 
List. I thank you a thousand times - couldn't have come up with this 
simple solution.
Now I have another problem: The button should be aligned to the right of 
each List row. But there doesn't seem to be any way to accomplish this...

I'll probably have to switch to DataGrid...


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


[Flashcoders] Aaargh - how to put an image into a fl.controls.List?!

2009-06-29 Thread Roman Blöth

Hello folks,


since hours now I'm trying to put an image into my List...

I have built some small AS3-app that reads some data frorm an external 
source and populates the DataProvider for my List. One of the fields of 
each entry is called iconSource and contains the link name of a small 
PNG graphics included in the FLAs library (I used export to Flash of 
course) - like so:
   dp.addItem( { iconSource:btn_download, label:someText, 
src:decodeURIComponent(aArray[0]) } );

I tell the list that iconSource is the iconField to use:
   playList.iconField = iconSource;
I also do not replace the iconFunction. Within my external AS class file 
(where the List and it's DataProvider are created/initialized) I also 
declared the link name of the PNG graphics like public var 
btn_download:BitmapData.


But everything that happens is that - like before I have tried to add 
some graphics to the list - the label-part of my list data is 
displayed, but not the PNG graphics.


Has anyone before desparately tried to achieve this and maybe could tell 
me what I might be missing?!



Any comment welcome,
best regards,
Roman.

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


[Flashcoders] Strange phenomenon: FLV / Flash 7 not showing

2006-11-07 Thread Roman Blöth
Hello flashcoders,


a strange phenomenon happens here on a client's computer: I've built a
TV-set in Flash, playing 6 different FLV videos (Flash version 7). This
all seems to work fine -- in our office. On the client's computer
(several computers have been tested there) the videos just don't show.
The Flash player version is correct (all computers are windows pcs). I
thought it might be some kind of firewall filtering, which isn't the
case. FLV videos as shown on e.g. http://www.spiegel.de are playing fine
on all the client's computers. I've built an exe and shipped this along
with the FLVs to the client, so she can play the whole TV-thing from her
own disk drive -- also then the videos just don't play.

So here my question:

Does anybody know of a reason why some FLVs might not be played using
Flash player 7,0,19,0?


Any idea welcome,
Roman.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] Strange phenomenon: FLV / Flash 7 not showing

2006-11-07 Thread Roman Blöth
Hans Wichman schrieb:
 Hi,
 dumm question probably, but I'l ask it anyway: have you ruled out wrong
 paths ed?
 Does meta info show up, status info etc, or nothing at all? 
Well, wrong paths are ruled out -- the version the client is viewing is
exactly the same as the version I'm using on my office computer. The
Flash player is installed correctly -- all Flash 7 content on the web is
playing fine. The phenomenon on the client's computer is just that
video.start() doesn't do _anything_, and I'm quite clueless now.
I've instructed the client to install a new Flash player version and
will see how that competes, but I don't really believe it will change
anything... -- anyway I will keep you informed and still welcome any idea.


Regards,
Roman.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] Searching for screensaver-maker

2006-11-06 Thread Roman Blöth
Hi folks,


I'm currently looking for a tool for creating Win- (and possibly OS/X-)
Screensavers out of Flash movies.
The important thing here is:

The tool should be able to create a subdirectory-structure with many
files, since this time the Flash movie I shall make must read many
XML-files contained in several subdirectories. This is a must; there's
no option this time for including all the external files into the SWF.

Does anybody out there know of such a tool? I'm just starting to try out
some tools available on the net, but as there are zillions of different
such tools, an answer here in the list might reach me before I have
found such a tool myself.


Any comment welcome,
Roman.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] MD5, escape and ASP.NET-urlEncode

2006-08-14 Thread Roman Blöth
Hello folks,


just wanted to tell you something and ask for something.

Something to tell:


ActionScript function escape escapes . and  , ASP.NET function
urlEncode does not escape . and escapes   as +.

So Strings escaped in ActionSript will NOT resemble strings urlEncoded
in ASP.NET!


I came across this while trying to make highscore- and user-management
for a small flash game where the swf movie has to communicate with ASP.NET.
ASP.NET does NOT offer ActionScripts escape-function, and ActionScript
does NOT offer ASP.NETs urlEncode-function. Keep this in mind
whereever your swf has too deal with ASP.NET! - Or else tell me the
truth, please!


Furthermore I am looking for a MD5-implementation for ActionScript, that
will work properly on special characters. You can give it a try
yourself, when entering a ß oder ä into any of those HTML-/web-based
MD5-generators. Depending on which one you use, you will get two
different result hashes. Needless to say that the usual
MD5-implementation used with actionscript (there oonly seems to be one
version out there) results in a different md5-hash than that used with
ASP.NET.
Again, please tell me, when you know I'm wrong here.


Best regards,
Roman Blöth.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] Font jumping cross platform

2006-04-26 Thread Roman Blöth
Hello there,


Adrian Penn schrieb:
  
 I've also experienced this problem or something very similar. 
  
 I was given a handful of .fla files for a project a while back. All of these 
 files were authored on a Mac. When we opened them on a PC - many of the text 
 fields looked substantially different. The vertical positioning was off a bit 
 as described here but worse still, the leading between characters was 
 different. It looked fine when opening the same file in Flash on a Mac. The 
 leading appeared much tighter on the PC than on the Mac. If we fixed the 
 leading on the PC then it was too spaced-out on the Mac. 
  
 If memory serves, we only saw this problem with one of the fonts used in the 
 project. I think it was Rotis. I do not recall its format. I'm curious to go 
 have a look again based on this thread however.
  
 Not being able to resolve the issue on the PC - we were left with having to 
 do the final compile on a Mac. 
Same same...
Here we face this phenomenon every day - unfortunately normally
designers work on Mac whileas programmers work on PCs.

I assume it has to do with the fonts you use - I believe ATM fonts on a
PC (using ATM - though I thought since w2k you wouldn't need ATM any
more to use ATM fonts) work much better than TTF. And probably
(expensive) high quality fonts also work better than one of those
thousands free TTF fonts out there...


Regards,
Roman.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] MovieClipLoader - Crash in player 7, fine in player 8

2006-04-04 Thread Roman Blöth

Hello folks,


once again flash strikes my mind:

I've made a small test movie to test my ClipLoader-class, which stores 
and handles loading queues using a MovieClipLoader.


To make a stress test I queue 5 larger swf files for loading on button 
press (made another button for testing a stop-function).


When trying it out using flash player 8 everithing works just fine, when 
I try the same using player 7 (as browser plugin, that is), then the 
whole thing crashes.


When using my ClipLoader-class in an actual project, everithing works 
fine when only one file is added to the queue, but even the Flash IDE 
crashes completely when adding several files for loading.


We've been through all of the code and debugging output for two days 
with two programmers now, but we can not find any clue on about what the 
problem is.


Anyone out there ever has made experience like this? 
MovieClipLoader.loadClip crashing flash ide/flash plugin under certain 
conditions?!



Any comment welcome,
regards,
roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] MovieClipLoader - Crash in player 7, fine in player 8

2006-04-04 Thread Roman Blöth

Martin Weiser schrieb:

i got similar problem,

not possible to access MovieClip.getBytes...() methods,
and also affecting progress value of movieClipLoader onProgress event 
.
Maybe show more of your script 

O.k., seems like I have hit a spot. ;)

One addition to the phenomenons we're observing along with lodClip-issues:

At the start of our swf movie we issue manually a 
MovieclipLoader.loadClip(one_image.jpg) (don't know the target etc. 
now) ONCE, and when observing the browser traffic - e.g. using the 
Firefox-Addon LiveHTTPHeaders we see the loading of the jpg TWICE! The 
same is happening with SOME of the swf files that are loaded with my 
ClipLoader-class.


As for the queueing-issue (Ian said queueing could slow things down): I 
am queueing the downloads, so programmatically only one download is in 
progress at a time. The debugging output out methods produce also shows 
that always at most ONE SINGLE download is in progress, nevertheless the 
great modem simulator tool Charles (maybe some ppl. here know it - 
it is much better than LiveHTTPHeaders for observing what's going on 
between browser and the rest of theworld) shows - for some swf's - that 
actually two simultaneous downloads are going on - two simultaneous 
downloads of the same file!


Nevertheless we know that there is only one single instance of my 
ClipLoader-class with only one single instance of a MovieClipLoader 
running, and this MovieClipLoader only gets it's next loadClip-call 
after onLoadInit has been called, that is, after the loading has fully 
finished. Debugging output shows that this seems to work, though 
LiveHTTPHeaders and Charles tell another story.


Please note that this double loading is not an issue of my 
ClipLoader-class, since it also happens when manually issuing a 
MovieClipLoader.loadClip(one_image.jpg), thus not using my class.


The bottom line so far is that there seems to be an issue with 
MovieClipLoader and Flash player 7 and 8 - in player 8 it seems to work 
better in some way...



I'll be keeping you informed on this,
roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] MovieClipLoader - Crash in player 7, fine in player 8

2006-04-04 Thread Roman Blöth

O.k., we've some sort of cure for strange loadClip-behaviors:

Between onLoadInit and the next call to loadClip we set a delay of about 
500ms (using a setInterval which then invoces the next loadClip) and now 
we have no crashes any more.


That is: When (pre-) loading several external files in queue put a delay 
of about 500ms between onLoadInit and loadClip to prevent flash from 
crashing.



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] MovieClipLoader - Warning / onLoadComplete vs. onLoadInit

2006-04-04 Thread Roman Blöth

Hello again,


some final words about this thread:

One part of our problems we had with the MovieClipLoader has been our 
handling of events. So after having tested our thing some billion times 
and burning several brain cells I want to issue a warning:


Beware of onLoadComplete! If possible, put your code into a 
onLoadInit-handler instead of a onLoadComplete-handler. For example 
if you handle a loading queue and invoke the loadClip for the next swf 
file in the queue, then you could end up in a mess if you loadClip in a 
onLoadComplete-handler, since nevertheless at least sometimes the 
onLoadInit will still happen. The problem is hard to tell here, since 
it must be a special situation where problems occur. But to prevent you 
from hunting hard to find bugs please always prefer onLoadInit over 
onLoadComplete!


This is the more important as the name of the onLoadComplete-handler 
makes you easily forget that _after_ the complete loading there still 
is a init about to happen - so the naming is sort of unlucky...



Best regards and thanks for your replies,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-22 Thread Roman Blöth

Jose Maria Barros schrieb:

Hello Roman.

I tried this in my swf B:

this._parent.animBotoes_mc.gotoAndStop(link);

but...it doesnt work...
so is animBotoes_mc the parent? Then you can't write it like above, 
since animBotoes_mc does not contain animBotoes_mc, I assume...



Regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] once again: How to interrupt MovieClipLoader.loadClip()

2006-03-21 Thread Roman Blöth

Roman Blöth schrieb:
[..] In any case the MovieClipLoader finishes the loading progress 
currently running before handling the empty or the new download, no 
matter when I try to interrupt the download.


Man, there must be some way to interrupt a running loadClip-progress!?
Finally I found the information needed where I didn't expect it: On 
Adobe's website!


The really working way for interrupting a running 
MovieClipLoader.load(theFile.swf, mcName)-progress is by invoking 
MovieClipLoader.unloadClip(mcName) AND not to test it locally within 
your file system, but remotely via some http-server.



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---


___
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] While and Var

2006-03-21 Thread Roman Blöth

Laurent CUCHET schrieb:

1) I  create dynamic textfield with while option
I try to create dynamic border and content without success

/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
  

Call

   dtd = _root.createTextField(dtd, dt, 0, spa1, 100, 15);

before calling

dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}
  

Since else dtd IS NOT your textfield, but simply a string.


Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] AS Files question

2006-03-21 Thread Roman Blöth

Patrick Jean schrieb:

Greetings. I'm pretty new to the external AS files concept and I have a
quick question.

 


I made a first external class, let's call it Class A

 


I also created a second external class. Let's call it Class B

 


If I want to properly reference Class B from within the Class A  AS file ,
what is the best way to do it ?

 


Do I just have to import class B before class A within my FLA ? That sounds
not very efficient. So I assume there's a way to make classe B accessible by
class A from within the AS file.
  
I'm not quite sure whether I got your issue right, but I can tell you 
that - as long as the classes and FLAs reside in the _same_ directory, 
they automatically know each other.


But since you might place your AS files in a separate directory - or 
even in a separate directory structure (when using packages) - you 
have to tell Flash (and SEPY, MTASC etc.) the path where your directory 
structure begins...



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] AS Files question

2006-03-21 Thread Roman Blöth

Patrick Jean schrieb:
[..]

So in my 2nd Class , I put :

-
import SequencerOBJ;

class ComOBJ extends LoadVars {

private var myTest:SequencerOBJ=new SequencerOBJ(It works);

public function ComOBJ() {

}   
}
-

Finally, in my FLA , I have :

import ComOBJ;
_global.myComOBJ = new ComOBJ();


And when I compile I get an error saying :

**Error** C:\!PROJECTS\Resweb\ComOBJ.as: 
Line 6: A class's instance variables may only be initialized to compile-time

constant expressions.
private var myTest:SequencerOBJ=new SequencerOBJ(It works);

-

Did I screw up on the syntax or something ?
Yeah, you should - besides your issue - NEVER rely on values passed 
during variable declaration! These values sometimes are not stored 
inside the variables...


To make your code work (I hope) you'd better write your class as follows:

-
import SequencerOBJ;

class ComOBJ extends LoadVars {

private var myTest:SequencerOBJ=null;

public function ComOBJ() {
myTest = new SequencerOBJ(It works);
}   
}
-

This should do the job.


Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Roman Blöth

Jose Maria Barros schrieb:

Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called myvar.

Im wrong?
Anyway this is bad style: If _root/_level0 changes, then your code will 
cease working as expected. You can evade this situation by simply 
referencing the other way round:


In the timeline of clipB write:

   this._parent.myvar


Regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] once again: How to interrupt MovieClipLoader.loadClip()

2006-03-20 Thread Roman Blöth

Hello folks,


I know this matter rises nearly as often as the sun, and I've read but 
not kept all these postings here and thought I got it, but now I'm 
giving it a try and it doesn't seem to work.


I have a mother-mc which should preload several external swf files 
while the user isn't doing something special. But when the user klicks 
somewhere special, the possibly running download should interrupt (think 
of about 50% MODEM users in germany and larger files to preload) and 
instead immediately start loading another external swf.


Most postings on this matter recommend simply calling

   MovieClipLoader.loadClip();

I have tried this, and even tried

   MovieClipLoader.loadClip(MoreImportant.swf, targetMc);

but to no use:

In any case the MovieClipLoader finishes the loading progress currently 
running before handling the empty or the new download, no matter when 
I try to interrupt the download.


Man, there must be some way to interrupt a running loadClip-progress!?


Any working method highly appreciated!
Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] OT: Design patterns

2006-02-23 Thread Roman Blöth

Anggie Bratadinata schrieb:
Stephane, that's a good article. 

[..]
Take a look at this interesting interview of Erich Gamma about Design 
Patters (How to use):

http://blog.itpub.net/post/1087/48817


And - if not already mentioned here - think about buying the book Head 
First - Design Patterns by O'Reilly - definitely THE book for learning 
and fully understanding Design Patterns; there's nothing like this one 
out there (except maybe the other Head First-books). Get a free sample 
chapter (PDF) at ora.com.



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] XML load hang...

2006-02-10 Thread Roman Blöth

David Cohn schrieb:

Hey all,

It seems that sometimes when I issue a load on an XML object, the 
onLoad function doesn't get called until something or other happens 
in Flash e.g. moving the mouse!


Anyone see this behavior?  And/or know why? 
This must be some side effect you're observing. Here it does everithing 
it should without something other happening...




Regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

___
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] XML-Object: How to detect server-timeout?!

2006-02-05 Thread Roman Blöth

Hello folks,


a question comes into my mind while working with XML-Objects: How do you 
detect when the server is not reachable? Here in my working-environment 
when I simply detach the testing server from the ethernet, my 
sendAndLoad() starts and then nothing happens any more - the receiving 
XML-handler waits to see whether the world will some day come to an 
end... ...and I don't want my users have to do the same thing.


Do you have found any way to find out whether the server has gone other 
than by defining your own interval - say 30 secs - after which the code 
itself decides it's of no use to wait any longer?



Any comment welcome,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] clearing variables from memory after use...

2006-02-02 Thread Roman Blöth

j.c.wichman schrieb:

Hi Roman,
You describe my_var =null as being useless, but this should be enough for
the garbage collector to come along and reclaim an object?
With respect to the static issue, what do you mean with 'static instances' ?
Could u provide an example of such an object with isn't reclaimed?
Sorry, not at hand. I remember my first use of static values (NOT 
instances, of course - excuse me if I said so, that's dumb of course) 
with a gaming app, where I made a sokoban-style game within the whole 
thing. This sokoban game was an instance of my sokoban-class, using 
_some_ static values.
After the sokoban was over, the game mc has been removed 
(removeMovieClip) and loaded anew when the player wanted to play another 
round. The times after the first run gave me the headaches, until I 
stopped using _any_ static value in my class.


Another weird example out of my actual project:

my_loader is an instance of my preloading-manager-class, the array 
created_clips stores references to the successfully loaded mcs:


At some place - i.e. when stopping the game represented by the mc that 
has been loaded by my my_loader - the game should be removed from 
memory (for performance reasons):


   my_loader.created_clips[names.game_1].undloadMovie();
   my_loader.created_clips[names.game_1].removeMovieClip();
   _root.host.debug(GameHost.gameStop( + movie_name + ):
   my_loader.created_clips[+names.game_1+] == 
+my_loader.created_clips[names.game_1]);

   _root.host.debug(GameHost.gameStop( + movie_name + ):
   typeof(my_loader.created_clips[+names.game_1+]) ==
   +typeof(my_loader.created_clips[names.game_1]));

The debug-call (simply directs text to a floating text field for 
debugging) yields the following:


GameHost.gameStop(IcefallClimbing): 
my_loader.created_clips[IcefallClimbing] == 
_level0.gamecontainer.IcefallClimbing
GameHost.gameStop(IcefallClimbing): 
typeof(my_loader.created_clips[IcefallClimbing]) == movieclip



So you really should digest this: The loaded mc is first unloaded, then 
removed, and still it sits there in memory as a moveclip! I'm seeing 
ghosts


When I - after unloding and removing -

   delete my_loader.created_clips[names.game_1];

then of course my debug states it is null, but I'm not really sure, 
whether it really is null, or whether there simply isn't any variable 
left that could point to my unloaded and then removed movieclip still 
residing in memory...


Unfortunately I'm not really wondering whether it's a bug or a feature - 
it's special, it's Flash.



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] clearing variables from memory after use...

2006-02-02 Thread Roman Blöth

David Rorex schrieb:

my_var = null; and delete my_var; should do exactly the same thing...delete
doesn't actually delete the object, only the reference to the object. it
doesn't get removed from memory until later (when the GC feels like it)

Well, we observe different behaviour here:

After unloading and removing a dynamically loaded mc, the variables used 
within that mc are all set to null - the debugger still shows they are 
there, and they are not null.
Then we changed the code to _delete_ all variables onUnload, and now the 
variables get cleared. I must add that the corresponding variables used 
by the mc reside at _global, but this shouldn't make any difference, 
should it?



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] clearing variables from memory after use...

2006-02-01 Thread Roman Blöth

dls schrieb:

Might be counting angels on a pin head here, but:

if I set alot ( think hundreds) of _global variables  such as:
_global.state1 = Wisconsin;

I assume they slow the performance of my player.
Is there a way to clear them after use?
(or more specifically, the ones I don't need -- I could figure out how 
to specify that in the code) 
Oh my, this really is a matter in Flash... Since we have often 
experienced variable's values not being cleared after use, we do the 
following:


my_var = null;   // This first step probably is useless, but ALWAYS use 
DELETE!

delete my_var;

If the value contained within the variable is a movieclip, then make 
sure that this mc has an onUnload-handler that does the above with all 
variables and to avoid instances from floating in memory after having 
deleted, unloaded and removed them, if possible don't use static values!


I have made the experience that static instances stay in memory after 
there is no reference to them left, since I set them all to null and 
then deleted them. Then, when I re-create an instance of such static 
stuff, it isn't created anew, but Flash uses the old piece that rests in 
memory.


Maybe it's just that I don't really, really understand the concept of 
static, but I know it can lead to unpredictable and hard-to-track errors.



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] nested MC not firing event

2006-01-26 Thread Roman Blöth

Martin Wood schrieb:

So you have something like this :

MC_A --¬(uses mouse handlers)
MC_B(also uses mouse handlers)

Where A is B's parent but A has some handlers defined and none of the 
handlers in B will work.


The way around it is to introduce a common parent to A and B which has 
no mouse handling, its just a container. So A is no longer the parent 
of B


CONTAINER --¬
 MC_A (contains some mouse handlers)
 MC_B (contains other mouse handlers)

then both A and B's handlers will work. 
Yes, that unfortunately is the only way to go - Director btw does this 
much better: With Lingo you can pass every event, so it reaches all 
objects that want to receive them...

But one more comment on the method above:

Assume you have a onMouseEnter/onMouseLeave method on a background mc 
within your container mc, and then place button mcs above this 
background mc which want to receive on release events, then when the 
mouse pointer hovers over such a button mc, the background mc will 
receive a onMouseLeave-event, even though in fact the pointer still is 
within the background area...



Regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---


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


Re: [Flashcoders] nested MC not firing event

2006-01-26 Thread Roman Blöth

Kent Humphrey schrieb:


On 26 Jan 2006, at 11:01, Roman Blöth wrote:

Yes, that unfortunately is the only way to go - Director btw does 
this much better: With Lingo you can pass every event, so it reaches 
all objects that want to receive them...


I'm a Lingo refugee, feel my pain...

;) - aren't most of Flashcoders' participants poor Lingo refugees?!


Assume you have a onMouseEnter/onMouseLeave method on a background mc 
within your container mc, and then place button mcs above this 
background mc which want to receive on release events, then when the 
mouse pointer hovers over such a button mc, the background mc will 
receive a onMouseLeave-event, even though in fact the pointer still 
is within the background area...

But one more comment on the method above:

Which is what I just discovered with my test. So what is the solution? 
Surely thing kind of thing is overcome every time someone codes a 
simple dropdown kinda thing?
g - well, in my case I switched to a onEnterFrame-method checking the 
_mousex and _mousey relative to the mc itself (i.e. the background-mc) 
and only when the mouse is outside the mc's coordinates I let Flash do 
what else would be in a onMouseLeave-method. Not the smartest way, 
maybe, but it works as intended.



Best regards,
Roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---


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


[Flashcoders] MX 2004 and keyboard shortcuts

2006-01-18 Thread Roman Blöth

Hey there,


has someone ever managed to change the keyboard shortcuts for Flash's 
AS-editor's copy  paste from ctrl-c / ctrl-v to ctrl-ins / shift ins?


The menu item Edit - Keyboard Shortcuts lets me change these settings 
explicitly, if I switch to my own settings (cannot change these for the 
Macromedia default - set), but it won't work as expected:


ctrl-c/-v still remains functional, though I disabled this, but 
ctrl-/shift-ins doesn't work at all. Restart of Flash doesn't make any 
difference...


What is it that Flash and Director won't let Windows-users use these 
left-handed(*) copy  paste shortcuts?



Any hint welcome,
Roman.


(*) - at least for me as a left handed man the ins-versions work much faster

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] MX 2004 and keyboard shortcuts

2006-01-18 Thread Roman Blöth

Steven Sacks schrieb:

Because they're system level not application level.
Well, I always thought shift-/ctrl-ins IS system level under windows. At 
least it works in any of my programs except macromedia
So it more seems like this not-functioning is due to the application, 
not the system?!



regards,
roman.

--

---
gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] class conflicts

2006-01-06 Thread Roman Blöth

PR Durand schrieb:

Hi List
Nobody answered me yesterday but I need to konw what happens please...
When I generate my movie, I sometimes get a class name conflict error... 
but there are 3 problems in this error:
- if I wait 2 or 3 minutes wihtout using flash before compiling, I don't 
have this error anymore and my project works perfectly... so it doesn't 
seem to come from my coding
So I assume you store your class files (*.as) on another machine, and 
the time settings differ some minutes, so Flash has to wait until the 
time difference has passed. To prevent this problem, it's best to 
snychronize the time on both machines using some public ntp server. The 
other workaround is to install the ASO Commands available via the 
Macromedia (Adobe?) Flash-Website, and then before you compile your 
movie you simply invoce Commands - Clear ASO cache and then compile.


We had the same phenomenon here.


Regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Movie Clip Loaded or not

2005-12-22 Thread Roman Blöth

Sumeet Kumar schrieb:

Hi All

I m using loadMovie Command to load a image in an empty Movieclip. but
how to check whether the image is loaded or not.

i.e
mc.loadMovie (image.jpg)
id = setInterval(fnCheckUploading,1)

fnCheckUploading =function () {
   if (mc._width2){
  clearInterval (id)
  }
}


Now in my case the width of the image can be even 1 pixel.
So any one please guide me how to put a check.
Well, this one is quite simple: Make a movie clip which will hold the 
image, add several frames to it, so that the _totalframes  1, and then 
load the image, using the same name for the mc it already has, e.g. 
create an mc with, say, 5 frames, then do a


imageholder_mc.loadMovie(your_image.jpg);

To the 5-frames-mc you can then add the folloging AS:

onClipEvent(load)
{
if (this._totalframes == 1)
{
...
}
}

since as soon the image has been loaded the mc will have 1 frame only.



Regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Crossdomain data exchange

2005-12-16 Thread Roman Blöth

Chris Hill schrieb:
I'd say your best bet is to use Charles to debug the interaction to make 
sure that the domains that you're calling are doing what you expect:


Charles:
http://www.xk72.com/charles/index.php

Tutorial (shameless self-plug)
http://ubergeek.tv/article.php?pid=92

Record the session, and you can usually tell where things go 
pear-shaped. Also, I'm not sure that you can (or should) use * in a 
crossdomain.xml. And there is no issue with using non-www domains.


Thanks for the hints. As so often the user is the cause: The 
crossdomain.xml was stored in the wrong directory - had been in the 
wrong directory, and we didn't recognize it...


And yes, you can use * in this file - simply opening data access to 
all SWFs out there...


Best regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problems with XML

2005-12-16 Thread Roman Blöth

Jose Maria Barros schrieb:

Im having some problems loading an XML file into flash. The client
inserts in the databse some elements and then an ASP page creates the
xml file and flash reads it.

[..]

Here is the code that i use in flash:

//XML


ementa_xml = new XML();
_root.myEmenta = new Array();
ementa_xml.load(ementa2.xml);
ementa_xml.onLoad = startEmenta;
ementa_xml.ignoreWhite = true;
_root.main11.ementa_txt = ;
Here is a problem: You define the XML.onLoad-action AFTER loading the 
XML. In any way you must define


ementa_xml.onLoad = startEmenta;

before you call

ementa_xml.load(ementa2.xml);



Regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Crossdomain data exchange

2005-12-15 Thread Roman Blöth

Hello flashcoders,


this thing is driving me mad...

My swf (published for flash player 7 under Flash MX) just can't load 
data from another domain.


In our intranet the computers all have fully qualified domain names.
On main.ourweb.net the swf is running (embedded in a HTML page, of 
course). When calling the action I'm trying to implement, the swf sends 
data to another.ourweb.net via a loadVars-object, using a XML object 
as receiver of the data sent back - it is XML, but that's not the point 
- I'm observing the onLoad AND the onData - the received data is always 
undefined.


The crossdomain.xml allows access from * on the another.ourweb.net 
server (that computer runs an IIS, main.ourweb.net runs Apache) - I even 
placed the same crossdomain.xml on main.ourweb.net...


When directing the web browser to the address the loadVars is sending 
it's data to, I get proper XML. When running the swf in my browser, all 
I get is undefined...


Somewhere I've read a notice from a flash user, stating that Flash would 
not be able to receive data from a domain name not starting with www, 
though I don't think this really is true, since the examples given by 
macromedia also use (cross-)domains not starting with www...


Anyone observed such a problem before? Any idea on how to approach this 
phenomenon? I'm fumbling with this for 3 days now, but all I get is 
undefined... So every hint will be very welcome.



Best regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] POST form data and receive XML?

2005-12-14 Thread Roman Blöth

Dear Mike,

[EMAIL PROTECTED] schrieb:
Yes you can post values using loadVars and recieve an xml string back in 
return.

I am doing so now using php to output back xml.

[..]

var newLoad = new LoadVars();
newLoad.sendAndLoad(whatever.php, myXml);


Thanks a load! You saved me a lot of try-and-error.


Best regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


Re: [Flashcoders] Firefox flash plugin problem?

2005-12-01 Thread Roman Blöth

Van De Velde Hans schrieb:
[..]

FYI:
Authored in Flash 8 with ActionScript 2, published to Flash 7.
and looking at it with flash plugin 8 on Windows XP Pro with Firefox 1.5.
Sorry, no help from me, but I can support the statement that there 
indeed are problems with Flash player 8 and Firefox! We recently had a 
Movie with simple gotoAndStop()-commands which worked fine when testing 
within Flash, but which would cease working when used on the web within 
a HTML page... With Flash player 7 it worked fine though...



Best regards,
Roman.
--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LoadVars + sendAndLoad + PERL + FireFox = Problem

2005-11-15 Thread Roman Blöth

Philip Isaacs schrieb:
I've seen this posted on a number of websites, but not many useful 
solutions.


I built this nifty application in Flash that reads data from an Oracle 
database via
a Perl cgi script and loads this info back into Flash. The only 
problem is that I use a Mac
and everything works fine, but I was ask to test it on Windows and it 
doesn't work

with FireFox.

Has anyone ever encountered a problem with LoadVars using FireFox or 
Mozilla? 

Dear Philip,


we use this (LoadVars/SendAndLoad) quite often in our Flash-apps - and 
we all use FF, and it works fine. I didn't know there are problems - 
seems to me more like an encoding problem?!



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


Re: [Flashcoders] how to access mcs dinamically

2005-10-28 Thread Roman Blöth
Jorge Rego wrote:

 Hi list,

 I have some MCs named mc1, mc2, mc3 ...
 I'm trying to access them like this:
 mc[number].someProperty ... but no luck!

 How can this be done!?

just do it like this:

[mc_+number].someProperty - when referencing mc's by name you have to
put it in square brackets...


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


[Flashcoders] gotoAnd* stopped working today?!?!?!?!?!?

2005-10-26 Thread Roman Blöth
Hello there,


today something very, very strange happened with my flash project.

What Flash should do is no big deal: In the first frame, I have this code:

if (this == _root)
{
trace(starting solo);
_root.collapse_values.sound_atmo.start(0, 999);
initialize();
is_initialized = true;
this.gotoAndPlay(pregame);
}


This - of course - worked the day through. Now Flash seems not to handle
the gotoAndPlay any more:

The traces (one seen here and one inside the initialize-function)
also work, but the whole thing rests on frame 1 forever.

Now for the very weird part:

When I debug the movie, it works! So I can't debug this
misbehaviour, since in debug mode everything works fine! But as soon as
I start the movie - be it within Flash or in Firefox or IE - it stays on
frame 1 forever! When I add a

this.onEnterFrame = function() {
trace(_currentframe = +_currentframe);
}

then I get an endless output of _currentframe = 1...


Someone any ideas on this?!?!

Any comment very welcome!!!


regards,
roman.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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