Skip to main content
March 3, 2009
Question

error : Severity and Description Path Resource Location Creation Time Id

  • March 3, 2009
  • 66 replies
  • 11254 views

i have this error :
Severity and Description Path Resource Location Creation Time Id
invalid character or markup found in script block. Try surrounding your code with a CDATA block. essai/src essai.mxml Unknown 1236103965593 182


my source is attach code


Many thanks for your help , 


Lionceau,

    This topic has been closed for replies.

    66 replies

    March 5, 2009
    thanks i look this


    lionceau,
    Participating Frequently
    March 5, 2009
    Lionceau,
    I am out of time just now but have found for you an extensive set of documentation relating to the Flash collaboration set of classes:
    This page is the main top-level summary
    http://labs.adobe.com/technologies/afcs/
    This page has listings of all classes etc
    http://livedocs.adobe.com/labs/acrobatcom/index.html
    The signature for FilePublisher .browse() is
    public function browse(p_itemID:String, p_typeFilter:Array = null):void
    and when it works it fires a FileManagerEvent.READY_FOR_UPLOAD event, rather than returning a Boolean like FileReference.browse();
    You'll have to take it from here but it looks as though this portion of the Adobe site will be of help to you.
    Richard
    March 5, 2009
    thanks Richard,
    First, i have a server , here : roomURL=" http://connectnow.acrobat.com/lionceau01/essai"

    Then with this tomorrow i can chat and share audio, video with all computers in this room.
    That is right , well !!!

    BUT file share don't run !!
    That is bad ,This must be finished before Saturday..


    I don't see architecture for this !!!



    I thank you for your help




    lionceau,


    Participating Frequently
    March 5, 2009
    Lionceau,
    sounds like you need to take a step back and think about your problem architecture. The questions you are asking here are good ones but should have been solved at the start of your project, not at this stage.
    Who is sharing the file with whom? Where is the file originally located (local machine, on a server etc)? Where do you want it to be available once shared (another local machine, on a server etc)?
    You will almost certainly need to write some server-side code to manage that end of things.
    I can't help you design and write a whole application in this way. Perhaps in view of your time constraints you need to scale back your wishes and tackle something for which you have most of the skills already. At present it seems to me you do not have the skills to get past the first problem, and for sure once you get to managing the server side you will have other problems.
    With your tight deadline for this project, pick something that can look cool (which Flex certainly can) and is within scope for your technical skills.
    Richard
    March 5, 2009
    i understand ,
    I would like to share file ( as document, photo, power point, word , excel )


    you undersand ?
    Then how choice my array?


    Lionceau,
    Participating Frequently
    March 5, 2009
    Lionceau,
    are you absolutely certain that your object _filePublisher is of type FileReference? I am beginning to suspect it is not. In fact, looking back at your code, you have _filePublisher = new FilePublisher(); so it is of type FilePublisher not FileReference. The type of an object is absolutely crucial to the kinds of operations it supports.
    Perhaps it is a custom object descended from FileReference? You have almost no chance of finding the correct call signature unless you can find the documentation. Am I right in thinking you have just copied this code from somewhere? If so, check back at that location and see what you should be doing. Until you know what you are aiming for in terms of data types, noone is able to help you.
    Richard
    March 5, 2009
    i don't understand your reply


    my source is and , this don't run :
    Why?
    i don't find more informaton for this _filePublisher.browse(UIDUtil.createUID()); can you help me ?




    my source is :
    private function onUploadClick():void
    {
    Alert.show("onUploadClick()") ;

    var filterArray:Array = [new FileFilter("*.*", "*.*")];
    _filePublisher.browse(UIDUtil.createUID());

    Alert.show("2onUploadClick()") ;
    }
    Participating Frequently
    March 5, 2009
    Lionceau,
    at a guess (and you can find out using one of the techniques I showed you before) this is happening on the line _filePublisher.browse(UIDUtil.createUID());
    Why do you think that might be?
    Richard
    March 5, 2009
    yes i think as you !!!

    to sum up , i use a aray , what is a array , it is a object , that right?


    then
    1 i Creates a new FileReference object. When populated, a FileReference object represents a file on the user's local disk.
    2 i use browse () method public function browse(typeFilter:Array = null):Boolean


    but here 2 i have a bug you see ? how repair this ?



    Lionceau,
    Participating Frequently
    March 5, 2009
    Lionceau,
    you currently have two _filePublisher.browse(...) calls with different arguments. What does your code do when you run it? Do you get run time errors and if so on which line? If you are unsure which line, what happens when you comment out one line or the other?
    These are all very basic programmatic actions and although I appreciate you are working under a time deadline, you really should put time into learning the basics. It is time invested, not wasted...
    Richard