Display from a class

I have a class that is supposed to draw a series of lines on the scene, but nothing comes
upward when it is called. I ran a trace to ensure that it is called, but nothing appears.
Is this some type of problem of stadium?

You probably forgot to call addChild for example of drawScreen. This code is added in the first image:

Import drawScreen;
var d: drawScreen = new drawScreen();
addChild (d);

A suggestion: do not name classes with small starting last for example do not name class drawScreen, use DrawScreen instead.

Best,
Zaharije Pasalic

Tags: Adobe Animate

Similar Questions

  • Hello, my phone pulled from my class at school and it has no data on it, so I did not no how to locate without using find my iphone is there another way I could find as soon as possible

    Hello, my phone pulled from my class at school and it has no data on it, so I did not no how to locate without using find my iphone is there another way I could find as soon as possible

    Go to iCloud.com

    Then sign in with your Apple ID and password, then click the Find iPhone.

    If this does not help, see: If find my iPhone is not activated on your missing device > what to do if your iOS device is lost or stolen

  • I want to open and read the tax document encrypted from my class last year, how can I do?

    I want to open and read the tax document encrypted from my class last year, how can I do?

    Do you remember the password?

    Did you change your computer, or reinstall Windows after you saved the file?

    What version of Windows you have now?  And what version you have when you saved the file?  Specify the service pack level.

    How do you encrypt and save last year?

    What tax preparation software you use?

  • How to inherit from the class of property

    Hello experts,
    I use form 10g. I created a class of property in form one.
    Save and compile. now, I wanted to inherit this class of property in form b.
    for this I subclass form a form b.
    When I close the form, it shows the message
    error frm:18108
    source module: formA
    source my_property object (class)

    as we say that we can inherit from the classes of quality, please help me how?

    Thank you
    Yoann

    Yoann,
    So that the B FORMULA to find the class property in the FORM A, FORM A must be in a directory that is part of the FORMS_PATH. It's always a good idea to create a GLOBAL. FMB (or whatever you want to call the form) or an object library (.) OLB) that contains all of your objects that will be subclassed in other forms. Then put it. FMB or. OLB in a directory that is in your FORMS_PATH. This allows you to store all your source objects of subclass in one place.

    Craig...

  • Calling functions from another class

    How one accesses a function from another class?

    Let's say I have a file called .as hand. My flash file uses this as this is the main class to make it work when you test the program. Let's say I have another class named Test that looks like this:

    package

    {

    public class Test

    {

    public void Test()

    {

    trace ("why don't you work?');

    }

    }

    }

    I want call the Test function when the game takes place (in the appellant to hand), how would he enter the main run file? I imported to it, made sure that the functions were public/static, created as a variable and it still doesn't work.

    Any help would be good

    the constructor for a class is different from a 'normal' function

    If you can't do something like

    meow: Test of var = new Meow();

    To call it thus:

    test: Test of var = new Test();

    test. Meow();

  • Populating a list from a Class... How?

    It seems simple (in fact... it used to be, but I'm now trying to figure out how do it in AS3...)

    I have a remote access script that reads a list of customers from a database via Flash remoting. I had this part works fine. He reads the database and I receive the data in a table. It then returns the table in a command trace() without any problem. I can't fill the list component that I hit against the stange however. Now I can get it to do this whole process outside of a class (works perfectly), but once inside the class,... it can not / will not write the data in the table to the list.

    I've done a lot of research and it seems that nobody asked that specific question. I found similar topics, but which is discussed as a solution doesn't seem to work (including an addChild method (array)). It seems, ludacris, if not totally redundant, having to declare, within a class, an instance of something that is already placed on the stage. Is that what all of a class MUST be generated from this class or can you have the instances already placed on the scene and waiting for classes to interact with them? What I'm missing here?

    (BTW - myList is the name of the instance of the List component, which is sitting on the stage, waiting to be filled.)
    -1120: access of undefined property myList.

    Thanks for the help and information! After reading your posts and doing a lot of trial and error, I finally got (and understand)! I was able to dump the data in the table into a data provider. I also wanted access to the table I did from anywhere in the application as well. So my main hold-up was that I was calling new array and DataProvider new within the class method. I moved those out of the area of class method and put between the class declaration and the constructor. These variables variable instance compared to local variables was done and they started to work as it should, publicly. I now have access to my table everywhere and I was able to dump the data in the object of waiting list already on the stage by calling it from the main timeline:

    import com.exade.working.getClientList;
    var clientList:getClientList = new getClientList();
    myList.dataProvider = clientList.myData;

    The class file now looks like this:

  • Pulling data from the class on a MovieClip array

    I am trying to create this slideshow application that displays product information (Tennis rackets) issues of different categories. A great programmer advised me that OOP would be a way to go, however I'm having a difficulty with it.

    I created:

    A document class called CustomClass--> This class downloads all data from the server and pushing the content in the XML based on a category tables. These berries are public, there is also a funciton iterateArray that places the children information somewhere.

    I would like to have 3 different movie clips

    1 screen-> Welcome Message

    2nd screen-> first table

    3rd screen-> second table Dispalyed

    package {
         
         import flash.display.*;
         import fl.transitions.*;
         import fl.transitions.easing.*;
         import flash.net.*;
         import flash.events.*;
         import flash.text.*;
         import flash.text.AntiAliasType;
         import flash.utils.*;
         import bucket_right;
         import bucket_left;
         import firstScreen;
         import secondScreen;
         
         
         public class CustomClass extends MovieClip {
              
              
              [Embed(source="C:/WINDOWS/Fonts/Eurosti.ttf", fontFamily="Euro")]
              public  var EuroEmbedded:Class;
              
              
              //XML responsible variables 
              private var xmlLoader:URLLoader;
              private var xmlContainer:XML;
              private var xmlList:XMLList;
              
              //Array specific variables 
              public var rackUSA:Array;
              public var rackOther:Array;
              public var imagesArray:Array;
              
              //Position Variables 
              public var position:Number;
              
              //Movie Clip Related Data
              public var bucket:MovieClip;
              public var firstScreenShow:MovieClip;
              public var secondScreenShow:MovieClip;
              
              //Text Field Formatting
              private var brandnameTxt:TextFormat;
              private var detailsTxt:TextFormat;
              private var priceTxt:TextFormat;
              public  var euroEmbeddedFont:Font;
              private var fontNeeded:String;
              
              
              //Set up Timer Vars 
              private var applicationStart:Timer;
              private var delay:Number;
              private var repeat:Number;
              
              //Positioning Variable 
              private var positionBuckets:Boolean = true;
              
              //This is the constructor of the application 
              public function CustomClass() {
                   euroEmbeddedFont = new EuroEmbedded();
                   fontNeeded            = euroEmbeddedFont.fontName;
                   position         = 5;
                   rackUSA            = new Array();
                   rackOther            = new Array();
                   imagesArray       = new Array();
                   
                   delay                 = 2000;
                   repeat                = 1;
                   applicationStart = new Timer(delay, repeat);
                   LoadXML();
              }
              
              private function LoadXML() {
                   xmlLoader = new URLLoader();
                   xmlLoader.load(new URLRequest("http://localhost/xml/index.php"));
                   xmlLoader.addEventListener(Event.COMPLETE, populateInfo);
              }
              
              public function populateImages(imgname:String, imgurl:String):* {
                   var imageLoader:Loader = new Loader();
                   //imgname = imgname.split(".gif").join("");
                   //imageLoader.name = imgname;
                   //imagesArray.push(imageLoader);
                  imageLoader.load(new URLRequest(imgurl));
                   return imageLoader;
              }
              
              public function getArray(arrayName:Array) {
                   return arrayName;
              }
              /*public function startApplication() {
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }
              
              public function firstScreen(e:TimerEvent) {
                   removeChild(secondScreenShow);
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
                   firstScreenShow = new firstScreen();
                   addChild(firstScreenShow);
                   //firstScreenShow.iterateArray(rackUSA);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
              }
              
              public function secondScreen(e:TimerEvent) {
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
                   removeChild(firstScreenShow);
                   secondScreenShow = new secondScreen();
                   addChild(secondScreenShow);
                   //secondScreenShow.iterateArray(rackOther);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }*/
              
              public function setFontFormat() {
                   //Text Formatting for Brand Name Field
                   brandnameTxt = new TextFormat();
                   brandnameTxt.font = fontNeeded;
                   brandnameTxt.color = 0x006699;
                   brandnameTxt.size = 20;
                   brandnameTxt.bold = true;
                   //
                   
                   //Text Formatting for Country/Material
                   detailsTxt = new TextFormat();
                   detailsTxt.font = fontNeeded;
                   detailsTxt.color = 0x006699;
                   detailsTxt.size = 10;
                   detailsTxt.bold = false;
                   
                   //Text Formatting for Country/Material
                   priceTxt = new TextFormat();
                   priceTxt.font = fontNeeded;
                   priceTxt.color = 0x9DE36E;
                   priceTxt.size = 20;
                   priceTxt.bold = true;
              }
              
              public function tweenBucket(bucket:MovieClip) {
                        var bucketImgTrans = new TransitionManager(bucket);
                        bucketImgTrans.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
              }
              
              private function iterateArray(contentInfo:Array) {
                   this.setFontFormat();
                   
                   for (var c:uint = 0; c < contentInfo.length; c++) {
                             var brand:TextField   = new TextField();
                             var country:TextField = new TextField();
                             var made:TextField    = new TextField();
                             var cost:TextField    = new TextField();
                             var img:Loader;     
                             brand.embedFonts        = true;
                             
                             img            = contentInfo[c].picture;
                             brand.text   = contentInfo[c].brand;
                             country.text = contentInfo[c].country;
                             made.text    = contentInfo[c].made;
                             cost.text    = contentInfo[c].cost;
                             
                             if (positionBuckets) {
                             bucket       = new bucket_left();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 70;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = 45;
                             cost.y = -10;
                             img.x = -105;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.LEFT;
                           priceTxt.align         = TextFormatAlign.LEFT;
                             positionBuckets    = false; 
                             } else {
                             bucket       = new bucket_right();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 240;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = -110;
                             cost.y = -10;
                             img.x = 70;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.RIGHT;
                             positionBuckets    = true;      
                             }
                             brand.setTextFormat(brandnameTxt);
                             country.setTextFormat(detailsTxt);
                             made.setTextFormat(detailsTxt);
                             cost.setTextFormat(priceTxt);
                             //this.tweenBucket(bucket);
                             addChildAt(bucket, 0);
                             bucket.addChild(DisplayObject(img));
                             bucket.addChild(brand);
                             bucket.addChild(country);
                             bucket.addChild(made);
                             bucket.addChild(cost);
                             position += 70;
                   }
              }
              
              private function populateInfo(event:Event) {
                   
                   //Incoming XML Data
                   xmlContainer = new XML(event.target.data);
                   xmlList = xmlContainer.product;
                   //
                   
                   //Variables to hold the string
                   var brandTxt:String;
                   var country:String;
                   var material:String;
                   var price:String;
                   var image:String;
                   
                   for (var i:uint = 0; i < xmlList.length(); i++) {     
                   if (xmlList.country.text()[i] == "USA") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   rackUSA.name = brandTxt.toLowerCase();
                   var imgVar:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackUSA.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVar});
                   //addChild(DisplayObject(rackUSA[0].picture));
                   } else if (xmlList.country.text()[i] == "Other") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   var imgVarOther:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackOther.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVarOther});
                   }
                   }
                   //this.startApplication();
              }
              
              
              
              
              
         }
    }
    

    If I clip named firstScreen how to fill with data from the rackUSA of the table, using the presented functions iterateArray

    I tried in a movieClip

    CustomClass.iterateArray (rackUSA); but it does not work

    Any suggestions

    I want to clarify the use cases.

    1 load data into the document class

    2. display a welcome message

    3 allow users to navigate through the products.

    Q1: Do you mean by 'welcome message' a user interface that allows to start navigation?

    Q2: Products appears the same way. I mean, consider that product display will have a uniform provision?

    If the answer to Q2 is Yes, I would:

    1. create a class that features products. Call ProductDisplay

    2 transfer data (subset of XML related to a particular product - in your case, it may be an object in the position of the table) in an instance of ProductDisplay

    I would like you to consider the following.

    It is a good practice to do OBJECT oriented programming class as little as possible each. This means that a class must have a very focused functionality. For example, ProductClass you perform tasks related to laying on the presentation of the product. With this in mind, it is best to delegate, say, loading image to a separate category. Believe me, when you do – your life will be much easier if you do features as granular as possible even if sometimes it feels like an overdose.

    So here's the sketch of your classes. I wrote it just to illustrate the idea. I did not check the code during execution is definitely buggy.

    Read my comments below also.

    It is a class of product image that load the image:

    
    package
    {
         import flash.display.Loader;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.ProgressEvent;
         import flash.net.URLRequest;
    
         public class ProductImage extends Sprite
         {
              // image url
              private var _url:String;
              // loader
              private var _loader:Loader;
              public function ProductImage()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   _loader = new Loader();
                   _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
                   _loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
                   _loader.load(new URLRequest(url));
              }
    
              private function onProgress(e:ProgressEvent):void
              {
                   // display progress if needed
              }
    
              private function onLoad(e:Event):void
              {
                   _loader.contentLoaderInfo.removeEventListener(Event.COMPLETE);
                   _loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
                   addChild(_loader);
    
              }
    
              public function get url():String { return _url; }
    
              public function set url(value:String):void
              {
                   _url = value;
              }
    
         }
    
    }
    

    ProdustDisplay class. Note how the product class is instantiated

    
    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
    
         public class ProductDisplay extends Sprite
         {
              // hold the metadata
              private var _metaData:Object;
              // an object that holds the image
              private var _imageDisplay:ProductImage;
              public function ProductDisplay()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // only if metadat is set - build interface
                   if (metaData) {
                        build();
                   }
    
              }
              // build interface
              private function build():void {
                   // place prduct image
                   _imageDisplay = new ProductImage();
                   _imageDisplay.url = metaData.image;
                   addChild(_imageDisplay);
                   // do the rest - like description, etc.
              }
              // function that accepts product metadata
              public function set metaData(metaObject:Object):void {
                   _metaData = metaObject;
              }
              // returns metadata
              public function get metaData():Object {
                   return _metaData;
    
              }
    
         }
    
    }
    

    Now in your document class, you can set an unlimited number of instances of ProductDisplay (as slides) and manipulate them. Again, this is just a sketch. Actual implementation of features and code will be somewhat different:

    var productDisplay:ProductDisplay = new ProductDisplay();
    productDisplay.metaData = rackUSA[2];
    
    

    Note: Your code has several inconsistencies - we need to go through them at another time. For now just digest these ideas. I understand that this will involve a refactoring on your part, but once you are done with it - things will fall in place fast.

  • Mode Dual monitor: can I extend the main display from right to left?

    I have a Setup dual monitor with

    Main screen with desktop computer: Dell S42092

    Secondary display: Inspiron notebook.

    Is there a way to extend from left to right?  I wish I had my secondary screen (laptop) positioned on my left, not the right, which seems to be the only way that the configuration of the resolution of the screen allows you to do.  I currently configured as

    Display (2) Dell s24092

    Several screens: extend these screens (this allows me to drag from left to right, which is not intuitive if the laptop is on the right.

    If I can't do it with this configuration, this work with another monitor, type?

    Trudy-o

    My OS is Windows 7, but I've been to the screen "Changes the appearance of your poster" you describe.

    It identifies the laptop as monitor 1 and the S24092 Dell Monitor 2. It allows me to do 1 or 2, my main screen, but it does allow me to pass the identity of 1 and 2.   Therefore, any screen is my main screen, management of drag forces me out of the side right of the main screen (the great Dell) before entering the screen of the computer, which I turned to the left.  I am left handed and I smile with my left hand, and I'd rather have my secondary monitor to my left.  Is it makes sense?

    The identity is to tell you, visually, that is, whose number has no significance. The computer screen will always be 1 and the outside will be always high because you can not disconnect and because it will be the first computer find at boot.

    To put secondary (2) on the other side, press the image of monitors, monitor 2 drag it to the other side of the #1 and press apply then / adjust displays are flashing and if he succeeds, it will appear a window with a 15 seconds timer to reset the display if no one pressed the Yes button.

    Basically, you want to match the image with your configuration.

    I'm left-handed too, but use the mouse with your right hand. and I have a laptop with Vista and an external monitor (primary) to the left of the laptop.

  • Using a function from another class

    Information: Blackberry JDE 7.1.0

    BlackBerry 9930 Simulator - V 4.0.0.141

    The title of the topic seems simple, but I'm actually trying to use a X of class A function inside a function Y of class B and the GET, the value returned by X to a variable in B.

    Let me start by explaining what I currently have and then go on what I'm doing.

    I am using this class, the code for which I found online, to create a scrollable multi-line textbox.

    public class TextBoxField extends VerticalFieldManager {
    
          //define some variables to be used
          //in the class
          private int managerWidth;
          private int managerHeight;
          private EditField editField;
    
          public TextBoxField(int width, int height) {
                super(Manager.NO_VERTICAL_SCROLL);
                managerWidth = width;
                managerHeight = height;
    
                VerticalFieldManager vfm =
                    new VerticalFieldManager
                      (Manager.VERTICAL_SCROLL);
    
                  editField = new EditField(){
                    public void paint(Graphics g) {
                    getManager().invalidate();
                    super.paint(g);
                  }
                };
    
                vfm.add(editField);
                add(vfm);
              }
    
          public void paint(Graphics g) {
              super.paint(g);
              g.drawRect(0, 0, getWidth(), getHeight());
            }
    
          public void sublayout(int width, int height) {
              if (managerWidth == 0) {
                managerWidth = width;
              }
              if (managerHeight == 0) {
                managerHeight = height;
              }
              super.sublayout(managerWidth, managerHeight);
              setExtent(managerWidth,managerHeight);
            }
    
          public String getText() {
                return editField.getText();
              }
              public void setText(String text) {
                editField.setText(text);
              }
            }
    

    Then in another class that I created a "Set" function that instantiates the class textbox, to create two text boxes and a richfieldtext, add them to a HorizontalFieldManager and return the HorizontalFieldManager.

     HorizontalFieldManager Set(int set){
            HorizontalFieldManager hr1=new HorizontalFieldManager(FIELD_HCENTER);
    
            RichTextField set1 = new RichTextField("SET " + set + ":"){
                protected void layout(int width, int height)
                {
                    super.layout(75,30);//Width and height according to the button name;
                    setExtent(75,30);//width and height according to the button name;
                }
            };
            set1.setPadding(10, 5, 10, 10);
            TextBoxField set1W = new TextBoxField(40,25);
            set1W.setPadding(10, 5, 10, 0);
            TextBoxField set1R = new TextBoxField(40,25);
            set1R.setPadding(10, 5, 10, 0);
    
            hr1.add(set1);
            hr1.add(set1W);
            hr1.add(set1R);
    
            return hr1;
        }
    

    Now in my main class I call this function to add a 'Set' on the screen using:

    add(Set(1));
    

    For the creation of the 'Set' function instead of using the instance of the textbox class in the main class itself, it is because I will create several 'sets '.

    Now, as you can see, there is a public String getText() function in the TextBoxField() that returns the value of the editField. What I need to do, is to get the value in this field, once you press a button.

    I have the code for the function button, so this isn't a matter of concern. However I do not know how to retrieve the editField value when the button is pressed. I can get the value inside the Set()function, using the:

    String getval = set1W.getText();
    

    but can't reach it from the outside. I don't even know if it's possible in the first. If it is not could someone suggest a way where I could retrieve these values.

    Any help is appreciated.

    Thank you.

    Thanks for the suggestion. I found another workaround solution. Essentially implementation of an array of TextBoxFields and then pass them one by one the "Set()" method

    I tried this at the start before posting here, but due to a careless mistake when you declare the array of TextBoxFields, I couldn't make it work.

    In any case, the topic can be closed now, because the problem has been resolved. Thank you.

  • Error display (from different threads)

    Hello

    I have a program that downloads an xml file.

    An error is encountered when I by specifying a non-existent URL in the Http connector (in order to produce an error).  I want to display the error on a pop-up message, however, the Simulator gives me an error when I try to view the message.

    My code looks like this (short form):

    1.  A Button Pressed
    2.  Connection thread executed
    
    ...
    
    private class Search extends Thread {
      public Search() {
        super();
      }
    
      public void run() {
    
         try {
         ...
         code for downloading and parsing file -- works just fine
         ...
         } catch (Exception e) {
    String error = e.toString();
    System.out.println(e.toString());
    
    //remove the currently displayed "Please wait..." PopupScreen
    synchronized (UiApplication.getEventLock()) {
    UiApplication.getUiApplication().popScreen(
    UiApplication.getUiApplication().getActiveScreen());
                    }
    
    //display a new screen with the error               UiApplication.getUiApplication().pushScreen( new WaitScreen(error));
    }
    

    An error is thrown in the last line "UiApplication.getUiApplication () .pushScreen (new WaitScreen (error));'.  I know this because when the line is removed, the program works fine (except for the fact that the file is not downloaded).

    When the URL does exist, there is no problem - the file is downloaded and the program does what I want it to do.  So, the problem is when I try to view a popup that says details about the error.

    Someone has any ideas why this might be the case?

    Thank you!

    UiApplication.getUiApplication().invokeLater(new Runnable()
       public void run() {
    
    Status.show(error, 2000);
                   }
    });
    

    Found a solution to my problem:

    I was not correctly process the son.

  • Cannot use a CSS file to display from the rafters in the sensitive HTML output

    We use a CSS file to add styles to characters in some of our content. It works by using the WebHelp output, but when we exit to HTML5 reactive, rafters are not displayed. Here is the code in the CSS file:

    span. KeyName {}

    make-weight: normal;

    do-variant: small-caps;

    }

    span. KeyName: before {}

    content: ' < ';

    }

    span. KeyName: after {}

    content: ' > ';

    }

    This part of the CSS file should just define content relevant to small capitals and wrapping brackets around it. When you look at this style in the Styles dialog box, it does not display the rafters in the preview window, then perhaps there is a clue as to what is at the origin of the problem. We use RoboHelp version 11, but get the same problem with the 2015 version. Any advice would be appreciated.

    I'm not a CSS guru, but I know that the output files are different from the source. My gut tells me that the build process is originally munging of the CSS in the output. I tested by copying your code and pasting in one of my CSS and applying the style. As you say, WebHelp was beautiful and the media were there but more responsive, they were absent. But when I copied the CSS from the source to the output, the reactivity is actually media.

    When I compared the differences, what seems to happen is that in the CSS source there are quotes that surround the characters of your choice and in the output, the quotes are ejected. So workaround seems to be either simply change the CSS output after generating or just copy the CSS source produce by and replace with her output.

    :

    See you soon... Rick

  • Change the display for the class using customization

    Hi all

    In the classes of the OLM of Global catalog are displayed at all, I want to put a restriction on the classes on the basis of the training center. I added the center of training for classes using personalization (aded a point for it). No idea how to restrict the classes further? such as training center that is assigned to the admin can see only its course and not others?

    Hello

    It will be possible by adding dynamic where clauses of views but probably need some trial and error to check the pages where it is needed and the complexity of the requirement (example: 2 admins should see the same course but classes that belong to their centres only)

    In addition, another option could be to use admin groups (R12.1) to manage access even if I think it's only available until the course level and not at the class level.

  • Using 'this' - or not? To access the properties of a member of a class from the class.

    I have a class, call MyClass, and there are several variables that I need to be able to access each instance from within the class.

    For example, if I need the myObject1, a member of the MyClass object, to store the variable myNumber.

    Since the main scenario, if I draw myObject1.myNumber, I get whatever number I have stored.

    However, I need to check the numbers against another parameter, so I need to test if myObject.myNumber is myOtherNumber. But within the class, if I trace this.myNumber or myNumber I get null.

    What is the proper syntax to access a variable in a class?

    looking for a matter of time, wherever you are trying to access the variable in your class before it is defined (in the main timeline).  the following is a typical mistake:

    var yc:YourClass = new YourClass;

    YC.var1 = "Hi";

    ///////////

    package {}

    import...

    public class YourClass...

    .

    public void YourClass {}

    any attempt to access this.var1 here (the manufacturer) will fail

    }

    }

    }

  • How to move code from one class to another?

    I have a .fla file.

    Here, I have a few keyframes with labels.

    On the .fla file in the property in the field of the class I have adde class MyMatching.

    I also have the main code:

    package 
    {
         import flash.display.MovieClip;
         import flash.events.MouseEvent;
         import flash.text.TextField;
         
         public class MyMatching extends MovieClip 
         {
              var play_btn:MyButton = new MyButton();
              var kyky:MyTimer;
              
              public function MyMatching():void
              {
                   welcomeScreen();
              }
              
              public function welcomeScreen():void 
              {
                   stop();
                   trace("working");
                   play_btn.x = 210;
                   play_btn.y = 300;
                   addChild(play_btn);
                   play_btn.addEventListener(MouseEvent.CLICK, goToLevel_1);
              }          
                   
              public function goToLevel_1(event:MouseEvent)
              {
                   trace("level 1");
                   play_btn.visible = false;
                   gotoAndStop('Level1Screen');               
                   if (kyky==undefined) {
                        kyky = new MyTimer();
                   }
              }
         }
         
    }
    

    And I have another class:

    package 
    {
         import flash.display.MovieClip;
         import flash.display.Stage;
         import flash.utils.getTimer;
         import flash.text.TextField;
    
         public class MyTimer extends Stage
         {
              import flash.utils.getTimer;
              var gameStartTime:uint;
              var gameTime:uint;
              var gameTimeField:TextField;
              function mainFunction():void
              {
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime=getTimer();
                   gameTime=0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              }
              function showTime(event:Event)
              {
                   gameTime=getTimer()-gameStartTime;
                   gameTimeField.text="You plaing: "+clockTime(gameTime);
              }
              function clockTime(ms:int)
              {
                   var seconds:int=Math.floor(ms/1000);
                   var minutes:int=Math.floor(seconds/60);
                   seconds-=minutes*60;
                   var timeString:String=minutes+":"+String(seconds+100).substr(1,2);
                   return timeString;
              }
         }
         
    }
    

    Ho can I play MyTimer class code in the function goToLevel_1 (this furnished function in my main class MyMatching)?

    Thank you.

    First your class MyTimer is sloppy and poorly written.

    Why does go on stage? The more compact class to extend the circumstances is Sprite.

    In addition, it is very important to get the habit of data type declarations. Not only it is advisable, in your case the good compiler will throw error because even if you return the string, function returns nothing.

    In addition, it is important to declare namespaces as public private and protected within the classes. No function clickTime (): String but private function clockTime (): String or publicfunction clickTime (): String.

    How to show your time elsewhere - you just create instnace of it and add it to the list of disaply:

    var myTimer:MyTimer = new MyTimer();

    addChild (myTimer);

    That said, your class should look like this:

    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.display.MovieClip;
         import flash.utils.getTimer;
         import flash.text.TextField;
    
         public class MyTimer extends Sprite
         {
              private var gameStartTime:uint;
              private var gameTime:uint;
              private var gameTimeField:TextField;
    
              public function MyTimer()
              {
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime = getTimer();
                   gameTime = 0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              }
    
              private function showTime(event:Event):void
              {
                   gameTime = getTimer() - gameStartTime;
                   gameTimeField.text = "You playing: " + clockTime(gameTime);
              }
    
              private function clockTime(ms:int):String
              {
                   var seconds:int = Math.floor(ms / 1000);
                   var minutes:int = Math.floor(seconds / 60);
                   var timeString:String = minutes + ":" + String(seconds + 100).substr(1, 2);
                   return timeString;
              }
         }
    }
    
  • Customize the display of the class Menu

    I was wondering if there is a way in DW4 to customize the class drop-down list menu so that it doesn't have a sample of all the styles/class, as I have some pretty wild that really clutter the menu.

    In the end, it would be good if I could have just a dropdown menu with the text displayed special unformatted and gross.

    Thoughts? I went through the options of DW, but I'll be darn if I can find an option for this hidden anywhere...

    John

    John,

    Right click and look at the CSS Styles submenu.

    HTH,
    Randy

    > I was wondering if there is a way in DW4 to customize the menu of class drop-down list so
    > that there not a sample of all the styles/class as I have enough
    > savages who really cluttering up the menu.
    >
    > At the end of the day, it would be good if I could just have a dropdown menu with the plain
    > text and no displayed particular presentation.

