A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: check this out and let me know

  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    30

    check this out and let me know

    Hey everyone

    I m trying to import a video to flash yet no matter what I do it ends up distorted .
    ca picture is worth a thousand word so check it out www.twentyseventwenty.com

    if u can help I d truely appreciate it

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    Im not sure how you are coding or loading your project...

    but I usually size the flv holder (new video)

    Code:
    myFLV.onStatus = function(infoObject:Object) {
    	trace(infoObject.code);
    	switch (infoObject.code) {
    case 'NetStream.Play.StreamNotFound' :
    		trace("Could not find video file.");
    		time_txt.text = "Could not find video file.";
    		clearInterval(time_interval);
    		clearInterval(buffer_interval);
    		clearInterval(loaded_interval);
    case 'NetStream.Buffer.Full' :
    		//--- set component to default video height/width ---/
    		videoHolder._width = videoHolder.width;
    		videoHolder._height = videoHolder.height;
    		trace("W: " + videoHolder.width + " + " + "H: " + videoHolder.width);
    		break;
    	}
    };
    I use the buffer.full trigger to set my size..you can do it wherever you like.

    good luck

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    30
    hey ,

    I m just using the wizard and the instructions from this advanced flash text book which is nothing like what ur showing me...
    I ll try it and thanks for the info

    TwentySeven

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    Im not sure what you mean by 'wizard'.. but that is the action script that will check the different status' of the .flv and then do a switch statement (a big IF statement really) for the particular status of the .flv

  5. #5
    Member
    Join Date
    Jun 2007
    Posts
    30
    I was using was the flash import video encoder.
    Accordingly your suspose to be able to add video to flash easily.

    question do I add action script to it after its imported?
    stupid question?
    I never done this before.

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    hi...

    no problem.. Im probably not the best person to offer advice in this area anyways.. my flash/video experience is severely lacking..

    the difference between the two (I believe) is that I am loading the video 'externally' (the .flv sits in the same directory as the .swf does).. so Im not used to importing the video directly the stage like that.

    the code I posted above was just a small portion..

    you can add/use action script to control the movie.. as well get certain properties of it..like how much is loaded...how much has been played.. cue points, seek..etc..

  7. #7
    Member
    Join Date
    Jun 2007
    Posts
    30
    Thanks again

    I will definately check it out further.

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