A Flash Developer Resource Site

Search:

Type: Posts; User: Crealive

Search: Search took 0.01 seconds.

  1. Casting objects between ApplicationDomains

    Hi.

    I have a Shell.swf that loads a Game.swf into a seperate ApplicationDomain. Whenever I pass objects between the two Domains I get an error saying it cant cast the object type. Obviously this...
  2. thanks - tried it out, but my character keeps...

    thanks - tried it out, but my character keeps hanging on in memory. Tried doing a trace out on the characters timeline and it keeps tracing messages out. It never gets collected.

    However, I tried...
  3. thanks for the answer :) I am aware that...

    thanks for the answer :)

    I am aware that strong listeners and references to an object will keep it hanging around and not get garbage collected. But in my case its just a character movieclip on an...
  4. Removing MovieClip and Garbage Collection - need confirmation

    Hi all.

    I have some odd behavior while removing a MovieClip.

    I create a MovieClip (character) in an empty project on an empty stage (the movieclip is made up of several other clips for arms,...
  5. Replies
    3
    Views
    1,828

    Hi and thanks for the answers. Sorry for not...

    Hi and thanks for the answers.

    Sorry for not posting any code, but at this point I'm more interested in discussing the layout/structure of the code in more general terms.

    I did a lot more...
  6. Replies
    3
    Views
    1,828

    getDefinitionByName in loaded swf

    Hi.

    I have the following scenarie in a multi-swf game:

    swf A loads an external swf B that loads a number of swf-assets.

    ApplicationDomain is set to ApplicationDomain.currentDomain.

    When I...
  7. Replies
    1
    Views
    1,231

    Okay - might have found the answer - maybe? ...

    Okay - might have found the answer - maybe?

    Since my custom events are being dispatched from an object (EventDispatcher) that is not a displayObject and as such not added to the displayList - the...
  8. Replies
    1
    Views
    1,231

    Listen for events bubbling from loaded Swf

    The setup:
    A swf (my game framework) loads another swf (a game). The game is loaded into a child domain which seems to be the default domain for loaded swfs.

    The framework listens for custom...
  9. Replies
    3
    Views
    815

    okay thanks - I'll give the application domain...

    okay thanks - I'll give the application domain solution a chance. Sounds very much like this is the problem I am facing here.
  10. Replies
    3
    Views
    815

    Singleton scope question!

    Hi all.

    The scenario:
    I have a game framework that loads in a game swf and an GUI swf. Both of these swf files use the same singleton class to manage e.g. sounds.

    The problem.
    The singleton...
  11. Safari problem - printing from browser hides movieclips

    Hi - I have a very odd problem.

    I manage a full-screen flashsite where my customer sometimes need to print the content out on paper. The problem is:

    In Safari (latest version on OSX) when they...
  12. Replies
    1
    Views
    348

    Parameter variable with $ in the name

    Hi,

    I recently took over an AS3 project someone else programmed. It's quite well done and nicely object oriented. However, I have come across something I have not seen before.

    protected...
  13. Replies
    0
    Views
    367

    Flashgame (team) architecture

    Hi.

    In relation to a school project about making flash games I could really use some advice and pointers on some issues.

    The first issue is the fact that we are 6 team members working on the...
  14. Replies
    8
    Views
    396

    Interresting points moagrius. However, people...

    Interresting points moagrius.

    However, people use Flash in so many different ways and with so many different purposes. The new features or classes you dislike are likely loved by others.
    ...
  15. Hi rrrrr_rav. Try making a _global reference...

    Hi rrrrr_rav.

    Try making a _global reference to the array. Then you should be able to use that to access it.

    Otherwise you should post some of your code to clarify things.

    /Crealive
  16. Replies
    8
    Views
    396

    Hi, I agree that drawing graphics dynamically...

    Hi,

    I agree that drawing graphics dynamically inside flash should be limited to simple shapes and that it is much simpler to load an external png instead.

    However, as far as I understood...
  17. Replies
    8
    Views
    396

    What would you use instead and how would you...

    What would you use instead and how would you store your imagefiles. As far as I know you can't do much with bitmaps without the bitmapData class.

    I'm just curious and thought your answer was a...
  18. Problem solved. Today Flash finaly decided to...

    Problem solved.

    Today Flash finaly decided to throw me an error, which (when corrected) solved my problem. I had forgotten a . (dot) in a file reference. Yesterday Flash said nothing about this...
  19. Replies
    8
    Views
    396

    Hi joncom11. I personally would go for fewer...

    Hi joncom11.

    I personally would go for fewer imagefiles with more tiles in them. Maybe a file for each map layer if you have more than one. Then you can simply blit the apropriate tile-images you...
  20. They are not in the same directory. I have...

    They are not in the same directory.

    I have (its a game I'm making).

    mainGame.fla
    classes folder
    characters folder (package)
    enemy.as
    ...
  21. Ahaaa! Thank you dmonkey for your quick reply....

    Ahaaa!

    Thank you dmonkey for your quick reply. Your explanation makes perfect sense. I see that Flash do not know if it is referencing an instance of a class or calling a static method on the...
  22. MovieClip reference not working when publishing to HTML

    Hi,

    I have a strange problem which is driving me nuts. In "_root" I have created a movieClip, which is used to display dynamic graphics as they are generated.

    Most of my code is in classes that...
  23. Variable and instance object with same name gives problems

    Hi Everyone.

    I have been searching around to find a solution to this small but anoying problem. The scenario is as follows.

    Basically I have a fla. file in which I make in instance of a Class....
Results 1 to 23 of 23




Click Here to Expand Forum to Full Width

HTML5 Development Center