Maybe you are looking for

  • Menu of time performing - table close round

    Hi all I have a small question on the menus of the run-time behavior: I have a configuration of structure of event to detect the Panel close? event to handle some stop code before my application closes. I wonder who the selections of run menu trigger

  • Can I upgrade my aspire 5749 to use a dual-band wifi card?

    I have problems with the 2.4 Ghz frequency band on my wifi. (too crowded). I upgraded my router to a double band and now you want to upgrade my acer aspire wifi card 5749 double band too. Does anyone know what are the dual band wifi cards are compati

  • Sony DSC-S500 6MP digital camera does not

    What do we do when the camera does not work at all when we bought a new laptop with Win 7 64 bit? All Solutions for this problem as I don't want to buy a new camera or a Downgrade? Microsoft must help the community as soon as possible BECAUSE they do

  • Dual CPU (Core 2 x 12) highlighted in PP?

    Hello dear colleagues,I worked with a workstation, equipped with 2 x 12 Core Opteron (6344) @3 Ghz for the past two years.For my personal PC I upgraded to a Phenom on an Intel system with the i5 6600 k and I compared the workflow of the same PProject

  • Playback will not play properly?

    When I go to my video playback, he keeps as jittering so I can't really change it. It this video is my internal Park so I really need to work. So if anyone can help me, please doThank you