Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 8 of 8
  1. #1

    Default Image fade loading. Please help!

    Hi, I am a student trying to set up a web site to sell my sneakers. I am self taught at Photoshop quite well but know nothing on Flash or scripting. I have seen this web site that when you load a page fades in the image so it has time to load, heres a link to it http://www.jeffkahane.com/

    Very very greatfull if anyone can tell me or point me in the right direction of what I need to get the same effect.

    p.s I am working with a friend who can do all the technical web site stuff but didn't know about this. Thanks

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    OK thanks, but I need to know what is this the simplest/*****est way to do it? All I want to do is fade in, what flash scipt do I need? Many thanks.

    P.S If I want to have text that most computer wouldnot have do I need to embed my font? If so is there a link anyone can give that give more details? Many Thanks

  4. #3
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Here is a custom fader function that might be useful...

    Code:
    function NTDfader(myTarget, myAlpha) {
    	myTarget.onEnterFrame = function() {
    		intA = myTarget._alpha;
    		newA = myAlpha;
    		newAlpha = intA+((newA-intA)/9);
    		myTarget._alpha = newAlpha;
    		//clear enterframe events for optimized codeing
    		if (newAlpha == myAlpha) {
    			delete this.onEnterFrame;
    		}
    	}
    }
    //Example usage with a mouseDown and Up event
    _root.onMouseDown = function() {
    	NTDfader(_root.box, 0);
    }
    _root.onMouseUp = function() {
    	NTDfader(_root.box, 100);
    }
    The above is just a demo of manipulating the alpha of a movieclip named "box". To create an image fade, you would either import the image at runtime and run the function on a movieclip that holds the image with it's alpha initiated to 0, or you could use the loadMovie method to load the image at runtime and then use the fader function to fade the clipholder to 100 alpha...

    Code:
    _root.box._alpha=0;
    _root.box.loadMovie("someImage.jpg");
    NTDfader(_root.box,100);
    Something to be aware of, I am developing with Flash8 and AS2. I believe the alpha settings for version CS3 have changed from 0 - 100..........to...... 0 - 1.

    hope it helps
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  5. #4

    Default

    Thanks very much for your help. Would you also be able to help me with my my font problem? I want to use Copperplate but pc don't have this font as standard. Is there a way I can make sure people on all computers see my chosen font without changing it to a graphics? Many thanks

  6. #5
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Select the dynamic textfield and open the properties panel. There is a selection to "embed font outline". Doing this will export the particular font with the exported .swf file and the text will be viewable on any machine. Keep in mind that ebedding font outlines will add size to the overall file.

    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  7. #6

    Default

    Thanks, he's currently only using Dreamweaver with Fireworks, is there a way he can do it in Dreamweaver? Thanks

  8. #7
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    If the textfields are inside Flash, you will need to embed them there. If you are trying to use a particular font in the HTML page, you have a couple of options. The first is simply the HTML font tag...

    Code:
    <FONT FACE="Tempus Sans ITC">Text goes here.</FONT>
    The second option is to use the font-family property of cascading stylesheets (CSS). One way to do this is with a linked stylesheet, where the HTML document is linked to an external stylesheet file, .css For example, a file named core.css might contain this stylesheets rule:
    Code:
    P { font-family: "Tempus Sans ITC"; }
    The <HEAD> of the HTML document would contain this line:
    Code:
    <LINK REL=stylesheet HREF="core.css" TYPE="text/css">
    For more info, do a google search on "embedding font outlines"

    Regards
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  9. #8

    Default

    Thanks I will get on to my freind with your help and get back to you if theres any clarifying needed. Many thanks for your help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial