Results 1 to 4 of 4

Thread: no button mouse over

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default no button mouse over

    I have a movie clip called where. On mouse over I want it to load in a text file i have this code but on mouse over nothings happening.

    Code:
    where.onRollOver = function() {
    	loadText = new LoadVars();
    	loadText.onLoad = function() {
    		_root.locate_txt.html = true;
    		_root.locate_txt.htmlText = this.my_text;
    	};
    	loadText.load("location.txt");
    };

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I'm quote new to AS, and learning AS 3, so I don't know AS 2. But if you would mind showing me there full loadText variable that'd be great(I'm a newb, so if that didn't make sence, humor me)
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by bluewalrus View Post
    I have a movie clip called where. On mouse over I want it to load in a text file i have this code but on mouse over nothings happening.

    Code:
    where.onRollOver = function() {
    	loadText = new LoadVars();
    	loadText.onLoad = function() {
    		_root.locate_txt.html = true;
    		_root.locate_txt.htmlText = this.my_text;
    	};
    	loadText.load("location.txt");
    };
    Have you tried tracing out my_text to see if it's actually loading anything? To test, try this:

    Code:
    where.onRollOver = function() {
    	loadText = new LoadVars();
    	loadText.load("location.txt");
    	trace(loadText.my_text);
    };

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    opps hah figured it out mostly forgot to give an instance name on the stage of the same that i gave the clip in the library. but now after that the text is staying on mouse off i tried on rollout and clear but that didnt work.


    script for other guy for loading external text file:
    Code:
    loadText = new LoadVars();
    	loadText.onLoad = function() {
    		_root.locate_txt.html = true;
    		_root.locate_txt.htmlText = this.my_text;
    	};
    	loadText.load("location.txt");
    I made a dynamic text field named locate_txt which that code puts the text in location.txt into. The location.txt contains text but must start with my_text= it reads after that =. make sense i think?

Bookmarks

Posting Permissions

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