Page 32 of 33 FirstFirst ... 2230313233 LastLast
Results 311 to 320 of 327

Thread: new to flash 2004 mx

  1. #311
    Join Date
    Mar 2008
    Posts
    222
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    Ok. Thanks. So i just need to edit some of the details in the code generator, generate it & copy & paste the code into my html?

  2. #312
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Yup. Don't forget to link to the external JS in the <head> as well.

  3. #313
    Join Date
    Mar 2008
    Posts
    222
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    What is a external JS? Is it something like this here

    Code:
    var logo:MovieClip = this["panel"+j].createEmptyMovieClip("logo"+i, i);
              var image:MovieClip = this["panel"+j]["logo"+i].createEmptyMovieClip("image", i);
    the 1st line is called logo array & 2nd is called image array. right?

    this.id The id means idenify?
    Last edited by hyk; 05-15-2008 at 09:03 AM.

  4. #314
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    What is a external JS? Is it something like this here
    Yes, but the HTML generator adds it. I didn't realize that when I posted. So if you copied/pasted from the HTML generator, you don't have to worry about it.

    the 1st line is called logo array & 2nd is called image array. right?
    No, they're variables. Not arrays.

    this.id The id means idenify?
    Sure. You can define it however you want. It's an arbitrary property that I created to create a reference. You can't access the array index within an onRelease function, so this is the metod you have to use. See this post for a (better?) explanation.

  5. #315
    Join Date
    Mar 2008
    Posts
    222
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    ya i did that. copied the whole chunk in. The only things i did to that page was chang the name of the .swf, size of the pics & delete the <a herf> thing. So the
    embedding is done right? Now if i want put the header etc, do i do it the css way? my teacher gave me a shock. He say for my demo, i need to show him a proper marquee in html. So the box can`t be remove right? Sorry this sounds like
    a dumb question

    [/QUOTE]No, they're variables. Not arrays.[/QUOTE]
    i see,my bad. I read from the one you send me, its says arrays(looks very similar)

    Edited: opps, you answer my header question in html. I just saw it. html, i should be fine with it. Never really touch it for a year. I just need to show how its looks in the web, i suppose

  6. #316
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    i see,my bad. I read from the one you send me, its says arrays(looks very similar)
    Yeah, again images with an S is the array.

    ya i did that. copied the whole chunk in. The only things i did to that page was chang the name of the .swf, size of the pics & delete the <a herf> thing. So the
    embedding is done right? Now if i want put the header etc, do i do it the css way? my teacher gave me a shock. He say for my demo, i need to show him a proper marquee in html. So the box can`t be remove right? Sorry this sounds like
    a dumb question
    Yeah, the HTML/CSS way. This question would probably be better suited for the HTML/CSS forums. So why don't you post there. I'm not sure about the outline. I'll need to see your code to see what's causing it.

  7. #317
    Join Date
    Mar 2008
    Posts
    222
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    Thanks, i get what you mean. we need to declare 2 createEmptyMovieClip is because we need the frame(logo) &pictures(image) in it
    why are there 2 Is in the logo?
    Code:
    var logo:MovieClip = this["panel"+j].createEmptyMovieClip("logo"+i, i);
              var image:MovieClip = this["panel"+j]["logo"+i].createEmptyMovieClip("image", i);
    Mind if i drop you an e-mail? then I clariy the codes all at one go
    Last edited by hyk; 05-16-2008 at 08:44 AM.

  8. #318
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by hyk View Post
    Thanks, i get what you mean. we need to declare 2 createEmptyMovieClip is because we need the frame(logo) &pictures(image) in it
    why are there 2 Is in the logo?
    Code:
    var logo:MovieClip = this["panel"+j].createEmptyMovieClip("logo"+i, i);
              var image:MovieClip = this["panel"+j]["logo"+i].createEmptyMovieClip("image", i);
    No, you're confusing the two. The code that you posted is the frame + picture bit. The two createEmptyMovieClip lines are because of the continuous motion. Think of it like a conveyor belt. The top of belt is panel1 and the bottom is panel2. They're connected and move in a loop. But they're exact copies of each other. This creates the continuous motion (or the perception of it, at least).

    Mind if i drop you an e-mail? then I clariy the codes all at one go
    No, I don't mind.

  9. #319
    Join Date
    Mar 2008
    Posts
    222
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    Hi I am back, I embed the the marquee in the html. But when the images is clicked, the present window will show the homepage. How could i make a new window pop up instead?

  10. #320
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Yeah sure,

    the getURL() method takes several paramters:

    Code:
    getURL(url:String, [window:String, [method:String]]) : Void
    So, add the second parameter, like this:
    Code:
    getURL(urls[this.id], "_blank");

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •