You must be logged in to post Login Register
Search 

Vertical Menu with Actionscript 3 and XML

User Post

3:56 pm
April 21, 2009


astute

Member

posts 9

1

Hi thanks for this awesome tutorial. Now I need some of your support..

I try to do make external swfs to call in to master flash movie but I dont figure it out.

Can you help me?

I just want to call swf, videos, or jpgs ect. into my movie not a “_blank” browser window


I try change this——->


function itemClicked(e:Event):void {

    //Get the item that dispatched the event
    var item:MenuItem = e.target as MenuItem;

    //Navigate to the URL that's assigned to the menu item
    var urlRequest:URLRequest = new URLRequest(item.linkTo);
    navigateToURL(urlRequest);
}


into this—->


function itemClicked(e:Event):void {

    //Get the item that dispatched the event
    var item:MenuItem = e.target as MenuItem;

    //Navigate to the URL that's assigned to the menu item
    var urlRequest:URLRequest = new URLRequest(item.linkTo);
    loader.load(urlRequest);
    addChild(loader);
}


but sure it dosnt working, then I get this massage


TypeError: Error #1034: Tür Dayatması başarısız oldu: flash.net::URLLoader@25b0eb81, flash.display.DisplayObject öğesine dönüştürülemiyor.
    at Vertical_fla::MainTimeline/itemClicked()


:)yes its turkish language but output panel gave me this


I hope you can help me 


Thanks….Smile

10:30 pm
April 21, 2009


smonte

Admin

posts 27

2

Hey


I see at least on problem in your code. You are now calling loader.load without ever creating the loader. You could try something like this:


//Load an image
var loader = new Loader();
loader.load(new URLRequest(item.linkTo));

Hope that helps!

Regards,smonte

Regards, smonte

8:15 am
April 22, 2009


astute

Member

posts 9

3

hi

thanks your feedback but it does not working, system is working but I dont see anything

I tried load “test.swf” then I check bandwidth profiller, streaming graph and simulate download tools they show me “test.swf” is loading

but I dont see anything onto movieclip where is the test.swf? Can mask movice cause this?

:)yes I cant figure it out one more time hope you can help me

there is a link for my document you can look them

http://rapidshare.com/files/22…..t.rar.html

Thanks

8:42 am
April 22, 2009


smonte

Admin

posts 27

4

Post edited 3:43 pm – April 22, 2009 by smonte


Hey, everything was looking quite good with the code. You were missing only one line ;)you must add the loader to the stage so it becomes visible. So in the itemClicked() function you must use the addChild(loader):


    var loader = new Loader();
    loader.load(new URLRequest(item.linkTo));
    addChild(loader);

This way the test.swf will show on the stage so you can further improve the movie…

Regards, smonte


Regards, smonte

9:19 am
April 22, 2009


astute

Member

posts 9

5

wuhuuu its working thank you smonte you are good coder and designer thank you very much for this tutorial..

4:46 am
June 12, 2010


dono do casino

New Member

posts 1

6

I have a problem, i made this tutorial and works fine but i have a button on the stage po go to other menu , the problem is that when i click on the menu button he goes to the menu but he keeps loading the xml, what can i do to disable the xml each time i change to another frame??


Can anyone help me??

Topic RSS 
Search