Scope problem .as- swf

I posed this question in Actionscript 1 / 2 forum, but I
think that this area may be more appropriate.
I have a AS2.0 file that describes a page in a book
(Page.as). The class page contains private variables that define
things like the background image and hotspot locations on the page.
I have a "pre-processor" that takes the action script file inserts
the page specific images and then builds the page using the Motion
Twin compiler.
I am not using the Flash GUI to create anything because some
of these "books" are very long. I am programatically creating
unique .swf "pages."
The output SWFs all load and render correctly by themselves.
However when I load the page SWFs into my viewer each data has the
data from the first page. It appears to be a scoping problem that
only the class Page from the first SWF is being loaded. If I change
the name of the class/file to something unique and recompile all of
the "pages" it works.
Is there a solution to this without renaming each file and
class?

OK. Here we go. So what this does is draw a fixed background
rectangle, load in a background image, and then draw hotspots on
top of the image.
When I create multiple SWFs from this as with custom values,
they all run independently just fine, and have their own content.
When I take those SAME swfs, and nest them in a "book"
wrapper, they ALL show the same content.
I believe it is a scoping problem, and the variables are all
set to the same thing at runtime when they share the stage with
their siblings.
Thoughts?
class Page {
static var app:Page;
var red=0xff0000;
var yellow=0xFFCC00;
var pWidth=756;
var pHeight=1144;
private var pageBack_mc:MovieClip;
private var imageWrapper_mc:MovieClip;
private var hotSpotWrapper_mc:MovieClip;
private var debug_mc:MovieClip;
/****** DATA TO BE MODIFIED BY THE PRE-PROCESSOR ****/
// The temp values are for testing, and gets overwritten by
the pre-processor
private var BACK_IMAGE:String="ATG_2008_082.jpg";
private var PRINT_PDF:String="test.pdf";
private var LINKS:String="ext|
http://www.cnn.com|50|597|322|540::int|3|386|597|322|540";
private var VIDS:String="2.flv|72|247|248|142";
/******* END PRE-PROCESSOR DATA ****/
/******* Data directory definitions ***/
private var IMAGE_DIR:String="images/";
private var PDF_DIR:String="pdfs/";
private var VID_DIR:String="vids/";
public var book:MovieClip;
function Page(mc:MovieClip) {
// Page Constructor
var wrapper_mc=mc;
// Content Wrappers
pageBack_mc=wrapper_mc.createEmptyMovieClip("pb",0);
imageWrapper_mc=wrapper_mc.createEmptyMovieClip("iw",1);
hotSpotWrapper_mc=wrapper_mc.createEmptyMovieClip("hsw",2);
debug_mc=wrapper_mc.createEmptyMovieClip("db",10);
var imgURL=IMAGE_DIR + BACK_IMAGE;
imageWrapper_mc.loadMovie(imgURL);
pageBack_mc.beginFill(0xff0000);
pageBack_mc.lineStyle(1,0x000000);
pageBack_mc.moveTo(0,0);
pageBack_mc.lineTo(pWidth,0);
pageBack_mc.lineTo(pWidth,pHeight);
pageBack_mc.lineTo(0,pHeight);
pageBack_mc.lineTo(0,0);
pageBack_mc.endFill();
createHotSpots();
//setDebug("book");
private function setDebug(val:String) {
// this writes information to a text field since I cannot
trace
debug_mc.createTextField("tf",0,0,0,10,20);
debug_mc.tf.autoSize=true;
debug_mc.tf.selectable=false;
debug_mc.tf.text="debug=" + val;
private function createHotSpots() {
var hotSpotTable_array:Array=new Array ;
hotSpotTable_array=LINKS.split("::");
//hotSpot_array is an array of pipe delemited values
describing hotspots
//ext(ernal) or int(ernal) | url | x | y |width |height
for (var i:Number=0; i < hotSpotTable_array.length; i++)
var hotSpotRecord:String=hotSpotTable_array
var hotSpotRecord_array:Array=new Array ;
hotSpotRecord_array=hotSpotRecord.split("|");
var linkType:String=hotSpotRecord_array[0];
var destination:String=hotSpotRecord_array[1];
var xPos:Number=hotSpotRecord_array[2];
var yPos:Number=hotSpotRecord_array[3];
var hotSpotWidth:Number=hotSpotRecord_array[4];
var hotSpotHeight:Number=hotSpotRecord_array[5];
var
tempHotSpot=createHotSpot(linkType,destination,xPos,yPos,hotSpotWidth,hotSpotHeight);
private function
createHotSpot(linkType:String,destination:String,xPos:Number,yPos:Number,w:Number,h:Numbe r)
var level=hotSpotWrapper_mc.getNextHighestDepth();
var
tempHotSpot_mc=hotSpotWrapper_mc.createEmptyMovieClip(level,level);
tempHotSpot_mc.linkType=linkType;
tempHotSpot_mc.destination=destination;
tempHotSpot_mc.beginFill(0xfff000,100);
tempHotSpot_mc.moveTo(0,0);
tempHotSpot_mc.lineTo(w,0);
tempHotSpot_mc.lineTo(w,h);
tempHotSpot_mc.lineTo(0,h);
tempHotSpot_mc.lineTo(0,0);
tempHotSpot_mc.endFill();
tempHotSpot_mc._x=xPos;
tempHotSpot_mc._y=yPos;
tempHotSpot_mc._alpha=50;
tempHotSpot_mc.createTextField("tf",0,0,0,10,20);
tempHotSpot_mc.tf.autoSize=true;
tempHotSpot_mc.tf.selectable=false;
// Roll Over //////////////
tempHotSpot_mc.onRollOver=function() {
_root.book_mc.flipOnClickProp = false;
var message_str;
if (this.linkType == "int") {
message_str = ("Turn to page "+this.destination);
} else if (this.linkType == "ext") {
message_str = ("External website: "+this.destination);
this.tf.text = message_str;
//Roll Out////////////////////
tempHotSpot_mc.onRollOut=function() {
_root.book_mc.flipOnClickProp = true;
this.tf.text = "";
//Click
tempHotSpot_mc.onRelease=function() {
if (this.linkType == "int") {
_root.book_mc.gotoPage(this.destination);
return tempHotSpot_mc;
/*************** entry point***/
static function main(mc) {
app=new Page(mc);

Similar Messages

  • Scop problem

    Hi ,
    I having a problem communicating with loaded swf inside main
    file.
    Im using that script to have a transition between external
    swf :
    http://www.kirupa.com/developer/mx2004/transitions.htm
    most of it working fine but im having problem communicating
    with variable:
    Stage.swf:
    The main movie start to play and on its last frame it has the
    following action:
    this._lockroot=true
    //loading the first movie after the animation finish
    _root.currMovie = "main";
    _root.MC_Container.loadMovie(_root.currMovie+".swf");
    stop();
    portfolio.swf
    Than I press on the portfolio button and I get another main
    portfolio swf that has external files loeaded as well.its dividing
    the portfolio into categories , each category loading external
    file.
    First frame:
    this._lockroot=true
    _root.currMovie = "portfolio_3d";
    _root.MC_Container.loadMovie("portfolio_3d.swf");
    midframe=10;
    stop();
    buttons :
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "portfolio_print";
    _root.MC_Container.loadMovie("portfolio_print.swf");
    } else if (_root.currMovie != "portfolio_print") {
    if (_root.MC_Container._currentframe >=
    _root.MC_Container.midframe) {
    _level.currMovie = "portfolio_print";
    _root.MC_Container.play();
    portfolio_3d.swf
    the external file that loaded into the portfolio file is for
    example : portfolio_3d.swf ,
    the first frame action:
    this._lockroot=true
    midframe=10;
    middle frame has a stop(); command
    the last frame loading the next after the current movie
    finish:
    _root.MC_Container.loadMovie(_root.currMovie+".swf")
    the problem is that in the portfolio page, when I click the
    sub categries(3d,print,etc) , I get always the same movie. It seems
    like the variable doesn’t see the movie in the lowest level.
    It seems like a scop problem
    my url :
    www.shaygaghe.co.il
    thanks for your time ,
    Shay Gaghe

    what is the script that you have on the buttons on the bottom
    of the page that are supposed to load the new content? I think it
    may have something to do with your lockroot.

  • Problem inserting .swf in dreamweaver 8.Help!!

    Hi everybody.I have a problem since a lot of time jaja.I habe
    problems inserting .swf files in dreamweaver 8.I can insert, when I
    press f12 to see in Internet Explorer you see the movie, but when
    you put mouse over the banner I design.This has a bad behavior, it
    transform to hand, because the banner is a buttom, and again
    transform in default mode and it doesn`t stay in buttom form.When I
    did the flash, I saw the .sfw file in HTML, that generated the same
    Flash, and it look good, and had a hood behavior, but when I insert
    in dreamweaver 8 it doesn`t work correctly.I download the
    Dreamweaver 8 Update 2. Now I have Dreamveaver 8.0.2 or something
    like that.
    I think that the problems is in the form that Dreamweaver
    Insert the .swf file.
    My way is Insertar - Media - Flash.
    Somebody can help me? this problem I can´t resolved and
    I new whit this.
    English is not mi first Language, sorry if I had mistakes.

    ok....
    i installed php 5.2.10
    and downloaded php-5.2.10 zip file i found .dll
    its ok
    but in next help topic (testing PHP installation (Windows) )
    [http://livedocs.adobe.com/dreamweaver/8/using/gs_18_q7.htm]
    i didnt gt the result...
    what may be the problem?
    plz advice
    thanks in advacne

  • Variable scope problem?

    I am not quite sure if this is a scope problem at all, but it looks like one....
    Here is the problem:
    I have a class in which I define a variable x as folowing:
    public class XX
    public var x:Integer;
    In my fx script file I give it a value:
    var t: XX {
    x: 10
    and it seems that it is initialized... however when I try to use the variable inside the class XX, it cannot be done.
    for example I what try to do is
    public var yy = YY {
    for (i in [1..x]){
    ...do something...
    and the cycle is executed only once!
    Is this due to my inexperience in javafx or it is a standard behavior?

    Is this due to my inexperience in javafx or it is a standard behavior? Both? :-)
    The classical way to compute a class variable from those initialized at construction time is to do that in an init (or postinit) block.
    It isn't really a problem of scope, rather of order of initialization.

  • Function scope problem

    Hi all,
    I am using a class-based system for all my actionscript, but
    am having trouble getting the following code to work properly, and
    I am pretty certain it is a scope issue.
    public function
    setNavButtons(prevStart:Number,prevEnd:Number,nextStart:Number,nextEnd:Number){
    var owner = this;
    if (prevStart != undefined){
    mcPropertiesNav.btnBack.onRelease = function():Void{
    owner.reloadView(prevStart,prevEnd);
    if (nextStart != undefined){
    mcPropertiesNav.btnNext.onRelease = function():Void{
    owner.reloadView(nextStart,NextEnd);
    I've traced it out and know that when I use the reloadView
    method, the prevStart and prevEnd parameters are being passed in as
    undefined. Does anyone know how I would reference these variables
    within the onRelease functions?
    Thanks in advance
    Robert

    In the code you are posting a scope problem can't be
    pinpointed. The arguments you are providing are local to the
    function so there is no problem there. We might be able to help if
    you post the complete class.

  • Scope problem

    here is the function:
    public void readVector(File file)
    AddressBook addressBook = new AddressBook();
    try
    String string, token1 ="", token2 ="", token3 ="", token4 ="",
    token5 ="", token6 ="";
    FileInputStream fis1 = new FileInputStream(file);
    BufferedReader in = new BufferedReader(new FileReader(file));
    StringTokenizer st;
    while((string = in.readLine()) != null )
    st = new StringTokenizer(string);
    token1 = (st.hasMoreTokens())?st.nextToken():"";
    token2 = (st.hasMoreTokens())?st.nextToken():"";
    token3 = (st.hasMoreTokens())?st.nextToken():"";
    token4 = (st.hasMoreTokens())?st.nextToken():"";
    token5 = (st.hasMoreTokens())?st.nextToken():"";
    token6 = (st.hasMoreTokens())?st.nextToken():"";
    Contact c = new Contact(token1, token2, token3, token4, token5, token6);
    addressBook.addContact(c);
    catch(Exception ex)//catch exception and print stacktrace if try fails
    ex.printStackTrace();
    problem- some how I need to return the addresBook to another class, I can't do this because of a scope problem. Also if a solution is possible how would I call teh function in my other class.
    if this function returns an addressbook
    the prototype would be:
    AddressBook readVector(File file);
    how would I call this functino from another class to obtain the addressbok.

    I dont know what you mean by scope problem. Maybe you wanna elaborate on that a bit more. However, returning AddressBook should be straightforward. You can actually do it in two slightly different ways.
    1. You can define your readVector() method to be static:
    public static AddressBook readVector(whatever arguments) {
    ....your code here...
    Assuming you defined this method in class "foo", you can call this method using foo.readVector(arguments). In your calling function, you will probably have something like:
    AddressBook addressbk = foo.readVector(arguments);
    2. If you dont want to make your readVector() static, you will have to instantiate the class which contains this method. Again assuming class "foo" contains a definition like:
    public AddressBook readVector(args) {
    ....your code...
    In your calling method you will do the following:
    foo foo_obj = new foo();
    AddressBook addrbk = foo_obj.readVector(arguments);
    Of course, in either case your foo class has to be visible to the calling method. If your foo class is part of a different package, you will need to import it in the calling class.

  • Problem with .swf playback

    Hello,
    I have a problem with .swf animation playback in captivate 4. I created the .swf in flash with as3 on one frame. The animation is contained in a movieclip. I exported from flash and made sure the framerates between captivate and flash work. I import the animation to a slide and notice that the duration of the animation is .01 (could this be a red flag?). When previewing my captivate file the animation does not play it shows up static. I have my captivate file set up with continue buttons but I tried taking the button off the animation slide and it still shows up with the static what would be animation. Has anyone else encountered this? I'm really at a loss as to whats going on
    For bonus points: I'm still getting a transition that fades to white briefly even after I put no transition. Is their a way to just have an abrubt transition without the fade?
    Cheers
    -Matt

    Alright now it makes more "sense".
    Your SWF problem is caused by a bug in Captivate. I have encountered this many many times. Basically if you import a Flash animation and you have more than 1 slide in Captivate it will play to the end before you get to the slide with the animation. It's a really annoying bug that also occurs if you insert an SWF created in Captivate into a master Captivate project.
    There are a couple of solutions to your problem.
    1. Try and Externalize your animations when you publish your Captivate project. This can sometimes remove the problem. You can edit the settings in Preferences - Publish Settings.
    2. Create a loader in Flash that will pull in your animation SWF. Basically you just need to do a loadMovie shell in Flash and then have that pull in your animation SWF. I use this all the time for AS2 projects, but I guess that it will work just the same for AS3 projects.
    As for your fade in / fade out issue. Did you by any chance set a transition effect on your slides? Check the Slide Properties for a transition effect. If that's not it - is your fade in issue only occuring on the first slide? The "master" setting for a Captivate project has a default to fade in on the first slide. You can change that in Preferences - Project - Start and End.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Problem with swf on 1 page of my website?

    I have created a simple flash swf which I have added to all the pages of my website. For some reason when I load one particular page a blank screen appears. When I delete the swf the page appears! This doesn't happen on the other pages and wonder if any one could offer any suggestions?
    Thanks
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Our Clerks</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <style type="text/css">
    <!--
    #apDiv1 {
    position:absolute;
    width:264px;
    height:115px;
    z-index:1;
    #apDiv2 {
    position:absolute;
    width:159px;
    height:66px;
    z-index:1;
    left: 48px;
    top: 8px;
    #apDiv3 {
    position:absolute;
    width:794px;
    height:115px;
    z-index:2;
    left: 34px;
    top: 85px;
    #apDiv4 {
    position:absolute;
    width:311px;
    height:37px;
    z-index:3;
    left: 664px;
    top: 29px;
    .new_bold {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: bold;
    font-variant: normal;
    color: #666;
    -->
    </style>
    <link href="longcross_css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #apDiv5 {
    position:absolute;
    width:961px;
    height:30px;
    z-index:4;
    left: 34px;
    top: 85px;
    #apDiv6 {
    position:absolute;
    width:350px;
    height:30px;
    z-index:5;
    left: 622px;
    top: 90px;
    #apDiv7 {
    position:absolute;
    width:300px;
    height:270px;
    z-index:6;
    left: 34px;
    top: 285px;
    background-image: url(images/block_quote.png);
    #apDiv8 {
    position:absolute;
    width:200px;
    height:177px;
    z-index:7;
    left: 83px;
    top: 332px;
    background-color: #FFFFFF;
    #apDiv9 {
    position:absolute;
    width:160px;
    height:294px;
    z-index:8;
    left: 834px;
    top: 285px;
    background-image: url(images/new_quote.png);
    #apDiv10 {
    position:absolute;
    width:569px;
    height:165px;
    z-index:9;
    left: 381px;
    top: 119px;
    overflow: visible;
    #apDiv11 {
    position:absolute;
    width:442px;
    height:541px;
    z-index:9;
    left: 364px;
    top: 292px;
    #apDiv { position:absolute;
    width:961px;
    height:30px;
    z-index:4;
    left: 34px;
    top: 85px;
    #apDiv12 { position:absolute;
    width:961px;
    height:30px;
    z-index:4;
    left: 34px;
    top: 85px;
    #apDiv13 {
    position:absolute;
    width:200px;
    height:36px;
    z-index:10;
    left: 34px;
    top: 837px;
    #apDiv14 {
    position:absolute;
    width:960px;
    height:25px;
    z-index:11;
    left: 34px;
    top: 866px;
    a:link {
    color: #666;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:hover {
    text-decoration: underline;
    color: #333;
    a:active {
    text-decoration: none;
    #apDiv15 {
    position:absolute;
    width:246px;
    height:68px;
    z-index:12;
    left: 747px;
    top: 1591px;
    #apDiv16 {
    position:absolute;
    width:85px;
    height:49px;
    z-index:12;
    left: 34px;
    top: 900px;
    #apDiv17 {
    position:absolute;
    width:140px;
    height:36px;
    z-index:13;
    left: 855px;
    top: 901px;
    #apDiv11 .body_text .button_title .button_title {
    color: #48B849;
    #apDiv11 .body_text .button_title a {
    color: #48B849;
    #apDiv11 .body_text .button_title {
    color: #000;
    #apDiv20 {position:absolute;
    width:660px;
    height:170px;
    z-index:14;
    left: 334px;
    top: 115px;
    #apDiv19 {
    position:absolute;
    width:569px;
    height:180px;
    left: 381px;
    top: 119px;
    #apDiv18 { position:absolute;
    width:569px;
    height:180px;
    z-index:0;
    left: 381px;
    top: 119px;
    #apDiv21 { position:absolute;
    width:569px;
    height:165px;
    z-index:15;
    left: 381px;
    top: 119px;
    #apDiv22 { position:absolute;
    width:569px;
    height:165px;
    z-index:15;
    left: 381px;
    top: 119px;
    #apDiv23 {
    position:absolute;
    width:569px;
    height:165px;
    z-index:15;
    left: 119px;
    top: 381px;
    #apDiv24 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:1;
    left: 39px;
    top: 37px;
    #apDiv25 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:15;
    left: 381px;
    top: 124px;
    #apDiv26 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:15;
    left: 381;
    #apDiv27 {
    position:absolute;
    width:569px;
    height:165px;
    z-index:15;
    left: 381px;
    top: 119px;
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    </head>
    <body>
    <a name="top" id="top"></a>
    <div id="apDiv2"><img src="images/logo_150_66.png" alt="" width="159" height="66" border="0" usemap="#Map4" />
      <map name="Map4" id="Map42">
        <area shape="rect" coords="4,3,156,64" href="index.html" />
      </map>
    </div>
    <div id="apDiv3"><img src="images/home_banner_clerks.png" width="960" height="200" /></div>
    <div id="apDiv4">
      <table width="332" border="0">
        <tr>
          <td width="26"><img src="images/telephone.png" alt="" width="25" height="16" /></td>
          <td width="109" class="heading1">01932 562321</td>
          <td width="30"><img src="images/email.png" alt="" width="25" height="18" border="0" usemap="#Map3" /></td>
          <td width="149" class="heading1"><a href="mailto:[email protected]" target="_blank">[email protected]</a></td>
        </tr>
      </table>
    </div>
    <map name="Map3" id="Map32">
      <area shape="rect" coords="4,2,22,16" href="mailto:[email protected]" target="_blank" />
    </map>
    <map name="Map3" id="Map3">
      <area shape="rect" coords="4,2,22,16" href="mailto:[email protected]" target="_blank" />
    </map>
    <div id="apDiv5"><img src="images/home_banner_fade.png" width="960" height="30" /></div>
    <div class="main" id="apDiv6">
      <table width="356" border="0">
        <tr class="heading1">
          <th width="63" class="nav" scope="col"><a href="index.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar_reverse="menu_bar_reverse"">Home</a></th>
          <th width="88" class="menu_bar" scope="col"> <a href="services.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar="menu_bar"">Services</a></th>
          <th width="99" class="menu_bar" scope="col"><a href="clerks.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar="menu_bar"">Our Clerks</a></th>
          <th width="72" class="menu_bar" scope="col"><a href="contact.html" class="menu_bar" style="text-decoration : none; class=; color: #FFF;"menu_bar="menu_bar"">Contact</a></th>
        </tr>
      </table>
    </div>
    <div class="news" id="apDiv9">
      <table width="145" border="0" align="center">
        <tr>
          <th width="139" height="30" align="left" class="news_heading" scope="col"> News</th>
        </tr>
        <tr>
          <th height="35" align="left" valign="top" class="new" scope="col"><p><a href="whats-in-an-inventory.html">Why have a professional inventory. </a></p></th>
        </tr>
        <tr>
          <th height="35" align="left" valign="top" class="new" scope="col"><a href="dispute.html">Dispute resolution made easy.</a></th>
        </tr>
        <tr>
          <th height="35" align="left" valign="middle" class="new" scope="col"><a href="fair-wear.html">Fair wear and tear - A quick overview.</a></th>
        </tr>
        <tr>
          <th height="35" align="left" valign="middle" class="new" scope="col"><a href="introduction-to-epcs.html">Energy Performance Certificates explained.</a></th>
        </tr>
        <tr>
          <th height="35" align="left" valign="middle" class="new" scope="col"><a href="pat-testing.html">Why landlords need PAT (Portable Appliance Testing).</a></th>
        </tr>
        <tr>
          <th height="35" align="left" valign="middle" class="new_bold" scope="col"><a href="news.html">View all news &gt;</a></th>
        </tr>
      </table>
    </div>
    <div class="body" id="apDiv11">
      <p class="sub_text_heading">Longcross uses only Professional  Inventory Clerks</p>
      <p align="justify" class="body_text">When Longcross send an inventory  clerk to carry out your job, we guarantee that the clerk:</p>
      <ul>
        <li class="body_text">is fully insured for professional  indemnity and public liability cover<br />
        </li>
        <li class="body_text">is an AIIC member<br />
        </li>
        <li class="body_text">has undergone extensive   training</li>
      </ul>
      <p class="sub_text_heading">    Longcross uses only Qualified Energy  Assessors</p>
      <p align="justify" class="body_text">When Longcross send an energy  assessor to carry out your job, we guarantee that the assessor:</p>
      <ul>
        <li class="body_text">is fully insured for professional  indemnity and public liability cover<br />
        </li>
        <li class="body_text">is a certified DEA (Domestic  Energy Assessor) or Commercial Buildings Energy Assessor<br />
        </li>
        <li class="body_text">has undergone extensive   training</li>
      </ul>
    <p class="sub_text_heading">    A quality service from Longcross  every time</p>
      <p align="justify" class="body_text">By insisting on a consistent  approach to work, the use of standardised document templates, and a quick  turnaround time, we keep our quality of service uniformly high. As long as a  Chase clerk is performing the job, you’re guaranteed quality service</p>
      <p align="justify" class="body_text">It also means we can cover your  jobs at short notice, as well as providing continuity during busy periods when  your usual Chase clerk is unavailable.</p>
      <p class="body_text">Call us now on 01932 562321 to  discover how we can help you.</p>
      <p align="justify" class="sub_text_heading"><a href="clerks.html#top" class="body_text">top &gt;</a></p>
    </div>
    <div id="apDiv13"><img src="images/home_banner_fade_footer.png" width="960" height="15" /></div>
    <div id="apDiv14">
      <table width="960" border="0">
        <tr>
          <th width="325" class="new" scope="col"><div align="left"><a href="mailto:mailto:[email protected]">designed by psion ©</a></div></th>
          <th width="442" class="new" scope="col">Property inventories and energy assessments throughout the South East</th>
          <th width="179" class="new" scope="col"><div align="right">Longcross Inventories&#8482;</div></th>
        </tr>
      </table>
    </div>
    <div id="apDiv16"><img src="images/aiic.png" width="80" height="43" border="0" usemap="#Map" />
      <map name="Map" id="Map">
        <area shape="rect" coords="3,3,78,41" href="http://www.theaiic.co.uk/index.php" target="_blank" />
      </map>
    </div>
    <div id="apDiv17"><img src="images/idea.png" width="138" height="32" border="0" usemap="#Map2" />
      <map name="Map2" id="Map2">
        <area shape="rect" coords="3,3,137,32" href="http://www.whatstheidea.org.uk/" target="_blank" />
      </map>
    </div>
    <div id="apDiv19">
      <h1 align="justify" class="welcome_menu_text"> </h1>
    </div>
    <div id="apDiv20"><img src="images/welcome_banner_fade.png" width="660" height="170" /></div>
    <div id="apDiv27">
      <p class="welcome_menu_text"><span class="welcome_menu_title">Our Inventory Clerks and Energy  Assessors</span></p>
      <p align="justify" class="welcome_menu_text">    Inventory preparation and energy  assessment are skilled tasks. At Longcross, we use only qualified consultants and  assessors with property management backgrounds. All our inventory work follows  AIIC and ARLA guidelines and our energy assessors are certified in  accordance with recent legislation.</p>
    <p align="justify"> </p>
    </div>
    <div id="apDiv8">
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="177">
        <param name="movie" value="flash/longcross_flash.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="6.0.65.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="flash/longcross_flash.swf" width="200" height="177">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    </body>
    </html>

    In IE it shows as a blank page (white), in Firefox  it's all there.  I'd suspect a CSS issue.

  • Problem loading swf which reads data in a local file

    Hi,
    Using flex with a online project, I have to load a swf file, which reads data in a xml file (it works fine if I open it with flash player)
    I do a very simple test :
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="absolute"
                    minWidth="955" minHeight="600"
                    >
        <mx:SWFLoader id="swfloader" source="data/player.swf"/>
    </mx:Application>
    The result is that player.swf can't read the xml file (error : Error #2044: ioError non pris en charge : text=Error #2032: Erreur de flux. URL: enonce.xml).
    I do the same test with an AIR project, and it works fine !!!!
    It works also if I put the xml file directly at the same level as my compiled application (in bin-debug for instance).
    I think that it's a path problem, but I don't know how to set it.
    Is there any way to solve the problem ???
    Thanks a lot !
    Olivier

    Hi,
    Thanks for your answer, but I am not sure to understand it.
    What code I have to adjust :
    - the code of the swf I load ? It's a problem because I don't have access to the source code : my customer provides me only a swf file (with the xml file), and I have a lot of others swf files that work the same way, I can't ask him to modify everything.
    - the code of my application ? I don't really see how to use LoaderUtil.createAbsoluteURL, because when I debug, I see in the SWFLoader code that when this method is called, the returned url is good !
    Thanks for your help.
    Olivier

  • DW CS3 ImageViewer - problem with .swf file

    I'm trying to make a slide show in Dreamweaver for the first time. I've searched and found a lot of common problems people have - forgetting to upload the .js file, not including the .swf file, etc.
    I think I've done everything right (obviously I'm wrong though), it previews in DW, it works when I preview it in a browser, but when it's uploaded, nothing.
    But I think I've found where the problem is. The .swf file that was created doesn't seem to be the right file. When I open it, it shows a blank flash slideshow with three empty slides, just as the sample is when you first open the Imageviewer.
    But then what is DW pulling the slideshow from that works in the preview?? How do I re-export the .swf file from DW?
    Do my questions even make sense? Sorry, kinda new at all this.
    Thanks in advance.
    Oh, here is the blank page, but when I view source, the code is there.
    http://www.americanindianreport.com/imageviewer.html
    The .js file is in the Scripts folder, the .swf is in the same folder. Actually, here you can see why it doesn't work. This is the .swf file, three blank pages:
    http://www.americanindianreport.com/imageviewerflash.swf

    If you look at my last post, the js file has been overwritten with html code, and this is what will be causing the problem.
    The only solution is to delete this file insert a new flash object (any swf file will do for this), then copy the new js file to your server, as your flash will not work with this file.
    here is a short example of the js files content (not javascript), -
    <html>
    <head>
    <title>Page not found | www.americanindianreport.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="/http://www.falmouthinstitute.com/favicon.ico" type="image/x-icon" />
    <link type="text/css" rel="stylesheet" media="all" href="/modules/book/book.css?r" />
    <link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?r" />
    PZ

  • Having Truble Reading and Echoing Using PHP in HTML. Possible Variable Scope Problem?

    Hey guys,
       Thanks for your always knowledgable help! Today I am working with displaying text from a text file in an HTML table using PHP. I can't get the data to display properly, I think it has something to do with the scope of the variables, but I am not sure. Here is the code I am struggeling with:
    <table width="357" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="165">Pizza 1</td>
        <td width="186"><? echo  $price['0']; ?></td>
      </tr>
      <tr>
        <td>Burger 1</td>
        <td><? echo $price['1']; ?></td>
      </tr>
      <tr>
        <td>Drink 1</td>
        <td><? echo $price['2']; ?></td>
      </tr>
    </table>
    In the above PHP (not shown) the array $price is filled properly (I tested by echoing each bit line by line) but by the time we get into the HTML it seems the array is empty or it is not liking how I am calling it. Does the scope of a PHP variable end with the closing "?>" tag? Am I missing something? Bellow is the full code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    body {
        background-color: #333;
        color: #FFF;
    </style>
    </head>
    <body>
    <?php
    $menu=fopen("prices.txt","r") or exit("Unable to open file!");
    $price=array();
    $priceposition=null;
    $tempstring;
    //This loop does all of the READING and populating of variables
    while(!feof($menu))
        //Check to see if this is the first pass, if not add one to the array possition
        if ($priceposition==null){
            $priceposition=0;
        else{
        $priceposition++;
        //populate the temparary string
        $tempstring = fgets($menu);
        //Populate the array if the temporary string is not a comment
        if(substr($tempstring,0,2) != "//"){
            $price['$priceposition']= $tempstring;
            echo $price['$priceposition'];
      //End of reading loop
    fclose($menu);
    ?>
    <table width="357" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="165">Pizza 1</td>
        <td width="186"><? echo  $price['0']; ?></td>
      </tr>
      <tr>
        <td>Burger 1</td>
        <td><? echo $price['1']; ?></td>
      </tr>
      <tr>
        <td>Drink 1</td>
        <td><? echo $price['2']; ?></td>
      </tr>
    </table>
    </body>
    </html>
    and you can run the code on my test server here: christianstest.info/phptest/readwritetesting/readtest.php
    thanks guys!

    MurraySummers wrote:
    Try changing this -
    fclose($menu);
    to this -
    fclose($menu);
    echo "<pre>";exit(print_r($price));
    and see what you get.
    Wow, what a great little peice of testing code, thanks! That showed me the problem right away! Is there any way to test your php line by line in Dreamweaver CS6? I am used to computer programing in Visual Studio and Eclipse where they have an option of running code line by line and seing how variables populate and change with each line of code execution. Or is thier a program that can do this for PHP?

  • Beans scope problem

    Hi
    I have a bean that stores the name of the user after they have logged in. It is supposed to be in session scope
    <jsp:useBean id="userInfo" class="beans.UserInfo" scope="session"/>But it appears to have been placed in application scope. It doesn't timeout and all subsequent users appear to be logged on as the first user. This is not good.
    Any suggestions? I'll post the code once I've made a minimal version of the problem.
    Thanks
    Richard

    Here's the code
    the bean: UserInfo.class
    package beans;
    public class UserInfo implements java.io.Serializable  {
      private static boolean loggedIn=false;
      private static String user="";
      public UserInfo() { }
      public static void setLoggedIn(boolean b){loggedIn=b;}
      public static void setUser(String b){user=b;}
      public static boolean isLoggedIn(){return loggedIn;}
      public static String getUser(){return user;}
    }main jsp page test.jsp
    <jsp:useBean id="userInfo" class="beans.UserInfo" scope="session"/>
    <jsp:include page="header.jsp" flush="true">
       <jsp:param name="title" value="Test" />
    </jsp:include>
    <%
      boolean login=Boolean.valueOf(request.getParameter("login")).booleanValue();
      if(login){
          userInfo.setLoggedIn(true);
          userInfo.setUser("strUsr");
    %> 
    <p><b>mainpage says</b>
    <%if (userInfo.isLoggedIn()) {%> <%=userInfo.getUser()%> logged in
             <%}else {%>not logged in
                <%}%>
    </body>
    </html>The included file header.jsp
    <jsp:useBean id="userInfo" class="beans.UserInfo" scope="session"/>
    <html>
    <head>
    <title><%=request.getParameter("title")%></title>
    </head>
    <body>
    <p><b>header says</b>
    <%if (userInfo.isLoggedIn()) {%> <%=userInfo.getUser()%> logged in
             <%}else {%>not logged in
                <%}%>load test.jsp?login=true in a browser
    load test.jsp in another browser - should not appear logged in - but does at least with my system (tomcat 5.5.9 on windows xp)
    Any suggestions,
    Richard

  • Problems targeting swf loaded with loadClip()

    Hi everyone,
    I'm having a really weird problem that I hope someone will be able to help me with. I'm using Actionscript 2.0.
    Basically, I have a main .swf, into which I am loading another .swf using loadClip(), on the click of a button. It loads into an empty movie clip on the timeline of the main .swf called container_mc. So far so good, this works.
    The problem comes when I am trying to control a movie clip that lives on the timeline of the external .swf. This clip has the instance name test_mc, and I'm trying to control it using the reference _level0.container_mc.test_mc. I have also tried just plain old container_mc.test_mc.
    Neither of these work, though when I apply a trace to test_mc with Actionscript on the timeline of the external swf (test_mc.onRelease = function () { trace(this); }), it returns the path _level0.container_mc.test_mc (when clicked on after being loaded into the main movie, obviously).
    Can anybody give me any ideas as to what is going wrong here? I've attached a couple of files demonstrating the problem I'm having.
    Cheers for any assistance!

    Thanks for confirming that I'm not crazy or stupid in thinking that's what the reference should be (honestly, I was starting to imagine that I must be one of the two), however I definitely only have one each of container_mc and test_mc. I've just tested this by changing the instance names (one at a time) - if there was a duplicate instance with the same name, the code would presumably still work, which it doesn't.
    Thanks for the suggestion, though.

  • (Eng/Esp)  Problem with .SWF in DW/Problema con .SWF en DW.

    Hello,
    Sorry for my English, im learning, but im not yet a expert.
    I have  problem  with my Dreamwaver, when I put a .swf (I've done my web with Flash) and press F12 i cant see my SWF. And the error mensager is the follow:
    Could u help me, plz?
    Thnx.
    Andrés
    Buenas tardes,
    Estoy diseñado mi pagina web. La he hecho en Flash, pero a la hora de exportarla a Dreamwaver y al darle al F12 para verla como seria en el FireFox, me sale este mensaje
    Si le doy aceptar, me aprece el fondo de mi web, pero donde esta la parte de flash se queda totalmente en blanco. He probado otros exploradores y me sale el mismo mensaje. He actualizado el flash a la última versión, etc. Alguien me podría ayudar?.
    Muchas gracias,
    Andrés

    On lines 33 and 42, change this:
    <param name="swfversion" value="20.0.0.0" />
    To this:
    <param name="swfversion" value="8.0.35.0" />
    Nancy O.

  • Problem adding .swf in page

    Hello,
    here's my problem.
    I have a short video that I embedded  in flash, ACS2. Exported as .swf. When I place it in my page in Muse, on the preview nothing happens.
    Then I converted to a GIF sequence, same problem.
    To test, I made a basic animation in Flash and then did the same thing, and it worked. So, I'm confused.
    Is it because of video? Because I converted and tried to make it as light as possible.
    Thank you!

    Hi
    You can refer to these links :
    https://forums.adobe.com/message/4635231#4635231#4635231
    http://tv.adobe.com/watch/classroom-basic-site-layout-and-navigation-in-dreamweaver-cs5/pa rt-11-adding-flash-content/
    http://www.lynda.com/Muse-tutorials/Adding-animated-GIFs-SWFs/89048/104731-4.html
    Thanks,
    Sanjit

Maybe you are looking for

  • Get date-time from .lvm

    With Labview I've created a .lvm file with 6 colums of data. The .lvm also contains a x value (+1 for each row) so i'm saving 1 row of data every second. If I plot the data in Diadem the X-axis shows up as relative time, but I want to see the absolut

  • How to connect HP TouchPad Wireless Keyboard to XBox One?

    How can i connect a HP TouchPad Wireless Keyboard  to XBox One?

  • Mapping flat files in OWB

    Hello, I am trying to start a job which has flat file as source and table as target. When I deploy mapping everything is fine but when I try to execute it this error occurs: RPE-01013: SQL Loader reported error condition, number 1. SQL*Loader: Releas

  • Flash content causing background re-draw in IE & FF3+

    Whenever I include flash content on a page it causes IE & FF3+ to redraw the background.  This does not happen in Google Chrome, Safari, or FF2. On every page of my site there is a small flash animation that is in a hidden div.  That flash content be

  • I can´t open files with number after update, last week.

    Last week I upgraded Mavericks, Pages, Keynote and Numbers .. that's OK, then I could not open these programs. When I try, a window appears: "To open this spreadsheet must use a later version of Numbers.  You can download the latest version of Number