A Flash Developer Resource Site

Search:

Type: Posts; User: erlenmeyer71

Page 1 of 20 1 2 3 4

Search: Search took 0.37 seconds.

  1. Replies
    2
    Views
    611

    The simple answer is... set the height and...

    The simple answer is...

    set the height and width parameters of your HTML object and embed tags to 100%
  2. Replies
    3
    Views
    750

    That was a good catch, but it didn't make a...

    That was a good catch, but it didn't make a difference. I put name and id tags for object and embed because I can never remember which uses which, but that didn't fix it.

    I've updated the code. ...
  3. Replies
    1
    Views
    616

    It sure would be nice, but I don't think so. ...

    It sure would be nice, but I don't think so. However, it's not hard:



    function formatCurrency(n) {
    n = Math.round(n*100)/100; // round to two decimal places
    nCurr= "$"+n; ...
  4. 1. Depends on how you're serving the web site. ...

    1. Depends on how you're serving the web site. Different servers support different technologies, so that's going to be an important part of your decision. You will need to use some kind of...
  5. Put all the movie names in an array: allMovies...

    Put all the movie names in an array:

    allMovies = new Array();

    allMovies.push("movie1.swf");
    allMovies.push("movie2.swf");
    allMovies.push("movie3.swf");
    ...

    Then choose a random number...
  6. The first two are easy. Just make sure your...

    The first two are easy. Just make sure your textfile is in this format:

    vblName1=value1&vblName2=value2&vblName3=value3...

    Then in flash, this.loadVariables("fileName.txt");

    All the...
  7. Replies
    3
    Views
    750

    Javascript to Flash in Netscape

    This should be very simple, yet I can't get it to work at all.

    I've made myself a little test page here:

    http://vdw.ece.wisc.edu/deleteme.html

    It works great in IE, not in Netscape (I'm...
  8. Replies
    3
    Views
    473

    The code is painfully simple. When published...

    The code is painfully simple.

    When published as a Flash 5 .swf, this works:

    getURL("Resources/Paper.doc","_blank");

    It causes IE to prompt for a download, and everything's fine.

    When...
  9. Replies
    3
    Views
    473

    Flash MX getURL bug?

    I have had a site up for some time, where a flash file has a getURL() action to .doc files, .pdf files, etc. I was compiling it as Flash 5 .swf for maximum compatibility.

    Recently I added some...
  10. Oh, you actually want your movie to grow as the...

    Oh, you actually want your movie to grow as the text grows. Hmm, those parameters are set outside of the flash movie, in the Object/Embed tags in your HTML. So I would think that, if you want to do...
  11. Replies
    2
    Views
    483

    For audio clips there is Sound.duration and...

    For audio clips there is Sound.duration and Sound.position. MX 2004 does not list these properties for the video object. Hmmm. You should try them anyway... who knows, maybe they are undocumented....
  12. Flash MX textfields come with an option to...

    Flash MX textfields come with an option to "autosize".

    So if you have an autosizing textfield inside a movie clip, and that text field grows as you add text to it, the movieclip's _height value...
  13. Replies
    8
    Views
    707

    Oh, I get your question now. Yes, using...

    Oh, I get your question now. Yes, using on(press) on the button is fine, too. The way Flash is going, people don't like to put code on buttons anymore... sometimes they can't remember where they...
  14. Replies
    8
    Views
    707

    Who's telling you the way you "should" do it? ...

    Who's telling you the way you "should" do it?

    This way is perfectly fine. There are other ways to do it if you want your program to be more flexible, like...


    myButton.onPress = createTF;
    ...
  15. Replies
    3
    Views
    422

    The firstFloor movieclip doesn't have to have...

    The firstFloor movieclip doesn't have to have anything but a name.

    However, all the objects you want to attach to it must be "exported" in the library. Go to the library, right-click each object...
  16. Replies
    8
    Views
    707

    It works fine. Try this: myButton.onPress =...

    It works fine.

    Try this:
    myButton.onPress = function() {
    textCount++;
    _root.createTextField("field"+textCount+"_txt", textCount, 50, 25, 300, 75);
    _root["field"+textCount+"_txt"].text =...
  17. Replies
    8
    Views
    707

    myButton.onPress = function() { textCount++; ...

    myButton.onPress = function() {
    textCount++;
    targetMC.createTextField("field"+textCount+"_txt", textCount, 50, 25, 300, 75);
    }

    Every time you push the button, you will create a new text...
  18. Replies
    3
    Views
    422

    Couple things you could do: one, instead of...

    Couple things you could do:

    one, instead of letting each floor be a frame, let each floor be a movieclip, and when going from floor to floor just make the movies visible/invisible. Then you can...
  19. Replies
    1
    Views
    452

    Can't you just use: ...

    Can't you just use:

    destinationMC.loadMovie("pic.jpg");

    ??

    If you're talking about loading text data, which has information on what picture you should load...

    Let's say your text file...
  20. destinationMC.loadVariables("data.txt");

    destinationMC.loadVariables("data.txt");
  21. Replies
    1
    Views
    381

    Sure, you could have two getURLs. Or you can...

    Sure, you could have two getURLs. Or you can have flash loadMovie the new movie. Or, if there's only one movie, you might as well build it into the menu movie, so that it can be loading before...
  22. Replies
    1
    Views
    374

    I'm going to assume this is NOT PHP code, even...

    I'm going to assume this is NOT PHP code, even though your post says it is.

    First question, why are you using a mix of ne and != ?? Get rid of the deprecated operator ne and use != everywhere.
    ...
  23. Replies
    1
    Views
    387

    If your flash movie is playing in a browser, then...

    If your flash movie is playing in a browser, then no. You'll have to send information to some server side script in Perl or ASP or PHP or ColdFusion or whatever.

    If you're running a standalone...
  24. just a name I made up. Substitute the name of...

    just a name I made up. Substitute the name of the movieclip you're loading into.
  25. Replies
    1
    Views
    702

    Sharing Fonts

    Has anyone had trouble sharing fonts? I seem to be doing all the right steps, I have the font* symbol in my list of fonts, yet my bandwidth profiler doesn't show any reduction in the file size...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center