Load the external CSS file

I asked this question before and it was answered by some major contributors on this forum, but I have to admit that, even if it worked once, it doesn't seem to work now. I use Edge animate CC 2014 that might be the problem.

I am given to understand that if you use this little button "c" to declare a block of text in a paragraph (see screenshot below)

sometext.jpg

then the style rule that you write to the file html produced by Edge when you publish, should work on all 'p' designated text blocks (as directed by the screenshot below)

But it doesn't work.

I tried every combination I can think of and looked everywhere on the web by Lynda.com and in this forum, but no luck. I'm certainly not the only person on Earth who wants to change the blocks of text with an external css file.

I know that I'm trying the patience of you smart people out there, but I need to have my answers in simple terms, without forgetting anything. You can't underestimate my ability to make mistakes.

Any help appreciated.

html.jpg

Hello

You can change your css as follows properties externally or internally:

(1) on the outside.

You create a css file and add this line of code in your html page:

p {color: red} contains a myFile.css and this file is located in the folder called "css".

(2) internally.

The user interface offers you 2 buttons: management tags, another course of management.

(a) the button tags.

You change the html tag using the right key. I mean the switch before the c button.

You choose the paragraph tag: p., then you open the creationComplete Panel and you script: sym.$("p").css ("color", "red");

(b) the classes of button.

If you use the c key to a single class. For example, you write the word in blue.

You will be the script in the creationComplete Panel: sym. $(". Blue"). CSS ("Color", "Blue");

Now, looking at your page html (your second photo).

I navigate on this page looking for the tag (p)

...

).

When I arrived the last tag (), I have not found any p tag. So, nothing happens.

Tags: Edge Animate

