Select entities in a swf file and pass back to html page

Hi,
I am new to flash. I got a dwg file converted into swf file. Now I want this swf file to embed in html page. No issue with that.
The tricky part for me is to let the user select the entites of the file such as line/circle as one might select in autocad. After entity selection the swf file (by any means) pass the  selected entity information back to the html page ( to the javascript function).
Is this feasible?
I have no clue Please give direction.

Thanks Tim.
I could solve the problem using javascript.
I have used the following javascript.
<script>
function test(){
var radioLength = document.wwv_flow.p_v01.length;
var retVal = '';
if(radioLength == undefined)
          if(document.wwv_flow.p_v01.checked)
               retVal = document.wwv_flow.p_v01.value;
          else
               return "";
     for(var i = 0; i < radioLength; i++) {
          if(document.wwv_flow.p_v01.checked) {
               retVal = retVal + ';' +document.wwv_flow.p_v01[i].value;
retVal = retVal.substring(1, retVal.length);
opener.document.getElementById('P1_TEST').value = retVal;
window.close();
</script>
Now the problem is solved!!
Thanks,
Archana

Similar Messages

  • When I reload an HTM page using a SWF file like a   menu, the HTML page doesn't shows the SWF again!

    Dear Sirs,
    I hope to be directing my question into the correct forum's place.
    I'm new in flash and I'm trying to make some tests
    My problem is the following:
    I included one SWF file into 3 HTM pages.
    This SWF works as a little menu.
    The SWF file (named "menu.swf") contains 3 items working as command buttons to access the three different HTM pages
    Each HTM page contains the same "menu.SWF" file, some HTML text and one picture.
    The swf contains:
    Button 1 -> calls page1.htm using:
                on (press) {
                getURL("./page1.htm", "_top");
    Button 2 -> calls page2.htm using:
                on (press) {
                getURL("./page2.htm", "_top");
    Button 3 -> calls page3.htm using:
                on (press) {
                getURL("./page3.htm", "_top");
    When I enter to "page1.htm" it appears correctly showing the swf file and all the HTML text.
    It is OK.
    But when I'm in "page1.htm" and I click on "Button1" (to reload "page1.htm") the only thing that I can see (after reloading page1) is the HTML text and the picture, but I cannot view the "menu.swf" file.
    "menu.swf" remains in its place, but "invisible".
    You can click on its command buttons, but anytime I click on the button that loads the same page (for example: "Button 1" to reload "page1.htm") the
    swf file(s) doesn't appears.
    The same thing happens when I'm in page 2 with Button 2 to reload page2 .htm, and so on.
    How can I do to solve this problem?
    Sorry for my not good english but I'm spanish speaker.
    Thank you!
    Gus

    The path in the buttons is not correct once you navigate to the htm page.
    So here you are on the landing page and the menu button says to get to "page1.htm" go up one folder level  (../) to the file page1.htm.
    Now once you are up one level, either you loose access to the .swf because from that page the path to the .swf is not correct, or if the .swf does show, then the path in the buttons back to the other pages is not correct, because you are now one folder level higher.
    If I am mis-reading your post and all pages are in the same folder, then remove the "../" part before the page name in the URL. Or perhaps you are using ./ to denote the current directory... I'd still suggest removing it. So the the getURL would look like this :
    getURL("page1.htm", "_top");
    if all pages are in the same folder.
    And if I am reading your post correctly, then you cannot use the same button URL to get to ("./page1.htm", "_top"); and once on page1.htm use that same URL to get back down to your landing page.
    So I'd say it's a pathing problem.
    Give that a try and see if it helps.
    Best wishes,
    Adninjastrator

  • I only have the SWF file and HTML5 output, how can I control it?

    Picture this: A client gives me two zipped archives; one archive has a SWF file and another has HTML5, JS, and CSS. Both were published after checking "Scorm 1.2" in the reporting tab in Captivate. I'm just one developer and all I have at my disposal is html, javascript, and css.
    Is it possible for me for resume progress? Send quiz scores to my web service? Control playback?

    The 'built-in method' is called Self-paced Learning, and it usually has a message window that appears when you resume the lesson which asks the user whether or not they want to resume from the last visited slide.  However, as has been mentioned before on this forum, as soon as you activate LMS Reporting in Quiz Settings then Self-paced Learning is disabled. It's only designed for situations where an LMS is NOT involved.  LMSs typically have other mechanisms for resuming playback and having more than one mechanism active at the same time could result in conflicts.
    SCORM-compliant LMSs have the option of using Resume Data Bookmarking, but not all LMSs implement this in consistent ways.  The new SCORM drivers with Cp6 do a much better job of implementing bookmarking than previous versions, so I encourage anyone to upgrade to Cp6 if they haven't already done so.
    Since it sounds like you're trying to roll your own LMS I'm assuming that your Cp modules will have Quiz Reporting turned on, which means Self-paced Learning is NOT going to be an option.  You'll need to work with the SCORM Resume Data to achieve your goals.  But this is NOT an area for the faint-hearted or the non-programmer.  In SWF content, the scoring variables are passed from within the Captivate runtime to the Javascript SCORM API.  In HTML5 content this will all be JS code, however, it's going to be quite complex JS code and messing with it at all is likely to break something.  Personally, I wouldn't go that route.  If you're going to build your own LMS, make it the LMS that picks up the scoring and resume data from the Captivate output, rather than hacking the Cp code itself.

  • Using a container to load several swf files and play them

    I need some help. I want to use several swf files and have them be called upon in a container file and play them in sequence. It's a presentation that needs to play thru but still have the ability to stop, click on items, open a popup and then continue on in the presentation. I am building all the individual "chapters" and their "sub-chapters" as swf files, with the hope that I can load them in order. I am relatively new to AS3. Help?

    If you will be loading swf files into a container then you will use the Loader class to accomplish that, so give that a looking over in the help documents and see what you can do.  If you have a problem getting it to work, post your code and describe what you have done.

  • Need to read each sheet of an excel file and pass it to XI

    Hi
    Actually i need to read each sheet of an excel file and pass it to XI and will create one xml file .I am able to read the excel file by writting a custom module and it is generating the xml output from XI.But my requierment is to read the excel file and create the xml with the sheet name of the excel.suppose sheet name is sheet1, the xml file name will be  sheet1.xml.if sheet name is sheet2 the xml file name will be  sheet2 and so on....how can i pass this parameter from NWDS to SAP XI s i am passing the string which contains the sheet data.

    If I understood correct you are already reading the XLS and creating the XML (not sure if this is a separate executing body out side of XI). Are you using any sort of Object Modal in Java to read the XML? I am aware of Visual Basic object modal for Excel but not sure if one is available in Java from Microsoft.
    The Object modal that you are using must be providing an iterator to loop through each of the sheet in the Excel workbook and you should be able to create the XMLs as you desired.
    I would be glad to look at you module if you are doing it once the XI file adapter has picked up the excel file.
    VJ

  • When using pop up editor windows on a Joomla 1.0.15 website the URLs selected in the pop-up are not passed back to the main window

    The Joomla content management system version 1.0.15 provides a content editor which uses pop-up windows to select images and files. When using any of these pop up editor windows since 3.6.9 the URLs selected in the pop-up are not passed back to the main editor window.
    Up until FF 3.6.8 there were no problems, but FF 3.6.9 and 3.6.10 both exhibit this same problem, as does FF 4 Beta 6. (Support Question raised on this forum in early September when 2.6.9 was released but no response)

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Having trouble converting array to spreadsheet string, storing the file and coverting back to array with complex numbers

    I am working with a network analyzer. I have arrays made of 5 columns the first consisting of an integer and the next four consisting of complex numbers. I am converting the array into a spreadsheet string and then saving the file using the write characters to a file VI. That seems to work well as when I open the file in Excel all the data is there. However when I try to reverse the process, open file and convert back to array, I loose some of the data. Specifically the imaginary parts of my complex numbers are all going to zero. I have narrowed down the problem to be in the conversion from spreadsheet string to array and vice versa. I
    think the problem may be with the 'format' input to the VI. I do not have an adequate resource for this so I am not sure what to put in to accomplish my task. Any takers?

    Hi Biz
    I don't think there is a direct way of converting a complex number to a
    string, so when you convert the array to a spreadsheet string, the
    numbers would be converted to real data.
    However, you could try separating the real and imaginary parts using the
    "Numeric: Complex to Re/Im" function, and then store these - either in
    separate files or in adjacent columns/rows in the same file. Then, when
    you read in the data again, use the "Numeric: Re/Im to Complex" function
    to put the two "halves" together.
    If you actually want Excel to interpret the numbers as imaginary, then
    you'll probably want to create a string for each complex number of the
    form "Re + Im*i" (after separating the Re and Im parts), by using
    "String:Format into String" with 2 numeric inputs and the format string
    "%f+%fi".
    Reading the data back into Labview then would require splitting the
    string into the 2 pieces by using "Stringcan from String" with 2
    numeric outputs (smae precision as original numbers specified by the 2
    Default Value inputs) and the same format string "%f+%fi", and then using
    the above-mentioned "Numeric: Re/Im to Complex" function. It worked for
    me, so if you can't follow what I am describing, send me an email and I
    can email you what I did (LV 5.1.1).
    Paul
    Biz wrote:
    > Having trouble converting array to spreadsheet string, storing the
    > file and coverting back to array with complex numbers
    >
    > I am working with a network analyzer. I have arrays made of 5 columns
    > the first consisting of an integer and the next four consisting of
    > complex numbers. I am converting the array into a spreadsheet string
    > and then saving the file using the write characters to a file VI. That
    > seems to work well as when I open the file in Excel all the data is
    > there. However when I try to reverse the process, open file and
    > convert back to array, I loose some of the data. Specifically the
    > imaginary parts of my complex numbers are all going to zero. I have
    > narrowed down the problem to be in the conversion from spreadsheet
    > string to array and vice versa. I think the problem may be with the
    > 'format' input to the VI. I do not have an adequate resource for this
    > so I am not sure what to put in to accomplish my task. Any takers?
    Research Assistant
    School of Physiotherapy, Curtin University of Technology
    Selby Street, Shenton Park, Western Australia, Australia. 6008
    email: [email protected]
    Tel. +61 8 9266 4657 Fax. +61 8 9266 3699
    "Everyone who calls on the name of the Lord will be saved." Romans 10:12
    "For all have sinned and fall short of the glory of God, and are
    justified freely by his grace through the redemption that came by Christ
    Jesus." Romans 3:23-4

  • Pass Username to HTML Page Viewer

    Is there a way to get the current username passed to an HTML page viewer in SharePoint? Or is there a better way to do that? I have an aspx page I need to pass the username to.

    Hi,
    According to your post, my understanding is that you want to send the username from SharePoint to the webpage.
    We can use JavaScript Client Object Model to get the current username and through the URL to send the value.
    The following thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/a425f091-85df-4e99-9f8b-ee474c21ac2e/pass-username-in-url?forum=sharepointgeneralprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to submit a page and return back to originating page?

    I have two form pages. The first page gives a error message and also gives second page url to go to fix the error. The url also sets the return page on page 2, so that after submit the changes, the user can come back to first page automatically. I have created branch on second page and gave return page item and flow works fine, but does not save changes on second page. How can I save the changes and go back to first page automatically. any ideas are appreciated.
    Thanks,
    Surya

    I have two form pages. The first page gives a error message and also gives second page url to go to fix the error. The url also sets the return page on page 2, so that after submit the changes, the user can come back to first page automatically. I have created branch on second page and gave return page item and flow works fine, but does not save changes on second page. How can I save the changes and go back to first page automatically. any ideas are appreciated.
    Thanks,
    Surya

  • Re:Method for extracting all hyperlinks and hypertext available in html pag

    i want to extrct all the hyperlinks and hypertext available in html page which is displayed in a JEditorPane. i have done this using reg.expression and it is working 90% correctly but the problem occurs when a image is a hyperlink or span tag is used . so i want to know if there is any other method available to extract these things ...
    i will be higly thankful to u !!!!!
    with regards,
    neetigya

    http://www.exampledepot.com/egs/javax.swing.text.html/pkg.html

  • My I pad 1 sometimes while watching working switches off and go back to home page ... Why ? Also I need to know how I can upload my photos and pictures from laptop to my I pad.  I tried thru I tunes but not work.

    My I pad 1 sometimes while watching working switches off and go back to home page ... Why ? Also I need to know how I can upload my photos and pictures from laptop to my I pad.  I tried thru I tunes but not work.

    Satmar wrote:
    My I pad 1 sometimes while watching working switches off and go back to home page ...
    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Note:
    Also consider Deleting any Apps you have Purchased / Downloaded but you now never use...
    Satmar wrote:
    Also I need to know how I can upload my photos and pictures from laptop to my I pad.
    See Syncing photos to devices
    Here  >  http://support.apple.com/kb/HT4236

  • How to call one Main MXML from another main MXML file and pass values between them?

    Hi,
    I am trying to populate a datagrid from a XML file ,which I have done successful
    I am able to get data out of the datagrid on clicking on any element
    Now when I click on any element in datagrid I want call a new mxml file which is also have Aplication tag and I want to pass that value of clicked element to it
    This is the code I am using for getting data from XML into data grid in 1st MXML file and the XML file used.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"  initialize="exp.send()">
         <fx:Declarations>
             <s:HTTPService id="exp" url="expLab1.xml" result="
    resultHandlerQuestionBar(event)"/>
         </fx:Declarations>
         <s:Panel x="74" y="218" width="485" height="333" title="Work On Configured Experiments" id="p1" fontSize="14" chromeColor="#9BFDAB" dropShadowVisible="false" contentBackgroundColor="#E4EEE6" contentBackgroundAlpha="1.0" backgroundColor="#67B6AC" textAlign="left">
              <mx:DataGrid  x="35" y="33" width="338" height="88" dataProvider="{experimentdetails}" chromeColor="#FCFCFC" contentBackgroundColor="#FFFFFF" selectionColor="#FAFBFD" rollOverColor="#FCFDFF" focusColor="#FCFDFD" itemClick="onItemClick( event );">
                  <mx:columns>
                     <mx:DataGridColumn id="j1" dataField="experimentName" headerText="" itemRenderer="jaya">
                     </mx:DataGridColumn>
                  </mx:columns>
             </mx:DataGrid>
         </s:Panel>
         <fx:Script>
             <![CDATA[
                 import mx.collections.ArrayCollection;
                 import mx.controls.Alert;
                  import mx.events.FlexEvent;
                 import mx.events.ListEvent;
                 import mx.rpc.events.ResultEvent;
                 [Bindable]
                 private var workbenchname:ArrayCollection;
                  //private var a:String;
                 private function resultHandlerQuestionBar(event:ResultEvent):void
                    experimentdetails=event.result.List.experimentList.experiment;  
                 [Bindable]
                 private var experimentdetails:ArrayCollection;
                  private var alert:Alert;
    private var data:String;
                 private function onItemClick( e:ListEvent ):void {
       data= experimentdetails.getItemAt(e.rowIndex).experimentName.toString();
                    alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
             ]]>
         </fx:Script>
    </s:Application>
    and the xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <List>
       <workbench>Basic Movement</workbench>
         <experimentList>
           <experiment>
             <experimentName>Distance with varying time</experimentName>
             <Rating>2</Rating>
             <expNO>1</expNO>
           </experiment>
           <experiment>
             <experimentName>Distance with Constant time</experimentName>
             <Rating>1</Rating>
             <expNO>2</expNO>
           </experiment>
           <experiment>
             <experimentName>Time taken while decelerating</experimentName>
             <Rating>3</Rating>
             <expNO>3</expNO>
           </experiment>
          </experimentList> 
    </List>
    Now the code for 2nd MXML is as follows
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
          <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:Label text="lable1" >
          </s:Label>
    </s:Application>

    Check out ExternalInterface class:
    http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_2.html
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • Unable to stream SMIL files unless the html page, swf file and the smil ffile are on the FMS server.

    When I place the .swf, smil and http files on the FMS server the SMIL stream test sample works fine
    But When I move the files to my web server I get Connection error.
    This is the same issue discussed in http://forums.adobe.com/thread/554107
    I added a ‘base’ variable but it did not work for me.
    The SMIL file has the correct path to the sample files and FMS server
         <meta base="rtmp://200.200.200.23/vod/" />
    I am able to stream files from my html file on my webserver not the FMS server by pointing to the FMS server at rtmp://200.200.200.23/vod/mp4:sample1_1500kbps.f4v
    Is this a domain security setting? If so, where do I change it?
    If not How do I get FMS to stream SMIL files without installing a webserver with FMS?
    Thanks,

    Hi,
    I think there is bug with that videoPlayer.swf which is used by index.html of webroot folder of FMS to play media files, its not able to parse smil file correctly. I used some other player and used the smil file and kept it on http server other than fms server so it was able to dynamically stream videos. So I would suggest you to create your own player which uses smil file. You can take help from the below link to create player:
    http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_advanced_pt1_05.html
    Regards,
    Amit

  • Beginner Question re: SWF files and FLA files

    Hi,
    Im new to flash. I have some templates (in FLA format with all supporting files...xml; html; and the swf file). When using html templates, I can modify the content easily by simply adding or changing the text <p>original text</p> to <p>steve custom text</p> and so on.
    My issue is Im trying to modify the content of the fla files into a new swf file but do not know how to access the text, background or images the tempalte is currently producing. The timeline at the bottom doesnt show objects and their timelines like the basic tutorials show me.
    Is there a way to access the content of of an fla file or perhaps the content of an swf file? I think the swf file is like a jpeg coverted from RAW, meaning its the end product and the source file is where the modify is done.
    Am I swimming in the deep with sharks?
    Thanks!

    hmm..so if the template ive downloaded depicts a green ball bouncing across an orange  background(swf file). The objects (green ball) and the background (simply overlay colored orange) is embedded into the FLA AS3 code?
    not necessarily.  they could be created with code, they could be created with the tools in the fla and they could be loaded bitmaps.
    To be clear these objects (in my example: ball and background) are not external jpegs (or similar file type like png) which I can open, edit, then allow the code to access and utilize the new object. For example, change the ball into a square and changes it color to purple and then change the background to pink via PS or illstr.
    In short, Im having trouble trying to find the objects which are being manipulated by the code. My current perspective with templates is to modify the image or text by accessing the files delivered with the template. If the .html commands to place image221.jpeg in certain div, I would just open the images files, find image221.jpeg, modifiy the image and then save it as image221.jpeg. Of course I can create a new image save it as steve123.jpeg, save it to the images folder and then modify the code to access the new file by using its new name.
    This is what Im trying to accomplish with my flash template but cant find the source objects .
    Im getting the impression this cant be done.
    that's almost certainly incorrect.
    My final question is then, where are source images or text or movie files stored?
    noone can say without direct inspection.
    Is it possible they are on third party servers on the web?
    no
    Are they imbedded in the code?
    maybe yes, maybe no.
    I can only assume if they are stored on my drives (in an external format) that I would be able to access them.
    correct.  more specifically, they would have to be in the directory with your embedding html and swf or a subdirectory.
    If however, they are on a a third part web site or embedded into the code, then I may be in way over my head.
    you can assume this is not the case.
    so, open the fla in flash.  click control/test.  click view and make sure bandwidth profiler and streaming graph are checked.  you should then be able to see the main timeline as the swf plays.  note the main timeline frame where you see the object(s) you want to edit. 
    close the test environment and go to that main timeline frame and start sleuthing to see if the objects were created in flash.  you can also click on the first object in the library and arrow down looking for the object(s) you want to edit to see if they were created without code.  if you find them, note their library name and possibly linkage id or class.  use movie explorer to search for those names.
    but, to be sure, it can be very difficult to edit templates.  i've not seen one yet that was made by a competent developer and i've worked on dozens of them.

Maybe you are looking for