Solved

calling an swf !!

Posted on 2004-03-26
7
1,027 Views
Last Modified: 2010-05-18
http://www.something.com/something/something/creation.swf

you can see it right.

Now go to something.com access china, click 360 view, now you are taken to the same URL but you get a http error.

What is wrong do you know?

This is the code (flash) that is called on the web page when you click 360..

    getURL ("http://www.something.com/something/something/creation.swf", interfaceTarget.interfaceHolder,"POST");
     stop();
0
Comment
Question by:finnstone
  • 4
  • 2
7 Comments
 

Author Comment

by:finnstone
Comment Utility
The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
0
 
LVL 23

Expert Comment

by:Zeffer
Comment Utility
take the quotes off .. POST
and put them around the target (also.._root..is a good idea in the target path)

getURL ("http://www.something.com/something/something/creation.swf", "_root.interfaceTarget.interfaceHolder", POST);

Z
0
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
Comment Utility
actually..sorry.. that's not it..your syntax is correct..however

using getURL supports 3 parameters 2 being optional
the first is the url..
second (optional)..is the window..if not specified..window is.._blank
three (optional)..method get or post

so..interfaceTarget.interfaceHolder.. is not a valid parameter and you will get a new window...not your swf loading into the main movie.

so movieClip.loadMovie..is the method to use
i see your previous question and suggest..

_root.loadMovie("http://www.something.com/something/something/creation.swf", _root.interfaceTarget.interfaceHolder, "POST");

Z
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 5

Expert Comment

by:zenlion420
Comment Utility
Whoa,

Sorry Z, I didn't know you were giving suggstions for the other Q over here.  I was just in that one messing around with it, and posted what I found to be the solution.  Anyway, then I came over to see if this one was getting anywhere, and boom, looks like you've posted something pretty similar.

j
0
 

Author Comment

by:finnstone
Comment Utility
zeff, i  used your code, but now my variables are not sent to creation.swf??
0
 

Author Comment

by:finnstone
Comment Utility
this is an improvemnt because at least it is being loaded, but the way you have coded has made the POST uneffective??
0
 

Author Comment

by:finnstone
Comment Utility
its working now. ill award points soon. you guys are my saviors. i  used global for the variables instead of root once i had your fix in place.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now