Similar Questions

  • How to add the external css file to the _edge.js file

    I tried to add in the html page, but when I save the edge project it deletes.

    I'm able to add the external js file in scripts: [] in the _edge.js file

    We can add inside resources: []?

    And is it possible to add an external css in files of edge except in page html and javascript?

    CSS:

    Please put this in scene/creationComplete (file name change to your file name and path)

    $(" ",{"rel":"stylesheet","type":"text/css","href":"css/finename.css"}).append ("#Sta ge»);"})

    Add! important in CSS file properties.

    js files should be loaded with the upload script Panel on the right side of your user interface.

  • Draw AP Div & amp; external CSS file?

    Whenever I draw a new AP div in Design view, it sends the new CSS information to my main source code. Anyway set up Dreamweaver so the new CSS created when you draw an AP div goes straight to the external CSS file?

    Thank you!

    John

    P.S. It's version cs4 DreamWeaver

    Well, that's like asking-

    "When I burn my house, I need to light the fire with a match or a napalm."
    bomb? »

    Why do you use divs PA at all?

    In any case, as I know there is no way to direct the CSS created by that
    operation in an external style sheet. DW makes it quite easy to do
    After the fact, however, using MOVE CSS accessible from the
    the toolbar in code.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Tinman17" wrote in message
    News:gpbsfj$MUC$1@forums. Macromedia.com...
    > Whenever I draw a new view creation AP div it sends the new CSS
    > information to
    > my main source code. Any way to set up Dreamweaver so the new CSS entry
    > created when a drawing AP div goes directly on the external CSS file?
    >
    > Thank you!
    >
    > John
    >

  • How to determine the total number of images in the external .swf file loaded

    I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.

    Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:

    ------------------------------------------------------------------------------------------ ----------------------------

    this.createEmptyMovieClip ("tester_mc", 1);
    var mcListener:Object = new Object();

    mcListener.onLoadInit = {function (target_mc:MovieClip)}
    target_mc.onEnterFrame = function() {}
    If (this ._currentframe > = this ._totalframes) {}
    trace ("total frames =" + this ._totalframes);
    delete this.onEnterFrame;
    } else {}
    trace (target_mc._currentframe + "OF" + target_mc._totalframes);
    }
    }
    }

    var test_mc:MovieClipLoader = new MovieClipLoader();
    test_mc. AddListener (mcListener);
    test_mc.loadClip ("Ad_Group.swf", tester_mc);

    ------------------------------------------------------------------------------------------ -------------------------------------

    Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)

    TIA,

    C

    I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.

    I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?

    The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.

    If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.

    Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.

  • Load an external audio file in table?

    Hello.

    I figured out how to load an external video file - and I can play an audio file imported, but I can't seem to use both methods to load an external audio file into a table. (doh)

    Here is my audio code:

    var tour_audio:Array = [tour1, tour2];

    var my_num:Number = Math.floor (Math.random () * 2);

    var ChosenSound = tour_audio [my_num];

    var playing: Sound = new ChosenSound();

    Playing.Play ();

    Here's my video code:

    var my_videos:Array = new Array ('link1.mp4', 'link2.mp4', 'link3.mp4', 'link4.mp4');

    var randomIndex = Math.floor (Math.random () * my_videos.length);

    my_player.source = my_videos [randomIndex];

    I tried ' var tour_audio:Array = ["link1.mp3", "link2.np3"];  - but it does not work.

    Ty

    //  ------------------------

    the table is from your code, the table will be the references for the two audio files

    var tour_audio:Array = new Array();

    then you must create two instances of the sound class to contain the audio files you load into

    var soundClip1:Sound = new Sound();

    var soundClip2:Sound = new Sound();

    then you need a sound channel to play audio files

    var sndChannel:SoundChannel = new SoundChannel();

    It's your randomizer code

    var my_num:Number = Math.floor (Math.random () * 2);

    now, you load each sound file in your instances of the sound using the URLRequest class

    soundClip1.load (new URLRequest ("tour1.mp3"));

    soundClip2.load (new URLRequest ("tour2.mp3"));

    to find out when loading, the files have completed, you must add an event listener to each of the classes of sounds

    These event listeners will be triggered the functions onComplete1 and onComplete2 when loading is completed to each sound file

    soundClip1.addEventListener(Event.COMPLETE,onComplete1,false,0,true);

    soundClip2.addEventListener(Event.COMPLETE,onComplete2,false,0,true);

    This is the function for the first hearing of his charger, it will add the instance of the sound in your table class once loaded the sound

    function onComplete1(evt:Event):void {}

    tour_audio.push (soundClip1);

    }

    This function does the same work for the second audio file

    function onComplete2(evt:Event):void {}

    tour_audio.push (soundClip2);

    }

    Call this function to play the selected audio file

    It could be called from the function of onComplete2 above

    function playRandomSound (): void {}

    var ChosenSound = tour_audio [my_num];

    sndChannel = ChosenSound.play ();

    }

    //  ------------------------

    I added comments to the code itself which should help to explain what is happening. Yes, AS3 is just jam packed with intimidating stuff. As use you it, it will start to make sense.

  • How to make reference to the external SWF file using if statement?

    I have a main swf file that loads several external SWF file when the user clicks a menu button. Now I want to target a specific swf file to Add an extra library child or of another swf when this specific swf file is loaded. How should I do? What should I put in the stated case?

    ///////////////////////////////////////////////////////////

    var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

    Loader.Load (newswf);

    addChild (loader); dynamically load SWFs

    If (newswf == ".") ("/ SWF/pubResCHETNA.swf ') //error here

    {

    FC.buttonMode = true;

    FC.addEventListener (MouseEvent.CLICK, full screen);

    }

    function fullScreen(e:MouseEvent):void

    {

    var loaderF:Loader = new Loader();

    loaderF.load (new URLRequest ("PopupFullscreen.swf"));

    addChild (loaderF);

    }

    ////////////////////////////////////////////////////////

    The State must be newswf.url == the path. However I store event.target.name as a variable and use it in the State. You use "." for your path so the condition probably will always fail.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • How to unload the external .swf file when pass the other section?

    Hello

    The following code provided by Mr. kglad works very well to load an external .swf file on stage. Now, when I click on Contact (button), the file external .swf to disappear completely. How to encode on contact (button) to get by.

    Gallery.addEventListener (MouseEvent.CLICK, GalleryClick);

    function GalleryClick(e:Event):void {}

    If (currentClip! = Gallery_mc) {}

    currentClip.visible = false;

    Gallery_mc. Visible = true;

    currentClip = Gallery_mc ;}

    var loader: Loader = new Loader();

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, ClipLoaded);

    Loader.Load (new URLRequest ("Gallery.swf"));

    function ClipLoaded(e:Event):void {}

    Gallery_mc. AddChild (Loader);

    Loader.x = 0;

    Loader.y = 120;

    Loader.Width = 1000;

    Loader.Height = 700

    }}

    I tried the following code for Contact_btn unload the Gallery.swf file that launches an error message: 1120: access of undefined property loader.

    Contact.addEventListener (MouseEvent.CLICK, ContactClick);

    function ContactClick(e:Event):void {}

    If (currentClip! = Cotnact_mc) {}

    currentClip.visible = false;

    Cotnact_mc. Visible = true;

    currentClip = Cotnact_mc;

    Gallery_mc.removeChild (loader);}}

    unloadAndStop() is supported by flash player 10 or higher (fp 10 +).

    p.s. Please check the useful/correct, if there is.

  • Preloader which modifies the external SWF files every 5 seconds

    Hello

    I made a web banner in flash that loads an external swf and another external swf changes after 5 seconds. The banner have a preloader, but the problem becomes when you load the first time. As sovereign wealth funds are not cached in the cache of the browser and yet, time 5 seconds start counting from the preloader, and when the external swf file, shows only 1 second rest and it is replaced by another. There is a way to 'freeze' the time for each external swf until it loads completely?

    The code that loads SWFs every 5 seconds (this code is placed in a layer of action):

    start of the code:

    var intervalId: number;
    var: number = 0;
    var maxCount:Number = 23;
    var duration: number = 0;
    var banners: Array = new Array)
    "abatrade.swf,"
    "bancobrasil.swf,"
    "caparao.swf,"
    "cedro.swf,"
    "cesama.swf,"
    "copasa.swf,"
    "damatta.swf,"
    "emtel.swf,"
    "engedrain.swf,"
    "extel.swf,"
    "feedback.swf,"
    "iti.swf,"
    "intermedium.swf,"
    "magnesita.swf,"
    "maquenge.swf,"
    "maxxdata.swf,"
    "orteng.swf,"
    "paiva.swf,"
    "paraibuna.swf,"
    "paraopeba.swf,"
    "sabesp.swf,"
    "serpro.swf,"
    "soll.swf,"
    'thawte.swf '.
    );

    function executeCallback(param:String) {}
    var duration: number = 5000;
    loadMovie (banners [count], loadmovie_mc);
    loadmovie_mc._x = 0;
    loadmovie_mc._y = 0;

    clearInterval (intervalId);
    if(Count < maxCount) {}
    Count ++;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    else {}
    Count = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    }
    }

    If (intervalId! = null) {}
    clearInterval (intervalId);
    }

    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);

    end of the code
    ----------------------------------------

    And the code to the preloader (this code I place in the movieclip that loads external SWF files):

    start of the code:

    {onClipEvent (enterFrame)}
    var gtT:Number = this.getBytesTotal ();
    var gtL:Number = this.getBytesLoaded ();
    var gtP:Number = int ((gtL/gtT) * 100);
    If (TWG > gtL) {}
    This ._alpha = 0;
    _root. Loader._alpha = 100;
    _root. Loader.bar._width = gtP;
    clearInterval (intervalId);
    } else {}
    This ._alpha = 100;
    _root. Loader._alpha = 0;
    intervalId = setInterval (Thi, "executeCallback", duration, banners [count]);
    delete onEnterFrame;
    }
    }

    end of the code

    Note that I tried to freeze the time using a clearInterval does in the second code, but he simply doesn't work...

    Any ideas? Thank you

    Edson

    Here's the correct code kglad send me. Thank you very much!

  • I get this message at the startup of firefox: cannot open fileUnable mab to load the address book file history.mab I can delete and move forward but can't continue until it is deleted? Any suggestions on solving this problem?

    When I open firefox I get the following message: could not open the file failed to load the address book file history.mab mab I can delete this message and continue to use firefox, but must remove it until I can move forward. Any suggestions to fix this?

    This has happened

    Each time Firefox opened

    Is 10 days ago

    Are you sure that your question is about Firefox and not on Thunderbird?
    Firefox does not use a file history.mab

    See http://kb.mozillazine.org/Profile_folder_-_Thunderbird
    ---
    You can ask questions about the program of Thunderbird on MozillaZine Thunderbird Support forum.
    This forum is better suited for questions about Thunderbird, this forum is for the support for Firefox.
    See http://forums.mozillazine.org/viewforum.php?f=39

  • Elements of reference in the external js file request

    I am using an external javascript file, but I have problems to reference the elements of the application

    APP_ID and the SESSION can be referenced using

    APP_ID: $v('pFlowId')
    SESSION: $v('pInstance')

    and page items (P1_ITEM) can be referenced using

    $v('P1_ITEM')

    Application items (A1_ITEM)However, do seem to not work. Tried using $v ('A1_ITEM') but without success. Is it possible to reference the elements of application in the external js file?

    Teo

    You can set point local page to the value of the item application and then refer to this local element.

  • Ways to load the map R2RML file

    I see that we can use the jena api to write a program to load the map r2rml file in the table of the scene. There are scripts or tools that do the same thing?

    Thank you.

    Hi HansC,

    The method prepareBulk in the class OracleBulkUpdatedHandler allows to load a file RDF (including the r2rml) into an intermediate table.

    7-12 in the document can give you assistance.

    http://docs.Oracle.com/CD/E16655_01/AppDev.121/e17895/sem_jena.htm#RDFRM472

    Thank you

    Zhe Wu

  • 'ERROR 01' as I have only 66 MB of free space on my MacBook Air: (how to load the external Creative cloud on a hard drive software?

    I bought the full package, but I couldn't get it to load on my laptop.

    So my question is:

    How to load the external Creative cloud on a hard drive software?

    Or do you spend, how the "Installer Creative Cloud' to load it on an external hard drive?

    Thanking you in anticipation.

    : )

    you have the cc office application installed on your computer?

    If not, install the - apps Download Adobe Creative Cloud | CC free trial Adobe

  • Re: CSS external style; I finished a Web site for the class (html 5 and I forgot to select the external CSS stylesheet; do I have to redo the project in Dreamweaver CS6)

    Hello

    Re: External CSS to model; I finished a Web site for the class (html 5 and I forgot to select the external CSS stylesheet; do I have to redo the project in Dreamweaver CS6)

    In 2015, CC, you can do the following...

    1. turn highlight everything between your

  • addition of html in the box edge animate the text of the external js file

    I have a text field in the anime that I want to update with a score of edge. The function that allows you to click and update the partition is in an enternal file so I'll try to figure out how to get my div animated dashboard replaced by jquery in the external file. That's what I have so far in the external js, but it is not reading the field to animate the text of edge correctly:

    external .js file:

    AdobeEdge.coinCounter += 250; It called the coinCounter variable introduced in edgeActions.js and the initial value of 0 updates
    Alert (AdobeEdge.coinCounter); This shows that it works and updated correctly

    var comp = AdobeEdge.getComposition ("EDGE-172492634");

    var point = comp.getStage ();

    stage.sym.$("gameText").html (AdobeEdge.coinCounter); It's when things go wrong. I want this updated value in the text box named 'gameText' which is in the composition of edgeAnimate

    stage.sym.$("gameText").html ("NewText"); There is no indication in the text box 'gameText. " something must be wrong how am I referencing outside edgeActions in the external .js file

    Did someone mind helping me to refer to the text box 'gameText"correctly so I can enter my new value? Thank you!!

    Hello

    You must remove "sym.": internship. $("gameText").

  • created variable on click in edgeActions.js but want to reference in the external js file


    Hi, I created a variable on click in edgeActions.js but want to reference in the external js file. This is where I am so far:

    In my edgeActions.js I have variable st on compositionReady and then use it when I click the icon: questionMarkR1. It works fine... the problem is that I don't know how to reference the variable in my external js file. This first code works of the edgeActions.js:

    Symbol.bindElementAction (compId, NomSymbole, 'document', 'compositionReady', function (sym, e) {})


    sym.setVariable ("questionAsked", false); sets the initial value

    });

    Symbol.bindElementAction (compId, NomSymbole, "${_questionMarkR1} ', 'click', function (sym, e) {})

    var questionAsked = sym.getVariable ("questionAsked");

    Alert (questionAsked);

    If (questionAsked) / / if it is true
    {
    SYM. $("checkButton2") .removeClass ("hidden");
    SYM. $("popUp") .removeClass ("hidden");


    }
    of other fake //if
    {

    SYM. $("pic2a") .removeClass ("hidden");
    SYM. $("pic2b") .removeClass ("hidden");
    SYM. $("pic2c") .removeClass ("hidden");
    SYM. $("pic2d") .removeClass ("hidden");

    SYM. $("closeBox") .removeClass ("hidden");
    }

    });

    This next part does not work because I don't know how to properly reference the variable. That's what I've tried and it doesn't work:

    var questionAsked = sym.getComposition () .getStage () .getVariable ("questionAsked");


    Alert (questionAsked);

    Hello

    Animate edge exposes an API for external scripts, you will need to use in your case:

    For more information about the API to animate edge, see API JavaScript Adobe Edge animate CC

    Use the code below in your external js file:

    var comp = AdobeEdge.getComposition ("EDGE-606063631"); replace 'EDGE-606063631' by your model id, you can find in the .html file

    var point = comp.getStage ();

    var questionAsked = stage.getVariable ("questionAsked");

    Alert (questionAsked);

    HTH,

    Vivekuma

Maybe you are looking for