User Profile

Collapse

Profile Sidebar

Collapse
jrayjr
jrayjr
Last Activity: Feb 13 '09, 07:33 PM
Joined: Nov 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jrayjr
    started a topic AS3 - Passing values to child swf

    AS3 - Passing values to child swf

    Good morning, I've ran into a problem where I need to pass a value from my main swf to a external swf that I load. I've looked everywhere with no luck. Hope to find someone here that may know. What I am trying to do is pass the value of textColor to my Weather.swf. The textColor is a dynamic value that the user selects from the main swf. I'm still quite new to how AS3 handles different things. =(

    Code:
    [Frame1]
    ...
    See more | Go to post

  • jrayjr
    replied to Passing values from ASP to FLASH
    Good evening everyone, I was able to get the problem worked out. I changed the way it was pulling the data in and I had to use the absolute path to the ASP file.

    Code:
    myVars = new LoadVars();
    
    myVars.load("http://*.*.*.*/Flash/Test/test.asp");
    
    myVars.onLoad = function( success ){
    	if (success ){
    		txtTest = myVars.varTest;
    		txtTest2 = myVars.success;
    	}else{
    ...
    See more | Go to post

    Leave a comment:


  • jrayjr
    started a topic Passing values from ASP to FLASH

    Passing values from ASP to FLASH

    Hello everyone, Im running into a problem passing values from ASP to Flash. I've been searching around and trying different things with no luck. The project im working on will use ASP to pull data from Access and SQL and then post the information on series of frames that is timed. The code im am posting is just a test to try and get values passed to Flash. I am using Flash CS3 with actionscript 2.0.

    Frame 1:
    Code:
    success="";
    ...
    See more | Go to post

  • jrayjr
    started a topic Javascript validation loop problem

    Javascript validation loop problem

    Hello, I’m running into a problem when I am trying to validate my form. I have a form that has 10 sections I need to validate with 70 inputs that the user must fill out. I tried doing it all in if statements but it only does half the checks and then breaks out of the function. I’m assuming I have reached and went beyond the number of if statements allowed. So what I am trying to do now is just run it through a loop and have the loop variable...
    See more | Go to post

  • jrayjr
    replied to onchange event with ASP and Javascript
    Thanks for the help shweta123 I was able to get it worked out. As far as my last question disregard it. It was dumb. Anyways thanks again.

    -John
    See more | Go to post

    Leave a comment:


  • jrayjr
    replied to onchange event with ASP and Javascript
    I was also wondering if you could have more then one onchange event on the form? Say I have 2 Drop Downs and I would like to have both of them to have an onchange event to fire if a certain selection is made.



    Thanks,
    John
    See more | Go to post

    Leave a comment:


  • jrayjr
    replied to onchange event with ASP and Javascript
    Thanks shweta123 for the help. I was able to figure it out. The link that you referenced was pretty much the same thing I already had except it was using a variable but it still call the index number of the drop down. I needed to compare the text in the drop down not the index value due to the index number would change frequently with the database constently being updated.

    Code:
    function ModSelection( )
    {
         if
    ...
    See more | Go to post

    Leave a comment:


  • jrayjr
    replied to onchange event with ASP and Javascript
    I was able to get it working but not the way I would like to. I made the change in the ModSelection function but I would like it to compare the text instead of the index number.

    Code:
    function ModSelection(  )
     
    {
    if ( document.MainForm.FDepartment1.selectedIndex == 19 )
    {
    showHideContent( 'SCP1', true);
    }
    else
    {
    showHideContent( 'SCP1', false);
    }
    }
    ...
    See more | Go to post

    Leave a comment:


  • jrayjr
    replied to onchange event with ASP and Javascript
    No theres not. The only onchange event I have is the one I am trying to add.
    See more | Go to post

    Leave a comment:


  • jrayjr
    started a topic onchange event with ASP and Javascript

    onchange event with ASP and Javascript

    Im work on a form that will dynamicly display objects. The form is completed and working but am adding some features that will appear based on the user selection. I am unable to get the onchange event to work. When I make the selection in the drop down nothing happens. Any help would be great thanks.

    Code:
    	
    <script language="JavaScript">
    
    function showHideContent( id, show )
    {
    var elem
    ...
    See more | Go to post

  • jrayjr
    replied to Converting a number into time
    Thanks Fish, its work but I have to work with it alittle. Some of the values for the Total Time are incorrect but most are right.

    Code:
    Format (TimeSerial([CARRIER_OFF_DOCK_TIME]/100, [CARRIER_OFF_DOCK_TIME] mod 100, 0) - TimeSerial([CARRIER_ON_DOCK_TIME]/100, [CARRIER_ON_DOCK_TIME] mod 100, 0), "hh:mm")
    Example:

    1537 - 1658 = 02:21 is incorrect
    2213 - 59 = 20:14 is incorrect...
    See more | Go to post

    Leave a comment:


  • jrayjr
    replied to Converting a number into time
    Thanks Fish,
    I will give it a try and post back.

    -John
    See more | Go to post

    Leave a comment:


  • No problem, Glad its working for you....
    See more | Go to post

    Leave a comment:


  • I think the problem is you need to break out of the SQL statement to pull in your cdkey array because its trying to get it from your table and its not there.

    Try your SQL statment like this.
    Code:
    strSQL = "SELECT [COMPUTER] FROM tblSOFTWARE WHERE ([KEY]) = [B]" & cdkey & "[/B]"
    Or

    Code:
    strSQL = "SELECT tblSOFTWARE.COMPUTER FROM tblSOFTWARE WHERE (tblSOFTWARE.KEY)
    ...
    See more | Go to post

    Leave a comment:


  • jrayjr
    started a topic Converting a number into time

    Converting a number into time

    Hello,
    I have a access query that reads in 2 time fields but its not in time format. Example: 900, 1300, 256, 2245, etc. What I am trying to do is driver comes in at 900(9:00AM) and leaves at 1300(1:00PM). Then have it give me the total time he was here, 4 hours

    The build expression is as follows:

    Total Time:
    IIf([CARRIER_OFF_DOC K_TIME]>959,TimeSerial (Mid([CARRIER_OFF_DOC K_TIME],1,2),Mid([CARRIER_OFF_DOC K...
    See more | Go to post
No activity results to display
Show More
Working...