A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: Desparate-MANY hours wasted

  1. #1
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406

    Desparate-MANY hours wasted

    Please help me somebody. I have a huge problem & running out of time.

    I have a main movie containing a MC which reads images & text from an external source. The i have a button (more info) which pops up a dragable window MC - which also reads text from an external file. Now these are my problems:

    1. The main MC which contains the rest needs to scroll - i have tried a scrollpane but can't get it to work. I need to know how to scroll the whole clip with 2 buttons so when you scroll of them the MC moves either left or right.

    2.The text in the main MC somehow isn't reading & can't get it to work.

    3. when i click the dragable text button (more info) the windows pops up but 2 problems:
    a. the window is almost out of the window so you can't get to the drag button.
    b. when the window opens the button disappears??

    I know it's asking a lot but could somebody PLEASE look at my files attached.

    cheers,
    A.
    Attached Files Attached Files
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Didn't you get my last e-mail?

  3. #3
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406
    Must have been after I left work already. This problem is driving me nuts...don't know what to do anymore!!! Baseball bat?
    I just get problem after problem. If you wanna email me: anthony@inframince.net
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Here ya go. I used one of my components. Hope you can go from here. Will charge you later
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Junior Member
    Join Date
    Jun 2001
    Posts
    17
    For the dragable use the following to position your movie:
    _root.newdragtext._x = 500;
    _root.newdragtext._y = 500;

    For scrolling of main screen: position your movie same way as above and simply change position-values on button-click...

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well my last e-mail questioned the fact that you might not have the latest test & standalone players, and that would prevent the scrollpane from working properly when testing it locally. Assuming you had the latest browser plugin players and if you were to test your file online, then you shouldn't have that problem. But the only way to test it is to upload your file and test it through a browser.

    Regarding your present problems...

    Text:
    I get it working by simply renaming all your variables in the Var box of the textfields, adding _level0 to each one of them...

    _level0.tp01
    _level0.tp02

    Etc...

    Note that you have a typo (that should be corrected!) in your titles.txt -> &titlep02=battyboy... instead of &tp02=battyboy

    Drag:

    Use this script instead...
    code:

    on (release) {
    _root.attachMovie("dragtext", "newdragtext", 1);
    _root.newdragtext._x = 275;
    _root.newdragtext._y = 300;
    }
    /*
    on (release) {
    _x = 500; _y = 500;
    }*/



    Were there other problems?

  7. #7
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You have given textfields and var field the same name. ONLY ONE FIELD. It's very bad habbit to fill out both fields even oldnewbie says that different names is possible. In flash mx use the textfield name and avoid loadVariables.
    - The right of the People to create Flash movies shall not be infringed. -

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    When using loadVariables, just don't give instance names to the textfields, but set a variable in the Var box, the same found in your text file... Noticed you had other typos in there as well.
    Since you're loading the variables on _level0 (loadVariablesNum), then you have to reference your variables to the _root level and that's why I added _level0 to the variables' names. This would work fine even if the movie was loaded in another main movie.

  9. #9
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Regarding your last question:

    put an empty movieclip on stage where you want your textfield and give the mc a name like "emptyClip". In your button put this script:

    on (release) {
    _root.emptyClip.attachMovie("dragtext", "newdragtext", 1);
    }
    that works or do what others suggested.
    Last edited by cancerinform; 09-06-2003 at 10:43 AM.
    - The right of the People to create Flash movies shall not be infringed. -

  10. #10
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406
    GUYS!!! you are all absolutely freaking brilliant & now I feel like a total loser not knowing any of thif stuff.
    Cancerinform: I can see that the movie scroller works, but I can't see where u've put the coding for that.
    newoldbie: for the dragable - that's exactly what I wanted it to do!!!
    thanks again guys!!!
    A.

    ps:does level0 mean that it's reading from the main stage or what is that?
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

  11. #11
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406
    instead of using loadVariables should I rather use something like this?

    loadVarsText = new loadVars();
    loadVarsText.load("text.txt");

    };
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

  12. #12
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Click on the scrollbar, since it is a component. The component automatically evaluates the size of the movieclip to scroll. You can set it to verical or horizontal and you can also set a mask, which I did not do. Read the instructions in the component definition. If you want to change the appearance go to the component skins.
    - The right of the People to create Flash movies shall not be infringed. -

  13. #13
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406
    cancerinform:

    I just can't figure out that scrollbar. When I dragone onto the stage it just doesn't have all the option yours has - only: target text field & horizontal. But I see yours is a MCScrollbar - why can't i find one? and where do I find the component definitions? Sorry but i am not very familiar with MX....or flash in general.

    thx,
    A
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

  14. #14
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Here is the scrollbar alone. Open the library, click on MCscrollbar icon so you can see the menu. Then click on component definition, description. To see the menu for the component, click on the component on stage and look into the property inspector. Fill out the fields which you need. Play around with a simple movieclip and change parameters. You can also put a mask on stage and name it. Enter the name in the property inspector. Then you will learn.
    - The right of the People to create Flash movies shall not be infringed. -

  15. #15
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406
    Thanks-you have been a great help. I am trying to learn as much as I can but almost feels like i know too little too start, but your help (and others) i have this nearly sorted...thanks again!
    take care,
    A.
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

  16. #16
    serial loser Progenitor's Avatar
    Join Date
    Oct 2000
    Location
    Ireland...for now!
    Posts
    406
    CANCERINFORM: Just to let you know i figured it out. I was making a very stupid mistake: I forgot to name my MC in the INSTANCE NAME FIELD. Did that & it works! thanks again for your help!!!
    A>>>!
    A conclusion is simply the place where you got tired of thinking.
    If at first you DO succeed, try not to look astonished!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center