What am I doing wrong?

Ask a Question related to ASP Database, Design and Development.

  1. #21

    Default Re: What am I doing wrong?

    I added a behavior that rotates one of the cubes and it works fine. so what am I doing wrong?
    Sharkmenace Guest

  2. Similar Questions and Discussions

    1. something wrong..
      I want to integrate following php-file into my Flash-movie, but something still does not work. The Php-file is like that: Online it looks like...
    2. What is wrong?
      Take a look at your Stored Procedure. It takes a wide variety of data types. But in your code, you use an overloaded version of the Add() method of...
    3. What am I doing wrong???!?!
      I have a simple form that based on the the two inputs, ExAD_Tracking and ExAD_DateEntered, will query the database and display the records...
    4. What am I doing wrong
      I am trying to fade in an image over time, however the image keeps blinking, it fades in all the time. Below is my script. on exitFrame me go to...
    5. What am I doing wrong with this SP??
      Gives me a NULL value at this line. and I know it has a 1 myShippingDetails.theShippingType = CStr(parametertheShippingType.Value) Public...
  3. #22

    Default Re: What am I doing wrong?

    Oh, by the way the count is always 0
    Sharkmenace Guest

  4. #23

    Default Re: What am I doing wrong?

    "a simple .w3d sprite imported from Carrara" (???)
    Sprite represents a reference to a Shockwave 3D cast member.
    So drag the W3D member into the stage and you'll get a 3D sprite.
    Select that sprite on the stage and "right mouse click / Script ...".
    Insert your script there, launch the movie,open the message window and you'll
    see the (right) result.

    Anyway, this method is a waste of time ...
    Open the "Object Inspector" window, drag the W3D member there and you'll find
    a lot of useful informations.
    cheers


    necromanthus Guest

  5. #24

    Default Re: What am I doing wrong?

    Thanks, Necro. Actually this was just a test to get familiar with Lingo and 3D
    since I'm new to Director and reading through the help books. My script is in a
    looping frame. Does it have to be dropped onto the 3D sprite? The sprite is on
    the stage. The pre-written behavior that I dropped onto the sprite displays all
    the objects in the 3D scene. but my script deoesnt seem to be detecting the
    sprite that I have simply named "group" from cast member "boxsphere". so just
    to clarity, does the script have to be embedded in the sprite on the score?

    I know this stuff is so simple for you guys. but frustrating for a beginner.
    --Thanks again--

    Sharkmenace Guest

  6. #25

    Default Re: What am I doing wrong?

    behavior and frame script are two different things.
    All you have to do is to click on the "Help" button ...
    cheers
    necromanthus Guest

  7. #26

    Default Re: What am I doing wrong?

    Originally posted by: necromanthus
    behavior and frame script are two different things.
    aah. yeah. maybe you should read my post again I am speaking of two different
    things.

    All you have to do is to click on the "Help" button ...
    cheers
    yeah. "Help Books" = help button
    um. Thanks but no thanks. Sorry to bother. I'll figure it out.

    Sharkmenace Guest

  8. #27

    Default Re: What am I doing wrong?

    your code should work, but are you sure your 3dmember is in sprite channel 1 ?

    may be you can use:
    trace(sprite("group").member.model.count)
    if you named the sprite.

    i had a test and your code should work. upload the file and we can have a
    look, maybe there is something strange about the carrara exporter?

    hondo3000 Guest

  9. #28

    Default Re: What am I doing wrong?

    I am doing exactly as you wrote. I think you're very right, there might be
    something strange about the exporter. But since the behavior that comes with
    director has access to all the models and model resources to manipulate them
    then there must be a way I will examine the behavior script again to see how
    its done. its all lingo and I use javascript. I'm currently working on some 2D
    stuff so I'll get back to the 3D later. I really appreciate all your help with
    such a simple matter. once I have figured it out I'll make a new post directed
    at those who might use Carrara to export. One day I'll be able to afford 3DS
    Max :D

    It seems that Director is way more powerful than flash, so now I can do things
    in director that I couldn't in flash. Boy I'm a happy camper.

    Thanks again,
    Sharky

    Sharkmenace Guest

  10. #29

    Default Re: What am I doing wrong?

    well, let see what would be the problem:

    (it can sound fool but listen anyway, this s what would do)

    1.-if the model hasn't a name it will not be counted in the model.count method.
    so check again if are already named.
    2.- use the debug method instead the object inspector. with this method you
    will know if your lines of code have been called .
    3.- use member("3dname") instead sprite(1).member
    4,. use addToWorld method to add the model to the member
    5.- use message window to check methods (dont create a new behavior )

    if nothing works, open a carrara post



    enrique_rodriguez Guest

  11. #30

    Default Re: What am I doing wrong?

    Once again, thank you all for helping.
    Here's the deal. As far as I can tell, the problem was with using JavaScript
    syntax. I tried several 3D commands including the one I was struggling with in
    Lingo <yuk> and behold! All that I ask for was given to me in vivid script
    detail. I will research this some more. I've never liked Lingo (no offense). So
    it was difficult for me to even try it this way. I can't believe it worked. If
    anyone knows how to script 3D with javascript syntax (it should be possible
    according to the docs) please post here. It would be greatly appreciated.

    P.S. Carrara 4 gets the green flag.

    Sharkmenace Guest

  12. #31

    Default What am I doing wrong?

    I'm new to Flex and I'm learning how to use it in conjunction with WebServices.
    Creating my own page and and service, to get a feel for Flex, I seem to have
    run into my first hurdle. My data isn't getting to my Grid. I used the Network
    Monitor and i do see the data in the Webservice Event :: OnResult Summary.
    Can anyone point out my error and correct me.

    Thanks



    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*">
    <mx:WebService wsdl="http://localhost/MyWebService/Service1.asmx?wsdl"
    id="webservice1">
    <mx:operation name="HelloWorld"><mx:request></mx:request></mx:operation>
    <mx:operation name="GetList"><mx:request></mx:request></mx:operation>
    </mx:WebService>
    <mx:Model id="employee">{webservice1.GetList.result}</mx:Model>

    <mx:Button label="Get Data" click="webservice1.GetList.send()"/>
    <mx:TabNavigator>
    <mx:Canvas label="Grid" height="200" width="300">
    <mx:DataGrid id="grid" dataProvider="{webservice1.GetList.result}">
    <mx:columns>
    <mx:Array>
    <mx:DataGridColumn columnName="Extension" headerText="Extension"
    width="110"/>
    <mx:DataGridColumn columnName="FirstName" headerText="Name" width="110"/>
    </mx:Array>
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:Application>

    Dharmak Guest

  13. #32

    Default Re: What am I doing wrong?

    Your code looks ok, except that you are not using the mx:Model at all, your
    data provider is pointing directly at the webservice result object.

    You might try dataProvider="{employee}"

    When Flex puts the web service xml into the mx:Model, it serializes the xml
    into an mx:Object. The problem is that the exact structure of the resulting
    object is not always obvious. You problem is probably the dataProvider
    reference. The reference needs to resolve to an array, and might nt be quite
    correct. It might be something like webservice1.GetList.result[0]

    It is difficult to debug binding references. For this reason, I prefer to get
    my data service result in a result handler function where I can inspect it
    (debug, trace, alert) in order to figure out the correct reference.

    Tracy

    ntsiii Guest

  14. #33

    Default Re: What am I doing wrong?

    Tracy,
    After many hours of debugging, i finally found out why the data from the model
    wasn't getting to the grid.

    This is the beginning output from my WebService as it looks in Flex, using the
    Network Monitor:
    [object] :
    diffgram[object] :
    NewDataSet[object] :
    Employees[array] .......

    So what i did was this:
    <mx:Model id="modEmployee">
    {webservice1.GetList.result.diffgram.NewDataSet.Em ployees}
    </mx:Model>

    Then the data would show up in the grid when i click the button.

    Based on the documentations I've read, i don't think i'm suppose to write the
    model like above, so what could i be doing wrong?
    Is it in the creation of my Web Service?
    I'm using .NET to create my Web Service.

    Dharmak Guest

  15. #34

    Default Re: What am I doing wrong?

    What did you read in the docs that makes you think this is not ok?

    I see no problem with it.

    Tracy
    ntsiii Guest

  16. #35

    Default Re: What am I doing wrong?

    Also, you don't really need the model, you could use the same expression to bind to the dataprovider directly.

    dataprovider="{webservice1.GetList.result.diffgram .NewDataSet.Employees}"
    ntsiii Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139