Results 1 to 4 of 4
  1. #1

    Quicksand..hand needed

    Just a quick note to say hats off to those of you who have this mastered!
    by trade work in film post production ( all of the "smoke and mirrors fx stuff) but to be honest my gear is self conatined - and never really need to get into any code as such...sort of the same street, but still worlds apart.

    I made a very basic flash web site to showcase my work - from alot of borrowed code, and some i did myself...but have painted myself into a corner, and would sincerely appreciate some expert advice.

    My site has thumnails - that launch full res jpegs. something like
    <?xml version="1.0" encoding="utf-8"?>

    <CONFIG>
    <AUX IMAGESFOLDER2="../photogallery8/" IMAGESFOLDER="" />

    <SECTION NAME="GALERIES">
    <SUBSECTION NAME="Commercial" TYPE="GALLERY">

    <ITEM SRC="china01.jpg" HEIGHT="500" WIDTH="407" TEXTWIDTH="300" TITLE="LOREM IPSUM" LINKTEXT="More pics" LINKURL="about:blank">
    text etc etc etc test text
    </ITEM>

    what I need to do is ( replace the jpegs ) with quicktime / already encoded
    and launch it how flash/xml dictate...I hear this is a simple operation, but i must have tried five non funtional ways now..absolutely stuck!

    ps I guess what I am shooting for is progressive download from my
    server..??
    pss Am using flash pro 8 (also borrowed)

    Thanks in advance

  2. #2
    I have tried to tweak the action script in flash, and the xml file to correspond in loading a .mov or .flv file..but without success.

    Do I need to add additional script for fame rates etc? I didn't think so
    since this is launched externally.
    heres an example of my (jpeg) flash action to lauch script:

    var initnode = null, curnode = null;
    var clearhandlerfunction = null, clearhandlerobject = null;

    this._x = _root.menumov._x;

    function _loadimage(node){
    //trace(this + "._loadimage(...)");
    initnode = node;
    if(_root.selecteditem!=null){
    _root.selecteditem._clear(this._goahead, this);
    }else{
    _goahead();
    }
    }

    function _goahead(){
    //trace(this + "._goahead()");
    _root.selecteditem = this;

    this.curnode = this.initnode;

    back._height = back.initheight;
    back.dstheight = Math.round(curnode.attributes.HEIGHT) + 4;
    back._width = Math.round(curnode.attributes.WIDTH) + 4;
    back.speed = 0;
    back.dstspeed = 0.4;
    back.speedk = 0.4;
    back.oncompletehandler = function(){
    if(this._parent.curnode.attributes.TYPE=="TEXTWITHGRAPH"){
    this._parent.imgholder._loadimage(_root.imagesfolder + this._parent.curnode.attributes.SRC);
    }else{
    this._parent.imgholder._loadimage(_root.imagesfolder + "images/" + this._parent.curnode.attributes.SRC);
    }
    _root.textmov._x = this._parent._x + this._parent.back._width + 4;
    _root.textmov._show(this._parent.curnode, false);
    }
    back.goahead();

    tflink.htmlText = "<A HREF=\"" + this.curnode.attributes.LINKURL + "\" TARGET=\"_blank\" >" + this.curnode.attributes.LINKTEXT + "</A>";

    }

    function _setpercent(percent){
    if(percent==undefined){
    tfload.text = "";

    imgmask.dstheight = back.dstheight;
    imgmask._width = back._width;
    imgmask.speed = 0;
    imgmask.dstspeed = 0.3;
    imgmask.speedk = 0.5;
    imgmask.goahead();
    }else{
    tfload.text = Math.round(percent*100) + "%";

    imgmask._height = 0;
    }
    }

    back.goahead = function(){
    this.onEnterFrame = function(){
    var func = null;

    if(Math.abs(this._height - this.dstheight)<1){
    this._height = this.dstheight;
    this.onEnterFrame = null;
    _root.rect02._height = this._height;
    this.oncompletehandler();
    return true;
    }else{
    this._height += (this.dstheight - this._height)*this.speed;
    this.speed += (this.dstspeed - this.speed)*this.speedk;
    }
    //this._parent.imgmask._height = this._height;
    _root.rect02._height = this._height;
    this._parent.tflink._y = this._y + this._height;
    this._parent.tflink._x = this._x;
    }
    }

    imgmask.goahead = function(){
    this.onEnterFrame = function(){
    if(Math.abs(this._height - this.dstheight)<1){
    this._height = this.dstheight;
    this.onEnterFrame = null;
    }else{
    this._height += (this.dstheight - this._height)*this.speed;
    this.speed += (this.dstspeed - this.speed)*this.speedk;
    }
    }
    }


    function _clear(handlerfunction, handlerobject){
    //trace(this + "._clear(...)");
    clearhandlerfunction = handlerfunction;
    clearhandlerobject = handlerobject;

    _root.textmov._clear(null, null, false);

    imgmask.dstheight = 0;
    imgmask.speed = 0;
    imgmask.dstspeed = 0.6;
    imgmask.speedk = 0.5;
    imgmask.goahead();

    back.dstheight = back.initheight;
    back.speed = 0;
    back.dstspeed = 0.4;
    back.speedk = 0.3;
    back.oncompletehandler = function(){
    this._parent.imgholder._clear();
    this._parent.cleared();
    }
    back.goahead();

    tflink.htmlText = "";

    }

    function cleared(){
    //trace(this + ".cleared()");
    _root.selecteditem = null;
    back._height = 0;
    clearhandlerfunction.call(clearhandlerobject);
    clearhandlerfunction = null;
    clearhandlerobject = null;
    }

    stop();



    any help would be hugely appreciated

  3. #3
    OK...so I can get it to sort of kind of work, by embedding a .mov in flash - and exporting the .swf. (Calling for the .swf in the xml file.)
    but the audio is a bit wacky, as warned by Flash Pro.

    Is it true that it would also work in the above manner with a progressive download, or stream - but I won't be able to see it unless I upload it to the server?

    even a small tip would help.

    thanks in advance

  4. #4
    hey! as i understand, you have to convert video to flash? i use one program that can be useful for conversion of such a kind. if it's interesting, look here . good luck!

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
  •  
Subscribe to us on YouTube